Skip to content
This page is not yet translated. Showing English content.

Inventory List ​

POST/channel/api/v1/inventory/list

Auth: request-token (channel_partner)

Return a paginated inventory list visible to the authenticated channel partner, aggregated per sku_id + warehouse. By default only rows whose owner_member_id matches the token-resolved member are returned; when the platform_stock capability is granted, platform-owned rows (owner_member_id is NULL) are included as well.

Required capability: inventory_view (missing returns 606). Add platform_stock to see platform-owned stock.

Request Headers ​

HeaderRequiredDescription
request-tokenyesChannel partner app token
Content-Typeyesapplication/json

Request Body ​

FieldTypeRequiredDescription
pageNumberintegernoPage number, 1-based. Default 1; alias page is accepted
pageSizeintegernoPage size, max 100. Default 20
warehouse_idintegernoFilter by warehouse
sku_idintegernoExact filter by SKU id
keywordstringnoKeyword: fuzzy warehouse name; digits also match sku_id exactly; matches variant sku / ean / origin_sku / shop_sku

Response ​

json
{
  "code": 200,
  "msg": "success",
  "data": {
    "data": [
      {
        "sku_id": 789,
        "sku_code": "PPS-500-BLK",
        "product_title": "Portable Power Station",
        "image": "https://cdn.example.com/products/pps500.jpg",
        "options": { "color": "black", "size": "500W" },
        "warehouse_id": 1,
        "warehouse": { "id": 1, "name": "Shenzhen Warehouse" },
        "sellable_quantity": 120,
        "frozen_quantity": 5
      }
    ],
    "total": 1,
    "per_page": 20,
    "current_page": 1
  }
}

Field Reference ​

FieldTypeDescription
sku_idintegerVariant id
sku_codestringVariant SKU code
product_titlestringProduct title
imagestringPrimary image URL; empty string when absent
optionsobjectVariant options (from standard); {} when none
warehouse_idintegerWarehouse id
warehouseobject{ id, name }
sellable_quantityintegerUnfrozen, sellable quantity
frozen_quantityintegerFrozen quantity

total is the number of aggregated groups. Pagination fields are per_page / current_page (no has_more). Rows are grouped by sku_id + warehouse + ownership scope (owned/platform); without platform_stock only owned rows exist, and the same SKU and warehouse may produce one owned row and one platform row. Rows where both sellable_quantity and frozen_quantity are zero are omitted.

Error Codes ​

codeMeaning
909Missing/invalid token
606Insufficient capability (inventory_view required)

cURL ​

cURL
curl -X POST 'https://apigate.e2c-energy.com/channel/api/v1/inventory/list' \
  -H 'request-token: YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  -d '{
  "pageNumber": 1,
  "pageSize": 20,
  "warehouse_id": 1
}'