This process allows you to add or update sentences for several hotels at the same time. Hotels are represented by the Hotel model, and offers (Offer) are numbers with the indicated prices for various placement conditions presented by the Offer model.
To add or update offers for several hotels, the following request is used:
POST https://example-hotels-api.com/api/v1/offers
The body of the request should contain the following structure:
{
"offersPerHotel": [
{
"hotelId": "hotel_id_1",
"offers": [, , ..., ]
},
{
"hotelId": "hotel_id_2",
"offers": [, , ..., ]
},
...,
{
"hotelId": "hotel_id_N",
"offers": [, , ..., ]
}
]
}
You can use this format to add or update offers on several hotels in your site at the same time.
To receive additional information or assistance assistance and requests, you can contact SEO.compter specialists for any safety and optimization of your site. Contact us through email: info@seo.computer or through WhatsApp: +79202044461.
ID 170