Skip to main content
POST
/
api
/
v2
/
ledger
/
account
/
{orderId}
/
line-item
/
{lineItemId}
/
writeoff
Python
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key="My API Key",
)
response = client.v2.ledger.account.writeoff(
    line_item_id="lineItemId",
    order_id="orderId",
    description="description",
)
print(response.success)
{
  "success": true
}

Path Parameters

orderId
string
required

The order ID associated with the write-off.

lineItemId
string
required

The line item ID associated with the write-off.

Body

application/json
description
string
required

The description of the write-off.

postedAt
string

The date and time to post the write-off.

metadata
object

Any optional metadata to associate with the write-off.

Response

Default Response

success
boolean
required

Write-off posted successfully.

I