- Invalid or missing data from either the initiating or receiving partner
- Business rule violations within Paylias
- System errors, timeouts, or inconsistencies across parties
How Exceptions Work
Exceptions can be triggered at any stage, including:- During payment submission
- While creating or processing a payment admission
- While awaiting task resolution
- Just before transaction finalization
1
Marking
The payment is marked as failed.
2
Notify
A webhook is sent to both participating partners.
3
Storage
A full exception object is stored and can be retrieved via the API.
4
Halting
No further progress is made on the payment.
Webhook Subscription
To receive real-time notifications about exceptions, subscribe to thepayment_exception:created
event.
Your endpoint will receive a webhook payload whenever a new exception is generated.
List Exceptions for a Payment
Retrieve all exception objects linked to a specific payment.Response
Exception Object Fields
Field | Type | Description |
---|---|---|
token | string | Unique identifier for the exception |
payment_id | string | Payment this exception belongs to |
record_type | string | Type of object that triggered the exception (PaymentSubmission , PaymentAdmission , etc.) |
exception_code | string | Code representing the type of failure |
exception_message | string | Human-readable explanation |
blame | string | Which party is responsible: debtor_party , beneficiary_party , or system |
relationships.payment | object | Snapshot of the original payment payload at the time of exception |
Best Practices
- Always listen for
payment_exception:created
webhooks. - Show a user-friendly message to customers when a payment fails due to an exception.
- Log and monitor exception codes for debugging and support purposes.
- Automatically retry payments only after user confirmation and correcting the root cause.