Calculate product price including tax
Return an indicative price for an offer including the tax that applies to a customer in the given country. Intended for storefront display (e.g. showing gross prices on a product page). The result is a **quote**, not a settled charge: the authoritative tax is always recomputed at checkout from full billing details. Amounts are returned in the smallest currency unit (e.g. 1099 = 10.99 in a 2-decimal currency). For business (B2B) buyers, pass customerType=company with taxId + taxNumber. The VAT-ID is checked against the EU VIES registry, and the quote matches what checkout will charge: a verified EU VAT-ID on a cross-border sale returns 0% (reverse charge); anything else — including a verified VAT-ID from the seller entity's own country, where domestic VAT is due — returns the standard destination rate. vatVerification and reverseChargeApplied tell you which happened and why.
Authorization
Public key In: header
Request Body
application/json
POST /v0/tax/calculate Request body
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/v0/tax/calculate" \ -H "Content-Type: application/json" \ -d '{ "offerId": "550e8400-e29b-41d4-a716-446655440000", "country": "PL" }'{ "status": "success", "data": { "object": "tax_calculation", "offerId": "42da58f8-9040-4cf5-98ce-bce9965cca0d", "quantity": -9007199254740991, "currency": "AFN", "customerType": "individual", "taxBehavior": "exclusive", "amountSubtotal": -1.7976931348623157e+308, "amountTax": -1.7976931348623157e+308, "amountTotal": -1.7976931348623157e+308, "reverseChargeEligible": true, "reverseChargeApplied": true, "vatVerification": { "status": "VERIFIED", "reason": "string" }, "taxBreakdown": [ { "taxType": null, "country": null, "state": null, "percentage": null, "amount": -1.7976931348623157e+308, "inclusive": true } ] }}Create Payment Method Session POST
Create a short-lived session that lets this Subscription's customer update their payment method through the embeddable update element, without your page ever touching card data. Call it from your backend, then hand only the sessionToken to the embed script on your page — the secret key must never reach the browser. The token works only for this one Subscription and expires 15 minutes after it is minted; it is also retired as soon as an update completes, though a browser that never reports back leaves it usable until it expires — the 15 minutes is the guarantee. Mint a fresh token per attempt rather than storing one. Minting is rate-limited per Subscription; exceeding the limit returns 429. The Subscription must be in a state whose payment method can still be used for a future charge (active, trialing, past_due, unpaid or paused); other states return 400. Returns 403 when the embedded payment-method update feature is not enabled for your workspace.
List and filter Users GET
Retrieve a paginated list of Users with powerful filtering options. Results are sorted by creation date (newest first) by default. Note: Timestamps can be provided in either seconds or milliseconds since Unix epoch.