Get all bookings¶
Info
Before proceeding with the API integration check this guide on authentication
This booking API endpoint allows us to get all the bookings for a brand. The brand is identified by a domain name that you provide via the request header. The results are returned in pages as a JSON object.
The response contains primary information about the bookings. To get full details about a particular booking, please invoke another dedicated endpoint and use the bookingRefId from the response to get all the details for the a particular booking.
Endpoint¶
https://mini.uat.zikomo.io/api/booking/bookingmaster?pageNumber=1&pageSize=25
Supported Methods¶
| Method | Description |
|---|---|
GET | Fetch all bookings for a brand |
Query Parameters¶
| Method | Description |
|---|---|
pageNumber | A numeric value for current page |
pageSize | A numeric value. Number of bookings per page |
Success Response¶
| Code | Description |
|---|---|
200 | OK |
{
"pageNumber": 1,
"pageSize": 29,
"totalPages": 3,
"results": 86,
"data": [
{
"bookingRefId": 30097,
"leadPassengerName": "Nitin Deogirikar",
"bookingDate": "2024-07-03T07:28:00",
"totalHolidayCost": 0,
"totalHolidayCostGBP": 0,
"totalAmountPaid": 2,
"totalAmountPaidGBP": 2,
"reservationType": null,
"generateBookingId": "ZS0030097",
"inputDate": "2024-07-03T08:27:10.5258354",
"companyId": 44,
"bookingId": 2088,
"journeyFrom": null,
"journeyTo": null,
"costTypeId": 1,
"noOfAdults": 2,
"noOfChildren": 0,
"takeOffAirportCode": null,
"landingAirportCode": null
},
{
"bookingRefId": 30096,
"leadPassengerName": "syed moin ali",
"bookingDate": "2024-07-03T06:51:29",
"totalHolidayCost": 2100,
"totalHolidayCostGBP": 2100,
"totalAmountPaid": 25.15,
"totalAmountPaidGBP": 25.15,
"reservationType": null,
"generateBookingId": "ZS0030096",
"inputDate": "2024-07-03T07:39:50.1949064",
"companyId": 44,
"bookingId": 2087,
"journeyFrom": "Manchester",
"journeyTo": "Palma Mallorca",
"costTypeId": 2,
"noOfAdults": 2,
"noOfChildren": 0,
"takeOffAirportCode": null,
"landingAirportCode": null
},
{
"bookingRefId": 30095,
"leadPassengerName": "Umair Shaikh",
"bookingDate": null,
"totalHolidayCost": 210,
"totalHolidayCostGBP": 210,
"totalAmountPaid": 0,
"totalAmountPaidGBP": 0,
"reservationType": null,
"generateBookingId": "ZS0030095",
"inputDate": "2024-07-02T18:45:20.5340658",
"companyId": 44,
"bookingId": 2086,
"journeyFrom": "Municipal",
"journeyTo": "Les Salines",
"costTypeId": 1,
"noOfAdults": 2,
"noOfChildren": 0,
"takeOffAirportCode": null,
"landingAirportCode": null
},
{
"bookingRefId": 30094,
"leadPassengerName": "Nitin Deogirikar",
"bookingDate": "2024-07-01T12:28:34",
"totalHolidayCost": 0,
"totalHolidayCostGBP": 0,
"totalAmountPaid": 89.5,
"totalAmountPaidGBP": 89.5,
"reservationType": null,
"generateBookingId": "ZS0030094",
"inputDate": "2024-07-01T09:49:46.6567919",
"companyId": 44,
"bookingId": 2085,
"journeyFrom": null,
"journeyTo": null,
"costTypeId": 1,
"noOfAdults": 2,
"noOfChildren": 1,
"takeOffAirportCode": null,
"landingAirportCode": null
},
{
"bookingRefId": 30093,
"leadPassengerName": "Sham Kumar",
"bookingDate": "2024-06-29T07:21:42",
"totalHolidayCost": 0,
"totalHolidayCostGBP": 0,
"totalAmountPaid": 22.22,
"totalAmountPaidGBP": 22.22,
"reservationType": null,
"generateBookingId": "ZS0030093",
"inputDate": "2024-06-29T12:49:16.1545042",
"companyId": 44,
"bookingId": 2084,
"journeyFrom": null,
"journeyTo": null,
"costTypeId": 1,
"noOfAdults": 2,
"noOfChildren": 0,
"takeOffAirportCode": null,
"landingAirportCode": null
}
]
}
Failure Response¶
| Code | Description | Message | Reason |
|---|---|---|---|
500 | Internal server error | Domain cannot be null | zikomo-client-domain header is missing |