For discussing the development and usage of Checkout UI extensions, post-purchase extensions, web pixels, Customer Accounts UI extensions, and POS UI extensions
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?
Solved! Go to the solution
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!
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
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.
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!
Thanks @djimi , this is going to be very helpful.
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?