Inventory Restrictions POST from Aiosell to 3rd Party

Inventory Restrictions POST from Aiosell to 3rd Party

API Endpoint URL: BASE URL TO BE SHARED BY OTA


Purpose: This API allows Aiosell to communicate inventory restrictions, to third-party OTAs (Online Travel Agencies).

Request Format | Method: POST


Sample Payload:

{

    "hotelCode": "SANDBOX-OTA",

    "updates": [

        {

            "startDate": "2025-01-24",

            "endDate": "2025-01-26",

            "rooms": [

                {

                    "available": 3,

                    "roomCode": "SUITE",

                    "restrictions": {

                        "stopSell": false,

                        "exactStayArrival": null,

                        "maximumStayArrival": null,

                        "minimumAdvanceReservation": null,

                        "minimumStay": 1,

                        "closeOnArrival": false,

                        "minimumStayArrival": null,

                        "maximumStay": null,

                        "maximumAdvanceReservation": null,

                        "closeOnDeparture": false

                    }

                },

                {

                    "available": 20,

                    "roomCode": "EXECUTIVE",

                    "restrictions": {

                        "stopSell": false,

                        "exactStayArrival": null,

                        "maximumStayArrival": null,

                        "minimumAdvanceReservation": null,

                        "minimumStay": 1,

                        "closeOnArrival": false,

                        "minimumStayArrival": null,

                        "maximumStay": null,

                        "maximumAdvanceReservation": null,

                        "closeOnDeparture": false

                    }

                }

            ]

        }

    ]

}


Response


Sample Response:

{

    "success": true,

    "message": "Inventory Updated Successfully"

}