Retrieves the current inventory levels for a specific product across all locations.
The response includes stock information for each location where the product has inventory, including:
Use this endpoint to check real-time stock availability before allocating orders or to sync inventory data with external systems.
Successfully retrieved inventory for the product.
No inventory found for the specified product ID.
{- "tenant": "string",
- "product_id": "string",
- "stock_by_location": {
- "property1": {
- "on_hand": 0,
- "reserved": 0,
- "unavailable": 0,
- "update_date": "2019-08-24T14:15:22Z",
- "reservations": [
- {
- "order_id": "string",
- "reserved_quantity": 0,
- "date": "2019-08-24T14:15:22Z"
}
]
}, - "property2": {
- "on_hand": 0,
- "reserved": 0,
- "unavailable": 0,
- "update_date": "2019-08-24T14:15:22Z",
- "reservations": [
- {
- "order_id": "string",
- "reserved_quantity": 0,
- "date": "2019-08-24T14:15:22Z"
}
]
}
}, - "creation_date": "2019-08-24T14:15:22Z",
- "update_date": "2019-08-24T14:15:22Z",
- "creation_source": {
- "source": "string",
- "user_id": "string",
- "ip_address": "string"
}, - "update_source": {
- "source": "string",
- "user_id": "string",
- "ip_address": "string"
}
}