Products

Charging Tax on Orders

Setting tax rates by region, whether prices include tax or add it at checkout, which products are tax-exempt, and how tax gets refunded

On this page

Let's be clear about the boundaries first: this system calculates and records tax based on the rates you configure -- it does not file, remit, or guarantee your rates are current. How much tax to charge, and whether to charge it at all, is something you or your accountant need to confirm. What we do is "calculate correctly, record clearly, and keep the three places consistent" -- not tax compliance itself.

1. Where to set tax rates

It shares the same region groups as shipping -- configure a region once, and you get both shipping and tax. Have the AI call upsert_shipping_zone:

  • taxRatePercent: a percentage -- 7.25 means 7.25%; leave it blank and this region charges no tax
  • taxName: what shows on the invoice, e.g. "California Sales Tax," "GST," "VAT." Defaults to "Tax" if left blank
  • taxOnShipping: whether shipping is included in the taxable amount. Most US states do; China generally doesn't -- the default is no

After setting it up, have the AI call list_shipping_rules to read it back and confirm (if you can write it and read it back, it's really saved).

2. Tax-inclusive vs. tax-exclusive pricing

shopTaxMode under update_site_config:

  • inclusive (tax included, the default): a $129 listed price charges $129, with $8.72 of tax included in that. Buyers pay exactly what they see -- no surprise jump at checkout. Common in China and Europe
  • exclusive (tax added on top): a $129 listed price adds $9.35 of tax at checkout, for $138.35 charged. Common in the US

Changing this setting doesn't touch orders already placed: every order records its tax amount, whether it was inclusive or exclusive, and the tax name at the moment it was placed. Opening last year's order today still shows what was actually charged back then.

3. Exempting a specific product from tax

Books, groceries, and digital goods are often tax-exempt. Pass taxExempt: true on upsert_product. If a cart mixes exempt and non-exempt items, only the non-exempt portion gets taxed.

4. Refunding tax

  • Full refund: tax is refunded along with everything else
  • Partial refund: refunded proportionally -- refunding half the order refunds half the tax too

Both the refund record and the refund email to the customer state exactly how much tax was included, for your own reconciliation.

5. How to verify it's calculating correctly

After configuring it, place a test order yourself and check three places -- all three must match exactly:

  • The amount shown at checkout
  • What Stripe actually charged, in your Stripe dashboard
  • The confirmation email the customer received

If these three don't match, something's wrong -- report it to the platform directly. We use a single function across the entire site to calculate tax, specifically so these three can never disagree.

6. Subscription / membership products don't currently charge tax

Auto-renewing memberships and subscription products go through Stripe's hosted subscription page, where each period's charge is generated by Stripe -- we have no way to add tax at that layer. So: on the same site, physical-goods orders will be taxed at your configured rate, while membership orders won't be.

To tax memberships too, you'd need to integrate Stripe Tax, or attach a tax rate to prices directly in Stripe -- not currently supported. If you mainly sell memberships and must charge tax, contact the platform first rather than assuming "configuring a tax rate taxes everything site-wide."

7. FAQ

I configured a tax rate but no tax was charged: check whether the buyer's shipping country falls into one of your configured regions. If there's no matching region and no catch-all region (with countries set to ["*"]), no tax is charged.

I don't want to charge tax: do nothing. Leaving taxRatePercent blank means no tax is charged anywhere on the site -- that's the default state.

Do you file taxes automatically: no. Automatic filing and multi-state rate updates need a dedicated service like Stripe Tax, TaxJar, or Avalara -- contact the platform if you'd like help evaluating one.

Last updated: October 1, 2026
Still stuck? Just ask

Write your question — we look in the docs first, and hand it to AI support if the answer is not there.

If you have connected an AI, you can ask it directly — it reads these same docs, and it can make the change for you.Or email us at support@dlxai.ai.
We use essential cookies; "Accept" also records device traits to prevent abuse. Cookie Policy