Affirm · Schema

TransactionEvent

Represents a single event in the lifecycle of a transaction, such as an authorization, capture, refund, or void.

FintechBNPLLendingPaymentsConsumer

Properties

Name Type Description
id string A unique identifier for the transaction event.
type string The type of transaction event.
amount integer The amount associated with this event in the smallest currency unit.
currency string The ISO 4217 currency code for this event.
fee integer The fee charged by Affirm for this event in the smallest currency unit.
created string The time when this event was created, in RFC 3339 format.
reference_id string An external reference identifier associated with this event.
metadata object Additional key-value metadata associated with this event for merchant tracking purposes.
View JSON Schema on GitHub

JSON Schema

transactions-transaction-event-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/affirm/refs/heads/main/json-schema/transactions-transaction-event-schema.json",
  "title": "TransactionEvent",
  "description": "Represents a single event in the lifecycle of a transaction, such as an authorization, capture, refund, or void.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "A unique identifier for the transaction event.",
      "example": "500123"
    },
    "type": {
      "type": "string",
      "description": "The type of transaction event.",
      "enum": [
        "auth",
        "capture",
        "refund",
        "void",
        "update"
      ],
      "example": "auth"
    },
    "amount": {
      "type": "integer",
      "description": "The amount associated with this event in the smallest currency unit.",
      "example": 1
    },
    "currency": {
      "type": "string",
      "description": "The ISO 4217 currency code for this event.",
      "example": "USD"
    },
    "fee": {
      "type": "integer",
      "description": "The fee charged by Affirm for this event in the smallest currency unit.",
      "example": 1
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "The time when this event was created, in RFC 3339 format.",
      "example": "2025-03-15T14:30:00Z"
    },
    "reference_id": {
      "type": "string",
      "description": "An external reference identifier associated with this event.",
      "example": "500123"
    },
    "metadata": {
      "type": "object",
      "description": "Additional key-value metadata associated with this event for merchant tracking purposes.",
      "additionalProperties": {
        "type": "string"
      },
      "example": {}
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/transactions-transaction-event"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no email required.

A second provider on the same verified email joins the account you already have.