Configuration
Default country, inclusive/exclusive pricing, and registering customer tax IDs for exemption.
No product-category taxonomy
There is no standard/digital_services/reduced/exempt category system — the rate is
resolved purely from country (and optionally a specific tax_code) on each /tax/calculate
call, not from a per-product category you configure ahead of time.
Team settings
enabledbooleanoptionalinclusivebooleanoptionaldefault_countrystringoptionaltax_id_typestringrequiredregistration_numberstringrequiredcurl -X PUT https://api.wajub.com/tax/settings \
-H "Authorization: sk.xxxx" \
-d '{
"enabled": true,
"inclusive": false,
"default_country": "CM",
"tax_id_type": "VAT",
"registration_number": "CM-0001234"
}'Customer exemptions
A B2B customer with a valid, registered tax ID can be exempt (reverse charge). Register their tax ID first, separately from any specific payment:
curl https://api.wajub.com/customers/cus_01JXXXXXXXXXXXXX/tax_ids \
-H "Authorization: sk.xxxx" \
-d '{ "type": "VAT", "value": "CM-123456789", "country_code": "CM" }'Once registered, calling /tax/calculate with that customer's customer_id automatically
applies the exemption (customer_exempt: true in the response) — there is no inline
ad-hoc customer: {tax_id, business} shorthand on the calculate call itself.
Automatic rate updates
Legal rates are maintained by Wajub. A regulatory change is applied without any action on your part; notable changes appear in the Changelog.
Was this page helpful?