Accept a pending connection request from a property. On success, the request becomes an active connection and the endpoint returns the connection details. To accept requests from multiple properties, call this endpoint once for each property ID.
The request body is optional. Use it to:
- Set the
pricing_model. The pricing model only applies when the request includes theAVAILABILITYconnection type. You must be certified to use a pricing model other thanStandard. - Confirm the scope of the connection with
connection_types. If you specify connection types, they must exactly match the connection types the property requested. Otherwise, the endpoint returns an error.
Security
BearerAuth
Optional. Specify the pricing model and confirm the connection types you intend to approve.
Pricing model for the connection. Only applies when the request includes the AVAILABILITY connection type. You must be certified to use a pricing model other than Standard. Values are case-insensitive.
Enum:"Standard""OBP""LOS"
- Mock (schema only)https://developers.booking.com/_mock/connectivity/docs/openapispecs/connections-api/connections-api-specification/properties/{propertyId}/request:approve
- Production Environmenthttps://supply-xml.booking.com/connections-api/properties/{propertyId}/request:approve
Approve a request using the Standard pricing model and confirm the requested connection types.
curl -i -X POST \
'https://developers.booking.com/_mock/connectivity/docs/openapispecs/connections-api/connections-api-specification/properties/{propertyId}/request:approve' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"pricing_model": "Standard",
"connection_types": [
"AVAILABILITY",
"PHOTOS",
"RESERVATIONS",
"REVIEWS",
"REPORTING",
"CONTENT"
]
}'Response
The connection request was approved and is now an active connection.
{ "meta": { "ruid": "4589148f-c8ca-44ad-8b14-e3a909d602a3" }, "warnings": [], "errors": [], "data": { "legal_entity": { … }, "connection_types": { … }, "connected_at": "2023-08-03T14:06:22Z", "last_connected_at": "2023-08-03T14:06:22Z", "property": { … }, "pricing": { … } } }