Manage beneficiaries
What you can change, retrieving, listing and deleting beneficiaries, and their statements.
What you can change, and what you cannot
https://api.wajub.com/beneficiaries/{id}The update accepts five fields, and the destination is not among them.
| Field | Editable |
|---|---|
name, email, country_code, metadata | Yes |
phone | Yes, as a contact detail only |
channel, account_number, the payout destination | No |
Changing phone does not change where the money goes
The destination is fixed on the payment method attached when the beneficiary was created, and
nothing on the API touches it afterwards. Updating phone rewrites the contact number on the
record while the payout keeps going to the original one, with no warning and no difference in the
response. To pay a different number, create a second beneficiary and use its id.
Retrieving one
https://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
https://api.wajub.com/beneficiariesResults 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.
search matches the name, the email, the phone and the id.
is_active filters on the flag. type is the filter worth understanding.
| Type | Created by | Verified |
|---|---|---|
standard | Your own API calls | On creation, except on a Relay account |
privileged | You, in the Dashboard, as a payout account | Only 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.
| Route | What it does |
|---|---|
GET /beneficiaries/{id}/statement | Everything paid to them over a period of up to a year, split into paid, in progress and failed |
POST /beneficiaries/{id}/receivables | Record what they owe you back after a refund. GET on the same path lists those debts |
POST /beneficiaries/{id}/receivables/{receivable}/settle | Mark 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
https://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.