Skip to main content
POST
Create tax quote
Quote the tax of the first payment of a Stripe Billing subscription, for the customer’s billing address and, for a business, its tax ID. The quote uses Stripe Tax with the registrations of your Stripe account. See Local price and taxes.
Enabled per organizationTax collection is enabled per organization and needs your Stripe Billing onboarding with Stripe Tax active. Contact your Key Account Manager (KAM) to enable it.
  • Quote again every time the country, the postal code or the tax ID changes. A quote is valid for 30 minutes.
  • The postal code is required for the United States and Canada. Other countries only need the country.
  • Charge total and send each line of the quote in the payment’s additional_data.order.taxes with source: YUNO_TAX_QUOTE and the tax_quote_id (tax_base is the line’s taxable_amount). After the payment is approved, Yuno creates the subscription in Stripe with the same tax on its first invoice.
  • status is NO_TAX when no tax applies (no_tax_reason tells why, for example REVERSE_CHARGE for a business with a valid tax ID, or NOT_SUBJECT_TO_TAX where your Stripe account has no registration).

Headers

PUBLIC-API-KEY
string
required

Your public API key.

PRIVATE-SECRET-KEY
string

Your private secret key, when you quote from your backend. Never expose it client-side.

X-Account-Code
string

The account the quote is for.

Body

application/json
address
object
required

Where the subscription is consumed.

account_id
string

Required with a secret key and must be the authenticated account. Optional with a public key, where it must match the checkout session.

checkout_session
string

Required with a public key: the checkout session with tax_collection, whose external_subscription is quoted. Not allowed with a secret key.

country
string

Optional. With a public key it must match the checkout session.

external_subscription
object

Required with a secret key, not allowed with a public key. The subscription to quote.

tax_information
object

Optional. The buyer's tax ID, used for business treatment such as reverse charge and saved on the Stripe customer with the subscription.

Response

Tax quote

tax_quote_id
string
status
enum<string>
Available options:
TAX_APPLIED,
NO_TAX,
NOT_CALCULATED
no_tax_reason
enum<string>
Available options:
REVERSE_CHARGE,
NOT_COLLECTING,
EXEMPT,
ZERO_RATED,
NOT_SUBJECT_TO_TAX,
OTHER
currency
string
subtotal
number
tax
number
total
number
lines
object[]