How to activate a sub-user wallet address

Introduction

Users’ wallet addresses are created on demand, the reason is to avoid creating wallet addresses merchants don’t plan to support, this is why merchants would have to activate individual wallet addresses.

Activating a wallet for your sub-users.

After you have created a sub-user you would need to call the Fetch Payment address endpoint.

Request:

curl --request GET \
     --url https://www.quidax.com/api/v1/users/<user_id>/wallets/<currency>/address \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer <api_key>'

📘

Generating wallet address.

You would need to call the API endpoint twice, the first API call would generate the wallet address, the second API call would fetch the wallet generated.

Response:

{
  "status": "success",
  "message": "Successful",
  "data": {
    "id": "4ogybn3w",
    "reference": null,
    "currency": "btc",
    "address": null,
    "destination_tag": null,
    "total_payments": "0.0",
    "created_at": "2021-10-30T14:30:33.000+01:00",
    "updated_at": "2021-10-30T14:31:24.000+01:00"
  }
}