Skip to main content
GET
/
inventory
/
packages
/
{package_id}
Get Package
curl --request GET \
  --url https://api.decodahealth.com/inventory/packages/{package_id} \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
{
  "name": "<string>",
  "price": 123,
  "id": "<string>",
  "description": "<string>",
  "isArchived": false,
  "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>",
        "taxable": false,
        "sortOrder": 123,
        "allowCustomPricing": false,
        "type": "PRODUCT"
      }
    }
  ],
  "category": "<string>",
  "numberOfActivePatients": 0,
  "numberOfPatients": 0,
  "createdDate": "2023-11-07T05:31:56Z"
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

package_id
string
required

Response

Successful Response

name
string
required

Name of the package

price
integer
required

Price of the package in cents

id
string

Unique identifier for the package

description
string | null

Optional description of the package

isArchived
boolean
default:false

Whether the package is archived

internalNotes
string | null

Optional internal notes for the package

items
PackageItem · object[] | null

Items included in the package

category
string | null

Category name (references category.name)

numberOfActivePatients
integer
default:0

Number of active patients on this package

numberOfPatients
integer
default:0

Total number of patients who have purchased this package

createdDate
string<date-time> | null

Date the package was created