POST/shop

Create Shop

This endpoint allows you to create a shop, which includes a combination of market and websiteCode, along with parameters like Length of Stay (LOS), Guests, and Horizon.

The maximum allowed value for horizon is 365 days. Either horizon or horizonExpression must be provided.
POST/shop

Optional Fields

  • horizon
  • horizonExpression
  • shopType

Implementation Notes

This endpoint allows you to create a shop, which includes a combination of market and websiteCode, along with parameters like Length of Stay (LOS), Guests, and Horizon.

Parameter Details

NameInTypeRequiredDescription
bodybodyobjectRequirednone
» namebodystringRequirednone
» losbodynumberRequirednone
» guestsbodynumberRequirednone
» horizonbodynumberOptionalnone
» horizonExpressionbodystringOptionalnone
» marketbodystringRequirednone
» websiteCodebodynumberRequirednone
» shopTypebodynumberOptionalnone

Responses

StatusMeaningDescriptionSchema
200OKSuccessInline
400Bad RequestBad RequestNone
401UnauthorizedAuthentication Failed or Account validity ExpiredNone
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: Bearer {access-token}'

Body parameter

{
  "name": "string",
  "los": 1,
  "guests": 1,
  "horizon": 365,
  "horizonExpression": "",
  "market": "string",
  "websiteCode": 0,
  "shopType": 0
}

Example responses

200 Response
{
  "message": "Shop Created Successfully",
  "shopId": 0
}

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.