POST/locations

Create Location Request

This endpoint allows you to create a new create location request entry in the system.
POST/locations

Mandatory Fields

  • body

Optional Fields

  • pickupLocation
  • sourceName

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
» pickupLocationbodystringOptionalPickup location
» sourceNamebodystringOptionalSource of the pickup location
  • All parameters should be formatted according to the types specified in the table above.

Responses

StatusMeaningDescriptionSchema
200OKLocation requested successfullyInline
400Bad RequestBad RequestNone
401UnauthorizedAuthorization FailedNone
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 /locations \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json' \
  -H 'Authorization: Bearer {access-token}' \
  -d '{"pickupLocation":"string","sourceName":"string"}'

Body parameter

{
  "pickupLocation": "string",
  "sourceName": "string"
}

Example responses

200 Response
{
  "locationRequestId": 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.