Skip to main content
GET
/
inventory
/
banked-items
/
{banked_item_id}
Get Banked Item
curl --request GET \
  --url https://api.decodahealth.com/inventory/banked-items/{banked_item_id} \
  --header 'API-KEY: <api-key>' \
  --header 'TENANT: <tenant>'
{
  "itemId": "<string>",
  "patientId": "<string>",
  "createdByChargeItemId": "<string>",
  "quantity": 123,
  "quantityRemaining": 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"
  },
  "patient": {
    "id": "<string>",
    "type": "PROVIDER",
    "createdDate": "2023-11-07T05:31:56Z",
    "firstName": "<string>",
    "lastName": "<string>",
    "phoneNumber": "<string>",
    "email": "<string>",
    "locationId": "<string>",
    "externalId": "<string>",
    "address": "<string>",
    "addressLineTwo": "<string>",
    "city": "<string>",
    "state": "<string>",
    "zipCode": "<string>",
    "country": "<string>",
    "addressValid": true,
    "meta": {},
    "isArchived": true,
    "primaryLocationId": "<string>",
    "gender": "<string>",
    "dateOfBirth": "2023-12-25",
    "patientMedications": [
      "<string>"
    ],
    "onSchedulingBlacklist": true,
    "surchargeDisabled": true,
    "tags": [
      {
        "id": "<string>",
        "name": "<string>",
        "isActive": true,
        "createdDate": "2023-11-07T05:31:56Z",
        "emoji": "<string>",
        "color": "<string>",
        "updatedDate": "2023-11-07T05:31:56Z"
      }
    ],
    "creditBalance": 123,
    "preferredProviderId": "<string>"
  },
  "createdByChargeItem": {
    "chargeId": "<string>",
    "quantity": 123,
    "price": 123,
    "id": "<string>",
    "itemId": "<string>",
    "name": "<string>",
    "description": "<string>",
    "discountAmount": 123,
    "discountPercentage": 123,
    "discountReason": "<string>",
    "soldPackageId": "<string>",
    "bankedQuantity": 123,
    "bankedItemId": "<string>",
    "issuedDiscountId": "<string>",
    "soldByProviderId": "<string>",
    "taxAmount": 123,
    "pricingId": "<string>",
    "shipmentIds": [
      "<string>"
    ]
  },
  "id": "<string>",
  "createdDate": "2023-11-07T05:31:56Z",
  "updatedDate": "2023-11-07T05:31:56Z",
  "items": [
    {
      "chargeId": "<string>",
      "quantity": 123,
      "price": 123,
      "charge": {
        "id": "<string>",
        "patientId": "<string>",
        "total": 123,
        "totalOutstanding": 123,
        "status": "OUTSTANDING",
        "description": "<string>",
        "createdDate": "2023-11-07T05:31:56Z"
      },
      "id": "<string>",
      "itemId": "<string>",
      "name": "<string>",
      "description": "<string>",
      "discountAmount": 123,
      "discountPercentage": 123,
      "discountReason": "<string>",
      "soldPackageId": "<string>",
      "bankedQuantity": 123,
      "bankedItemId": "<string>",
      "issuedDiscountId": "<string>",
      "soldByProviderId": "<string>",
      "taxAmount": 123,
      "pricingId": "<string>",
      "shipmentIds": [
        "<string>"
      ],
      "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"
      },
      "locationId": "<string>",
      "locationName": "<string>",
      "saleDate": "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

banked_item_id
string
required

Response

Successful Response

itemId
string
required

Item ID that was banked

patientId
string
required

Patient ID who purchased the item

createdByChargeItemId
string
required

Charge item ID that created this banked item

quantity
integer
required

Total quantity banked

quantityRemaining
integer
required

Quantity still available

item
ItemTiny · object
required

Details of the item

patient
PatientSummary · object
required

Details of the patient

createdByChargeItem
ChargeItem · object
required

Details of the charge item that created this banked item

id
string

Unique identifier for the banked item

createdDate
string<date-time> | null

Date the item was banked (auto-set if not provided)

updatedDate
string<date-time> | null

Date the item was updated

items
ChargeItemDetailWithCharge · object[]

Charge items that used this banked item