Breadcrumb
- Manage Products
- Product Setup
Product Setup
Product Setup allows a hotelier to create, update and delete products for a specified hotel
Method/Endpoints
Method | Endpoint |
---|---|
POST | https://[environment]/v1/api/admin/product/setup/ |
Parameter List
Parameter | Description | Type |
---|---|---|
Hotel/@id | Unique number identifies a specific hotel in SynXis. | Integer |
ProductList/@action | Indicates to Add/Edit or Delete a product. Default value if not specified is AddEdit. Values: AddEdit, Delete | String |
ProductList/@/roomCode | Room code associated with the product | String |
ProductList/@/rateCode | Rate code associated with the product | String |
ProductList/channel/@code | SynXis CR booking channel code. For channel connect (SYDC) specify the secondary channel e.g. AGODA. | String |
ProductList/channel/@action | Indicates to Add/Edit or UnAssign a channel. Default value if not specified is AddEdit. Values: AddEdit, UnAssign | String |
Create a Product and Assign Booking Channels
Use action=AddEdit to create or update a product.
{
"Hotel": {
"id": 13098
},
"ProductList": [
{
"action": "AddEdit",
"channel": [
{
"code": "WEB"
},
{
"code": "CRS"
},
{
"code": "AGODA"
}
]
"rateCode": "ADV",
"roomCode": "ROOMSP1"
}
]
}
Create Multiple Products
Create two products using the room code ROOMSP1 with rate codes ADV and BAR.
{
"Hotel": {
"id": 13098
},
"ProductList": [
{
"action": "AddEdit",
"channel": [
{
"code": "WEB"
},
{
"code": "CRS"
},
{
"code": "AGODA"
}
]
"rateCode": "ADV",
"roomCode": "ROOMSP1"
},
{
"action": "AddEdit",
"channel": [
{
"code": "WEB"
},
{
"code": "CRS"
},
{
"code": "GDS"
}
]
"rateCode": "BAR",
"roomCode": "ROOMSP1"
}
]
}
Assign/Unassign Channels
Unassign the AGODA channel and assign the GDS channel
Use action=UnAssign to remove a booking channel from the product.
Note: The default value for action is AddEdit so it is not required for adding the GDS channel.
{
"Hotel": {
"id": 13098
},
"ProductList": [
{
"channel": [
{
"code": "AGODA",
"action": "UnAssign"
},
{
"code": "GDS",
}
],
"rateCode": "ADV",
"roomCode": "ROOMSP1"
}
]
}
Delete a Product
Use action=Delete to delete a product
{
"Hotel": {
"id": 13098
},
"ProductList": [
{
"action": "Delete",
"rateCode": "ADV",
"roomCode": "ROOMSP1"
}
]
}
Delete Multiple Products
Use action=Delete to delete a product
{
"Hotel": {
"id": 13098
},
"ProductList": [
{
"action": "Delete",
"rateCode": "ADV",
"roomCode": "ROOMSP1"
},
{
"action": "Delete",
"rateCode": "BAR",
"roomCode": "ROOMSP1"
}
]
}