POST
/
api
/
v2
/
ledger
/
new-order
import os
from samplehc import SampleHealthcare

client = SampleHealthcare(
    api_key=os.environ.get("SAMPLEHC_API_KEY"),  # This is the default and can be omitted
)
response = client.v2.ledger.new_order(
    claim_amount_usd_cents=0,
    institution_amount_usd_cents=0,
    order_id="orderId",
    patient_amount_usd_cents=0,
    patient_id="patientId",
    unallocated_amount_usd_cents=0,
)
print(response.ledger_entry_id)
{
  "ledgerEntryId": "<string>"
}

Body

application/json

Response

200
application/json

The ledger entry was created successfully.