Calculate Tax
Previews tax for a plan before checkout, based on the buyer's location.
Headers
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Example request
{
"address": {
"country": "DE",
"postal_code": "10115"
}
}Response
tax calculated
Example response
{
"currency": "usd",
"status": "calculated",
"subtotal": 1000,
"tax_amount": 70,
"tax_behavior": "exclusive",
"total": 1070
}Changes
Changed in 3 of the 44 revisions of this API.6
- ○
added the non-success response with the status
409response-non-success-status-added
- ○
- ○
added the optional property
error/codeto the response with the400statusresponse-optional-property-added
- ○
added the optional property
error/codeto the response with the401statusresponse-optional-property-added
- ○
added the optional property
error/codeto the response with the403statusresponse-optional-property-added
- ○
added the optional property
error/codeto the response with the404statusresponse-optional-property-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the new optional
headerrequest parameterIdempotency-Keynew-optional-request-parameter
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
Of the 44 revisions, 1 has no diff computed.