---
updatedAt: 2026-08-17T16:30:44.000Z
agentTools:
  siteIndex: https://docs.affirm.com/llms.txt
  projectIndex: https://docs.affirm.com/developers/llms.txt
---

# List Transactions

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Merchant Transaction API",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://sandbox.affirm.com/api/v1"
    },
    {
      "url": "https://api.affirm.com/api/v1"
    }
  ],
  "security": [
    {
      "basicAuth": []
    }
  ],
  "paths": {
    "/transactions": {
      "get": {
        "tags": [
          "Transactions API"
        ],
        "summary": "List Transactions",
        "operationId": "list_transactions",
        "parameters": [
          {
            "name": "transaction_type",
            "in": "query",
            "description": "Type of transaction to be listed, default lists all, otherwise list one of `charge`.",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "charge"
              ]
            }
          },
          {
            "name": "allow_marqeta_view",
            "in": "query",
            "description": "If we want to allow marqeta view, only relevant for charges.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "before",
            "in": "query",
            "description": "Optional end ARI of query, used during pagination. Mutually exclusive with the 'after' query parameter - i.e. only one of 'after' or 'before' can be specified in one request.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after",
            "in": "query",
            "description": "Optional start ARI of query, used during pagination. Mutually exclusive with the 'before' query parameter - i.e. only one of 'after' or 'before' can be specified in one request.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "description": "Max number of transactions to list per page. Default is 20.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before_date",
            "in": "query",
            "description": "End date of query (MM-DD-YYYY).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after_date",
            "in": "query",
            "description": "Start date of query (MM-DD-YYYY).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "before_timestamp",
            "in": "query",
            "description": "Unix timestamp representing the end time of the query.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "after_timestamp",
            "in": "query",
            "description": "Unix timestamp representing the start time of the query.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "query",
            "in": "query",
            "description": "String to filter results on. Filters include order ID, transaction ID, status, amount, customer email, name, and phone number (only for charges).",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "merchant_id",
            "in": "query",
            "description": "Optional ARI of merchant issuing the list request.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "expand",
            "in": "query",
            "description": "A comma-separated set of related objects to expand in the response. Allowed value is 'checkout'.",
            "required": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "Has-Strict-Validation",
            "in": "header",
            "description": "Optional param to denote whether client-side strict validation is used. Defaults to True if no param provided.",
            "required": false,
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "HTTP 200 OK",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ListTransactions"
                }
              }
            }
          },
          "400": {
            "description": "HTTP 400 Bad Request",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorBadRequest"
                }
              }
            }
          },
          "401": {
            "description": "HTTP 401 Unauthorized",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorUnauthorized"
                }
              }
            }
          },
          "404": {
            "description": "HTTP 404 Not Found",
            "content": {
              "*/*": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorNotFound"
                }
              }
            }
          }
        },
        "x-swagger-router-controller": "affirm.http.api.merchant.transaction.v1.api"
      }
    }
  },
  "components": {
    "schemas": {
      "ErrorBadRequest": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message.",
            "example": "Bad Request"
          },
          "status_code": {
            "type": "integer",
            "description": "The HTTP status code.",
            "example": 400
          },
          "type": {
            "type": "string",
            "description": "The error type.",
            "example": "BAD_REQUEST"
          },
          "code": {
            "type": "string",
            "description": "The error type.",
            "example": "BAD_REQUEST"
          }
        }
      },
      "ErrorNotFound": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message.",
            "example": "Not Found"
          },
          "status_code": {
            "type": "integer",
            "description": "The HTTP status code.",
            "example": 404
          },
          "type": {
            "type": "string",
            "description": "The error type.",
            "example": "NOT_FOUND"
          },
          "code": {
            "type": "string",
            "description": "The error type.",
            "example": "NOT_FOUND"
          }
        }
      },
      "ErrorUnauthorized": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "The error message.",
            "example": "Unauthorized"
          },
          "status_code": {
            "type": "integer",
            "description": "The HTTP status code.",
            "example": 401
          },
          "type": {
            "type": "string",
            "description": "The error type.",
            "example": "UNAUTHORIZED"
          },
          "code": {
            "type": "string",
            "description": "The error type.",
            "example": "UNAUTHORIZED"
          }
        }
      },
      "Transaction3": {
        "type": "object",
        "properties": {
          "checkout_id": {
            "type": "string",
            "description": "A unique identifier representing the transaction’s checkout ID.",
            "example": "HTSZAGURU7PZ8ZAG"
          },
          "provider_id": {
            "type": "integer",
            "description": "A unique identifier of the provider that is financing the transaction.",
            "example": 1
          },
          "remove_tax": {
            "type": "boolean",
            "description": "Indicates if tax was paid by the provider (Affirm, LTO). Used by platform integrations to remove tax.",
            "example": true
          },
          "status": {
            "type": "string",
            "description": "The status of the transaction.",
            "example": "captured"
          },
          "currency": {
            "type": "string",
            "description": "The local currency of the transaction with its being a valid subset of the ISO 4217 currency code.",
            "example": "USD"
          },
          "created": {
            "type": "string",
            "description": "The time when the transaction was created. The value is formatted in RFC 3339.",
            "example": "2019-01-01T00:00:00.000Z"
          },
          "authorization_expiration": {
            "type": "string",
            "description": "The time when the transaction can no longer be authorized. The value is formatted in RFC 3339.",
            "example": "2019-01-01T00:00:00.000Z"
          },
          "amount_refunded": {
            "type": "integer",
            "description": "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.",
            "example": 5000
          },
          "amount": {
            "type": "integer",
            "description": "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.",
            "example": 20000
          },
          "id": {
            "type": "string",
            "description": "A unique ID representing the transaction’s loan or charge ID.",
            "example": "ABCD-1234"
          },
          "order_id": {
            "maxLength": 128,
            "minLength": 1,
            "type": "string",
            "description": "Identifies the order within the merchant's order management system that this transaction corresponds to.",
            "example": "order_125"
          },
          "events": {
            "type": "array",
            "properties": {},
            "description": "An array of TransactionEvent objects.",
            "x-nullable": true,
            "items": {
              "$ref": "#/components/schemas/TransactionEvent3"
            }
          }
        }
      },
      "TransactionEvent3": {
        "type": "object",
        "properties": {
          "amount": {
            "type": "integer",
            "description": "The total value of the transaction event, including tax and shipping. The value is non-negative and is represented in the smallest currency unit, such as cents instead of dollars. If the type is capture, this field represents the amount captured. If the type is refund, this field represents the amount refunded, including the fee that was refunded.",
            "example": 20000
          },
          "id": {
            "type": "string",
            "description": "A unique identifier for the transaction event.",
            "example": "ABCD-1234"
          },
          "currency": {
            "type": "string",
            "description": "The local currency of the transaction with its being a valid subset of the ISO 4217 currency code.",
            "example": "USD"
          },
          "type": {
            "type": "string",
            "description": "The type of event, such as auth, auth_expired, capture, charge_off, confirm, confirmation_expired, expire_authorization, expire_confirmation, refund, split_capture, update, void, partial_void, and refund_voided.",
            "example": "auth"
          },
          "created": {
            "type": "string",
            "description": "The time when the transaction event was created. The value is formatted in RFC 3339.",
            "example": "2019-01-01T00:00:00.000Z"
          }
        }
      },
      "ListTransactions": {
        "type": "object",
        "properties": {
          "has_prev": {
            "type": "boolean",
            "description": "Boolean indicating whether previous (newer) results exist"
          },
          "has_next": {
            "type": "boolean",
            "description": "Boolean indicating whether next (older) results exist"
          },
          "transactions": {
            "type": "array",
            "description": "An array of transactions.",
            "items": {
              "$ref": "#/components/schemas/Transaction3"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true,
    "samples-enabled": true
  }
}
```

# Sibling pages

* [Authorize Transaction](https://docs.affirm.com/developers/reference/authorize_transaction.md)
* [List Transaction Events](https://docs.affirm.com/developers/reference/list_transaction_events.md)
* [Read Transaction](https://docs.affirm.com/developers/reference/read_transaction.md)
* [Update Transaction](https://docs.affirm.com/developers/reference/update_transaction.md)
* [Capture Transaction](https://docs.affirm.com/developers/reference/capture_transaction.md)
* [Refund Transaction](https://docs.affirm.com/developers/reference/refund_transaction.md)
* [Void Transaction](https://docs.affirm.com/developers/reference/void_transaction.md)
* [List Settlement Events](https://docs.affirm.com/developers/reference/list_settlement_events.md)
* [List Settlement Event Summaries](https://docs.affirm.com/developers/reference/list_settlement_event_summaries.md)