List the payslips of a pay run
const url = 'https://api.usepayloom.com/api/v1/pay_runs/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/payslips?limit=25';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/payslips?limit=25' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Query Parameters
Section titled “Query Parameters”The next_cursor from the previous page.
Responses
Section titled “Responses”OK
object
object
object
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
object
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
object
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
object
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
object
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
The amount actually paid, in the payment currency (may differ from the calculation currency).
object
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
object
object
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
object
Integer amount in the currency’s minor unit. 50000 GHS = 500.00.
The effective-dated statutory row this line was priced against.
Example
{ "object": "list", "data": [ { "object": "payslip", "gross": { "currency": "GHS" }, "net": { "currency": "GHS" }, "employee_deductions": { "currency": "GHS" }, "employer_cost": { "currency": "GHS" }, "tax": { "currency": "GHS" }, "payment": { "currency": "GHS" }, "line_items": [ { "kind": "earning", "amount": { "currency": "GHS" }, "base": { "currency": "GHS" } } ] } ]}Missing, invalid, revoked or expired key.
object
object
object
Example
{ "error": { "code": "missing_token" }}The key is valid but lacks the required scope.
object
object
object
Example
{ "error": { "code": "missing_token" }}No such resource in this organization.
object
object
object
Example
{ "error": { "code": "missing_token" }}