Cryptocurrency Deposits

In order to enable cryptocurrency deposits, the following steps must be taken:

  1. Create an account for the user if one does not already exist
  2. Create an address for the user if one does not already exist
  3. Create endpoints to listen for new deposit events

Create an Account

Endpoint
account

Method
POST

Data Params
bank_id: The id for the bank this account should belong to.
account: The username for the account.
external_id (optional): The id for the user on the external system.
external_url (optional): The url for the user on the external system.
email: The email address for the user.

Success Response
code: 200
data:

{
    "bank_id": "1",
    "account": "user",
    "external_id": "1",
    "external_url": "http:\/\/example.com\/user\/1",
    "email": "[email protected]",
    "user_id": 1,
    "updated_at": "2017-09-27 19:14:13",
    "created_at": "2017-09-27 19:14:13",
    "id": 11792
}

Create an Address

Endpoint
address/new/{wallet_id}/{account_id}

Method
GET

Success Response
code: 200
data:

{
    "id": 4,
    "user_id": 1,
    "wallet_id": 1,
    "account_id": 227,
    "address": "1N3pEzyyg9YUV45berDLqUrPV5hHrZbiQs",
    "type": "deposit",
    "created_at": "2016-02-15 22:56:01",
    "updated_at": "2016-02-15 22:56:01",
    "deleted_at": null
}

Create Notification Endpoints

In order to receive notifications about incoming deposits, there must be notification endpoints created to handle these callbacks. See Notification Callbacks for details on these endpoints.