Braintree · Schema

TransactionRequest

Request body for creating a new payment transaction. Either payment_method_nonce, payment_method_token, or customer_id is required.

Properties

Name Type Description
amount string The billing amount for the transaction as a decimal string. Must be greater than 0 and match the currency decimal format.
payment_method_nonce string A one-time-use reference to payment information collected by the Braintree client SDK. Consumed upon transaction creation.
payment_method_token string The token of a vaulted payment method to charge for this transaction.
customer_id string The identifier of a customer whose default vaulted payment method will be used for this transaction.
order_id string A merchant-defined order identifier associated with this transaction for reconciliation.
merchant_account_id string The identifier of the merchant account to process this transaction. If omitted, the default merchant account is used.
device_data string Customer device data string collected by the Braintree data collector for fraud prevention analysis.
descriptor object
billing object
shipping object
options object
tax_amount string The tax amount included in the transaction total for Level 2 and Level 3 processing.
shipping_amount string The shipping amount included in the transaction total for Level 3 processing.
customer object
line_items array Line items for Level 3 processing. Up to 249 line items may be included.
transaction_source string Indicates the origin of this transaction for network reporting.
View JSON Schema on GitHub

JSON Schema

braintree-transactionrequest-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/TransactionRequest",
  "title": "TransactionRequest",
  "type": "object",
  "description": "Request body for creating a new payment transaction. Either payment_method_nonce, payment_method_token, or customer_id is required.",
  "properties": {
    "amount": {
      "type": "string",
      "description": "The billing amount for the transaction as a decimal string. Must be greater than 0 and match the currency decimal format.",
      "example": "10.00"
    },
    "payment_method_nonce": {
      "type": "string",
      "description": "A one-time-use reference to payment information collected by the Braintree client SDK. Consumed upon transaction creation."
    },
    "payment_method_token": {
      "type": "string",
      "description": "The token of a vaulted payment method to charge for this transaction."
    },
    "customer_id": {
      "type": "string",
      "description": "The identifier of a customer whose default vaulted payment method will be used for this transaction.",
      "maxLength": 36
    },
    "order_id": {
      "type": "string",
      "description": "A merchant-defined order identifier associated with this transaction for reconciliation.",
      "maxLength": 255
    },
    "merchant_account_id": {
      "type": "string",
      "description": "The identifier of the merchant account to process this transaction. If omitted, the default merchant account is used."
    },
    "device_data": {
      "type": "string",
      "description": "Customer device data string collected by the Braintree data collector for fraud prevention analysis."
    },
    "descriptor": {
      "$ref": "#/components/schemas/Descriptor"
    },
    "billing": {
      "$ref": "#/components/schemas/Address"
    },
    "shipping": {
      "$ref": "#/components/schemas/Address"
    },
    "options": {
      "$ref": "#/components/schemas/TransactionOptions"
    },
    "tax_amount": {
      "type": "string",
      "description": "The tax amount included in the transaction total for Level 2 and Level 3 processing.",
      "example": "1.00"
    },
    "shipping_amount": {
      "type": "string",
      "description": "The shipping amount included in the transaction total for Level 3 processing.",
      "example": "2.00"
    },
    "customer": {
      "$ref": "#/components/schemas/CustomerRequest"
    },
    "line_items": {
      "type": "array",
      "description": "Line items for Level 3 processing. Up to 249 line items may be included.",
      "maxItems": 249,
      "items": {
        "$ref": "#/components/schemas/LineItem"
      }
    },
    "transaction_source": {
      "type": "string",
      "description": "Indicates the origin of this transaction for network reporting.",
      "enum": [
        "recurring",
        "recurring_first",
        "unscheduled",
        "moto"
      ]
    }
  }
}

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/braintree-transactionrequest"
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.