curl --location 'https://api.rezdy-staging.com/v1/bookings'--header 'apiKey: 9f46ac6ba1414a028f75207364358dc9'--header 'Content-Type: application/json'--data-raw '{
"resellerReference": "1695794239",
"customer": {
"firstName": "Rick",
"lastName": "Sanchez",
"phone": "+61484123456",
"email": "[email protected]"
},
"items": [
{
"productCode": "PQ6FEB",
"startTime": "2023-11-01T22:00:00Z",
"quantities": [
{
"optionLabel": "Adult",
"value": 2
}
]
}
],
"payments": [
{
"type": "CASH",
"amount": "0",
"currency": ""
}
]
}'
Response :
{
"requestStatus": {
"success": true,
"version": "v1"
},
"booking": {
"orderNumber": "R096JH9",
"status": "CONFIRMED",
"supplierId": 12346,
"supplierName": "Rezdy Stripe Enabled API Certification Use",
"supplierAlias": "marketplace",
"resellerId": 14170,
"resellerName": "PrioHub Staging",
"resellerAlias": "priohubstage",
"customer": {
"id": 34902,
"firstName": "Rick",
"lastName": "Sanchez",
"name": "Rick Sanchez",
"email": "[email protected]",
"phone": "+61484123456"
},
"items": [
{
"productName": "Premium Tour of Dubai - 99 mintues (Staging)",
"productCode": "PQ6FEB",
"startTime": "2023-11-01T22:00:00Z",
"endTime": "2023-11-01T23:39:00Z",
"startTimeLocal": "2023-11-02 09:00:00",
"endTimeLocal": "2023-11-02 10:39:00",
"quantities": [
{
"optionLabel": "Adult",
"optionPrice": 299.0,
"value": 2
}
],
"totalQuantity": 2,
"amount": 598.0,
"extras": [],
"participants": [
{
"fields": [
{
"label": "Title"
},
{
"label": "First Name",
"value": "Rick"
},
{
"label": "Last Name",
"value": "Sanchez"
},
{
"label": "Mobile"
},
{
"label": "Email",
"value": "[email protected]"
},
{
"label": "Barcode",
"value": "R096JH9136902"
}
]
},
{
"fields": [
{
"label": "Title"
},
{
"label": "First Name"
},
{
"label": "Last Name"
},
{
"label": "Mobile"
},
{
"label": "Email"
},
{
"label": "Barcode",
"value": "R096JH9136903"
}
]
}
],
"subtotal": 598.0
}
],
"totalAmount": 598.0,
"totalCurrency": "AUD",
"totalPaid": 0.0,
"totalDue": 598.0,
"dateCreated": "2023-09-27T05:35:08Z",
"dateConfirmed": "2023-09-27T05:35:08.377Z",
"payments": [
{
"type": "CASH",
"amount": 0.0,
"currency": "AUD",
"date": "2023-09-27T05:35:08.383Z",
"recipient": "RESELLER"
}
],
"fields": [
{
"label": "Barcode",
"value": "R096JH9"
}
],
"source": "MARKETPLACE_PREF_RATE",
"resellerSource": "API",
"sourceChannel": "PRIOHUBSTAGING",
"commission": 119.6,
"vouchers": [],
"resellerReference": "1695792908",
"barcodeType": "QR_CODE"
}
}