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
/shopNote
One of: horizon or horizonExpression
Important Notes
Examples:
{
"name": "Test Shop",
"horizon": 3,
"horizonExpression": "",
"market": "Hendon, Greater London, United Kingdom",
"websiteCode": 2,
"shopType": 1
}
{
"name": "US Shop",
"horizon": 0,
"horizonExpression": "0-5",
"market": "Staples, Texas, United States",
"websiteCode": 2,
"shopType": 2
}Parameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
» name | body | string | Required | Name of the shop. |
» horizon | body | number | Optional | Number of future days from today to retrieve rates. |
» horizonExpression | body | string | Optional | Custom days in the future. E.g., 2-10,15,20-25. |
» market | body | string | Required | City name. (Market should be defined as it is listed in the Post/market endpoint results) |
» websiteCode | body | number | Required | The website code to be included in the shop. |
» shopType | body | number | Required | 1-lar, 2-bar, 3-(lar & bar) |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | OK | Shop Created Successfully | |
| 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",
"horizon": 365,
"horizonExpression": "",
"market": "string",
"websiteCode": 0,
"shopType": 0
}Example responses
201 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.