Inventory
Testing
GET
/store/products/{id}/inventory
Catatan: penambahan coding BE Jika datanya tidak ada perlu response total = 0
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/store/products/ESB-005/inventory?category=name&keyword&start=0&limit=10&sort_by=name&sort_dir=asc'
Response Response Example
200 - Success
{
"data": [
{
"allocated_stok": 0,
"product_name": "Biji kopi arabica",
"variant_name": "Halus 1000 gr",
"variant_sku": "ESB-003-24",
"variant_status": 1,
"variant_stok": 101,
"variant_type": "Produk Digital"
},
{
"allocated_stok": 0,
"product_name": "Biji kopi arabica",
"variant_name": "Halus 2000 gr",
"variant_sku": "ESB-002-25",
"variant_status": 0,
"variant_stok": 302,
"variant_type": "Produk Digital"
}
],
"total": 2
}
Request
Path Params
id
string
required
Example:
ESB-005
Query Params
category
string
optional
Example:
name
keyword
string
optional
start
string
optional
Default:
0
Example:
0
limit
string
optional
Default:
10
Example:
10
sort_by
string
optional
Example:
name
sort_dir
string
optional
Example:
asc
Responses
Modified at 2025-06-20 02:34:31