# Create a beneficiary

> Save a destination once: the channel that picks the operator, another Wajub account, and the name on a wallet.

`POST /beneficiaries`

- `channel` (string, required): The channel of the operator that serves the number, such as `cm.mtn` or `ke.mpesa`. In Cameroon only, `cm.mobile` lets the number decide: see below.
- `name` (string, required): The payee, as it should appear on the payout. Also used as the account holder name.
- `phone` (string): The number that receives the money. Required unless you send `account_number`. The field is `phone`, not `phone_number`.
- `account_number` (string): The destination, when it is not a phone number. One of the two is required, and `phone` fills this in when you omit it.
- `email` (string): Contact address for the payee. Not used to send anything today.
- `country_code` (string): Two letters. Defaults to the first two of the channel slug, so `cm.mtn` gives `CM`.
- `note` (string): Free text for your own reference, up to 1 000 characters.
- `metadata` (object): Your own key and value pairs, returned unchanged on every read.

Send it with the secret key. Beneficiary creation carries a tighter rate limit than the rest of the
API.

**Save a beneficiary**

```bash
curl https://api.wajub.com/beneficiaries \
  -H "Authorization: sk.xxxxxxxxxxxxxxxx…" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: beneficiary-amina" \
  -d '{
    "channel": "cm.mtn",
    "name": "Amina Traoré",
    "phone": "+237670000000"
  }'
```

```javascript
const beneficiary = await wajub.beneficiaries.create({
  channel: 'cm.mtn',
  name: 'Amina Traoré',
  phone: '+237670000000',
});

console.log(beneficiary.id);
```

```python
beneficiary = wajub.beneficiaries.create({
    "channel": "cm.mtn",
    "name": "Amina Traoré",
    "phone": "+237670000000",
})

print(beneficiary.id)
```

```php
$beneficiary = $wajub->beneficiaries->create([
  'channel' => 'cm.mtn',
  'name' => 'Amina Traoré',
  'phone' => '+237670000000',
]);

echo $beneficiary->id;
```

```go
beneficiary, err := client.Beneficiaries.Create(context.Background(), map[string]any{
	"channel": "cm.mtn",
	"name": "Amina Traoré",
	"phone": "+237670000000",
}, nil)
```

The answer is `201 Created`. The `id` is what every payout takes, prefixed `ben_` in live and
`ben_test_` in sandbox, so the two environments can never be confused for one another.

```json title="Response · 201 Created"
{
  "code": 201,
  "status": "Created",
  "message": "Beneficiary created successfully",
  "beneficiary": {
    "id": "ben_7Kq2mX9vL4tRb3nP8sZc",
    "name": "Amina Traoré",
    "phone": "+237670000000",
    "country_code": "CM",
    "note": "Retainer, paid on the 1st",
    "sandbox": false,
    "is_active": true,
    "type": "standard",
    "verified": true,
    "payment_method": {
      "id": "pm_4Dw8kR2xN6vQ",
      "type": "mobile_money",
      "name": "MTN Mobile Money"
    },
    "created_at": "2026-09-11T14:00:00+00:00",
    "updated_at": "2026-09-11T14:00:00+00:00"
  }
}
```

> [!NOTE]
> **The destination is not in the response**
>
> `payment_method` carries an id, a type and a label, never the number the money goes to. Nothing on
> the API reads a beneficiary's destination back, so if you need to show a payee where their money
> is being sent, keep your own copy at creation time.

