Skip to content

Wallet balances ​

Your wallet holds one balance per currency. Purchases are paid from it and commission is paid into it.

One currency ​

This is the call to use before a purchase or on a dashboard.

GET /api/v1/wallet/{currency}

bash
curl https://app.xash.co.zw/api/v1/wallet/USD \
  -H "Authorization: Bearer YOUR_SERVER_TOKEN"
json
{
  "success": true,
  "message": "Wallet retrieved successfully",
  "commission_release_date": "2026-11-23T04:30:00+02:00",
  "data": {
    "currency": "USD",
    "name": "US Dollar",
    "profit_on_hold": "0.230",
    "balance": "43.50"
  }
}
FieldDescription
data.balanceWhat you can spend now, as a string with two decimals and thousands separators ("1,250.00"). Money held by a purchase that is still being confirmed is already taken out.
data.profit_on_holdCommission you have earned that has not been released into balance yet.
commission_release_dateWhen the next commission release is due.

Send a currency you actually hold

An unknown currency code does not answer 404. It answers 200 with a zero balance. Use the codes returned by the list below.

All currencies ​

GET /api/v1/wallet

Returns one row per currency your account has a balance record for. The rows are the raw balance records, so the field names differ from the single-currency call above.

json
{
  "success": true,
  "message": "Wallet retrieved successfully",
  "commission_release_date": "2026-11-23T04:30:00+02:00",
  "data": [
    {
      "id": 7001,
      "payable_type": "App\\Models\\Profile",
      "payable_id": "263770000001",
      "value": "43.5",
      "value_pending": "0.23",
      "value_on_hold": "0",
      "value_profit": 0,
      "currency": "USD"
    }
  ]
}
FieldDescription
currencyThe currency code. Use it in other requests exactly as written here.
valueWhat you can spend now. Same amount as balance above, unformatted.
value_pendingCommission earned but not released. Same as profit_on_hold.
value_on_holdNon-zero while purchases are held waiting for a final outcome.
id, payable_type, payable_id, value_profitInternal. Ignore them.

A new account may return an empty list until its first deposit.

Commission ​

Most purchases earn a commission. It is shown in each purchase response as commission (for example "USD0.06"), collects in profit_on_hold, and is moved into your spendable balance on the release date. See Commission overview.

Adding money ​

See Adding funds.