---
updatedAt: 2025-11-13T14:11:41.000Z
agentTools:
  siteIndex: https://docs.affirm.com/llms.txt
  projectIndex: https://docs.affirm.com/developers/llms.txt
---

# The Transaction Object

## Attributes

<Table align={["left","left","left"]}>
  <thead>
    <tr>
      <th style={{ textAlign: "left" }}>
        Attribute
      </th>

      <th style={{ textAlign: "left" }}>
        Data type
      </th>

      <th style={{ textAlign: "left" }}>
        Description
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td style={{ textAlign: "left" }}>
        `amount`
      </td>

      <td style={{ textAlign: "left" }}>
        *integer*
      </td>

      <td style={{ textAlign: "left" }}>
        The original amount financed to the customer in this transaction. 

        The value is non-negative and is represented in the smallest currency unit, such as cents instead of dollars.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `amount_refunded`
      </td>

      <td style={{ textAlign: "left" }}>
        *integer*
      </td>

      <td style={{ textAlign: "left" }}>
        The amount refunded back to the customer from this transaction. The value may be less than the total amount financed if a partial refund was issued. 

        The value is non-negative and is represented in the smallest currency unit, such as cents instead of dollars.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `authorization_expiration`
      </td>

      <td style={{ textAlign: "left" }}>
        *string*
      </td>

      <td style={{ textAlign: "left" }}>
        The time when the transaction can no longer be authorized. The value is formatted in RFC 3339.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `checkout_id`
      </td>

      <td style={{ textAlign: "left" }}>
        *string*
      </td>

      <td style={{ textAlign: "left" }}>
        A unique identifier referencing the Checkout object.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `created`
      </td>

      <td style={{ textAlign: "left" }}>
        *string*
      </td>

      <td style={{ textAlign: "left" }}>
        The time when the transaction was created. The value is formatted in RFC 3339.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `currency`
      </td>

      <td style={{ textAlign: "left" }}>
        *string*
      </td>

      <td style={{ textAlign: "left" }}>
        The local currency of the transaction with its being a valid subset of the [ISO 4217 currency code](https://www.iso.org/iso-4217-currency-codes.html).
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `events`
      </td>

      <td style={{ textAlign: "left" }}>
        *object*
      </td>

      <td style={{ textAlign: "left" }}>
        An array of TransactionEvent objects.

        See the [TransactionEvents](https://docs.affirm.com/developers/reference/the-transaction-event-object) object for details.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `id`
      </td>

      <td style={{ textAlign: "left" }}>
        *string*
      </td>

      <td style={{ textAlign: "left" }}>
        A unique identifier representing the transaction.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `order_id`
      </td>

      <td style={{ textAlign: "left" }}>
        *string*
      </td>

      <td style={{ textAlign: "left" }}>
        Identifies the order within the merchant's order management system that this transaction corresponds to.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `provider_id`
      </td>

      <td style={{ textAlign: "left" }}>
        *integer*
      </td>

      <td style={{ textAlign: "left" }}>
        A unique identifier of the provider that is financing the transaction.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `remove_tax`
      </td>

      <td style={{ textAlign: "left" }}>
        *boolean*
      </td>

      <td style={{ textAlign: "left" }}>
        A boolean denoting if tax was paid by the provider (Affirm, LTO). Used by platform integrations to remove tax.

        *This parameter is for only applicable for Affirm Connect.*
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `status`
      </td>

      <td style={{ textAlign: "left" }}>
        *string*
      </td>

      <td style={{ textAlign: "left" }}>
        The status of the transaction.
      </td>
    </tr>

    <tr>
      <td style={{ textAlign: "left" }}>
        `token`
      </td>

      <td style={{ textAlign: "left" }}>
        *string*
      </td>

      <td style={{ textAlign: "left" }}>
        A JWT signing the JSON response; if PII is included in the response this is also encrypted.
      </td>
    </tr>
  </tbody>
</Table>

```json
{
    "amount": 50000,
    "amount_refunded": 0,
    "authorization_expiration": "2021-07-28T19:05:34Z",
    "checkout_id": "FOD1L33PH7RUAE6Z",
    "created": "2021-06-28T19:05:00Z",
    "currency": "USD",
    "events": [
        {
            "amount": 50000, 
            "created": "2021-06-28T19:05:34Z"
            "currency": "USD",
            "fee":0,
            "fee_refunded":0,
            "id": "WDJN3ETDMKGIZJIY",
            "reference_id":"YHYYWRN31EDG931N",
            "type": "auth",
              "metadata":{}
            "token":"string"
            
        }
    ],
    "id": "V55Z-229C"
    "order_id": "ABC123",
    "provider_id": 1,   
    "remove_tax": false,
    "status": "authorized",  
    "authorization_expiration": "2021-07-28T19:05:34Z",
    "token":"string"
}
```

# Sibling pages

* [Transaction API Endpoints](https://docs.affirm.com/developers/reference/transaction-api-endpoints.md)
* [Transactions API](https://docs.affirm.com/developers/reference/merchant-transactions-api.md)
* [The Transaction Event Object](https://docs.affirm.com/developers/reference/the-transaction-event-object.md)