Sending and receiving payments with the Paylias Payments API is quick and simple, but sometimes a payment fails for one reason or another. If this happens, the API provides an error message to make it easy to identify the cause of the error. Exceptions are system-generated records that capture any abnormality or failure encountered during the lifecycle of a payment. These exceptions can be caused by:Documentation Index
Fetch the complete documentation index at: https://apidocs.paylias.xyz/llms.txt
Use this file to discover all available pages before exploring further.
- 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
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:createdwebhooks. - 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.