Warehouses API v1
Use the legacy Merchant API v1 warehouse endpoints to list the pickup
addresses configured for the authenticated merchant or retrieve one of them by
its pickup address ID.
Table of Contents
- Variables
- List Warehouses
- Retrieve a Warehouse
- Warehouse Fields
- Use a Warehouse for Voucher Creation
Variables
merchantAPIEndpoint:/apiidPickupAddress:42
Both endpoints require Merchant API authentication. See Authentication for request setup.
1. List Warehouses
Example
GET {merchantAPIEndpoint}/warehouses?page=1&itemsPerPage=5Query Parameters
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
page | integer | Page number, starting from 1. | No | 1 |
itemsPerPage | integer | Number of warehouses per page. The maximum is 5; larger values are limited to 5. The legacy alias items_per_page is also accepted. | No | 5 |
Response
Status:
200 OKContent-Type: application/json
response
{
"warehouses": [
{
"id_pickup_address": 42,
"address": "10 Kifisias Avenue",
"city": "Athens",
"courier_account_id": "CC-12345",
"is_default": true,
"label": "Main warehouse",
"postal_code": "11526"
}
],
"params": {
"page": 1,
"items_per_page": 5,
"total_items": 1
}
}An authenticated merchant only receives warehouses associated with its own merchant profile.
2. Retrieve a Warehouse
Example
GET {merchantAPIEndpoint}/warehouses/{idPickupAddress}Path Parameters
| Name | Type | Description | Required |
|---|---|---|---|
idPickupAddress | integer | Pickup address ID of the warehouse. | Yes |
Response
Status:
200 OKresponse
{
"id_pickup_address": 42,
"address": "10 Kifisias Avenue",
"city": "Athens",
"courier_account_id": "CC-12345",
"is_default": true,
"label": "Main warehouse",
"postal_code": "11526"
}If the warehouse does not exist or does not belong to the authenticated merchant, the endpoint returns:
Status:
404 Not Foundresponse
{
"message": "The warehouse with id 42 was not found"
}Warehouse Fields
| Field | Type | Description |
|---|---|---|
id_pickup_address | integer | Unique pickup address ID. |
address | string | Street address. |
city | string | City. |
courier_account_id | string | null | Courier account associated with the warehouse, when available. |
is_default | boolean | Whether this is the merchant's default warehouse. |
label | string | null | Merchant-defined warehouse label, when available. |
postal_code | string | Postal code. |
Use a Warehouse for Voucher Creation
Pass the warehouse's id_pickup_address as the id_pickup_address query
parameter when you create a v1 shipment voucher.
If it is omitted, the Merchant API uses the merchant's default warehouse.