API reference / ZiloInventory
ZiloInventory
Warehouses and stock on hand.
Base URL https://api.zilomail.in
Warehouses#
GET/v1/inventory/warehouses
The warehouses the person works in.
Answer · 200 OK
dataarray of objectidstringcodestring | nullnamestringbranchIdstring | nullcurl "https://api.zilomail.in/v1/inventory/warehouses" \
-H "Authorization: Bearer $ZILO_TOKEN"Answer · 200 OK
{
"data": [
{
"id": "string",
"code": "string",
"name": "string",
"branchId": "string"
}
]
}Try it
Sign in to call it as yourself.
Stock on hand#
GET/v1/inventory/stock
Quantities in base units, per product and warehouse (only the person's warehouses). Give product (one or more ids) for just those.
Query
productstring | array of stringwarehousestringAnswer · 200 OK
dataarray of objectproductIdstringcodestringnamestringunitstringwarehouseIdstringwarehousestringquantitynumbercurl "https://api.zilomail.in/v1/inventory/stock" \
-H "Authorization: Bearer $ZILO_TOKEN"Answer · 200 OK
{
"data": [
{
"productId": "string",
"code": "string",
"name": "string",
"unit": "string",
"warehouseId": "string",
"warehouse": "string",
"quantity": 0
}
]
}Try it
Sign in to call it as yourself.