What can we expect from tax calculation on "Draft Orders"?

What can we expect from tax calculation on "Draft Orders"?

domramirez
Shopify Partner
3 0 0

What's the current best practice for calculating tax through a draft order [which is created via API]?

The documentation on creating draft orders says we should receive a 202 response after creating a draft order via API with some information to help with polling, then we can check up on that draft order to see if it the tax calculation is complete, at which point we will receive a 200 response.

HOWEVER, when we currently create a draft order, we receive a 201 response, and the content of the response actually already has tax_lines on it with appropriate state/county/city taxes applied.

So what's the best practice here? Can we count on receiving those tax_lines and a 201 response these days or should we just plan to add polling [which is not preferable].

Replies 0 (0)