Inventory List
/channel/api/v1/inventory/listAuth: 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
| Header | Required | Description |
|---|---|---|
request-token | yes | Channel partner app token |
Content-Type | yes | application/json |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
pageNumber | integer | no | Page number, 1-based. Default 1; alias page is accepted |
pageSize | integer | no | Page size, max 100. Default 20 |
warehouse_id | integer | no | Filter by warehouse |
sku_id | integer | no | Exact filter by SKU id |
keyword | string | no | Keyword: fuzzy warehouse name; digits also match sku_id exactly; matches variant sku / ean / origin_sku / shop_sku |
Response
{
"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
| Field | Type | Description |
|---|---|---|
sku_id | integer | Variant id |
sku_code | string | Variant SKU code |
product_title | string | Product title |
image | string | Primary image URL; empty string when absent |
options | object | Variant options (from standard); {} when none |
warehouse_id | integer | Warehouse id |
warehouse | object | { id, name } |
sellable_quantity | integer | Unfrozen, sellable quantity |
frozen_quantity | integer | Frozen 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
| code | Meaning |
|---|---|
| 909 | Missing/invalid token |
| 606 | Insufficient capability (inventory_view required) |
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
}'