Skip to content
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/warehouses

Auth: 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 ​

HeaderRequiredDescription
request-tokenyesChannel partner app token
Content-Typeyesapplication/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 }
  ]
}
FieldTypeDescription
idintegerWarehouse ID
namestringWarehouse name
statusintegerWarehouse 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 status without filtering on it. If the portal needs only usable options, filter on status = 1 client-side.

Error Codes ​

codeMeaning
909Unauthenticated, invalid token, or not a channel partner
606Insufficient capability (outbound_submit required)

cURL ​

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 '{}'