Booking List API
This method is used to query existing bookings by stay date, creation date, booking reference, or guest email.
Booking list uses the request and response shape described below. Date filters are applied to booking and stay date fields. bookingReferenceID is matched against the booking references available for the reservation. If emailId is sent, it is applied to the returned reservation data when available. Pagination is applied to the available result set; limit and page define the requested page size and page number.
Endpointβ
POST https://mg.mescogo.com/gw/api/booking/book-list
| Property | Value |
|---|---|
| URI | BaseURL/api/booking/book-list |
| Method | POST |
| Content-Type | application/json |
Request Parametersβ
| Parameter | Type | Description |
|---|---|---|
FromDate | string | Stay start date filter. Format: YYYY-MM-DD. Required with ToDate. |
ToDate | string | Stay end date filter. Format: YYYY-MM-DD. Required with FromDate. |
CreatedFrom | string | Optional booking creation start date filter. Format: YYYY-MM-DD. |
CreatedTo | string | Optional booking creation end date filter. Format: YYYY-MM-DD. |
bookingReferenceID | string | Optional booking reference filter. Keep the exact property casing shown here. |
emailId | string | Optional guest email filter. Keep the exact property casing shown here. |
limit | integer | Records per page when pagination is used. Default: 10. |
page | integer | Page number for the paginated booking list. Default: 1. |
bookingReferenceID can be sent as a booking identifier, confirmation number, or client agency reference.
Authorizationβ
This endpoint requires a Basic Authorization header, using the same API client credentials as the other booking endpoints.
Example Requestβ
{
"FromDate": "2026-06-01",
"ToDate": "2026-06-30",
"CreatedFrom": "",
"CreatedTo": "",
"bookingReferenceID": "",
"emailId": "",
"limit": 10,
"page": 1
}
Successful Responseβ
{
"Status": {
"Code": 200,
"Description": ""
},
"BookingDetail": [
{
"Index": 1,
"BookingId": "1531561",
"ConfirmationNo": "1531561",
"BookingDate": "18.05.2026",
"Currency": "USD",
"AgencyName": "",
"BookingPrice": "250.5",
"TripName": "",
"HotelCode": "26090",
"CheckInDate": "2026-06-01",
"CheckOutDate": "2026-06-05",
"ClientReferenceNumber": "REQ-10023"
}
]
}
Response Parametersβ
| Parameter | Type | Description |
|---|---|---|
Status | object | Response status |
Status.Code | integer | API status code |
Status.Description | string | Response description |
BookingDetail | object list | Matching booking rows |
BookingDetail[].Index | integer | Row index |
BookingDetail[].BookingId | string | Booking identifier |
BookingDetail[].ConfirmationNo | string | Confirmation number |
BookingDetail[].BookingDate | string | Booking process date |
BookingDetail[].Currency | string | Booking currency |
BookingDetail[].AgencyName | string | Agency name when available |
BookingDetail[].BookingPrice | string | Booking price when available |
BookingDetail[].TripName | string | Trip name when available |
BookingDetail[].HotelCode | string | MescoMG hotel code |
BookingDetail[].CheckInDate | string | Stay start date |
BookingDetail[].CheckOutDate | string | Stay end date |
BookingDetail[].ClientReferenceNumber | string | Client reference when available |
Error Casesβ
If FromDate or ToDate is empty or not in YYYY-MM-DD format, the API returns HTTP 200 with the payload below:
{
"StatusCode": 500,
"Message": "FromDate and ToDate Field Format should be YYYY-MM-DD",
"Error": "Error"
}
If a list/search request fails for part of the available result set, the response can still include rows that were processed successfully.
When processing fails before a usable response can be prepared, the API returns HTTP 200 with:
{
"StatusCode": 500,
"Message": "An error occurred during processing",
"Error": "An error occurred during processing"
}