How to get a purse

Get a deposit address

To get an address for deposits use the following endpoint: customer (POST https://api.calypso.finance/api/v1/customer-purse/address/get)

You can find the detailed description of all the parameters in the documentation:

Get Customer Purse Address

Here we consider the most important ones.

To get an address for deposits in a specific currency, you need to pass this parameter in the request:

  • account (required) - your product/service account id.
  • timestamp (required) - Current unix UTC timestamp in milliseconds. Must not be less than 3 minutes in the past and not greater than 3 minutes in the future
  • payload (required) - Request data for get a deposit address
    • customerId (required)
    • currency (required)

So to get a depost address, you just have to send request:

curl --request POST \
     --url https://api.calypso.finance/api/v1/customer-purse/address/get \
     --header 'accept: */*' \
     --header 'content-type: application/json' \
     --data '
{
  "account": "string",
  "timestamp": 0,
  "payload": {
    "customerId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "currency": "string"
  }
}
'

If the address is successfully given, you receive the response:

{
  "address": "string"
}

If a deposit address has not received any deposits within 30 days of its receipt, it will expired.

  • And you will receive a webhook - CUSTOMER_PURSE_EXPIRED