Skip to main content
GET
/
beneficiaries
/
all
List all beneficiaries (admin)
curl --request GET \
  --url https://prod-api.pcxpay.com/v1/beneficiaries/all \
  --header 'Authorization: <authorization>' \
  --header 'X-Api-Key: <x-api-key>'
{
  "data": [
    {
      "beneficiary_id": "<string>",
      "account_type": "bank",
      "beneficiary_of": "<string>",
      "beneficiary_type": "loan_client",
      "country": "<string>",
      "currency": "<string>",
      "fname": "<string>",
      "lname": "<string>",
      "email": "<string>",
      "phone_number": "<string>",
      "momo_details": {},
      "bank_details": {},
      "loan_client_details": {},
      "external_account_id": "<string>",
      "created_at": "<string>",
      "updated_at": "<string>"
    }
  ],
  "meta": {
    "count": 123,
    "last_evaluated_key": "<string>",
    "page": 123,
    "limit": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.pcxpay.com/llms.txt

Use this file to discover all available pages before exploring further.

Headers

Authorization
string
default:NONE
required

Bearer JWT for user-facing flows (Bearer eyJraWQ...), or the literal string NONE when authenticating via API key.

Example:

"Bearer eyJraWQ..."

X-Api-Key
string
default:NONE
required

API key for server-to-server flows, or the literal string NONE when authenticating via JWT.

Example:

"pcx_abc123_xxxx"

Query Parameters

limit
integer
default:10
page
integer
default:1

Page number. Ignored when last_evaluated_key is provided.

last_evaluated_key
string

DynamoDB cursor token from a previous response. Takes precedence over page.

Response

Full beneficiary list

data
object[]
meta
object