Stripe · Schema

PostTaxTransactionsCreateReversalRequest

CommerceFinancial ServicesFintechPaymentsT1StripeAgentic CommercePoint-of-SalePayment Processing

Properties

Name Type Description
expand array Specifies which fields in the response should be expanded.
flat_amount integer A flat amount to reverse across the entire transaction, in negative integer cents. This value represents the total amount to refund from the transaction, including taxes.
line_items array The line item amounts to reverse.
metadata object Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individu
mode string If `partial`, the provided line item or shipping cost amounts are reversed. If `full`, the original transaction is fully reversed.
original_transaction string The ID of the Transaction to partially or fully reverse.
reference string A custom identifier for this reversal, such as `myOrder_123-refund_1`, which must be unique across all transactions. The reference helps identify this reversal transaction in exported [tax reports](ht
shipping_cost object The shipping cost to reverse.
View JSON Schema on GitHub

JSON Schema

stripe-post-tax-transactions-create-reversal-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/stripe/main/json-schema/stripe-post-tax-transactions-create-reversal-request-schema.json",
  "title": "PostTaxTransactionsCreateReversalRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/stripe-tax-api-openapi.yml#/components/schemas/PostTaxTransactionsCreateReversalRequest",
  "type": "object",
  "required": [
    "mode",
    "original_transaction",
    "reference"
  ],
  "properties": {
    "expand": {
      "description": "Specifies which fields in the response should be expanded.",
      "items": {
        "maxLength": 5000,
        "type": "string"
      },
      "type": "array"
    },
    "flat_amount": {
      "description": "A flat amount to reverse across the entire transaction, in negative integer cents. This value represents the total amount to refund from the transaction, including taxes.",
      "type": "integer"
    },
    "line_items": {
      "description": "The line item amounts to reverse.",
      "items": {
        "properties": {
          "amount": {
            "type": "integer"
          },
          "amount_tax": {
            "type": "integer"
          },
          "metadata": {
            "additionalProperties": {
              "type": "string"
            },
            "type": "object"
          },
          "original_line_item": {
            "maxLength": 5000,
            "type": "string"
          },
          "quantity": {
            "type": "integer"
          },
          "reference": {
            "maxLength": 500,
            "type": "string"
          }
        },
        "required": [
          "amount",
          "amount_tax",
          "original_line_item",
          "reference"
        ],
        "title": "transaction_line_item_reversal",
        "type": "object"
      },
      "type": "array"
    },
    "metadata": {
      "additionalProperties": {
        "type": "string"
      },
      "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`.",
      "type": "object"
    },
    "mode": {
      "description": "If `partial`, the provided line item or shipping cost amounts are reversed. If `full`, the original transaction is fully reversed.",
      "enum": [
        "full",
        "partial"
      ],
      "type": "string"
    },
    "original_transaction": {
      "description": "The ID of the Transaction to partially or fully reverse.",
      "maxLength": 5000,
      "type": "string"
    },
    "reference": {
      "description": "A custom identifier for this reversal, such as `myOrder_123-refund_1`, which must be unique across all transactions. The reference helps identify this reversal transaction in exported [tax reports](https://stripe.com/docs/tax/reports).",
      "maxLength": 500,
      "type": "string"
    },
    "shipping_cost": {
      "description": "The shipping cost to reverse.",
      "properties": {
        "amount": {
          "type": "integer"
        },
        "amount_tax": {
          "type": "integer"
        }
      },
      "required": [
        "amount",
        "amount_tax"
      ],
      "title": "transaction_shipping_cost_reversal",
      "type": "object"
    }
  }
}

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/stripe-post-tax-transactions-create-reversal-request"
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.