Skip to main content
POST

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-MultiTenantKey
string

Required when using a Platform API token. The tenant key identifying which business to operate on.

Body

application/json
personId
string
required

ID of the Cadana person to calculate taxes for. The person's address determines the jurisdiction, and their stored compensation and tax profile provide calculation inputs.

version
string

Pin the calculation to a specific tax ruleset version, for example v2.1.0. Omit to use the current ruleset. An unknown, malformed or non-pinnable version is rejected with a 400 rather than silently falling back.

Example:

"v2.1.0"

salary
object
bonus
object

Bonus amount for the period, included in gross and taxable income.

overtime
object

Overtime amount for the period.

allowances
object[]

Allowance line items (e.g. housing, meal stipends). Each carries a name, isTaxable, and amount. Pass isTaxable explicitly — when omitted it defaults to false, meaning the allowance counts toward gross pay but not taxable income.

deductions
object[]

Voluntary (non-statutory) deduction line items to apply. Items with isStatutory: true are ignored — statutory items like income tax and social security are computed by the engine.

payPeriod
object

The dates the salary covers. If omitted, this defaults to a full calendar month.

payPeriodFrequency
enum<string>
default:monthly

The pay period frequency. If omitted, this defaults to monthly.

Available options:
monthly,
semi-monthly,
bi-weekly,
weekly,
daily
additionalAttributes
object

Country-specific calculation inputs (e.g. ytdSalary, riskCategory). Use GET /v1/tax/fields?country={code} to discover what each jurisdiction accepts. Numeric fields are expressed in major currency units — e.g. India's hraReceived, rentPaid, declared80c, and annualBaseSalary are whole rupees — unlike amount objects, which use the lowest denomination.

Response

Calculate taxes response

personId
string
required

ID of the person taxes were calculated for

grossAmount
object
required
netAmount
object
required
deductions
object[]
required
employerContributions
object[]
required
rulesetVersion
string

The pinned ruleset version this result was computed against. Returned only when the request pinned a version.

Example:

"v2.1.0"

allowances
object[]

Imputed-income line items (e.g. benefits-in-kind) surfaced by the country engine. Omitted when none apply.

summary
object