Skip to main content

Account & Balance

Retrieve account information and balance.

Get Account Informationโ€‹

Retrieve complete account details and balance.

Endpoint: GET /api/account

Response:

{
"status": "success",
"message": "Account information retrieved",
"data": {
"user_id": 123,
"name": "John Doe",
"email": "john@example.com",
"balance": 5000.00,
"available_balance": 4500.00
}
}

Get Balanceโ€‹

Retrieve current balance only.

Endpoint: GET /api/balance

Response:

{
"status": "success",
"message": "Balance retrieved",
"data": {
"balance": 5000.00,
"available_balance": 4500.00
}
}

Code Examplesโ€‹

# Get full account info
curl -X GET "https://gateway.wasmou.net/api/account" \
-H "X-Api-Key: your_api_key_here"

# Get balance only
curl -X GET "https://gateway.wasmou.net/api/balance" \
-H "X-Api-Key: your_api_key_here"

Balance Notesโ€‹

  • balance: Total account balance
  • available_balance: Balance available for orders (excluding pending orders)
  • All amounts are in DZD
  • Balance is automatically refunded if an order fails

Try It Liveโ€‹

Test this endpoint directly in your browser using our Live Testing tool.