Skip to main content
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:
  • Invalid or missing data from either the initiating or receiving partner
  • Business rule violations within Paylias
  • System errors, timeouts, or inconsistencies across parties
Once an exception is raised, the payment flow is halted. To resume or retry the payment, a new payment must be initiated—exceptions are terminal and unrecoverable for the original request.

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
Whenever an exception occurs:
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 the payment_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

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.