# Digital Payment

Create a receiver account for paying a Digital CAD Payment

## Create a New Digital Receiver Account

<mark style="color:orange;">`POST`</mark> `/api/receiver-account/cad/digital`

**Headers**

| Name        | Value     |
| ----------- | --------- |
| `x-api-key` | `<token>` |
| `signature` | `<token>` |

**Body**

| Name                                            | Type   | Description                                |
| ----------------------------------------------- | ------ | ------------------------------------------ |
| `receiver_id`<mark style="color:red;">\*</mark> | string | Receiver ID of receiver account.           |
| `recipient`<mark style="color:red;">\*</mark>   | email  | Email address of recipient.                |
| `name`<mark style="color:red;">\*</mark>        | string | Name of recipient.                         |
| `description`                                   | string | Optional description for receiver account. |

&#x20;<mark style="color:red;">\*</mark> is mandatory parameter

#### Example body request

```json
{
    "receiver_id": "a2bb66db-7067-44a2-8067-1393b682bc75",
    "recipient": "johndoe@email.com",
    "name": "John Doe Inc."
}
```

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
    "message": "Receiver account created successfully",
    "payload": {
        "receiver_account_id": "c7ded40b-1524-49f4-ae3f-ee974cbe6fdd",
        "receiver_id": "a2bb66db-7067-44a2-8067-1393b682bc75",
        "status": "pending",
        "confirm_status": "unconfirmed"
    }
}
```

{% endtab %}

{% tab title="400" %}

```json
{
    "message": "There was an error while creating a receiver account",
    "error": [
        {
            "code": "REAC211",
            "message": "Receiver ID is not valid"
        }
    ]
}
```

{% endtab %}
{% endtabs %}
