POST
/
api
/
v2
/
ledger
/
patient-payment
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.patient_payment(
    amount_usd_cents=0,
    ik="ik",
    order_id="orderId",
    patient_id="patientId",
)
print(response.ledger_entry_id)
{
  "ledgerEntryId": "<string>"
}

Body

application/json

Response

200
application/json

The patient payment was posted successfully.