# Identity verification

> Check a payout destination before money leaves, from an IBAN's checksum to the name the operator holds for a wallet.

Identity checks verify a payout destination before money leaves: that it is well-formed and that it
belongs to the person you think. None of them blocks anything on its own; your code decides what to
do with the answer.

## Three questions, three calls

| You want to know                                                         | Call                                                                                             | In live                                            |
| ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | -------------------------------------------------- |
| [Whether an IBAN is well-formed](https://docs.wajub.com/risk/identity/iban)                    | [`POST /identity/validate`](https://docs.wajub.com/api/identity#validate-an-iban)                                      | Yes, the same in both environments                 |
| [Which channel a mobile number belongs to](https://docs.wajub.com/risk/identity/mobile-number) | [`POST /identity/resolve`](https://docs.wajub.com/api/identity#resolve-a-mobile-number)                                | No, sandbox only                                   |
| [Whose name a wallet is registered under](https://docs.wajub.com/risk/identity/wallet-name)    | [`POST /beneficiaries/{id}/verify`](https://docs.wajub.com/payouts/beneficiaries/create#checking-the-name-on-a-wallet) | Yes, on `cm.mtn`, `cm.orange`, `cm.eu` and `wajub` |

The two Identity calls are synchronous and have no side effect: nothing is created, nothing is
charged. The wallet check runs on a beneficiary you have already saved.

> [!WARNING]
> **Before the first call**
>
> Identity needs a secret key (`sk.`) or a restricted key carrying `identity.write`, and the
> Growth, Scale or Enterprise plan. On Pay as you go both calls answer `403` and ask you to
> upgrade. Sent for a connected account with Sync, they need the connection's `withdrawals`
> capability, the one payouts need.

- [Identity API reference](https://docs.wajub.com/api/identity): Both calls, every field, every message.
- [Create a beneficiary](https://docs.wajub.com/payouts/beneficiaries/create): Save a destination once it is checked.
- [Shield](https://docs.wajub.com/risk/shield): What Shield scores on the money coming in.
- [Transfers](https://docs.wajub.com/payouts/transfers): Send to the destination you checked.
