marriott-content-api
Marriott Implemented Functionality
Endpoint
https://bookandlink.com/ota/ota_update/marriott/content_api/marriott.php
[!NOTE] Endpoint will be the same for every type of action.
Create Listing
Request
{
"propertyId": "57",
"roomId": "350",
"rateId": "624",
"action": "createListing"
}
Fields
- propertyId – BNL property ID
- roomId – BNL room ID
- rateId – BNL rate ID
- action – createListing
Success Response
{
"status": "success",
"message": "Listing successfully created"
}
Error Response
{
"status": "error",
"message": "[error_message]"
}
Update Listing
Request
{
"propertyId": "57",
"roomId": "350",
"rateId": "624",
"action": "updateListing"
}
Fields
- propertyId – BNL property ID
- roomId – BNL room ID
- rateId – BNL rate ID
- action – updateListing
Success Response
{
"status": "success",
"message": "Listing details successfully updated"
}
Error Response
{
"status": "error",
"message": "[error_message]"
}
Listing Amenities
Request
{
"propertyId": "57",
"roomId": "350",
"rateId": "624",
"action": "listingAmenities",
"data": {
"amenities": [
"AIR_CONDITION",
"AIR_CONDITION_WINDOW"
]
}
}
Fields
- propertyId – BNL property ID
- roomId – BNL room ID
- rateId – BNL rate ID
- action – listingAmenities
- amenities – Marriott amenities codes
Success Response
{
"status": "success",
"message": "Listing amenities successfully updated"
}
Error Response
{
"status": "error",
"message": "[error_message]"
}
Listing Policies
Request
{
"propertyId": "57",
"roomId": "350",
"rateId": "624",
"action": "listingPolicies",
"data": {
"cancellationPolicyCategory": "cancellation_14_days_with_grace_period",
"checkInStartTime": "10",
"checkInEndTime": "10",
"checkOutTime": "20"
}
}
Fields
- propertyId – BNL property ID
- roomId – BNL room ID
- rateId – BNL rate ID
- action – listingPolicies
- cancellationPolicyCategory – Marriott cancellation policy category code
- checkInStartTime – Check-in start time
- checkInEndTime – Check-in end time
- checkOutTime – Checkout time
Success Response
{
"status": "success",
"message": "Listing policies successfully updated"
}
Error Response
{
"status": "error",
"message": "[error_message]"
}
Listing Bed Rooms Settings
Request
{
"propertyId": "57",
"roomId": "350",
"rateId": "624",
"action": "listingRoomsSettings",
"data": {
"roomSettings": [
{
"roomType": "bedroom",
"beds": [
{
"bedType": "QUEEN_NA_BED",
"bedCount": 1
}
],
"bathCount": 0.5
}
]
}
}
Fields
- propertyId – BNL property ID
- roomId – BNL room ID
- rateId – BNL rate ID
- action – listingRoomsSettings
- roomType – Room type name
- bedType – Marriott bed type codes
- bedCount – Number of beds
- bathCount – Marriott bath count value
Success Response
{
"status": "success",
"message": "Listing rooms setting successfully updated"
}
Error Response
{
"status": "error",
"message": "[error_message]"
}
Additional Listings Functions
Includes:
- Listing Media Asset
- Get listing status by HMC Ids
- Get listing status by listing IDs
- Activate listings
- Deactivate listings
- Delete listings
For details on these functions, refer to the corresponding request and response structures.
[!NOTE]
All predefined values of Marriott are available in the table content_api_data.
- Marriott ota_id – 235
- Predefined values can be retrieved using
ota_id&typefields from the content_api_data table.