This endpoint allows you to manage your warehouses used inside your Seven Senders account.
Endpoint
https://api.sevensenders.com/v2/docs.html#/Warehouse/getWarehouseCollection
Headers
Parameter | Mandatory | Description |
API-KEY | YES | Your authorization key to access Seven Senders API |
Methods
GET
Filters
Parameter | Mandatory | Default Value | Description |
limit | NO | 20 | How many warehouse to return |
offset | NO | - | Offset from which to start listing warehouses |
order_by | NO | - | Order by fields |
Response
The API will respond with an array of warehouses, each element inside the array has the following properties:
Field | Type | Example | Description | ||
country | object | Country object
| Object that contain information regarding the warehouse | ||
country.iso2 | string | "de" | the ISO code for the country | ||
country.name | string | "Germany" | The country name where the warehouse is located | ||
name | string | "warehouse" | The warehouse name, that is used to create a shipment |
Example
Request
Curl example
curl -X "GET" -H "Accept:\ application/json" -H "Content-type:\ application/x-www-form-urlencoded" -H "API-KEY:\ <API-KEY>" http://api.sevensenders.com/v2/warehouses.json?limit=20
Response
Response to a GET warehouse call
[{ "name": "warehouse", "country": { "name": "Germany", "iso2": "de" } }]