payments.plan_failed
payments.plan_failed
Sent to endpoints subscribed to payments.plan_failed (Settings › Webhooks). Severity
warning.
Verify the signature before trusting the body; see webhooks.
data
| Field | Type | Description |
|---|---|---|
planId |
string | The payment plan (Payments, the patient's balance) |
paymentId |
string or null | The patient payment (Payments; GET /v1/payments?day=) |
attempts |
integer | Charge attempts made on the installment |
reason |
"declined" | "card-removed" |
required_missing, new_code, new_segment,
new_issuer, version_changed or other for HL7
events; the close reason (e.g. completed) for followup.closed;
for fax.delivery_failed, busy, no_answer,
provider_error, not_fax_line, invalid_number,
blocked, document_error or rejected; for
case.callback.changed, why more imaging is needed: more_views,
motion, contrast_phase or other; for
payments.plan_failed, declined or card-removed
|
Example
{
"id": "evt_01JA2Z6Q7Y9K3M5N8P0R2S4TWX",
"type": "payments.plan_failed",
"version": 1,
"tenantId": "01JA2Z6Q7Y9K3M5N8P0R2S4TTV",
"occurredAt": 1792161000000,
"severity": "warning",
"data": {
"planId": "01JA2Z6Q7Y9K3M5N8P0R2S4T5Q",
"paymentId": "01JA2Z6Q7Y9K3M5N8P0R2S4TPY",
"attempts": 3,
"reason": "declined"
},
"links": {
"app": "https://app.pacspilot.com/payments"
}
}