Test modeDucat runs on Stripe's test mode for now, so no real card is charged.

Features

Tax On request

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.

What it does

Automatic tax

On checkout sessions, subscriptions and payment links, for prices marked inclusive or exclusive.

Addresses and tax IDs

Set a customer's address and VAT, GST or ABN numbers, validated as Stripe reports.

Preview a cart

The tax on a cart before anything is charged, line by line and by jurisdiction.

Registrations

List where your account collects tax (read-only; registrations are added in Stripe's dashboard).

Limits count tax

Standing limits and nods apply to what the customer pays, tax included.

In code

Preview the tax on a cart

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}]}'
Tax endpoints
EndpointWhat
POST /v1/tax/previews{customer, line_items}: the tax on a cart
PUT /v1/customers/{id}/addresswhere tax is worked out
POST | GET /v1/customers/{id}/tax-idsadd or list tax IDs
GET /v1/tax/registrationswhere the account collects tax

Good to know

On request Built; switched on for your team when you ask us.

Related: Customers, Invoices, FAQ: merchant of record

More features

Start building in test mode

Sign up, make a key, and take a test payment in a few minutes. No card needed.