Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Update/remove tax when certain conditions are met

Solved

Update/remove tax when certain conditions are met

Turbofan1178
Shopify Partner
57 4 12

Is there an api for checkout ui extensions to update/remove tax from the total price of items in the cart when certain conditions are met?

Founder, WC: Invite To WhatsApp Channel
- Invite customers to join your WhatsApp channel with a single click
- Boost outreach message open rates
- Grow sales with direct outreach on WhatsApp channels
Accepted Solution (1)

djimi
Shopify Partner
3 1 6

This is an accepted solution.

 

Hey @Turbofan1178 

 

Currently, there isn't an API specifically for deducting taxes directly, but Shopify does offer a way to mark customers as tax-exempt. When this status is applied, taxes are automatically removed at checkout. For example, Sufio can capture and validate EU VAT numbers using the new Shopify checkout UI extension. If the VAT number is valid, the customer is marked as tax-exempt, and taxes are removed from the order.

 

I hope this gives you an alternative approach to achieve your goal.

 

Cheers!

View solution in original post

Replies 5 (5)

Liam
Community Manager
3108 344 899

Hi Turbofan1178,

 

I don't believe there is a specific API that allows you to directly update or remove tax from the total price of items in the cart when certain conditions are met.

 

You can create discounts or apply specific pricing rules based on certain conditions using the PriceRule object so you could explore using this alongside the TaxLine object

 

Hope this helps,

 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

Turbofan1178
Shopify Partner
57 4 12

Okay, I'll try that.

 

I've never really used these graphql apis in checkout ui extensions that add custom fields, please can you provide a link to docs/tutorials that explores using some of these apis?

 

Thanks.

Founder, WC: Invite To WhatsApp Channel
- Invite customers to join your WhatsApp channel with a single click
- Boost outreach message open rates
- Grow sales with direct outreach on WhatsApp channels

djimi
Shopify Partner
3 1 6

This is an accepted solution.

 

Hey @Turbofan1178 

 

Currently, there isn't an API specifically for deducting taxes directly, but Shopify does offer a way to mark customers as tax-exempt. When this status is applied, taxes are automatically removed at checkout. For example, Sufio can capture and validate EU VAT numbers using the new Shopify checkout UI extension. If the VAT number is valid, the customer is marked as tax-exempt, and taxes are removed from the order.

 

I hope this gives you an alternative approach to achieve your goal.

 

Cheers!

Turbofan1178
Shopify Partner
57 4 12

Thanks @djimi , this is going to be very helpful.

Founder, WC: Invite To WhatsApp Channel
- Invite customers to join your WhatsApp channel with a single click
- Boost outreach message open rates
- Grow sales with direct outreach on WhatsApp channels
MarcinK71
Visitor
3 0 0

This is interesting as this option doesn't work at all.

I have only a few customers in EU as my shop is in UK, where I need to remove VAT.  but this option doesn't do anything taxes are still added to the order and this makes huge mess in the system. Why such a simple feature is not handled properly?