Codat · Schema

Commerce: Transaction

Details of all financial transactions recorded in the commerce or point of sale system are added to the Transactions data type. For example, payments, service charges, and fees. You can use data from the Transactions endpoints to calculate key metrics, such as: - Transaction volumes - Average transaction volume - Average transaction value - Returns - Payouts

Unified-API
View JSON Schema on GitHub

JSON Schema

codat-commercetransaction-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/CommerceTransaction",
  "title": "Commerce: Transaction",
  "description": "Details of all financial transactions recorded in the commerce or point of sale system are added to the Transactions data type. For example, payments, service charges, and fees.\n\nYou can use data from the Transactions endpoints to calculate key metrics, such as:  \n- Transaction volumes  \n- Average transaction volume  \n- Average transaction value  \n- Returns  \n- Payouts",
  "type": "object",
  "allOf": [
    {
      "$ref": "#/components/schemas/CommerceOrder/allOf/0"
    },
    {
      "type": "object",
      "properties": {
        "totalAmount": {
          "description": "The total transaction amount",
          "type": "number",
          "format": "decimal",
          "examples": [
            194.12,
            -283.56,
            0
          ]
        },
        "currency": {
          "$ref": "#/components/schemas/SourceAccount/properties/currency"
        },
        "type": {
          "$ref": "#/components/schemas/CommerceTransaction/definitions/transactionType"
        },
        "subType": {
          "description": "Non-standardised transaction type data from the commerce software",
          "type": "string",
          "examples": [
            "CardPayment",
            "Invoice payment"
          ]
        },
        "transactionSourceRef": {
          "description": "Link to the source event which triggered this transaction",
          "allOf": [
            {
              "$ref": "#/components/schemas/CommerceTransaction/definitions/transactionSourceRef"
            }
          ]
        },
        "supplementalData": {
          "$ref": "#/components/schemas/SupplementalData"
        }
      }
    },
    {
      "allOf": [
        {
          "type": "object",
          "x-stoplight": {
            "id": "c590b4405180f"
          },
          "allOf": [
            {
              "$ref": "#/components/schemas/CommerceOrder/allOf/2"
            },
            {
              "type": "object",
              "x-stoplight": {
                "id": "gdyjg7bg783br"
              },
              "properties": {
                "sourceCreatedDate": {
                  "$ref": "#/components/schemas/DateTime",
                  "description": "The date on which this record was created in the originating system"
                }
              }
            }
          ]
        },
        {
          "$ref": "#/components/schemas/CommerceOrder/allOf/3"
        }
      ],
      "x-stoplight": {
        "id": "9e815c1766554"
      }
    }
  ],
  "definitions": {
    "transactionSourceRef": {
      "title": "Transaction Source Reference",
      "x-internal": true,
      "allOf": [
        {
          "$ref": "#/components/schemas/CommerceRecordRef"
        },
        {
          "type": "object",
          "properties": {
            "type": {
              "$ref": "#/components/schemas/CommerceTransaction/definitions/transactionSourceType"
            }
          }
        }
      ]
    },
    "transactionSourceType": {
      "x-internal": true,
      "type": "string",
      "description": "The type of source the transaction arose.",
      "enum": [
        "Fee",
        "Order",
        "Payment",
        "ServiceCharge",
        "Unknown"
      ]
    },
    "transactionType": {
      "x-internal": true,
      "description": "The type of the platform transaction:  \n- `Unknown`  \n- `FailedPayout` \u2014 Failed transfer of funds from the seller's merchant account to their bank account.  \n- `Payment` \u2014 Credit and debit card payments.  \n- `PaymentFee` \u2014 Payment provider's fee on each card payment.  \n- `PaymentFeeRefund` \u2014 Payment provider's fee that has been refunded to the seller.  \n- `Payout` \u2014 Transfer of funds from the seller's merchant account to their bank account.  \n- `Refund` \u2014 Refunds to a customer's credit or debit card.  \n- `Transfer` \u2014 Secure transfer of funds to the seller's bank account.  ",
      "type": "string",
      "enum": [
        "Payment",
        "Refund",
        "Payout",
        "FailedPayout",
        "Transfer",
        "PaymentFee",
        "PaymentFeeRefund",
        "Unknown"
      ]
    }
  },
  "examples": []
}

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/codat-commercetransaction"
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 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. See our Privacy Policy and Terms.

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