curl --request GET \
--url https://api.decodahealth.com/inventory/packages/list \
--header 'API-KEY: <api-key>' \
--header 'TENANT: <tenant>'{
"data": [
{
"name": "<string>",
"price": 123,
"id": "<string>",
"description": "<string>",
"isArchived": false,
"externalId": "<string>",
"internalNotes": "<string>",
"items": [
{
"packageId": "<string>",
"itemId": "<string>",
"price": 123,
"id": "<string>",
"quantity": 123,
"item": {
"name": "<string>",
"price": 123,
"id": "<string>",
"brandName": "<string>",
"description": "<string>",
"category": "<string>",
"unit": "AMPOULES",
"isPhysical": true,
"isArchived": false,
"internalNotes": "<string>",
"sortOrder": 123,
"allowCustomPricing": false,
"type": "PRODUCT",
"externalId": "<string>",
"exemptedTaxIds": [
"<string>"
],
"cost": 123
}
}
],
"category": "<string>",
"numberOfActivePatients": 0,
"numberOfPatients": 0,
"createdDate": "2023-11-07T05:31:56Z"
}
],
"total": 123
}List packages with optional filtering and patient counts.
curl --request GET \
--url https://api.decodahealth.com/inventory/packages/list \
--header 'API-KEY: <api-key>' \
--header 'TENANT: <tenant>'{
"data": [
{
"name": "<string>",
"price": 123,
"id": "<string>",
"description": "<string>",
"isArchived": false,
"externalId": "<string>",
"internalNotes": "<string>",
"items": [
{
"packageId": "<string>",
"itemId": "<string>",
"price": 123,
"id": "<string>",
"quantity": 123,
"item": {
"name": "<string>",
"price": 123,
"id": "<string>",
"brandName": "<string>",
"description": "<string>",
"category": "<string>",
"unit": "AMPOULES",
"isPhysical": true,
"isArchived": false,
"internalNotes": "<string>",
"sortOrder": 123,
"allowCustomPricing": false,
"type": "PRODUCT",
"externalId": "<string>",
"exemptedTaxIds": [
"<string>"
],
"cost": 123
}
}
],
"category": "<string>",
"numberOfActivePatients": 0,
"numberOfPatients": 0,
"createdDate": "2023-11-07T05:31:56Z"
}
],
"total": 123
}The tenant you are making this request on behalf of
Your api key
asc, desc List of package IDs to filter by
Name of the package
Price range [min, max] in cents
Filter by item names contained in package
Filter by range of number of active patients [min, max]
Filter by category name (references category.name)