New Invoice
Sent when an invoice is created.
When it’s sent
- An invoice is created for a patient.
- A diagnostic (consultation) fee is collected, or an appointment is booked with a diagnostic fee — this creates a diagnostic fee invoice.
type is NEW_INVOICE. See the introduction to subscribe to this event and verify the X-Hub-Signature-256 signature.Headers
HMAC SHA-256 of the raw request body, keyed with your Verify Token, as sha256=<hex>. Sent only when a Verify Token is set.
"sha256=3f1c5e…"
Body
Sent when an invoice is created.
Payload version.
v1.0 "v1.0"
Event type.
NEW_INVOICE "NEW_INVOICE"
Invoice ID.
"ckx1i0000001"
Invoice total.
575
Tax amount.
75
Discount amount.
0
Subtotal before tax.
500
Tax percentage.
15
Discount percentage.
0
Diagnostic fee.
0
Discount on the diagnostic fee.
0
Tax on the diagnostic fee.
0
Insurance share of the diagnostic fee.
0
Invoice number.
"INV-00231"
Invoice reference number.
231
Insurance share after tax (0 when there is no insurance).
0
Tax percentage applied to the patient share.
15
Tax percentage applied to the insurance share.
0
Insurance pre-authorization number.
null
Invoice lines (one per treatment).
Patient ID.
"ckx1p0000001"
Basic patient details. Empty object {} when there is no patient.
Branch.
Treating doctor.
Insurance company.
Insurance policy. name is the policy holder name.
Insurance policy class.
Response
Return any 2xx status within 5 seconds to acknowledge the event. Failed deliveries are not retried.