Tax
Calculate tax
Quotes the tax on an offer for a buyer’s location and, for a company, its tax number. Nothing is written.
Authorization
bearer charges:readAuthorizationBearer <token>
A v1 API key; the scope named is the one the route needs.
In: header
Scope: charges:read
Header Parameters
Idempotency-Key?string
Names the act so a retry under it lands on the stored answer (idempotency-key).
Length
1 <= length <= 255Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
curl -X POST "https://example.com/v1/tax-calculations" \ -H "Content-Type: application/json" \ -d '{ "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d", "country": "string" }'{ "liveMode": true, "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d", "quantity": 1, "customerType": "string", "taxBehavior": "inclusive", "subtotal": { "amount": -9007199254740991, "currency": "string" }, "tax": { "amount": -9007199254740991, "currency": "string" }, "total": { "amount": -9007199254740991, "currency": "string" }, "reverseChargeEligible": true, "reverseChargeApplied": true, "taxNumberCheck": { "status": "string", "reason": "string" }, "breakdown": [ { "country": "string", "region": "string", "taxType": "string", "taxRatePercent": "string", "taxBehavior": "inclusive", "taxable": { "amount": -9007199254740991, "currency": "string" }, "tax": { "amount": -9007199254740991, "currency": "string" } } ]}Create a tag POST
Creates a tag. A name a live tag holds is refused with that tag.
Make a test purchase POST
Buys a published checkout in test mode with a test card, end to end: the order, its tax and its invoice, and the buyer’s receipt. Takes a test-mode key with `test-helpers:write`, a scope only a test-mode key can hold.