List companies
GET
/v1/companiesThe companies this key reaches, in id order.
Query
limitinteger
How many to answer, 1 to 100. 50 when left out.
cursorstring
The nextCursor of the page before.
Answer
dataarray of object
Show 6 fields
idstring
Starts "cmp_". The same for the company for life.
namestring
trnstring or null
Its TRN with all but the last three digits hidden: "•••-•••-789".
nisNumberstring or null
Its NIS employer number.
currencystring
What it pays in: "JMD".
addressobject
Show 6 fields
line1string or null
line2string or null
citystring or null
regionstring or null
postalCodestring or null
countrystring or null
ISO 3166: "JM".
nextCursorstring or null
Send as cursor for the next page. Null on the last.
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). |
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 https://api.paieday.com/v1/companies \ -H "Authorization: Bearer $PAIE_API_KEY"const res = await fetch("https://api.paieday.com/v1/companies", { headers: { Authorization: `Bearer ${process.env.PAIE_API_KEY}` },});const body = await res.json();import os, requests
res = requests.get( "https://api.paieday.com/v1/companies", headers={"Authorization": f"Bearer {os.environ['PAIE_API_KEY']}"},)body = res.json(){ "data": [ { "id": "cmp_Xq2b9Lr0aKsT", "name": "Blue Mahoe Trading Ltd", "trn": "•••-•••-412", "nisNumber": "1234567", "currency": "JMD", "address": { "line1": "1 Harbour Street", "line2": null, "city": "Kingston", "region": null, "postalCode": null, "country": "JM" } } ], "nextCursor": null}{ "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": "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" }}