Skip to main content
Query the tax rules that apply to a checkout session and, once enough billing information is available, get the calculated tax amount. This endpoint is designed for progressive collection: only billingDetail.country is required. The response tells you which additional fields that country needs via rules.requiredFields, so the checkout form can ask for them one step at a time instead of demanding everything upfront.
Authentication: Store Slug (visitor role)
This endpoint is called by the hosted checkout page as the customer fills in their billing details. If you are building your own checkout UI, call it whenever the customer’s country or business status changes.

Request Body

billingDetail

Only country is required. Which of the remaining fields you need to collect is decided by the response, not by a fixed rule per country — see rules.requiredFields.

Response

rules

requiredFields

Each entry describes one field the checkout form should collect next: When requiredFields is empty, calculation is populated.

calculation

Amounts are display-format strings, matching the rest of the API. taxRate is a decimal (0.19 = 19%).

Examples

More information needed — the form should now ask for state:
Ready to calculate:

Errors