Stripe · Schema
TaxProductResourceTaxTransaction
A Tax Transaction records the tax collected from or refunded to your customer. Related guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom#tax-transaction)
CommerceFinancial ServicesFintechPaymentsT1StripeAgentic CommercePoint-of-SalePayment Processing
Properties
| Name | Type | Description |
|---|---|---|
| created | integer | Time at which the object was created. Measured in seconds since the Unix epoch. |
| currency | string | Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). |
| customer | stringnull | The ID of an existing [Customer](https://stripe.com/docs/api/customers/object) used for the resource. |
| customer_details | object | |
| id | string | Unique identifier for the transaction. |
| line_items | objectnull | The tax collected or refunded, by line item. |
| livemode | boolean | Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode. |
| metadata | objectnull | 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. |
| object | string | String representing the object's type. Objects of the same type share the same value. |
| reference | string | A custom unique identifier, such as 'myOrder_123'. |
| reversal | object | If `type=reversal`, contains information about what was reversed. |
| shipping_cost | object | The shipping cost details for the transaction. |
| tax_date | integer | Timestamp of date at which the tax rules and rates in effect applies for the calculation. |
| type | string | If `reversal`, this transaction reverses an earlier transaction. |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/stripe/main/json-schema/stripe-tax-transaction-schema.json",
"title": "TaxProductResourceTaxTransaction",
"description": "A Tax Transaction records the tax collected from or refunded to your customer.\n\nRelated guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom#tax-transaction)",
"x-generated": "2026-10-12",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/stripe-tax-api-openapi.yml#/components/schemas/tax.transaction",
"properties": {
"created": {
"description": "Time at which the object was created. Measured in seconds since the Unix epoch.",
"format": "unix-time",
"type": "integer"
},
"currency": {
"description": "Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).",
"maxLength": 5000,
"type": "string"
},
"customer": {
"description": "The ID of an existing [Customer](https://stripe.com/docs/api/customers/object) used for the resource.",
"maxLength": 5000,
"type": [
"string",
"null"
]
},
"customer_details": {
"$ref": "#/$defs/tax_product_resource_customer_details"
},
"id": {
"description": "Unique identifier for the transaction.",
"maxLength": 5000,
"type": "string"
},
"line_items": {
"description": "The tax collected or refunded, by line item.",
"properties": {
"data": {
"description": "Details about each object.",
"items": {
"$ref": "#/$defs/tax.transaction_line_item"
},
"type": "array"
},
"has_more": {
"description": "True if this list has another page of items after this one that can be fetched.",
"type": "boolean"
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value. Always has the value `list`.",
"enum": [
"list"
],
"type": "string"
},
"url": {
"description": "The URL where this list can be accessed.",
"maxLength": 5000,
"pattern": "^/v1/tax/transactions/[^/]+/line_items",
"type": "string"
}
},
"required": [
"data",
"has_more",
"object",
"url"
],
"title": "TaxProductResourceTaxTransactionLineItemList",
"type": [
"object",
"null"
],
"x-expandableFields": [
"data"
]
},
"livemode": {
"description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.",
"type": "boolean"
},
"metadata": {
"additionalProperties": {
"maxLength": 500,
"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.",
"type": [
"object",
"null"
]
},
"object": {
"description": "String representing the object's type. Objects of the same type share the same value.",
"enum": [
"tax.transaction"
],
"type": "string"
},
"reference": {
"description": "A custom unique identifier, such as 'myOrder_123'.",
"maxLength": 5000,
"type": "string"
},
"reversal": {
"anyOf": [
{
"$ref": "#/$defs/tax_product_resource_tax_transaction_resource_reversal"
}
],
"description": "If `type=reversal`, contains information about what was reversed."
},
"shipping_cost": {
"anyOf": [
{
"$ref": "#/$defs/tax_product_resource_tax_transaction_shipping_cost"
}
],
"description": "The shipping cost details for the transaction."
},
"tax_date": {
"description": "Timestamp of date at which the tax rules and rates in effect applies for the calculation.",
"format": "unix-time",
"type": "integer"
},
"type": {
"description": "If `reversal`, this transaction reverses an earlier transaction.",
"enum": [
"reversal",
"transaction"
],
"type": "string"
}
},
"required": [
"created",
"currency",
"customer_details",
"id",
"livemode",
"object",
"reference",
"tax_date",
"type"
],
"type": "object",
"x-expandableFields": [
"customer_details",
"line_items",
"reversal",
"shipping_cost"
],
"x-resourceId": "tax.transaction",
"$defs": {
"tax.transaction_line_item": {
"type": "object",
"description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
"x-ae-placeholder": true
},
"tax_product_resource_customer_details": {
"type": "object",
"description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
"x-ae-placeholder": true
},
"tax_product_resource_tax_transaction_resource_reversal": {
"type": "object",
"description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
"x-ae-placeholder": true
},
"tax_product_resource_tax_transaction_shipping_cost": {
"type": "object",
"description": "Referenced by this document but never defined in it. API Evangelist added this empty placeholder so the document resolves; the shape is unknown and is NOT a claim about the API.",
"x-ae-placeholder": true
}
}
}
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.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/stripe-tax-transaction"
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.