POST
request to the tax_calculator_url
endpoint, sending the order payload (including its line items and their items) in the request body. To trigger the tax update, the order must be not archived and have the following attributes:shipping_address
or a valid billing_address
external_tax_calculator
associated with the market in scopetotal_amount_cent
tax_collectable
attribute is specified for a line item, its value is used to compute the tax_amount_cents
for the line item, no matter what's the value of the line item tax_rate
(if any).tax_collectable
attribute is a float
(e.g. "tax_collectable": 9.0
sets the line item tax_amount_cents
to 900).tax_collectable
is missing for a line item, the line item tax_amount_cents
is computed using the line item tax_rate
.tax_collectable
and tax_rate
are missing, the line item tax_amount_cents
is computed using the tax_rate
specified at the data
level. If the line items array is missing, that tax rate is applied to the whole order.orders
in the specific case — some relationships are also included to avoid useless API roundtrips:market
line_items
line_items.item
shipping_address
billing_address
400
. The response body must be a JSON object containing any other relevant error code and message:400
. The response body must be a JSON object containing any other relevant error code and message:400
. The response body must be a JSON object containing any other relevant error code and message: