POST/shops

Create Shop

This endpoint allows you to create a new create shop entry in the system.
POST/shops

Mandatory Fields

  • body
  • shopName
  • websiteCode
  • cob
  • lor
  • currency
  • horizon
  • pickupTime
  • dropTime

Optional Fields

  • markets
  • »pickupLocation
  • »dropLocation
  • horizonDow

Note

For any technical assistance or feature requests, please contact our API support team.

Important Notes

  • Always use HTTPS for API requests.
  • Access tokens are valid for a limited time and should be refreshed periodically.
  • Rate limiting applies to all endpoints to ensure system stability.

Parameter Details

NameInTypeRequiredDescription
bodybodyobjectRequirednone
» shopNamebodystringRequiredCustom name for the shop.
» marketsbody[object]Optionalnone
»» pickupLocationbodystringOptionalPickup location.
»» dropLocationbodystringOptionalDrop location
» websiteCodebody[integer]Requirednone
» cobbodystringRequiredCountry of booking details.
» lorbodyintegerRequiredLength of rent details.
» currencybodystringRequiredCurrency code (e.g., USD, EUR).
» horizonbodystringRequiredNumber of days (if not using start and end dates).
» horizonDowbody[integer]Optionalnone
» pickupTimebodystring(time)RequiredPickup time of the trip.
» dropTimebodystring(time)RequiredDrop time of the trip.
  • All parameters should be formatted according to the types specified in the table above.

Responses

StatusMeaningDescriptionSchema
201CreatedCreatedInline
400Bad RequestBad RequestNone
401UnauthorizedUnauthorizedNone
403ForbiddenForbidden - Access deniedNone
429Too Many RequestsToo Many RequestsNone
500Internal Server ErrorInternal Server ErrorNone

Response Notes

The response will include a status field indicating success or failure, along with the requested data or relevant error messages. Standard HTTP status codes are used to indicate the outcome of the request.

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

{
  "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.