# How to get a deposit address for a Сustomer

## Purse (address)

* Get deposit address for customer - GET **purse**
  * The address with deposits lives 12 months from the last confirmed incoming deposit. Each new deposit extends the term for another **12 months (+365 days)**, after this period it will expire, you will receive a webhook - **CUSTOMER\_PURSE\_EXPIRED**
  * If the deposit address has not been replenished for **30 days**, it will expire, you will receive a webhook - **CUSTOMER\_PURSE\_EXPIRED**

### Get purse request example:

<figure><img src="https://1242099714-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlF2vAHahCu7Gtgm1PkXe%2Fuploads%2Fj9m3lzpLnxDgc5caxaCr%2Fimage.png?alt=media&#x26;token=3a8f6066-49cd-4b90-aaba-0ff6e3805cc5" alt=""><figcaption></figcaption></figure>

**Example of the get purse request**:

* Pass the required parameters in the request - "**account**/**customerId**/**currency**".

**Example of the get purse response**:

* In response you will receive an address for deposits, and purseId (address id).

```json
{
  "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "address": "string"
}
```

**Purse statuses**

| Status           | Description                                                                                                    |
| ---------------- | -------------------------------------------------------------------------------------------------------------- |
| PENDING\_PAYMENT | The address is active for replenishment of the customer to which it is linked.                                 |
| ARCHIEVED        | The address is not active for replenishing this customer account.                                              |
| DECLINED         | The address is blocked due to receipt of illegal funds; using the address and replenishing it is not possible. |

### Get all purse for customer request example - [GET Customer Purses](https://docs.calypso.finance/api-reference/customer-purse-api#post-api-v1-customer-purse-purse-get-all):

**Example of the get all purse list request**:

* Pass the required parameters in the request - "account/timestamp/**customerId**".

```
{
  "account": "text",
  "timestamp": 1,
  "payload": {
    "customerId": "123e4567-e89b-12d3-a456-426614174000"
  }
}
```

**Example of the get all purse list response**:

* In response you will receive list of all active addresses for this customer.

```json
{
    "purses": [
        {
            "id": "52bc94ac-7bac-49f0-a476-ac64c6634381",
            "address": "0x8ab54579efb614b9c46fb36db6a753df2cd18d65",
            "currencies": [
                "USDT_POL",
                "FRAX",
                "USDC_POL",
                "BNB",
                "ETH",
                "USDT",
                "USDC",
                "POL",
                "DAI",
                "USDC_BSC",
                "USDT_BSC"
            ],
            "createdDate": "2024-08-29T08:49:58.570498"
        }
    ]
}
```
