Automatically collect tax on invoices
On an invoice, Stripe Tax calculates sales tax, VAT, and GST. To calculate these for each line item, Stripe uses:
- Your tax settings
- The customer’s tax settings and location
- The product tax code and price tax behavior
Set up the customer
We use the customer’s location to determine the relevant taxes to collect. Customers outside of the US need at least a country-level address, while customers in the US require a 5-digit postal code. For Canada, we need at least the province or postal code.
Set up line items
To calculate tax on each line item on an invoice, you need to set a tax behavior and optionally a tax code.
Customize tax settings for one-off line items
Customize line items in the Invoice Editor by selecting the tax behavior from the Include tax in price drop-down menu.
Customize tax settings for product-based line items
You can use both the Dashboard and the API to customize tax settings for product-based line items.
Enable automatic tax
After specifying a tax behavior and tax category, you can add the price to the customer as an invoice item:
Set the toggle in the Invoice Editor. In the API, you need to pass the automatic_tax
field to enable or disable automatic tax calculation. Both steps are required to start calculating tax automatically.
To enable automatic tax calculation when you update an invoice, add the invoice
parameter alongside automatic_tax
:
Use a credit note to process a refund of charges associated with an invoice. Credit notes show up in Stripe Tax reporting to reflect the reduction of your overall tax liability.
Learn more about issuing credit notes.