Skip to main content

The lifecycle

  1. Create. Your backend calls the Payrails API, or you create the link in the Portal. Payrails returns a hosted payment page URL.
  2. Share. You send the URL to your customer through any channel.
  3. Pay. The customer opens the link and pays on the Payrails-hosted page.
  4. Notify. Payrails sends a webhook to your backend with the outcome following the configured workflow.
  5. Close. The link closes when it is fully paid, expires, or you delete it.
Webhooks are the source of truth for payment state. Do not rely on the confirmation screen the customer sees, on a redirect, or on an API response alone. See Track and reconcile.
This is the standard Payrails execution-and-payment model, so reporting and cross-referencing behave the same as for any other execution. paidAmount on the link accumulates across the payments beneath the execution.

Who is responsible for what

Completed payments remain valid in all of these states, and the link record stays readable. Failed payments do not change the status. The link stays enabled and the payer can retry. State transitions are calculated by Payrails. Webhooks tell you the outcome of each payment, but they do not drive the status themselves.

Next steps

Last modified on September 24, 2026