API Endpoint URL: https://live.aiosell.com/api/v2/cm/push/sample-ota
Purpose: This API facilitates the transfer of reservation details from Online Travel Agencies (OTAs) to Aiosell. It supports creating, modifying, and canceling reservations, ensuring seamless synchronization of booking information.
Supported Actions
1. New Reservation: action: "book"
2. Modify Reservation: action: "modify"
3. Cancel Reservation: action: "cancel"
A. New Reservation
PurposeTo create a new reservation in Aiosell when a booking is made through an OTA.
Request Format
{
"action": "book",
"hotelCode": "SANDBOX-OTA",
"channel": "Goingo",
"bookingId": "111222333",
"cmBookingId": "AAABBBCCC",
"bookedOn": "2022-12-08 15:25:35",
"checkin": "2025-12-10",
"checkout": "2025-12-12",
"segment": "OTA",
"specialRequests": "Airport Taxi Required",
"pah": false,
"amount": {
"amountAfterTax": 13789.44,
"amountBeforeTax": 12312.0,
"tax": 1477.44,
"currency": "INR",
"commission": 2462.4,
"tcs": 61.56,
"tds": 12.32
},
"guest": {
"firstName": "Akshay",
"lastName": "Kumar",
"email": "akshaykumar@gmail.com",
"phone": "9988776655",
"address": {
"line1": "51",
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"zipCode": "560035"
}
},
"rooms": [
{
"roomCode": "SUITE",
"rateplanCode": "SUITE-D-101",
"guestName": "Akshay Kumar",
"occupancy": {
"adults": 1,
"children": 0
},
"prices": [
{
"date": "2022-12-10",
"sellRate": 537.5
},
{
"date": "2022-12-11",
"sellRate": 537.5
}
]
}
]
}
Response
{
"success": true,
"message": "Reservation Updated Successfully"
}
B. Modify Reservation
Purpose
To modify an existing reservation in Aiosell when changes are made via an OTA.
Request Format
{
"action": "modify",
"hotelCode": "SANDBOX-OTA",
"channel": "Goingo",
"bookingId": "111222333",
"cmBookingId": "AAABBBCCC",
"bookedOn": "2022-12-08 15:25:35",
"checkin": "2025-12-10",
"checkout": "2025-12-12",
"segment": "OTA",
"specialRequests": "Airport Taxi Required",
"pah": false,
"amount": {
"amountAfterTax": 13789.44,
"amountBeforeTax": 12312.0,
"tax": 1477.44,
"currency": "INR",
"commission": 2462.4,
"tcs": 61.56,
"tds": 12.32
},
"guest": {
"firstName": "Akshay",
"lastName": "Kumar",
"email": "akshaykumar@gmail.com",
"phone": "9988776655",
"address": {
"line1": "51",
"city": "Bangalore",
"state": "Karnataka",
"country": "India",
"zipCode": "560035"
}
},
"rooms": [
{
"roomCode": "SUITE",
"rateplanCode": "SUITE-D-101",
"guestName": "Akshay Kumar",
"occupancy": {
"adults": 1,
"children": 0
},
"prices": [
{
"date": "2022-12-10",
"sellRate": 537.5
},
{
"date": "2022-12-11",
"sellRate": 537.5
}
]
}
]
}
Response
{
"success": true,
"message": "Reservation Modified Successfully"
}
C. Cancel Reservation
Purpose
To cancel an existing reservation in Aiosell when it is canceled on the OTA.
Request Format
{
"action": "cancel",
"hotelCode": "SANDBOX-OTA",
"channel": "Goingo",
"bookingId": "111222333"
}
Response
{
"success": true,
"message": "Reservation Cancelled Successfully"
}