New Balance Invoice
Sent when money is added to a patient’s balance (credit). Same fields as a new invoice; invoice_line_ids is always empty.
When it’s sent
- Money is added to a patient’s balance (credit) directly.
- A patient pays more than what’s left on an invoice. The extra amount goes to the patient’s balance, and Dentolize sends
NEW_PAYMENTfor the invoice payment, thenNEW_BALANCE_INVOICEandNEW_BALANCE_PAYMENTfor the extra.
type is NEW_BALANCE_INVOICE. See the introduction to subscribe to this event and verify the X-Hub-Signature-256 signature.
invoice_line_ids list.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 money is added to a patient's balance (credit). Same fields as a new invoice; invoice_line_ids is always empty.
Payload version.
v1.0 "v1.0"
Event type.
NEW_BALANCE_INVOICE "NEW_BALANCE_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
Always empty for balance invoices.
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.