Skip to main content

Product Setup

Product Setup allows a hotelier to create, update and delete products for a specified hotel

 

Method/Endpoints

MethodEndpoint
POSThttps://[environment]/v1/api/admin/product/setup/

 

Parameter List

ParameterDescriptionType
Hotel/@idUnique number identifies a specific hotel in SynXis.Integer
ProductList/@actionIndicates to Add/Edit or Delete a product. Default value if not specified is AddEdit.
Values: AddEdit, Delete
String
ProductList/@/roomCodeRoom code associated with the productString
ProductList/@/rateCodeRate code associated with the productString
ProductList/channel/@codeSynXis CR booking channel code. For channel connect (SYDC) specify the secondary channel e.g. AGODA.String
ProductList/channel/@actionIndicates 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"
    }   
  ]
}