> This page is for version v2.
> For other versions, use one of these documentation indexes:
> - v1 (default): https://developers.outpave.com/v1/llms.txt
> - v2: https://developers.outpave.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://developers.outpave.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://developers.outpave.com/_mcp/server.

# payment.failed

POST 

A payment failed. Committed atomically with its resource transition, carrying the resource in `data`. Read the linked resource for current state. Delivery is signed and at least once; deduplicate by event id, use delivery history/replay, and tolerate out-of-order delivery.

Reference: https://developers.outpave.com/v2/api-reference/events-api/events/on-payment-failed

## Request

### Payload

- `id` (string, required) — Event identifier, identical on every delivery attempt and replay.
- `object` ("event", required) — Always `event`.
- `type` (string, required) — `<object>.<pastTenseVerb>` or `<object>.<child>.<pastTenseVerb>`.
- `apiVersion` ("2.0", required) — Always `2.0`.
- `createdAt` (datetime, required) — When the change committed; not an ordering token.
- `livemode` (boolean, required) — `true` on a live platform in production, `false` on a Sandbox platform and outside production.
- `relatedObject` (EventRelatedObject, required)
- `accountHolderId` (string, optional) — A resource ID. Treat it as an opaque, case-sensitive string.
- `cardProgramId` (string, optional) — A resource ID. Treat it as an opaque, case-sensitive string.
- `transition` (EventTransition, optional) — A committed state change of an allowlisted field; not an ordered delta or a history.
- `requestId` (string, optional) — The v2 request that caused the change, when one did.
- `data` (PaymentEventData, optional) — The resource the event names, as committed by its change. Absent only on events recorded before resources were added to events.

## Types

### EventRelatedObject

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `type` (string, required) — The resource's `object` value; equals the event type prefix.
- `url` (string, required) — Relative path of the resource. Platform callers add `Account-Holder` with `accountHolderId`.

### EventTransition

A committed state change of an allowlisted field; not an ordered delta or a history.

- `field` (string, required) — The field that changed, for example `status`.
- `to` (string, required) — Value after the change.
- `from` (string, optional) — Value before the change.

### PaymentEventData

The resource the event names, as committed by its change. Absent only on events recorded before resources were added to events.

- `object` (Payment, optional) — The resource exactly as `GET relatedObject.url` returned it without `extend` when the change committed, less the members the events overview lists as left out. Its `object` member equals `relatedObject.type`.
- `previousAttributes` (PaymentEventDataPreviousAttributes, optional) — On a change of an existing resource, each top-level member of `object` whose value changed, with its value before the change, or `null` where it had none. Nested objects are listed whole, and `updatedAt` is never listed. Empty when no member changed. Absent on `*.created` events, on the other events of the change that created the resource, on test events, and on `financialAccount.balanceUpdated`.
- `objectOmitted` (true, optional) — Present instead of `object` and `previousAttributes` when the event with its resource would be larger than 64 KiB, or the resource could not be rendered. Read the resource from `relatedObject.url`.

### Payment

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `object` ("payment", required) — Always `payment`.
- `livemode` (boolean, required) — `true` on a live platform in production, `false` on a Sandbox platform and outside production.
- `accountHolderId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `financialAccountId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `recipientId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `requestedByUserId` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `amount` (TransferAmount, required) — The amount to pull, in the financial account's currency.
- `rail` (enum, required) — `ACH` or `WIRE`.
  - Allowed values: `ACH`, `WIRE`
- `status` (enum, required) — `PENDING_APPROVAL`: waiting for approval. `APPROVED`: approved, not yet sent. `PROCESSING`: sent. `POSTED`: completed. `FAILED`, `RETURNED` and `CANCELED` are final.
  - Allowed values: `PENDING_APPROVAL`, `APPROVED`, `PROCESSING`, `POSTED`, `FAILED`, `RETURNED`, `CANCELED`
- `approvalStatus` (enum, required) — `PENDING`, `APPROVED`, `REJECTED` or `CANCELED`.
  - Allowed values: `PENDING`, `APPROVED`, `REJECTED`, `CANCELED`
- `createdAt` (datetime, required) — When the payment was requested.
- `updatedAt` (datetime, required) — When the payment last changed.
- `description` (string, optional) — Your note on the payment.
- `transferId` (string, optional) — A resource ID. Treat it as an opaque, case-sensitive string.
- `failureReason` (string, optional) — Why the payment failed or was returned. Present only then. `not_sent` means the payment never reached the issuer, so no money moved.

### PaymentEventDataPreviousAttributes

On a change of an existing resource, each top-level member of `object` whose value changed, with its value before the change, or `null` where it had none. Nested objects are listed whole, and `updatedAt` is never listed. Empty when no member changed. Absent on `*.created` events, on the other events of the change that created the resource, on test events, and on `financialAccount.balanceUpdated`.

### TransferAmount

The amount to pull, in the financial account's currency.

- `value` (integer, required) — Whole minor units, for example cents for USD.
- `currency` (string, required) — ISO 4217 alphabetic currency code; must be the financial account's currency.