> 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.

# Transaction created

POST 

A card transaction was recorded: an authorization, a declined
authorization, a spend or refund recorded already posted, or a dispute
credit. Refunds are transactions of their own with type `CARD_REFUND`.
Only card transactions on issued cards have events; read every other
transaction, including one on an external card, with `GET /transactions`.

This event carries `transition` with `field: status` and no `from`: `to`
is the status the transaction was recorded in (`PENDING`, `POSTED`,
`DECLINED` or `REVERSED`). `data.object` carries its type, amount and
merchant.

Reference: https://developers.outpave.com/v2/api-reference/events-api/events/on-transaction-created

## 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` (TransactionEventData, 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.

### TransactionEventData

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

- `object` (TransactionSnapshot, 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` (TransactionEventDataPreviousAttributes, 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`.

### TransactionSnapshot

The transaction as `GET /transactions/{transactionId}` returns it without `extend`, so without `user`. Only card transactions on issued cards have events.

- `id` (string, required) — A resource ID. Treat it as an opaque, case-sensitive string.
- `object` (enum, required) — Always `transaction`.
  - Allowed values: `transaction`
- `livemode` (boolean, required) — `true` on a live platform in production, `false` on a Sandbox platform and outside production.
- `createdAt` (datetime, required) — When the transaction was recorded.
- `updatedAt` (datetime, required) — When the transaction last changed.
- `transactedAt` (datetime, required) — When the activity happened. Lists are ordered by it, newest first.
- `type` (enum, required) — `CARD_AUTHORIZATION` holds funds for a card purchase that has not been captured. `CARD_SPEND` is a captured card purchase. `CARD_REFUND` is money a merchant returned to the card. `DISPUTE_CREDIT` is money credited back to the card for a dispute. `DISPUTE_CREDIT_REVERSAL` takes a dispute credit back. `CASH_REIMBURSEMENT` and `MILEAGE_REIMBURSEMENT` pay a user back for an expense or a trip. `INBOUND_TRANSFER` and `OUTBOUND_TRANSFER` move money between a financial account and a bank; each is also the `/transfers` resource named by `transferId`. `INBOUND_WIRE` and `OUTBOUND_WIRE` are wires. `INBOUND_PAYMENT` is a payment received for an invoice, a payment link or a subscription, net of its fee; `OUTBOUND_PAYMENT` is a payment sent. `INBOUND_FUNDS` is money received without an invoice, such as a donation. `PAYMENT_REFUND` returns an inbound payment to its payer. `FEE` is the processor's fee on an inbound payment: positive when taken, negative when returned with a refund. `INBOUND_REWARDS` and `OUTBOUND_REWARDS` move rewards into and out of a financial account. `REWARDS_ACCRUAL` records rewards earned, `BALANCE_TRANSFER` moves rewards between balances and `REWARDS_TO_BALANCE` redeems rewards into a financial account's balance, negative as it leaves the rewards balance. `CHARGE_REPAYMENT` pays down a charge card program's balance.
  - Allowed values: `CARD_AUTHORIZATION`, `CARD_SPEND`, `CARD_REFUND`, `DISPUTE_CREDIT`, `DISPUTE_CREDIT_REVERSAL`, `CASH_REIMBURSEMENT`, `MILEAGE_REIMBURSEMENT`, `INBOUND_TRANSFER`, `OUTBOUND_TRANSFER`, `INBOUND_WIRE`, `OUTBOUND_WIRE`, `INBOUND_PAYMENT`, `OUTBOUND_PAYMENT`, `INBOUND_FUNDS`, `PAYMENT_REFUND`, `INBOUND_REWARDS`, `OUTBOUND_REWARDS`, `FEE`, `REWARDS_ACCRUAL`, `BALANCE_TRANSFER`, `REWARDS_TO_BALANCE`, `CHARGE_REPAYMENT`
- `status` (enum, required) — `PENDING` has not posted yet, including a payout still owed after an attempt failed. `POSTED` is final. `DECLINED` was refused, failed or was canceled, and moved no money. `REVERSED` was released without being captured, or was returned after it moved. `statusDetail` says more.
  - Allowed values: `PENDING`, `POSTED`, `DECLINED`, `REVERSED`
- `statusDetail` (enum, required) — The status in full. `COMPLETE` posted. `REFUNDED` is a card refund that posted. `PERSONAL_PENDING`, `PERSONAL_PROCESSING`, `PERSONAL_COMPLETE` and `PERSONAL_FAILED` follow a user's repayment of a purchase marked personal; `PERSONAL_REFUNDED` is one the merchant refunded. `PENDING_BANK_ACCOUNT` waits for the payee's bank account, `PENDING_PAYMENT` for its payout, `PROCESSING_PAYMENT` and `PROCESSING` are in flight, `INSUFFICIENT_FUNDS` waits for funds and `PAYMENT_FAIL` failed and will be paid again. `CLOSED` is an authorization closed without a capture. `FAILED`, `CANCELED` and `RETURNED` ended a movement of money. `REFUND_PENDING`, `REFUND_FAIL` and `REFUND_CANCELED` follow a payment refund; `REFUND_SUCCESS` and `PARTIALLY_REFUNDED` are inbound payments refunded in full and in part.
  - Allowed values: `PENDING`, `COMPLETE`, `REVERSED`, `CLOSED`, `DECLINED`, `REFUNDED`, `PERSONAL_PENDING`, `PERSONAL_PROCESSING`, `PERSONAL_COMPLETE`, `PERSONAL_FAILED`, `PERSONAL_REFUNDED`, `PENDING_PAYMENT`, `PROCESSING_PAYMENT`, `PENDING_BANK_ACCOUNT`, `PROCESSING`, `INSUFFICIENT_FUNDS`, `PAYMENT_FAIL`, `FAILED`, `CANCELED`, `RETURNED`, `REFUND_PENDING`, `REFUND_SUCCESS`, `REFUND_FAIL`, `REFUND_CANCELED`, `PARTIALLY_REFUNDED`
- `personal` (boolean, required) — `true` when a user marked the purchase as a personal expense to repay.
- `amount` (Money, required) — Negative when money leaves the account holder, such as spend or a reimbursement, positive when it arrives, such as a refund or an inbound payment. `FEE` and `REWARDS_TO_BALANCE` are signed as their types describe.
- `disputeId` (string, optional) — The dispute this transaction belongs to, as `GET /disputes/{disputeId}` accepts it. Set on a disputed purchase and on its dispute credit and reversal transactions.
- `parentTransactionId` (string, optional) — The transaction this one belongs to: the purchase of a card refund or a dispute credit, the inbound payment of a payment refund or a fee, or the purchase a repayment pays for.
- `providerReference` (string, optional) — The issuer's ID for the transaction.
- `transferId` (string, optional) — The transfer this transaction is, as `GET /transfers/{transferId}` returns it.
- `cardId` (string, optional) — The card the transaction was made with.
- `cardType` (enum, optional) — `VIRTUAL` and `PHYSICAL` are cards issued to the account holder. `EXTERNAL` is a card from another issuer that the account holder linked.
  - Allowed values: `VIRTUAL`, `PHYSICAL`, `EXTERNAL`
- `userId` (string, optional) — The user who holds the card, or who is reimbursed or paid.
- `authorizationId` (string, optional) — The card issuer's reference for the authorization behind this transaction. An opaque reference that is not a transaction ID.
- `merchant` (TransactionMerchant, optional) — The merchant: as the card network reported it for card activity, as entered for a reimbursement, and the other party's name for a payment or a transfer.
- `memo` (string, optional) — The note a user wrote on the transaction.
- `settledAt` (datetime, optional) — When the transaction settled.

### TransactionEventDataPreviousAttributes

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`.

### Money

An amount in the currency's minor unit, for example cents for USD.

- `value` (integer, required) — Whole minor units. Signed for balances and transaction amounts.
- `currency` (string, required) — ISO 4217 alphabetic currency code, for example `USD`.

### TransactionMerchant

The merchant: as the card network reported it for card activity, as entered for a reimbursement, and the other party's name for a payment or a transfer.

- `name` (string, optional) — Merchant name.
- `mcc` (string, optional) — Merchant category code.
- `city` (string, optional) — Merchant city.
- `country` (string, optional) — ISO 3166-1 alpha-2 country code.