# How to create a Customer

### Customers

* Create a customer - POST **customer**
* Update or add details to a client - POST **update**

<br>

<figure><img src="https://1242099714-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlF2vAHahCu7Gtgm1PkXe%2Fuploads%2FFM5mxeVSygatdcxv7mN2%2Fimage.png?alt=media&#x26;token=938b10e3-fb3f-4ec9-b4a5-1c6fc987729d" alt=""><figcaption></figcaption></figure>

#### Create customer request example

**Example of the create customer request**:

Pass your account ID as a parameter - "**account**".

#### **Example of the create customer response**:

```json
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "email": "string",
  "description": "string",
  "externalId": "string",
  "blocked": true
}
```

The following options are also available to you:

* Block customer - POST **block**\
  Allows you to transfer the client to the "blocked" status.\
  The client's addresses remain active for receipts.\
  The merchant can receive funds to blocked addresses, but receives a notification via webhook that these are receipts from a blocked user. - **CUSTOMER\_PURSE\_FUNDS\_RECEIVED\_FOR\_PURSE** ("blocked": true)

  **Funds received at the blocked client's addresses:**

  * Are credited to the merchant's account.
  * The merchant is notified by webhook with transaction details and the client's status ("blocked").
  * The decision on further distribution of funds remains with the merchant and his agreement with the client.
* Unblock customer - POST **unblock**\
  Allows the merchant to restore the client to an active state.\
  Once unblocked, the client can continue to use their addresses without restrictions.

### **Block/unblock customer request example**

<figure><img src="https://1242099714-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlF2vAHahCu7Gtgm1PkXe%2Fuploads%2F1VwPNR8Bx6lXTgBLVHd8%2Fimage.png?alt=media&#x26;token=98d9808f-e4e2-471b-aa04-70868047c5fd" alt=""><figcaption></figcaption></figure>

#### **Example of the block customer request**:

Pass your account ID as a parameter - "**account**","**customerId**".

**Example of the block customer response**:

```json
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "email": "string",
  "description": "string",
  "externalId": "string",
  "blocked": true
}
```
