Skip to main content
A beneficiary is a saved recipient you can pay again without re-entering their details. PeerPesa supports three beneficiary types: bank_account and phone_number (mobile money) for fiat payouts through offramps and withdrawals, and wallet_address for crypto sends. Create a beneficiary once, then reference its id as beneficiary_id.

Beneficiary types

The beneficiary object

string
Unique identifier, for example ben_3m7q2c.
string
bank_account, phone_number, or wallet_address.
string
Recipient’s full name or a label for the wallet.
string | null
ISO 3166-1 alpha-2 country code, for example KE. null for wallet_address.
string | null
Payout currency: KES, TZS, NGN, ZAR, or ZMW. null for wallet_address.
object
Recipient details for the beneficiary type.
string
ISO 8601 creation timestamp.

POST /beneficiaries

Creates a beneficiary.
string
required
bank_account, phone_number, or wallet_address.
string
required
Recipient’s full name, or a label for a wallet.
string
ISO 3166-1 alpha-2 country code. Required for bank_account and phone_number.
string
Payout currency. Required for bank_account and phone_number, and must be supported for the country.
object
Required when type is bank_account.
object
Required when type is phone_number.
object
Required when type is wallet_address.
cURL
Crypto sent to a wrong address or network cannot be reversed. Double-check wallet_address and network, and include the memo when the destination requires one.

GET /beneficiaries

Lists beneficiaries, newest first. Supports all pagination and filter parameters.
integer
default:"1"
Page number to return, starting at 1.
integer
default:"20"
Results per page, up to 100. limit is accepted as an alias.
string
Filter by beneficiary type: bank_account, phone_number, or wallet_address. Comma-separate to match several.
Matches name, phone number, account number, bank name, and wallet address. Minimum 2 characters.
string
Only include beneficiaries created on or after this date (YYYY-MM-DD or ISO 8601).
string
Only include beneficiaries created on or before this date (YYYY-MM-DD or ISO 8601).
string
Filter by ISO country code, for example KE.
string
Filter by payout currency, for example KES.
string
Filter wallet_address beneficiaries by network: stellar, celo, or btc.
string
default:"created_at"
created_at or name.
string
default:"desc"
desc or asc.
Response

GET /beneficiaries/{id}

Retrieves one beneficiary. Returns 404 with code not_found if the ID does not exist.
cURL

DELETE /beneficiaries/{id}

Deletes a beneficiary. Returns 204 No Content on success. Past transactions to this beneficiary are not affected.
cURL

Errors