Add an employee
/v1/companies/{companyId}/employeesAdds 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
Its id, like cmp_Xq2b9Lr0aKsT.
Headers
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
Starts "pyr_". The payroll they join, and its open run. Left out, they join none yet.
Their TRN. Kept, and never answered in full.
YYYY-MM-DD.
One of male, female, unspecified.
One of single, married, common_law, divorced, widowed, separated.
Show 6 fields
ISO 3166: "JM".
Starts "dep_".
One of regular, casual, holiday_worker, part_time, pensioner, director, personal_services.
YYYY-MM-DD.
YYYY-MM-DD.
Show 5 fields
One of JMD, USD.
Basic pay a period, if salaried.
Pay an hour, if paid by the hour.
Their hours a period. Needed for pay by the hour.
One of cash, cheque, lodgement.
One of resident, non_resident.
Answer
Starts "emp_".
The employer's own number.
One of active, on_leave, suspended, terminated. Read any other value as "other".
When the status took effect.
Show 2 fields
Starts "dep_".
YYYY-MM-DD.
Their last day, once they've left.
The payrolls they're on.
Show 4 fields
What they're paid in.
An amount of money.
An amount of money.
Refusals
400 | bad_request | The request isn't right: the message says which part. |
401 | unauthorized | No key, a key Paie doesn't know, or one that was revoked. |
403 | forbidden | The key can't do this (its areas), or the workspace isn't in the API beta. |
403 | plan_required | The workspace's plan has no API, or, for a change, none that changes things (Scale). |
404 | not_found | Not there, or not a company this key reaches. The two read the same. |
409 | idempotency_mismatch | This Idempotency-Key was sent before with a different request. Use a new key for a new request. |
409 | in_progress | A call with this Idempotency-Key is still running. Try again in a moment. |
429 | rate_limited | Over the key's calls a minute, or the workspace's calls a day: wait the seconds Retry-After says. |
500 | server_error | Something went wrong at Paie. Send support the requestId. |
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"}'const res = await fetch("https://api.paieday.com/v1/companies/cmp_Xq2b9Lr0aKsT/employees", { method: "POST", headers: { Authorization: `Bearer ${process.env.PAIE_API_KEY}`, "Idempotency-Key": crypto.randomUUID(), "Content-Type": "application/json", }, body: JSON.stringify({ "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" }),});const body = await res.json();import os, uuid, requests
res = requests.post( "https://api.paieday.com/v1/companies/cmp_Xq2b9Lr0aKsT/employees", headers={ "Authorization": f"Bearer {os.environ['PAIE_API_KEY']}", "Idempotency-Key": str(uuid.uuid4()), }, json={ "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" },)body = res.json(){ "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"}{ "error": { "code": "bad_request", "message": "The request isn't right: the message says which part.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "unauthorized", "message": "No key, a key Paie doesn't know, or one that was revoked.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "forbidden", "message": "The key can't do this (its areas), or the workspace isn't in the API beta.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "not_found", "message": "Not there, or not a company this key reaches. The two read the same.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "idempotency_mismatch", "message": "This Idempotency-Key was sent before with a different request. Use a new key for a new request.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "rate_limited", "message": "Over the key's calls a minute, or the workspace's calls a day: wait the seconds Retry-After says.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}{ "error": { "code": "server_error", "message": "Something went wrong at Paie. Send support the requestId.", "requestId": "req_3fVq9xY0bLm2pQ7a" }}