{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/stripe/main/json-schema/stripe-tax-calculation-schema.json", "title": "TaxProductResourceTaxCalculation", "description": "A Tax Calculation allows you to calculate the tax to collect from your customer.\n\nRelated guide: [Calculate tax in your custom payment flow](https://stripe.com/docs/tax/custom)", "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.calculation", "properties": { "amount_total": { "description": "Total after taxes.", "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" }, "expires_at": { "description": "Timestamp of date at which the tax calculation will expire.", "format": "unix-time", "type": [ "integer", "null" ] }, "id": { "description": "Unique identifier for the calculation.", "maxLength": 5000, "type": [ "string", "null" ] }, "line_items": { "description": "The list of items the customer is purchasing.", "properties": { "data": { "description": "Details about each object.", "items": { "$ref": "#/$defs/tax.calculation_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/calculations/[^/]+/line_items", "type": "string" } }, "required": [ "data", "has_more", "object", "url" ], "title": "TaxProductResourceTaxCalculationLineItemList", "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" }, "object": { "description": "String representing the object's type. Objects of the same type share the same value.", "enum": [ "tax.calculation" ], "type": "string" }, "shipping_cost": { "anyOf": [ { "$ref": "#/$defs/tax_product_resource_tax_calculation_shipping_cost" } ], "description": "The shipping cost details for the calculation." }, "tax_amount_exclusive": { "description": "The amount of tax to be collected on top of the line item prices.", "type": "integer" }, "tax_amount_inclusive": { "description": "The amount of tax already included in the line item prices.", "type": "integer" }, "tax_breakdown": { "description": "Breakdown of individual tax amounts that add up to the total.", "items": { "$ref": "#/$defs/tax_product_resource_tax_breakdown" }, "type": "array" }, "tax_date": { "description": "Timestamp of date at which the tax rules and rates in effect applies for the calculation.", "format": "unix-time", "type": "integer" } }, "required": [ "amount_total", "currency", "customer_details", "livemode", "object", "tax_amount_exclusive", "tax_amount_inclusive", "tax_breakdown", "tax_date" ], "type": "object", "x-expandableFields": [ "customer_details", "line_items", "shipping_cost", "tax_breakdown" ], "x-resourceId": "tax.calculation", "$defs": { "tax.calculation_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_breakdown": { "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_calculation_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 } } }