POST/shop

Create Shop

This endpoint allows you to create a review shop, which is a collection of hotel codes and source codes for which review or rating information is requested. It also lets you specify the type of review information needed using the shoptype parameter.
POST/shop

Mandatory Fields

  • shopName
  • hotelCodes
  • sourceCodes
  • shopType

Optional Fields

  • body

Parameter Details

NameInTypeRequiredDescription
bodybodycreateShopReqOptionalnone

Responses

StatusMeaningDescriptionSchema
201CreatedCreatedcreateshopRes
400Bad RequestBad RequestNone
401UnauthorizedAuthorization FailedNone
500Internal Server ErrorInternal Server ErrorNone

Example Request

# You can also use wget
curl -X POST /shop \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: API_KEY'

Body parameter

{
  "shopName": "Abc",
  "hotelCodes": [
    1,
    123
  ],
  "sourceCodes": [
    1,
    283
  ],
  "shopType": 1
}

Example responses

{
  "message": "Shops details inserted successfully!",
  "shopId": 1122
}

Need Support?

Our team is here to help you integrate and make the most of our APIs. Get in touch for technical support, custom solutions, or any questions.