Development discussions around Shopify APIs
When I create an order without tax_lines, but with a shipping_address (including country code and province_code), there is no tax in the created order.
Can the tax be auto-calculated based on the Shopify Admin setting?
You can use the Draft Order Endpoint if you want Shopify to calculate the tax on your behalf - it would calculate tax based on the customer address and the items.
You could then complete the Draft Order, which would convert it to an actual order.
I've also noticed the Draft Order API documentation has a mistake (I'll follow up internally about that as an aside) but here are the calls to complete a Draft Order to mark as paid/or pending. Hope that helps!
Complete and mark as paid
Complete and mark as pending
Hope this helps!
That's make sense.
Thanks for your reply.
We're excited to announce improvements to the threaded messaging experience in our communi...By TyW May 31, 2023
Thank you to everyone who participated in our AMA with Klaviyo. It was great to see so man...By Jacqui May 30, 2023
Photo by Marco Verch Sales channels on Shopify are various platforms where you can sell...By Ollie May 25, 2023