cURL
curl --request GET \ --url https://api.decodahealth.com/inventory/stocks/{id}/stats \ --header 'API-KEY: <api-key>' \ --header 'TENANT: <tenant>'
{ "stockId": "<string>", "remainingQuantity": 123, "totalValue": 123, "dailyUsage": [ 123 ], "dailyReceived": [ 123 ] }
The tenant you are making this request on behalf of
Your api key
Start date for daily stats (ISO format with timezone offset)
End date for daily stats (ISO format with timezone offset)
Successful Response
ID of the stock
Current remaining quantity of stock
Total value of current remaining stock in cents
Daily usage (oldest first)
Daily received (oldest first)