Skip to content
Docs

Get a company

GET/v1/companies/{companyId}

One company: its name, TRN (masked), NIS number, currency and address.

Path

companyIdstringrequired

Its id, like cmp_Xq2b9Lr0aKsT.

Answer

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".

Refusals

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.
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 https://api.paieday.com/v1/companies/cmp_Xq2b9Lr0aKsT \
-H "Authorization: Bearer $PAIE_API_KEY"
Answer
{
"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"
}
}