Skip to main content
POST
Calculate gross to net values

Authorizations

X-Auth-Token
string
header
required

Access token obtained from OAuth2 client credentials flow

X-Org-Id
string
header
required

Organisation to scope the request to. Required when the principal can access more than one organisation; optional for single-organisation principals (the authorizer resolves it automatically).

Headers

Request-Id
string

Optional. Your id for this request: it is carried into every log line about it, so quote it when you contact support.

Body

application/json
taxCode
string
required

Tax code for the calculation

Example:

"1257L"

gross
number<decimal>

Gross amount to calculate from

grossForEmployeeNi
number<decimal> | null

Gross to use for the employee National Insurance calculation, when it differs from gross

Example:

2500

grossForEmployerNi
number<decimal> | null

Gross to use for the employer National Insurance calculation, when it differs from gross

Example:

2500

studentLoanPlan
enum<string>

Student loan plan type

Available options:
Plan1,
Plan2,
Plan4,
Plan5
postGradLoanPlan
boolean

Indicates if the employee has a postgraduate loan plan

calculationName
string

Name of the calculation formula to use

grossToDate
number<decimal>

Gross amount to date

period
integer<int32>

Period for the calculation

payFrequency
enum<string>

Unit of the period

Available options:
Annual,
Monthly,
FourWeekly,
Fortnightly,
Weekly,
Daily,
Quarterly,
BiAnnually
week1Month1
boolean

Indicates if the calculation is for Week 1/Month 1

niCategory
string

National Insurance category

Example:

"A"

taxToDate
number<decimal>

Tax amount to date

Example:

1000

netDeductions
number<decimal>

Deductions taken from net pay, after tax and National Insurance

Example:

50

Response

Calculation Complete

message
object
required

A readable message about the outcome and a stable token a client can branch on.

content
object

The data the request returns with its metadata; left out on a response that carries no data, such as most errors.

validationIssues
object[] | null

Each field the request was refused for and why; left out when the request was not refused for its fields.