Use the Contracting API to invite a new partner on Booking.com, check whether a partner has signed the contract, resend invitation mail and retrieve the legal entity of the partner.
Use the Contracting API to invite a new partner on Booking.com, check whether a partner has signed the contract, resend invitation mail and retrieve the legal entity of the partner.
The Contracting API supports token-based authentication. Each request must have an Authorization header containing a JWT token. Manage your machine accounts in the Connectivity Portal. See also the Authentication page of the documentation.
Read the Contracting API documentation for more details about working with this API.
List of country codes where partner has properties for which addendum should be signed.
Flag to filter in/out test partner cards. Setting it to 1 will look for test partners only, 0 will look for non-test partners only.
Legal entity ID of the partner. This is treated as the unique identifier for the partner.
curl -i -X POST \
https://developers.booking.com/_mock/connectivity/docs/openapispecs/contracting-api/contracting-api-specificaion/partners/addendum \
-H 'Authorization: string' \
-H 'Content-Type: application/json' \
-d '{
"additional_countries": [
"be"
],
"le_id": 14379109
}'Response when adding countries to a partner with a signed contract. Addendum invitation is successfully sent to the partner.
{ "data": { "success": 1, "status": "Addendum invitation sent to Partner." }, "errors": [], "warnings": [], "meta": { "ruid": "UlPrZG9tSVYkc2RlIyh9YeobhK72bvPcGuKpIGBV43CLA0/ew3f32vvfbcDMZPMJ2upJzzPiWPpwqgrzqgrYuylZFVYodyywjTysIR2C7iIMdzNV3jh==" } }
Flag to filter in/out test partner cards. Setting it to 1 will look for test partners only, 0 will look for non-test partners only.
curl -i -X POST \
https://developers.booking.com/_mock/connectivity/docs/openapispecs/contracting-api/contracting-api-specificaion/partners/resend-invite \
-H 'Content-Type: application/json' \
-d '{
"legal_contact_email": "peter.park+test01@besthotelxyz.abc"
}'{ "meta": { "ruid": "UmFuZG9tSVYkc2RlIyh9Ya+pg/21ggUOrSQsocNZo8+onmuF/0Np5bNl9bXkIHOzcL5xe4+2Q5m5Yz4XU6LD/TrgwjmmpchX1cKrgLwhK4o=" }, "data": { "status": "Invitation sent to Partner.", "success": 1 }, "warnings": [], "errors": [] }
Flag to filter in/out test partner cards. Setting it to 1 will look for test partners only, 0 will look for non-test partners only.
Legal entity ID of the partner. This is treated as the unique identifier for the partner.
curl -i -X POST \
https://developers.booking.com/_mock/connectivity/docs/openapispecs/contracting-api/contracting-api-specificaion/partners/resend-addendum \
-H 'Content-Type: application/json' \
-d '{
"le_id": 14379109
}'{ "errors": [], "data": { "success": 1, "status": "Addendum invitation resent to Partner." }, "warnings": [], "meta": { "ruid": "UmFuZG9tSVYkc2RlIyh9YUNOyFG1G7yZ4N4g32GjUq4m7gLy4mLHvgfKCKKcaShQJ1ARh2IeVOWB/7DRTmDzp3Eh6SJyAq2mtqfDc16BxoY=" } }
Learn how to effectively use the Try it feature in the Contracting API documentation.
Use the Try it feature to send test request examples to the API endpoints directly from the developer portal and depending on the selected environment either see static, pre-built responses or dynamic responses from a test property.