payments-ai · Schema

PublicApiTransactionDetailResponse

CompanyPaymentsArtificial IntelligenceFintechMerchant of RecordPayment Orchestration

Properties

Name Type Description
id string Canonical merchant-facing transaction id (internal UUID v7).
transactionId string Deprecated Whop payment id (`pay_…`). Removed on 2027-01-15.
date string
status string
result string
customerId string
orderId stringnull Order this payment paid for; `null` when the payment is not tied to an order.
method object
amountIsProvisional boolean True while `breakdown.gross` is provisional: the payment provider sent a refund event before the payment's success event, without the sale total or currency, so the amount is a lower bound or the curr
breakdown object
humanReadableWhy string
history array
View JSON Schema on GitHub

JSON Schema

payments-ai-public-api-transaction-detail-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/payments-ai/json-schema/payments-ai-public-api-transaction-detail-response-schema.json",
  "title": "PublicApiTransactionDetailResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/payments-ai-transactions-api-openapi.yml#/components/schemas/PublicApiTransactionDetailResponse",
  "type": "object",
  "required": [
    "id",
    "transactionId",
    "date",
    "orderId",
    "method",
    "amountIsProvisional",
    "breakdown",
    "history"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "Canonical merchant-facing transaction id (internal UUID v7)."
    },
    "transactionId": {
      "type": "string",
      "description": "Deprecated Whop payment id (`pay_…`). Removed on 2027-01-15.",
      "deprecated": true
    },
    "date": {
      "type": "string",
      "format": "date-time"
    },
    "status": {
      "type": "string"
    },
    "result": {
      "type": "string"
    },
    "customerId": {
      "type": "string"
    },
    "orderId": {
      "type": [
        "string",
        "null"
      ],
      "description": "Order this payment paid for; `null` when the payment is not tied to an order."
    },
    "method": {
      "$ref": "#/$defs/PublicApiTransactionMethod"
    },
    "amountIsProvisional": {
      "type": "boolean",
      "description": "True while `breakdown.gross` is provisional: the payment provider sent a refund event before the payment's success event, without the sale total or currency, so the amount is a lower bound or the currency a placeholder. Becomes `false` when the payment succeeds and its final amount replaces the provisional one. `remainingRefundable` is computed from the provisional amount, so it can be lower than the real remaining amount, never higher."
    },
    "breakdown": {
      "$ref": "#/$defs/PublicApiTransactionBreakdown"
    },
    "humanReadableWhy": {
      "type": "string"
    },
    "history": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PublicApiTransactionHistoryEvent"
      }
    }
  },
  "$defs": {
    "PublicApiTransactionBreakdown": {
      "type": "object",
      "required": [
        "gross",
        "grossCurrency",
        "refundedAmount",
        "refundedCurrency",
        "remainingRefundable"
      ],
      "properties": {
        "gross": {
          "$ref": "#/$defs/SharedTypes.MoneyAmountValue"
        },
        "grossCurrency": {
          "$ref": "#/$defs/SharedTypes.CurrencyCode"
        },
        "refundedAmount": {
          "$ref": "#/$defs/SharedTypes.MoneyAmountValue"
        },
        "refundedCurrency": {
          "$ref": "#/$defs/SharedTypes.CurrencyCode"
        },
        "remainingRefundable": {
          "$ref": "#/$defs/SharedTypes.MoneyAmountValue"
        },
        "net": {
          "$ref": "#/$defs/SharedTypes.MoneyAmountValue"
        },
        "netCurrency": {
          "$ref": "#/$defs/SharedTypes.CurrencyCode"
        }
      }
    },
    "PublicApiTransactionHistoryEvent": {
      "type": "object",
      "required": [
        "event",
        "timestamp"
      ],
      "properties": {
        "event": {
          "type": "string"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time"
        },
        "id": {
          "type": "string"
        },
        "amount": {
          "$ref": "#/$defs/SharedTypes.MoneyAmountValue"
        },
        "currency": {
          "$ref": "#/$defs/SharedTypes.CurrencyCode"
        },
        "type": {
          "type": "string"
        },
        "triggeredBy": {
          "type": "string"
        },
        "message": {
          "type": "string"
        },
        "details": {
          "type": "string"
        },
        "occurredAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "PublicApiTransactionMethod": {
      "type": "object",
      "properties": {
        "scheme": {
          "type": "string"
        },
        "lastFour": {
          "type": "string"
        }
      }
    },
    "SharedTypes.CurrencyCode": {
      "type": "string",
      "pattern": "^[a-z]{3}$",
      "description": "ISO 4217 currency code. Always lowercase (e.g. 'usd', 'eur')."
    },
    "SharedTypes.MoneyAmountValue": {
      "type": "number",
      "format": "decimal",
      "description": "Decimal money amount for financial values."
    }
  }
}

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/payments-ai-public-api-transaction-detail-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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