Skip to content
Docs

Add an employee

POST/v1/companies/{companyId}/employees

Adds someone new, checked as Add employee checks them, and puts them on a payroll and its open run when you name one. Bank details are added in Paie.

Path

companyIdstringrequired

Its id, like cmp_Xq2b9Lr0aKsT.

Headers

Idempotency-Keystringrequired

A key you make for this change, like a UUID, up to 255 characters. Send the same key when you retry it: Paie answers what it answered the first time, for 24 hours, and does nothing again.

Body

payrollIdstring

Starts "pyr_". The payroll they join, and its open run. Left out, they join none yet.

firstNamestringrequired
middleInitialstring
lastNamestringrequired
trnstringrequired

Their TRN. Kept, and never answered in full.

nisNumberstring
birthdaydaterequired

YYYY-MM-DD.

genderstring

One of male, female, unspecified.

maritalStatusstring

One of single, married, common_law, divorced, widowed, separated.

emailstring
phonestring
addressobject
Show 6 fields
line1string
line2string
citystring
regionstring
postalCodestring
countrystring

ISO 3166: "JM".

jobTitlestringrequired
departmentIdstring

Starts "dep_".

categorystring

One of regular, casual, holiday_worker, part_time, pensioner, director, personal_services.

hiredOndaterequired

YYYY-MM-DD.

probationEndsOndate

YYYY-MM-DD.

payobjectrequired
Show 5 fields
salariedbooleanrequired
currencystring

One of JMD, USD.

perPeriodstring

Basic pay a period, if salaried.

perHourstring

Pay an hour, if paid by the hour.

standardHoursinteger

Their hours a period. Needed for pay by the hour.

paymentMethodstring

One of cash, cheque, lodgement.

residencystring

One of resident, non_resident.

Answer

idstring

Starts "emp_".

companyIdstring
numberinteger or null

The employer's own number.

firstNamestring
middleInitialstring or null
lastNamestring
statusstring

One of active, on_leave, suspended, terminated. Read any other value as "other".

statusSincedate or null

When the status took effect.

jobTitlestring
departmentobject or null
Show 2 fields
idstring

Starts "dep_".

namestring
hiredOndate

YYYY-MM-DD.

leftOndate or null

Their last day, once they've left.

payrollIdsarray of string

The payrolls they're on.

payobject
Show 4 fields
salariedboolean
currencystring

What they're paid in.

perPeriodmoney or null

An amount of money.

perHourmoney or null

An amount of money.

emailstring or null
phonestring or null

Refusals

400bad_requestThe request isn't right: the message says which part.
401unauthorizedNo key, a key Paie doesn't know, or one that was revoked.
403forbiddenThe key can't do this (its areas), or the workspace isn't in the API beta.
403plan_requiredThe workspace's plan has no API, or, for a change, none that changes things (Scale).
404not_foundNot there, or not a company this key reaches. The two read the same.
409idempotency_mismatchThis Idempotency-Key was sent before with a different request. Use a new key for a new request.
409in_progressA call with this Idempotency-Key is still running. Try again in a moment.
429rate_limitedOver the key's calls a minute, or the workspace's calls a day: wait the seconds Retry-After says.
500server_errorSomething went wrong at Paie. Send support the requestId.
Terminal window
curl -X POST https://api.paieday.com/v1/companies/cmp_Xq2b9Lr0aKsT/employees \
-H "Authorization: Bearer $PAIE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"payrollId": "pyr_51ka7cQ0ZtLm",
"firstName": "Andre",
"lastName": "Campbell",
"trn": "123456789",
"nisNumber": "1234567",
"birthday": "1995-04-02",
"gender": "male",
"maritalStatus": "single",
"email": "andre@example.com",
"phone": "876-555-0100",
"address": {
"line1": "1 Harbour Street",
"city": "Kingston",
"country": "JM"
},
"jobTitle": "Baker",
"departmentId": "dep_Ra4mW2c9QeLs",
"category": "regular",
"hiredOn": "2026-11-02",
"probationEndsOn": "2027-02-02",
"pay": {
"salaried": true,
"currency": "JMD",
"perPeriod": "195000.00",
"standardHours": 80
},
"paymentMethod": "lodgement",
"residency": "resident"
}'
Answer
{
"id": "emp_8f2k1xH3vNpa",
"companyId": "cmp_Xq2b9Lr0aKsT",
"number": 14,
"firstName": "Andre",
"middleInitial": null,
"lastName": "Campbell",
"status": "active",
"statusSince": "2026-10-25",
"jobTitle": "Baker",
"department": {
"id": "dep_Ra4mW2c9QeLs",
"name": "Blue Mahoe Trading Ltd"
},
"hiredOn": "2026-11-02",
"leftOn": "2026-10-25",
"payrollIds": [
"pyr_51ka7cQ0ZtLm"
],
"pay": {
"salaried": true,
"currency": "JMD",
"perPeriod": {
"amount": "184250.00",
"currency": "JMD"
},
"perHour": null
},
"email": "andre@example.com",
"phone": "876-555-0100"
}