# Tax Calculation for Online Orders

**URL:** <https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149>\
**Category:** Questions\
**Created:** [October 14, 2024, 6:14am UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149 "2024-10-14T06:14:52Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hannah](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hannah](https://developer.squareup.com/forums/u/hannah)\
**Post date:** [October 14, 2024, 6:14am UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/1 "2024-10-14T06:14:52Z")

</div>

I’m a little confused on how I’m supposed to be applying taxes for online orders. I have the “auto\_apply\_taxes” set to true in the order payload, but it’s always applying the local tax rate of the location, and not accounting for the shipping address.

My understanding is that sales taxes should only be applied if the shipping address is set to a state that is registered under Tax Registrations at [https://app.squareup.com/dashboard/business/manual-taxes](https://app.squareup.com/dashboard/business/manual-taxes)

So, if I only have NY registered, there should not be a sales tax applied if I am shipping to any other state. I’m currently creating the order through the payment link api (/v2/online-checkout/payment-links), and the user is getting prompted for their address in the Square checkout workflow.

I have “Automatically applied taxes” enabled for “Shipping and non-physical sales” in [https://app.squareup.com/dashboard/business/manual-taxes](https://app.squareup.com/dashboard/business/manual-taxes). Should I be asking for the shipping address before I create the order? Is there a better way to add the taxes?

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [October 14, 2024, 6:15am UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/2 "2024-10-14T06:15:15Z")

</div>

👋 I’m Square Dev AI, here to help answer your question!  
Based on the information you’ve provided, the following documentation will help answer your question:

> **[Apply Catalog Taxes to Orders](https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts/auto-apply-taxes)**
>
> Learn how to apply preconfigured taxes to an order using the Orders API.

> **[Apply Taxes, Discounts, and Service Charges](https://developer.squareup.com/docs/orders-api/apply-taxes-and-discounts)**
>
> Learn how to apply taxes and discount to an order's price calculation when using the Square Orders API.

> **Additional Documentation**
>
> [Working with Addresses](https://developer.squareup.com/docs/build-basics/common-data-types/working-with-addresses)  
> [Payments Pricing with Square APIs and SDKs](https://developer.squareup.com/docs/payments-pricing)  
> [https://developer.squareup.com/docs/get-started/create-an-account](https://developer.squareup.com/docs/get-started/create-an-account)

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.  
Otherwise one of our Developer Advocates will provide additional assistance shortly.

---

<div class="post-metadata">

**Author:** ![Square-Dev-AI](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/square-dev-ai/32/2513_2.png) [@Square-Dev-AI](https://developer.squareup.com/forums/u/Square-Dev-AI)\
**Post date:** [October 15, 2024, 3:55pm UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/3 "2024-10-15T15:55:54Z")

</div>

The “auto\_apply\_taxes” option in the Orders API applies taxes based on the location of the order, not the shipping address. This is because the tax is preconfigured for the catalog items at the location where the order is created.

If you want to apply taxes based on the shipping address, you would need to manually calculate the tax based on the shipping address and then apply it to the order. This would involve creating a CatalogTax object for each tax jurisdiction you need to support, and then applying the appropriate CatalogTax object to the order based on the shipping address.

In your case, since you’re using the Payment Links API, you won’t be able to capture the shipping address before creating the order. One workaround could be to create different payment links for each tax jurisdiction you support, and direct the customer to the appropriate link based on their shipping address. However, this would require you to capture the shipping address before creating the payment link.

In summary, the “auto\_apply\_taxes” option applies taxes based on the location of the order, not the shipping address. If you need to apply taxes based on the shipping address, you’ll need to manually calculate and apply the tax.

_This answer was reviewed by @Bryan-Square._

---

<div class="post-metadata">

**Author:** ![hannah](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hannah](https://developer.squareup.com/forums/u/hannah)\
**Post date:** [October 15, 2024, 5:42pm UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/4 "2024-10-15T17:42:37Z")

</div>

Hi @Bryan-Square -

Alternatively, if I create an order and then create a payment in my app instead of using payment links, can taxes be auto-calculated for the address? Or does this feature only work for websites created with Weebly?

Do all the configs in the Seller account settings relating to online sales only apply to Weebly websites? The orders I create through the payment links are automatically marked as online sales, so I thought some of the configs would apply.

I can handle all of this in my app, but I want to be able to clearly tell my clients what configs they need to set in our app and what needs to be set in Square.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 15, 2024, 7:08pm UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/5 "2024-10-15T19:08:05Z")

</div>

Currently, square doesn’t calculate taxes based on a given location. We use the tax object that are created in the Square account. 🙂

---

<div class="post-metadata">

**Author:** ![hannah](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hannah](https://developer.squareup.com/forums/u/hannah)\
**Post date:** [October 17, 2024, 3:01am UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/6 "2024-10-17T03:01:23Z")

</div>

@Bryan-Square isn’t this saying that it does?

 ![Screenshot 2024-10-16 at 10.55.43 PM](https://global.discourse-cdn.com/square/original/2X/3/3bfc45cb1c8d4f3156d858525e4bb322d234937e.png)

I thought this was saying that Square will reference your tax registrations to see if a destination address needs to have sales tax applied. I assumed this also meant that it will calculate the correct state and local taxes for the destination address. If this is calculating the location’s local taxes for all online shipment orders, then that is a serious issue. Could you clarify how this auto-calculation feature is supposed to work?

Regardless, for my application, I decided to add an address form to my checkout workflow so that we can calculate the taxes on our end, then send the calculated taxes with the order payload for the checkout link.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 17, 2024, 3:56pm UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/7 "2024-10-17T15:56:35Z")

</div>

I’d recommend reaching out to a tax professional on what taxes you can charge customers. The explanation of taxes for the online store is that we will set it based on you the sellers address. Not the customer. 🙂

---

<div class="post-metadata">

**Author:** ![hannah](https://avatars.discourse-cdn.com/v4/letter/h/f04885/32.png) [@hannah](https://developer.squareup.com/forums/u/hannah)\
**Post date:** [October 17, 2024, 5:32pm UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/8 "2024-10-17T17:32:10Z")

</div>

Hi @Bryan-Square, I may be misunderstanding, but that’s not what your documentation says for automatically generated tax rates: [Create and manage sales tax settings | Square Support Center - US](https://squareup.com/help/us/en/article/5061-create-and-manage-your-tax-settings)

> Automatically generated tax rates: The automatic tax calculator is used for shipping (and other distance orders) to apply the different necessary tax rates based on your tax registrations and the recipient’s address.

US sales tax for distance orders must charge taxes based on the destination address, if the seller has a nexus (or a “tax registration”) in that state. Your documentation seems to support this, so if this isn’t what is actually happening (even for regular Square online orders), this is a significant bug and is preventing your sellers from being compliant.

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [October 17, 2024, 6:31pm UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/9 "2024-10-17T18:31:44Z")

</div>

That’s for the Square Online Store. Unfortunately that functionality doesn’t extend to order created with our APIs. 🙂

---

<div class="post-metadata">

**Author:** ![akarei](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/akarei/32/10237_2.png) [@akarei](https://developer.squareup.com/forums/u/akarei)\
**Post date:** [November 7, 2026, 11:51am UTC](https://developer.squareup.com/forums/t/tax-calculation-for-online-orders/19149/10 "2026-11-07T11:51:36Z")

</div>

I tried to simulate the tax calculation with 3rd party data but it’s not consistent with square online store. Could you please share which data source this tax enrollment uses?
