Retrieve a pay run
GET
/pay_runs/{id}
const url = 'https://api.usepayloom.com/api/v1/pay_runs/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/pay_runs/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
object
id
string format: uuid
object
string
status
Lifecycle is draft → (calculating →) calculated → approved → paid;
volume runs price in the background and read calculating
meanwhile. A paid run is
immutable; later corrections arrive as retro adjustments on the next
open run rather than by rewriting history.
string
jurisdiction
string
currency
string
period_start
string format: date
period_end
string format: date
pay_date
string format: date
as_of_date
The date whose statutory rules priced this run.
string format: date
payslip_count
integer
totals
object
gross
object
amount_minor
required
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
integer
currency
required
string
net
object
amount_minor
required
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
integer
currency
required
string
employee_deductions
object
amount_minor
required
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
integer
currency
required
string
employer_cost
Sits ON TOP of gross — do not add it into gross.
object
amount_minor
required
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
integer
currency
required
string
approved_at
string format: date-time
paid_at
string format: date-time
created_at
string format: date-time
updated_at
string format: date-time
Example
{ "object": "pay_run", "status": "draft", "totals": { "gross": { "currency": "GHS" }, "net": { "currency": "GHS" }, "employee_deductions": { "currency": "GHS" }, "employer_cost": { "currency": "GHS" } }}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" }}