from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.ledger.order_writeoff(
amount_usd_cents=0,
ik="ik",
order_id="orderId",
reason="reason",
)
print(response.ledger_entry_id)
{
"ledgerEntryId": "<string>"
}
Posts an order write-off to the ledger. All monetary amounts should be provided in cents.
from samplehc import SampleHealthcare
client = SampleHealthcare(
api_key="My API Key",
)
response = client.v2.ledger.order_writeoff(
amount_usd_cents=0,
ik="ik",
order_id="orderId",
reason="reason",
)
print(response.ledger_entry_id)
{
"ledgerEntryId": "<string>"
}
The order write-off was posted successfully.