Skip to main content

Locations

Warehouse and fulfillment locations

All endpoints require a bearer token (oh_... API key or user JWT) and are served under https://api.orderly-hub.com. Use the Try it consoles to run a request against the Preview (test) server.

List locations

GET/api/v1/locations

Responses

200 Location list

GET/api/v1/locations

List locations

https://api-test.orderly-hub.com/api/v1/locations

Create a location

POST/api/v1/locations

Request body

FieldTypeDescription
namestring
typestring
addressAddress
is_defaultboolean
metadataobject
{
"name": "Jane Doe",
"type": "string",
"address": {
"name": "Jane Doe",
"company": "string",
"address1": "string",
"address2": "string",
"city": "string",
"province": "string",
"provinceCode": "string",
"zip": "94107",
"country": "string",
"countryCode": "string",
"phone": "string",
"email": "jane@example.com"
},
"is_default": true,
"metadata": {}
}

Responses

201 Location created

POST/api/v1/locations

Create a location

https://api-test.orderly-hub.com/api/v1/locations

Sync locations from a bridge (grab-warehouses)

POST/api/v1/locations/sync/{bridgeId}

Parameters

NameInRequiredTypeDescription
bridgeIdpathyesstring

Responses

200 Sync result

POST/api/v1/locations/sync/{bridgeId}

Sync locations from a bridge (grab-warehouses)

https://api-test.orderly-hub.com/api/v1/locations/sync/

Get location details

GET/api/v1/locations/{id}

Parameters

NameInRequiredTypeDescription
idpathyesstring

Responses

200 Location details

GET/api/v1/locations/{id}

Get location details

https://api-test.orderly-hub.com/api/v1/locations/

Update a location

PATCH/api/v1/locations/{id}

Parameters

NameInRequiredTypeDescription
idpathyesstring

Request body

{}

Responses

200 Location updated

PATCH/api/v1/locations/{id}

Update a location

https://api-test.orderly-hub.com/api/v1/locations/

Delete a location

DELETE/api/v1/locations/{id}

Parameters

NameInRequiredTypeDescription
idpathyesstring

Responses

200 Location deleted

DELETE/api/v1/locations/{id}

Delete a location

https://api-test.orderly-hub.com/api/v1/locations/