Skip to content

Tax

Configure tax settings, look up rates and codes, manage registrations and thresholds, and calculate tax on a transaction.

GEThttps://api.wajub.com/tax/settings

The Tax API lets you enable and configure tax collection for your team, look up standard rates and codes by country, register in tax jurisdictions, and calculate tax before charging a customer. When tax_enabled is true, tax is calculated and recorded automatically on every transaction — the tax field is included in payment and refund responses.

Key endpoints

MethodEndpointDescription
GET/tax/settingsView current tax configuration
PUT/tax/settingsUpdate tax configuration
GET/tax/ratesList standard tax rates by country
POST/tax/calculateCalculate tax for a given amount/country
GET/tax/reportsTax collected, by period
GET/tax/codesList tax codes
GET/tax/codes/{code}Retrieve a tax code
GET/tax/registrationsList your tax registrations
POST/tax/registrationsAdd a tax registration
GET/tax/registrations/{id}Retrieve a tax registration
PUT/tax/registrations/{id}Update a tax registration
DELETE/tax/registrations/{id}Remove a tax registration
GET/tax/jurisdictionsList supported tax jurisdictions
GET/tax/thresholdsList registration thresholds by country
GET/tax/thresholds/alertsThresholds you're approaching or exceeding

Customer-level tax IDs are managed separately, under the customer resource:

MethodEndpointDescription
GET/customers/{customer_id}/tax_idsList a customer's tax IDs
POST/customers/{customer_id}/tax_idsAdd a tax ID
DELETE/customers/{customer_id}/tax_ids/{id}Remove a tax ID

Authentication

Tax requires a private key (sk.…) — public keys cannot access this resource. See Authentication.

GEThttps://api.wajub.com/tax/settings
Request
curl https://api.wajub.com/tax/settings \
-H "Authorization: sk.xxxxxxxxxxxxxxxxxxxxxxxx"
Response · 200 OK
Response
{
"code": 200,
"status": "OK",
"settings": {
  "tax_enabled": false,
  "tax_inclusive": false,
  "default_country": "CM",
  "tax_id_type": null,
  "registration_number": null
}
}

Was this page helpful?