Get by reference¶
Info
Before proceeding with the API integration check this guide on authentication
This API endpoint fetches all the details of a particular booking by bookingRefId, which is obtained from Get all bookings.
Endpoint¶
https://mini.uat.zikomo.io/api/booking/BookingMaster/{bookingRefId}
Supported Methods¶
| Method | Description |
|---|---|
GET | Fetch a particular booking |
Route Parameters (Required)¶
| Method | Description |
|---|---|
bookingRefId | A numeric booking reference without prefix |
Success Response¶
| Code | Description |
|---|---|
200 | OK |
{
"id": 2088,
"bookingReferencefNo": 30097,
"bookingDate": "2024-07-03T07:28:00",
"inputDate": "2024-07-03T08:27:10.5258354",
"confirmedDate": null,
"balanceDuedate": "2024-07-03T08:28:13.5085497",
"holidayDepartureDate": null,
"holidayReturnDate": null,
"clerk": "Developer Zikomo",
"noOfAdults": 2,
"costOfAdults": 0,
"noOfChildren": 0,
"costOfChildren": 0,
"noOfInfants": 0,
"costOfInfants": 0,
"noOfSupplement": 0,
"costOfSupplement": 0,
"totalHolidayCost": 0,
"totalHolidayCostGBP": 0,
"margin": null,
"companyId": 44,
"organizationId": null,
"charges": null,
"totalVat": 0,
"totalVatGBP": 0,
"totalCommission": 0,
"totalCommissionGBP": 0,
"profit": null,
"profitGBP": null,
"remainingHolidayCost": 0,
"remainingHolidayCostGBP": 0,
"userEmailId": "developer@zikomo.io",
"committedById": null,
"bookingCategory": "Manual",
"totalHolidayNetCost": 0,
"totalHolidayNetCostGBP": 0,
"pushSource": "",
"mediaId": null,
"media": null,
"subMediaId": null,
"subMedia": null,
"enquiryTypeId": null,
"enquiryType": null,
"productCode": null,
"currencyRate": 0,
"bookingStatusId": null,
"currencyId": 2,
"currency": {
"id": 2,
"fromCurrency": "GBP",
"fromCurrencySign": "£",
"fromCurrencyAmount": 1,
"toCurrency": "GBP",
"toCurrencySign": "£",
"toCurrencyAmount": 1,
"categoryTypeId": 1,
"organizationId": null,
"companyId": 44,
"isActive": true,
"isDeleted": false,
"updatedBy": "",
"updatedByID": 0,
"createdAt": "2023-12-18T16:47:49.41",
"updatedAt": "2023-12-18T16:47:49.41"
},
"reservationTypeId": 1,
"reservationType": {
"id": 1,
"zikomoId": 1,
"reservationType": "Flight and Hotel",
"code": "FH",
"isActive": true,
"isDeleted": false,
"updatedBy": "",
"updatedByID": 0,
"createdAt": "2024-05-04T11:23:14.874",
"updatedAt": "2024-05-04T11:23:14.874"
},
"bookingTypeID": null,
"isComplete": false,
"importedAt": null,
"costTypeId": 1,
"flights": [],
"passengers": [
{
"id": 2116,
"bookingReferencefNo": 30097,
"firstName": "Nitin",
"middleName": null,
"lastName": "Deogirikar",
"citizenship": null,
"isLeadPassenger": true,
"passportNumber": null,
"passportExpiry": null,
"dateOfBirth": null,
"title": "Mr",
"personIdentity": "adult",
"passportDetails": "",
"passportIssuedCountryId": null,
"passportIssueCountry": null,
"passportIssue": null,
"isBiometricPassport": null,
"gender": "",
"pushSource": "",
"age": 0,
"phoneNumber": "+449028680748",
"whatsAppNumber": "+449028680748",
"houseNumber": "Hallow Wins",
"street": "Opp Lake View Restro",
"address1": "Near City Garden",
"address2": "London",
"postCode": "HDK2 335",
"email": "nitin@zikomo.io",
"countryId": 5037,
"country": {
"id": 244,
"zikomoId": 5037,
"countryName": "United Kingdom",
"countryCode": "GB",
"image": null,
"htmlAd": null,
"airportFlyFromId": null,
"airports": null,
"depatureAirportId": null,
"phoneNumber": null,
"title": null,
"imagePath": null,
"description": null,
"isActive": true,
"isDeleted": false,
"updatedBy": null,
"updatedByID": null,
"createdAt": "2023-07-19T16:46:53.2575134",
"updatedAt": "2023-07-19T16:46:53.257513"
},
"bookingId": 2088,
"booking": null,
"extras": null,
"generateBookingId": "",
"isActive": true,
"isDeleted": false,
"updatedBy": "",
"updatedByID": 0,
"createdAt": "2024-06-03T17:17:25.684",
"updatedAt": "2024-06-03T17:17:25.684"
}
],
"payments": [
{
"id": 2397,
"bookingReferencefNo": 30097,
"description": null,
"totalHolidayCost": 0,
"cardCharge": 0,
"totalAmountPaid": 2,
"totalAmountPaidGBP": 2,
"transactionValue": 2,
"transactionValueGBP": 2,
"transactionDate": "2024-07-03T07:28:00",
"cccCompany": 0,
"cccCompanyGBP": 0,
"cccCustomer": 0,
"cccCustomerGBP": 0,
"voucherCommission": null,
"voucherCommissionGBP": null,
"voucherDealCode": null,
"companyCharge": 0,
"remainingHolidayCost": 0,
"remainingHolidayCostGBP": 0,
"vat": 0,
"vatGBP": 0,
"paymentTypeId": null,
"bankId": null,
"bank": null,
"currencyId": null,
"currency": null,
"nameOnCard": null,
"expiryDate": "2024-07-03T08:28:12.937",
"lastFourDigits": "0000",
"paymentReference": "84664a2533577f72bc61d143ef3a16ce",
"cardType": null,
"currencyRate": 1,
"bookingId": 2088,
"booking": null,
"isActive": true,
"isDeleted": false,
"updatedBy": "",
"updatedByID": 0,
"createdAt": "2024-07-03T08:28:12.938",
"updatedAt": "2024-07-03T08:28:12.938"
}
],
"tours": [],
"accommodations": [],
"carHire": [],
"carParking": [],
"train": [],
"transfer": [],
"lounge": [],
"extras": [],
"notes": [
{
"id": 2332,
"internalNote": null,
"supplierNote": null,
"customerNote": null,
"isActive": true,
"isDeleted": false,
"updatedBy": "",
"updatedByID": 0,
"createdAt": "2024-07-03T08:27:15.689",
"updatedAt": "2024-07-03T08:27:15.689"
}
],
"customerCosting": null,
"generateBookingId": "ZS0030097",
"isActive": true,
"isDeleted": false,
"updatedBy": "developer@zikomo.io",
"updatedByID": 0,
"createdAt": "2024-07-03T08:27:10.5258302",
"updatedAt": "2024-07-03T08:28:13.5121412"
}
Failure Response¶
| Code | Description | Message | Reason |
|---|---|---|---|
500 | Internal server error | Domain cannot be null | zikomo-client-domain header is missing |