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.
  • shopName: The name of the review shop.
  • hotelCodes: The hotel codes to include in the review shop.
  • sourceCodes: The source codes to include in the review shop.
  • shopType: The type of review information needed.
    • 1: Only Rating Information
    • 2: Rating and Reviews Information
    • 3: Rating and Reviews Information with Sentiment Analysis
POST/shop

Mandatory Fields

  • shopName
  • hotelCodes
  • sourceCodes
  • shopType

Parameter Details

NameInTypeRequiredDescription
bodybodyRequirednone

Responses

StatusMeaningDescriptionSchema
201CreatedCreated
400Bad RequestBad RequestNone
401UnauthorizedAuthorization FailedNone
429Too Many RequestsToo Many RequestsNone
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

201 Response
{
  "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.