Skip to content

Manage beneficiaries

What you can change, retrieving, listing and deleting beneficiaries, and their statements.

What you can change, and what you cannot

PUThttps://api.wajub.com/beneficiaries/{id}

The update accepts five fields, and the destination is not among them.

FieldEditable
name, email, country_code, metadataYes
phoneYes, as a contact detail only
channel, account_number, the payout destinationNo

Retrieving one

GEThttps://api.wajub.com/beneficiaries/{id}

The same object creation returned, read back by its id. Use it to check a payee is still active before a payout, and remember it still will not tell you the number the money goes to.

curl https://api.wajub.com/beneficiaries/ben_7Kq2mX9vL4tRb3nP8sZc \
  -H "Authorization: sk.xxxxxxxxxxxxxxxx…"

A 404 covers three different situations without distinguishing them: the id does not exist, it belongs to another account, or it belongs to the other environment. A ben_test_ id read with a live key is the common one.

Listing them

GEThttps://api.wajub.com/beneficiaries

Results come back newest first, twenty-five at a time unless you raise per_page, which caps at 100. The envelope is items and meta, and passing cursor switches the pagination mode and the shape of meta with it, the same way it does on transfers.

Response · 200 OK
{
"code": 200,
"status": "OK",
"message": "Beneficiaries retrieved",
"items": [
{
"id": "ben_7Kq2mX9vL4tRb3nP8sZc",
"name": "Amina Traoré",
"type": "standard",
"is_active": true
}
],
"meta": {
"current_page": 1,
"per_page": 25,
"total": 1
}
}

search matches the name, the email, the phone and the id.

is_active filters on the flag. type is the filter worth understanding.

TypeCreated byVerified
standardYour own API callsOn creation, except on a Relay account
privilegedYou, in the Dashboard, as a payout accountOnly once you verify it there

The list returns standard only unless you ask otherwise, and that default is deliberate. A privileged beneficiary can sit unverified, and a live payout to an unverified destination is refused with This beneficiary payment method has not been verified yet and cannot receive live payouts. Pass type=privileged or type=all when you genuinely want to see them.

Your own beneficiaries are marked verified the moment they are created, because the merchant vouches for its own payees. That is what makes a standard beneficiary payable straight away. On a Relay account, the seller's wallet is first matched against the name its operator holds, and Paying sellers covers that case.

Statements and debts

Three more routes hang off a beneficiary.

RouteWhat it does
GET /beneficiaries/{id}/statementEverything paid to them over a period of up to a year, split into paid, in progress and failed
POST /beneficiaries/{id}/receivablesRecord what they owe you back after a refund. GET on the same path lists those debts
POST /beneficiaries/{id}/receivables/{receivable}/settleMark a debt as recovered outside Wajub

A recorded debt sends beneficiary.receivable_recorded. With netting on for your account, the next batch payout to that beneficiary is reduced by it and sends beneficiary.receivable_recovered. Paying sellers walks through both.

Deleting one

DELETEhttps://api.wajub.com/beneficiaries/{id}

The answer is 200. The record stops appearing in lists and can no longer be paid, while transfers that already went to it keep pointing at it, so your history stays readable: their beneficiary carries deleted: true, and GET /beneficiaries/{id}/statement still answers for it.

There is no restore on the API. Creating the same destination again gives you a new beneficiary with a new id, not the old one back.

What did you think of this content?