Skip to main content
PUT
Update Saved Item

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Path Parameters

discount_id
string
required

Body

application/json

Schema for updating a SAVED_ITEM discount (edit banked item).

quantity
integer
required

Total quantity

quantityRemaining
integer
required

Quantity still available

Required range: x >= 0
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).