POST
/shopsCreate Shop
This endpoint is used to create a shop with pickup/drop details.
POST
/shopsImportant Notes
- horizon must contain either:
- Only numbers: "1", "2-5", "1,2-5", etc.
- Or only dates in:
- "YYYY/MM/DD"
- "YYYY/MM/DD-YYYY/MM/DD"
- "YYYY/MM/DD-YYYY/MM/DD,YYYY/MM/DD"
- Mixing numbers and dates is not allowed.
- horizonDow (if provided) specifies days of the week:
- 0 – Sunday
- 1 – Monday
- 2 – Tuesday
- 3 – Wednesday
- 4 – Thursday
- 5 – Friday
- 6 – Saturday
- Example: [1, 2, 3] for Monday, Tuesday, Wednesday
- pickupTime and dropTime must be in HH:MM format (24-hour clock).
Example Request:
{
"shopName": "Fast Rentals",
"markets": [
{
"pickupLocation": "AAR",
"dropLocation": "FMM"
},
{
"pickupLocation": "FMM",
"dropLocation": "AAR"
}
],
"websiteCode": [1],
"cob": "US",
"lor": 1,
"currency": "USD",
"horizon": "1-60",
"horizonDow": [1],
"pickupTime": "10:30",
"dropTime": "10:30"
}Parameter Details
| Name | In | Type | Required | Description |
|---|---|---|---|---|
» shopName | body | string | Required | Custom name for the shop. |
» markets | body | Required | none | |
»» pickupLocation | body | string | Required | Pickup location. |
»» dropLocation | body | string | Required | Drop location |
» websiteCode | body | [integer] | Required | none |
» cob | body | string | Required | Country of booking details. |
» lor | body | integer | Required | Length of rent details. |
» currency | body | string | Required | Currency code (e.g., USD, EUR). |
» horizon | body | string | Required | Number of days (if not using start and end dates). |
» horizonDow | body | [integer] | Optional | none |
» pickupTime | body | Required | Pickup time of the trip. | |
» dropTime | body | Required | Drop time of the trip. |
Responses
| Status | Meaning | Description | Schema |
|---|---|---|---|
| 201 | Created | Created | |
| 400 | Bad Request | Bad Request | None |
| 401 | Unauthorized | Unauthorized | None |
| 403 | Forbidden | Forbidden - Access denied | 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 /shops \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer {access-token}' \
-d '{"shopName":"string","markets":"string","»pickupLocation":"string","»dropLocation":"string","websiteCode":"string","cob":"string","lor":0,"currency":"string","horizon":"string","horizonDow":"string","pickupTime":"string","dropTime":"string"}'
Body parameter
{
"shopName": "My Shop",
"markets": [
{
"pickupLocation": "AXD",
"dropLocation": "AYT"
}
],
"websiteCode": [
1
],
"cob": "US",
"lor": 1,
"currency": "USD",
"horizon": 30,
"horizonDow": [],
"pickupTime": "10:30",
"dropTime": "10:30"
}
Example responses
201 Response
{
"message": "Shop created successfully",
"shopId": 1
}
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.