Calculate Tax
Previews tax for a plan before checkout, based on the buyer’s location.
Authorizations
A company API key, company scoped JWT, app API key, or user OAuth token. You must prepend your key/token with the word 'Bearer', which will look like Bearer ***************************
Headers
A unique key that makes this request safe to retry. See Idempotent requests.
255"d9105228-4a08-46b1-8b91-42fed586d383"
Path Parameters
Plan ID, prefixed plan_.
Body
Buyer billing address used for tax calculation. Provide either address.country or ip_address; include state and postal code when available for more accurate results.
Buyer IP address used to infer location when no billing address is provided.
Optional buyer tax ID for B2B exemptions. At most one entry is supported.
1Response
tax calculated
Three-letter ISO 4217 currency code for the returned amounts.
Whether Whop calculated tax for this preview. not_calculated means no tax could be determined, so tax_amount is 0 and total equals subtotal.
calculated, not_calculated Plan price in the currency's smallest unit, for example cents. For exclusive tax, this is the pre-tax amount; for inclusive tax, it already includes tax and equals the total.
Calculated tax amount in the currency's smallest unit. For exclusive tax, this is added on top of the subtotal; for inclusive tax, it is the portion of the subtotal that is tax.
Whether tax is added on top of the plan price or already included in it for this buyer's location.
exclusive, inclusive Amount the buyer would pay in the currency's smallest unit.

