Returns all bank transfer payments for the specified employer, including
past (received) and upcoming (outstanding) payments. Use the status
field to distinguish between them.
GET
/employers/{employerId}/payments
curl \
--request GET 'https://partner-api.getpenfold.com/v1/employers/{employerId}/payments' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"payments": [
{
"id": "p1a2b3c4-d5e6-7890-abcd-ef1234567890",
"status": "Outstanding",
"createdAt": "2025-03-15T10:00:00Z",
"amountPence": 850000,
"payPeriodEnd": "2025-03-31",
"payPeriodStart": "2025-03-01",
"paymentReference": "M25030112345678-ZG"
},
{
"id": "p2b3c4d5-e6f7-8901-bcde-f12345678902",
"status": "Received",
"createdAt": "2025-02-15T10:00:00Z",
"amountPence": 920000,
"payPeriodEnd": "2025-02-28",
"payPeriodStart": "2025-02-01",
"paymentReference": "M25020112345678-AB"
}
]
}
Response examples (401)
{
"error": "unauthorized"
}
Response examples (404)
{
"error": "not found"
}
Response examples (500)
{
"error": "internal server error"
}