Automatic tax
On checkout sessions, subscriptions and payment links, for prices marked inclusive or exclusive.
Test modeDucat runs on Stripe's test mode for now, so no real card is charged.
Features
With tax on for your team, Stripe Tax works out the tax on your checkouts, subscriptions (and so their invoices) and payment links from your customer's address. Ducat is not a merchant of record: you owe the tax on your own sales, and Stripe Tax helps you collect it.
On checkout sessions, subscriptions and payment links, for prices marked inclusive or exclusive.
Set a customer's address and VAT, GST or ABN numbers, validated as Stripe reports.
The tax on a cart before anything is charged, line by line and by jurisdiction.
List where your account collects tax (read-only; registrations are added in Stripe's dashboard).
Standing limits and nods apply to what the customer pays, tax included.
TypeScript
// ducat(): the small fetch helper from the quickstart (/docs/quickstart)
const preview = await ducat("POST", "/v1/tax/previews", {
customer: customerId,
line_items: [{ price: priceId, quantity: 3 }],
});Python
# ducat(): the small helper from the quickstart (/docs/quickstart)
preview = ducat("POST", "/v1/tax/previews", {
"customer": customer_id,
"line_items": [{"price": price_id, "quantity": 3}],
})curl
curl -s https://api.ducatpay.dev/v1/tax/previews \
-H "authorization: Bearer $DUCAT_TOKEN" \
-H "content-type: application/json" \
-d '{"customer": "cus_…", "line_items": [{"price": "price_…", "quantity": 3}]}'| Endpoint | What |
|---|---|
POST /v1/tax/previews | {customer, line_items}: the tax on a cart |
PUT /v1/customers/{id}/address | where tax is worked out |
POST | GET /v1/customers/{id}/tax-ids | add or list tax IDs |
GET /v1/tax/registrations | where the account collects tax |
On request Built; switched on for your team when you ask us.
Related: Customers, Invoices, FAQ: merchant of record
Sign up, make a key, and take a test payment in a few minutes. No card needed.