Account Balance
Request Body
Name
Type
Description
{
"result": integer, // The result code indicates the success or failure of the request.
"message": string, // A message providing additional information about the result.
"data": object array // An array of objects containing the balances for each currency. Each key is the currency symbol, and its value is the corresponding amount in that currency.
}Example codes
curl -X POST https://api.oxapay.com/api/balance \
-d 'key=YOUR_PAYOUT_API_KEY'<?php
$url = 'https://api.oxapay.com/api/balance';
$data = array(
'key' => 'YOUR_PAYOUT_API_KEY'
);
$options = array(
'http' => array(
'header' => 'Content-Type: application/json',
'method' => 'POST',
'content' => json_encode($data),
),
);
$context = stream_context_create($options);
$response = file_get_contents($url, false, $context);
$result = json_decode($response);
var_dump($result);
?>Last updated