Retrieve an employee
GET
/employees/{id}
const url = 'https://api.usepayloom.com/api/v1/employees/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.usepayloom.com/api/v1/employees/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “Responses”OK
Media typeapplication/json
Statutory inputs (tax profile, household composition, birthdate) and PII (tax identifier, phone, bank details) are deliberately not exposed.
object
id
string format: uuid
object
string
staff_id
Your own identifier for this person.
string
full_name
Derived from first_name, middle_name, last_name and suffix. The name printed on payslips and carried in bank payment files; the honorific is not included.
string
title
Honorific (Mr
string
first_name
string
middle_name
string
last_name
Null only on a legacy one-word name.
string
suffix
Jr., III, PhD … Part of the legal name.
string
classification
string
jurisdiction
string
denomination_currency
string
payment_currency
string
start_date
string format: date
end_date
string format: date
archived
boolean
department
string
position
string
location
string
created_at
string format: date-time
updated_at
string format: date-time
Example
{ "object": "employee", "classification": "employee", "jurisdiction": "GH"}Missing, invalid, revoked or expired key.
Media typeapplication/json
object
error
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "missing_token" }}The key is valid but lacks the required scope.
Media typeapplication/json
object
error
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "missing_token" }}No such resource in this organization.
Media typeapplication/json
object
error
object
code
required
string
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "missing_token" }}