create_tax_rate
Create a fixed tax rate for use on checkout pages.
Use this tool when a merchant wants to charge a fixed percentage tax (VAT, GST, Sales Tax, etc.) on their checkout pages. Fixed tax rates are used with pages that have tax.mode: "fixed".
Inclusive vs exclusive:
Exclusive (
inclusive: false) — tax is added on top of the price. A $100 product with 20% tax costs the customer $120.Inclusive (
inclusive: true) — tax is already included in the price. A $100 product with 20% inclusive tax means $83.33 + $16.67 tax.
Default rate:
Set
default: trueto make this the account's default tax rate. Pages withtax.mode: "fixed"and no explicitfixedTaxRateIdswill use the default rate automatically.Only one tax rate can be the default at a time. Setting a new default replaces the previous one.
This is not Stripe Tax. Fixed tax rates apply a flat percentage regardless of customer location. To calculate tax dynamically by address, use tax.mode: "stripe" on the page instead (no tax rate needed).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| default | No | Whether this should be the default tax rate. When `true`, this rate is pre-selected for pages using fixed tax mode and no explicit `fixedTaxRateIds`. | |
| inclusive | Yes | Whether the tax is inclusive (`true`, meaning it is already included in the price) or exclusive (`false`, meaning it is added on top of the price). | |
| percentage | Yes | Tax rate percentage out of 100. Maximum 2 decimal places. | |
| displayName | Yes | Short name describing the type of tax, for example VAT, GST, or Sales Tax. Displayed in the checkout and invoices. Maximum 50 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes |