POST
/shopCreate 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.
The maximum allowed value for horizon is 365 days. Either horizon or horizonExpression must be provided.
POST
/shopOptional 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
| Name | In | Type | Required | Description |
|---|---|---|---|---|
body | body | object | Required | none |
» name | body | string | Required | none |
» los | body | number | Required | none |
» guests | body | number | Required | none |
» horizon | body | number | Optional | none |
» horizonExpression | body | string | Optional | none |
» market | body | string | Required | none |
» websiteCode | body | number | Required | none |
» shopType | body | number | Optional | none |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 200 | OK | Success | Inline |
| 400 | Bad Request | Bad Request | None |
| 401 | Unauthorized | Authentication Failed or Account validity Expired | None |
| 429 | Too Many Requests | Too Many Requests | None |
| 500 | Internal Server Error | Internal Server Error | None |
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.