curl --request GET \
--url https://api.decodahealth.com/inventory/stocks/list \
--header 'API-KEY: <api-key>' \
--header 'TENANT: <tenant>'{
"data": [
{
"name": "<string>",
"unit": "AMPOULES",
"id": "<string>",
"description": "<string>",
"notes": "<string>",
"category": "<string>",
"isArchived": false,
"shipments": [
{
"stockId": "<string>",
"supplierId": "<string>",
"locationId": "<string>",
"quantity": 123,
"remainingQuantity": 123,
"locationName": "<string>",
"id": "<string>",
"lotNumber": "<string>",
"expiryDate": "2023-11-07T05:31:56Z",
"sku": "<string>",
"cost": 123,
"supplier": {
"name": "<string>",
"id": "<string>",
"description": "<string>",
"website": "<string>",
"email": "<string>",
"preferredContactMethod": "<string>",
"phoneNumber": "<string>",
"addressLineOne": "<string>",
"addressLineTwo": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"country": "<string>",
"isArchived": false
},
"createdDate": "2023-11-07T05:31:56Z",
"note": "<string>"
}
],
"items": [
{
"itemId": "<string>",
"stockId": "<string>",
"quantityUsed": 123
}
],
"locationSummaries": [
{
"locationId": "<string>",
"locationName": "<string>",
"totalQuantity": 123,
"remainingQuantity": 123,
"percentage": 123
}
],
"note": "<string>"
}
],
"total": 123
}curl --request GET \
--url https://api.decodahealth.com/inventory/stocks/list \
--header 'API-KEY: <api-key>' \
--header 'TENANT: <tenant>'{
"data": [
{
"name": "<string>",
"unit": "AMPOULES",
"id": "<string>",
"description": "<string>",
"notes": "<string>",
"category": "<string>",
"isArchived": false,
"shipments": [
{
"stockId": "<string>",
"supplierId": "<string>",
"locationId": "<string>",
"quantity": 123,
"remainingQuantity": 123,
"locationName": "<string>",
"id": "<string>",
"lotNumber": "<string>",
"expiryDate": "2023-11-07T05:31:56Z",
"sku": "<string>",
"cost": 123,
"supplier": {
"name": "<string>",
"id": "<string>",
"description": "<string>",
"website": "<string>",
"email": "<string>",
"preferredContactMethod": "<string>",
"phoneNumber": "<string>",
"addressLineOne": "<string>",
"addressLineTwo": "<string>",
"city": "<string>",
"state": "<string>",
"zipCode": "<string>",
"country": "<string>",
"isArchived": false
},
"createdDate": "2023-11-07T05:31:56Z",
"note": "<string>"
}
],
"items": [
{
"itemId": "<string>",
"stockId": "<string>",
"quantityUsed": 123
}
],
"locationSummaries": [
{
"locationId": "<string>",
"locationName": "<string>",
"totalQuantity": 123,
"remainingQuantity": 123,
"percentage": 123
}
],
"note": "<string>"
}
],
"total": 123
}The tenant you are making this request on behalf of
Your api key
asc, desc Optional ID of the location to filter shipments by
Optional name of the stock
Optional IDs of the stock
Optional ID of the item
Optional category name to filter by (references category.name)
Optional remaining quantity of the stock
Optional unit of measurement
AMPOULES, APPLICATORS, BOTTLES, BOXES, CAPSULES, CUPS, DOSES, G_PER_ML, GRAMS, IU, IU_PER_ML, OUNCES, FLUID_OUNCES, KG, KITS, LITERS, MCG, MG, MG_PER_ML, ML, MMOL, MICROGRAM_PER_ML, PACKS, PAIRS, PATCHES, PERCENTAGE, PIECES, POUCHES, ROLLS, SACHETS, SHEETS, SPRAYS, STRIPS, SYRINGES, TABLETS, TABLETS_PER_DAY, TESTS, TUBES, UNITS, VIALS, TREATMENTS, SESSIONS, PULSES, JOULES, CENTIMETERS, THREAD_COUNT, INJECTIONS, WRINKLE_UNITS, POUNDS, FEET, INCHES Optional filter for archived status
Successful Response
Show child attributes
Name of the stock
Unit of measurement
AMPOULES, APPLICATORS, BOTTLES, BOXES, CAPSULES, CUPS, DOSES, G_PER_ML, GRAMS, IU, IU_PER_ML, OUNCES, FLUID_OUNCES, KG, KITS, LITERS, MCG, MG, MG_PER_ML, ML, MMOL, MICROGRAM_PER_ML, PACKS, PAIRS, PATCHES, PERCENTAGE, PIECES, POUCHES, ROLLS, SACHETS, SHEETS, SPRAYS, STRIPS, SYRINGES, TABLETS, TABLETS_PER_DAY, TESTS, TUBES, UNITS, VIALS, TREATMENTS, SESSIONS, PULSES, JOULES, CENTIMETERS, THREAD_COUNT, INJECTIONS, WRINKLE_UNITS, POUNDS, FEET, INCHES Unique identifier for the stock
Optional description of the stock
Notes about the stock
Category name (references category.name)
Whether the stock is archived
Shipments in the stock
Show child attributes
ID of the stock
ID of the supplier
ID of the location where the shipment was delivered
Total quantity
Remaining quantity
Get the location name from the related location object
Unique identifier for the shipment
Optional lot number of the shipment
Optional expiry date of the shipment
Optional SKU (Stock Keeping Unit)
Cost of the shipment in cents
Optional supplier details
Show child attributes
Name of the supplier
Unique identifier for the supplier
Optional description of the supplier
Optional website of the supplier
Optional email of the supplier
Optional preferred contact method
Optional phone number of the supplier
Optional first line of address
Optional second line of address
Optional city
Optional state or province
Optional ZIP or postal code
Optional country
Whether the supplier is archived
Date and time the shipment was created
Optional note for inventory log when updating shipment
Stock quantities grouped by location
Show child attributes
ID of the location
Name of the location
Total quantity at this location
Remaining quantity at this location
Percentage of stock remaining
Optional note for inventory log when updating stock