affirm · Schema
Transaction
Represents an Affirm payment transaction, capturing the full lifecycle from authorization through capture, refund, and void operations.
Properties
| Name | Type | Description |
|---|---|---|
| id | string | A unique identifier representing the transaction. |
| checkout_id | string | A unique identifier referencing the Checkout object that originated this transaction. |
| order_id | string | Identifies the order within the merchant's order management system. |
| status | string | Current state of the transaction. |
| amount | integer | The original amount financed to the customer in this transaction, expressed in the smallest currency unit (e.g., cents for USD). |
| amount_refunded | integer | The cumulative amount refunded back to the customer from this transaction, expressed in the smallest currency unit. |
| currency | string | Local transaction currency following ISO 4217 standards. |
| created | string | The time when the transaction was created, in RFC 3339 format. |
| authorization_expiration | string | The time when the transaction authorization expires and can no longer be captured, in RFC 3339 format. |
| provider_id | integer | A unique identifier of the provider financing the transaction. |
| remove_tax | boolean | Indicates whether tax was paid by the provider (applicable to Affirm Connect only). |
| events | array | Array of TransactionEvent objects documenting the transaction history. |
| token | string | A JWT signing the JSON response. If PII is included, this token is also encrypted. |