Wallet

This section of the API provides access to wallet information, including balances in various currencies. It enables users to retrieve wallet details associated with their account.

Retrieve Wallet Information

GET https://domain.xash.co.zw/api/v1/wallet

This endpoint retrieves the wallet information of the authenticated user. The response includes details such as the phone number associated with the wallet, the activation status of the wallet, and the balances of different currencies held in the wallet.

Headers

Name
Type
Description

Authorization

String

A valid bearer token is required for authentication.

{
  "message": "Wallet retrieved successfully",
  "data": {
    "profile_phone": "string",
    "is_active": "boolean",
    "balances": [
      {
        "ticker": "string",
        "name": "string",
        "balance": "number"
      },
      ...
    ]
  }
}
var axios = require("axios").default;

var options = {
  method: 'GET',
  url: 'https://domain.xash.co.zw/api/v1/wallet',
  headers: {
    Authorization: 'Bearer [YourAccessToken]'
  }
};

axios.request(options).then(function (response) {
  console.log(response.data);
}).catch(function (error) {
  console.error(error);
});

Last updated