Skip to main content

Get Product Stock

This endpoint used for getting product stock.

Path

get

/fulfillment/partner/fs/:fs_id/inventory/stock

Request Parameters

ParameterTypeRequiredLocationDescription
product_ids
String
Required
query
Product IDs separated by coma

Example Request

curl --location --request GET 'https://fs.tokopedia.net/fulfillment/partner/fs/13057/inventory/stock?product_ids=15367722,15545639'

Response Parameters

Success Response Examples

{
"header": {
"process_time": 2.924676857,
"messages": "Your request has been processed successfully"
},
"data": [
{
"product_id": 15367722,
"warehouse_stock": [
{
"warehouse_id": 19415,
"total_stock": 100,
"campaign_stock": 0,
"discount_stock": 0
},
{
"warehouse_id": 19505,
"total_stock": 1953,
"campaign_stock": 0,
"discount_stock": 0
},
{
"warehouse_id": 19511,
"total_stock": 110,
"campaign_stock": 0,
"discount_stock": 0
}
]
},
{
"product_id": 15545639,
"warehouse_stock": [
{
"warehouse_id": 19549,
"total_stock": 8,
"campaign_stock": 0,
"discount_stock": 0
}
]
}
]
}

Error Response Examples

{
"header": {
"process_time": 0.000084065,
"messages": "We could not process your request due to malformed request, please check again",
"reason": "invalid product_ids format",
"error_code": "INVENTORY_002"
},
"data": null
}

Error Codes

Notes

Have a feedback?