Development discussions around Shopify APIs
Hello there,
I'm trying to update taxes once the order is created via API without success. I would appreciate if some one can tell me if this is feasible and if it is please point me in the right direction. I've tried to send:
- just the tax_lines
- tax_lines and total_tax
- tax_lines, total_tax and total_tax_set
Always receive a 200 response but the taxes don't get updated.
I know that some order's attributes are not writable after an order is created but I don't see any documentation that specifies if the taxes are read-only when updating an order.
Reference: https://shopify.dev/docs/admin-api/rest/reference/orders/order?api[version]=2020-04#update-2020-04
Solved! Go to the solution
This is an accepted solution.
Hi @andisadiazsa ,
No, you can only use the Order Editing API for adding a new variant line item, adding a new custom line item, removing a line item, or adjusting line item quantities. You cannot use it to change the value of taxes calculated on the order.
Taxes on the order will be calculated by Shopify based on the taxes settings you have set-up on your store's admin, or it will be calculated by a tax service you may be integrated with (e.g. Avalara AvaTax)
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
This is an accepted solution.
Hi @andisadiazsa ,
No, you can only use the Order Editing API for adding a new variant line item, adding a new custom line item, removing a line item, or adjusting line item quantities. You cannot use it to change the value of taxes calculated on the order.
Taxes on the order will be calculated by Shopify based on the taxes settings you have set-up on your store's admin, or it will be calculated by a tax service you may be integrated with (e.g. Avalara AvaTax)
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
@andisadiazsa I was curious if you found any solution to your original question. I know there is a Tax Services API that Shopify used to make available. It still exists and is probably how AvaTax makes their API calls and returns the tax rates into the cart. I am working on an app that does something similar and am hoping Shopify will allow this API to be accessed in my app.
Did you find any other workaround?
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023