Skip to main content
POST
/
inventory
/
banked-items
/
create
Create Banked Item
curl --request POST \
  --url https://api.decodahealth.com/inventory/banked-items/create \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "itemId": "<string>",
  "patientId": "<string>",
  "createdByChargeItemId": "<string>",
  "quantity": 123,
  "quantityRemaining": 123,
  "id": "<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"
  },
  "createdDate": "2023-11-07T05:31:56Z",
  "updatedDate": "2023-11-07T05:31:56Z"
}
'
{
  "itemId": "<string>",
  "patientId": "<string>",
  "createdByChargeItemId": "<string>",
  "quantity": 123,
  "quantityRemaining": 123,
  "id": "<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"
  },
  "createdDate": "2023-11-07T05:31:56Z",
  "updatedDate": "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

Body

application/json
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

id
string

Unique identifier for the banked item

item
ItemTiny · object

Details of the 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

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

id
string

Unique identifier for the banked item

item
ItemTiny · object

Details of the 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