> [!NOTE]
> **In sandbox, test numbers only**
>
> A sandbox beneficiary must already carry a test number when you create it: anything else answers
> `422` on `phone` and `account_number` with `Invalid sandbox test number. Use a Mobile Money test
>   number, e.g. +237670000000 (success), +237670000001 (insufficient funds), +237670000002 (failure),
>   +237670000003 (timeout), +237670000004 (canceled).` Load real numbers in live only. The test
> numbers of every operator are on [Test scenarios](https://docs.wajub.com/developer-tools/testing/test-scenarios).

## The channel decides the operator

Name the operator's channel: `ke.mpesa`, `eg.vodafone`, `cm.mtn`, `cm.orange`. Cameroon is the one
exception: when you hold a Cameroonian number but not its operator, pass `cm.mobile`, and the
operator, `cm.mtn` or `cm.orange`, is worked out from the number itself. No other country has a generic channel: `ke.mobile` or any other `{country}.mobile` is refused as an
unknown channel.

That resolution can fail, and it fails loudly rather than picking one at random.

```json title="Response · 422 when the number matches no operator"
{
  "code": 422,
  "status": "Unprocessable Content",
  "message": "Could not determine operator from phone number for cm.mobile. Use a valid number of that country or specify the channel explicitly (e.g. cm.mtn, cm.orange). (and 1 more error)",
  "errors": {
    "channel": ["Could not determine operator from phone number for cm.mobile. Use a valid number of that country or specify the channel explicitly (e.g. cm.mtn, cm.orange)."],
    "phone": ["Could not determine operator from this phone number for cm.mobile."]
  }
}
```

If you already know the operator, name it. `cm.mobile` is there for the case where you hold a
Cameroonian number and nothing else.

> [!CAUTION]
> **The same destination twice returns the first one**
>
> Creation is keyed on the destination, not on what you send with it. If an active beneficiary
> already exists for that number on that channel, the call returns that one unchanged, with the same
> `201 Created` and the same success message as a real creation. The `name`, `email` and `note` you
> just sent are discarded. Read the `id` that comes back rather than assuming it is new, and never
> treat a `201` here as proof that a fresh record was written.

## Paying another Wajub account

When the person you pay already has a Wajub account, use the `wajub` channel and their 11-digit
account number. The money goes from your balance to theirs, with nothing to wait for.

```json title="A beneficiary on another Wajub account"
{
  "name": "Boutique Ada",
  "channel": "wajub",
  "account_number": "12345678901"
}
```

The account has to exist, it cannot be your own, and it cannot be an account Wajub has frozen:
each is refused with `422` when you create the beneficiary, and a payout to an account frozen since
then fails on its own. Paying it is an ordinary transfer, with the same limits and the same statuses;
it simply succeeds at once, and it is **free**.

> [!NOTE]
> **In sandbox**
>
> A sandbox payout on this channel always succeeds: the test scenarios do not apply to it, so a
> failure on this channel can only be seen in live. The recipient's sandbox balance is never
> credited. Only live moves money between accounts.

## Checking the name on a wallet

`POST /beneficiaries/{id}/verify`

The call takes no body. It asks the operator whose name the wallet is registered under and compares
it with the name you declared.

On your own beneficiaries the answer is information. The beneficiary stays payable whatever comes
back, the call answers `200`, and `registered_name` carries the name the operator holds when it
matches, so you can show it to whoever is about to send the money. On a mismatch it carries only
its initials, `P*** N***`: the check confirms a payee, it does not tell who holds a number.

| `verification`       | What happened                                                                                                                           | `registered_name`              |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
| `verified`           | The operator's name matches the one you declared                                                                                        | Present                        |
| `name_mismatch`      | The operator holds the number under another name                                                                                        | Its initials only, `P*** N***` |
| `lookup_unavailable` | The operator could not be asked: it offers no lookup on this channel, it did not answer, or it does not know the number                 | Absent                         |
| `not_found`          | The beneficiary has no payout destination to check. The call answers `422` with `This beneficiary has no payout destination to verify.` | Absent                         |

```json title="Response · 200 when the operator holds another name"
{
  "code": 200,
  "status": "OK",
  "message": "The operator holds this number under another name. The beneficiary can still be paid.",
  "verification": "name_mismatch",
  "registered_name": "P*** N***",
  "beneficiary": {
    "id": "ben_7Kq2mX9vL4tRb3nP8sZc",
    "name": "Amina Traoré",
    "verified": true,
    "verification": "name_mismatch"
  }
}
```

The operators that answer today are MTN, Orange Money and Express Union in Cameroon, `cm.mtn`,
`cm.orange` and `cm.eu`, and a Wajub account, `wajub`. Every other channel returns
`lookup_unavailable`.

The beneficiary keeps the last outcome: `verification` carries it on every read, and is absent
until a check has run. `verified` is a different thing. It says whether Wajub will pay the
beneficiary in live mode, and here a `name_mismatch` does not change it. One exception: a beneficiary
left unverified, a seller the operator could not confirm while your account was on Relay for
instance, becomes payable when the names match, and is then paid under the name the operator holds.
A mismatch or an operator that cannot answer leaves it unpayable.

> [!NOTE]
> **In sandbox, the test number decides**
>
> No operator is asked from sandbox: the beneficiary's test number says what it would hold. On
> `cm.mtn`, `cm.orange` and `cm.eu`, a number ending in `000000` holds the name you declared
> (`verified`), one ending in `000002` another name (`name_mismatch`), and any other test number
> answers `lookup_unavailable`. See [Test scenarios](https://docs.wajub.com/developer-tools/testing/test-scenarios#name-check).

The call has a ceiling of its own, whatever your plan: 10 checks a minute and 200 a day per account
in live, 10 a minute in sandbox. Past it the answer is `429`. It is meant for your own payees,
checked as you add them, not for looking numbers up in bulk.

> [!NOTE]
> **Where the check decides instead of informing**
>
> On a Relay account, and on any account Wajub has set to require it, the same call is a gate. A
> beneficiary already verified is returned as it is, anything other than `verified` answers `422`,
> the beneficiary stays unpayable, and `registered_name` is not returned. In sandbox there is no
> operator to ask, so a beneficiary on such an account is created verified and the call answers
> `verified`: your handling of a `name_mismatch` can only be exercised in live. A payout account you
> added in the Dashboard is never verified by this call, on any account: verify it there.

- [Manage beneficiaries](https://docs.wajub.com/payouts/beneficiaries/manage): Change, list and delete them.
- [Providers & channels](https://docs.wajub.com/payouts/transfers/providers): The channels a payout can go to.
