Skip to main content
POST
Create Saved Item

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json

Schema for creating a SAVED_ITEM discount (add banked item).

itemId
string
required

Item ID to save

patientId
string
required

Patient ID who owns the saved item

quantity
integer
required

Total quantity

comment
string | null

Optional comment

Response

Successful Response

Saved item (SAVED_ITEM discount) - compatible with PatientBankedItem for API response.

id
string
required
itemId
string
required
patientId
string
required
quantity
integer
required
quantityRemaining
integer
required
createdDate
string<date-time>
required
item
ItemTiny · object
required
price
integer
required
createdByChargeItemId
string | null
comment
string | null
usages
(SavedItemChargeUsage · object | SavedItemManualAdjustment · object)[]

Chronological timeline (newest first) of charge applications and manual adjustments.

A SAVED_ITEM was drawn down by a real charge (DiscountUse → ChargeItems → Charge).

originatingCharge
OriginatingCharge · object | null

The invoice this banked item was minted from (null for staff-granted credits).