This page is not yet translated. Showing English content.
Available Warehouses
List the warehouses where the authenticated channel partner holds stock, for the outbound request warehouse picker.
List Warehouses With Stock
POST
/channel/api/v1/outbound/warehousesAuth: request-token (channel_partner)
Return warehouses where the current member has inventory quantity greater than 0. The query counts t_inventory rows (status = 1, quantity > 0) joined through tray, allocation, shelves, storeroom area and storeroom to the warehouse. When the member has the platform_stock capability, platform stock (owner_member_id IS NULL) is included; otherwise only owned stock is counted.
Required capability: outbound_submit
Request Headers
| Header | Required | Description |
|---|---|---|
request-token | yes | Channel partner app token |
Content-Type | yes | application/json |
Request Body
No request parameters.
Response
json
{
"code": 200,
"msg": "success",
"data": [
{ "id": 1, "name": "Shenzhen Warehouse", "status": 1 },
{ "id": 2, "name": "Hamburg Warehouse", "status": 1 }
]
}| Field | Type | Description |
|---|---|---|
id | integer | Warehouse ID |
name | string | Warehouse name |
status | integer | Warehouse status (1 = enabled); the field is status, not active |
Notes:
- Only warehouses with stock are returned; warehouses without stock are omitted.
- The current implementation returns the warehouse table's
statuswithout filtering on it. If the portal needs only usable options, filter onstatus = 1client-side.
Error Codes
| code | Meaning |
|---|---|
| 909 | Unauthenticated, invalid token, or not a channel partner |
| 606 | Insufficient capability (outbound_submit required) |
cURL
curl -X POST 'https://apigate.e2c-energy.com/channel/api/v1/outbound/warehouses' \
-H 'request-token: YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{}'