POST/shop

Create Shop

Create Shop

Implementation Notes:

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.


Parameters:

  • 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

Mandatory Fields:

  • shopName
  • hotelCodes
  • sourceCodes
  • shopType
POST/shop

Parameter Details

NameInTypeRequiredDescription
bodybodyobjectOptionalnone
» shopNamebodystringOptionalshows the list of shops name
» hotelCodesbodyOptionalhotelCodes must be an array
» sourceCodesbodyOptionalshows the list of sourceCodes in an array
» shopTypebodynumberOptionalnone

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 http://localhost:3000/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.