GET
/
api
/
warehouses
[
  {
    "name": "Main Warehouse",
    "code": "WH-001",
    "city": "New York",
    "country": "United States",
    "address": "123 Warehouse Street, New York, NY 10001",
    "primary": true
  }
]

Headers

Authorization
string
required

Value must be 'Bearer <token>' where <token> is an API key prefixed with 'bc_' or a JWT token.

Example:

"Bearer bc_1234567890abcdef"

organization-id
string
required

Required if Authorization is a JWT token. The organization ID to operate within.

Response

200 - application/json

The warehouses have been successfully retrieved.

The response is of type object[].