Availability
Get stock availability
Look up available stock per requested variant across its non-disabled warehouses, optionally filtered to a set of warehouses. Read-only; a variant with no items still appears with a zero total.
post/v1/availability
Request
- Base URLhttps://inventories-api.paymongo.com
- URLhttps://inventories-api.paymongo.com/v1/availability
- Auth
- HTTP basic
- or HTTP bearer
Request body
Example request
{
"items": [
{
"variant_id": "prdvar_abc123",
"warehouse_ids": [
"ww_abc123"
]
}
],
"livemode": true
}Response
OK
Example response
{
"data": [
{
"available": 90,
"variant_id": "prdvar_abc123",
"warehouses": [
{
"available": 90,
"inventory_item_id": "invitem_abc123",
"warehouse_id": "ww_abc123"
}
]
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.