Wooxy API v.3.0

Get Account Info

The Get Account Info method allows you to obtain information about the account whose token was used in the headers.

Important! The request body should be empty.

Request

POST
https://api.wooxy.com/v3/account/info

IMPORTANT: Do not send more than 10 concurrent API requests.

Body Example

                                        {}
                                    

Response

                                        {
   "result":            true,
   "accountName":       "AccountName",
   "accountBalance":    100.00 
}
                                    

Parameters

Title Type Description

result

boolean

Indicated that the query was successful:

  • true: The value indicates that the Account data was successfully fetched.

accountName

string

Your account name registered in the SmartSender system.

accountBalance

float

Current state of the account balance.

Method Errors

                                        {
  "errors": [
      "Error description text"
  ],
  "result": false
}
                                    
Error

“Invalid authorization token!”

“Internal server error”

“Bad Request”

“no matches found for access token {accessToken}”

“user {id} not enabled”

“no data found for key {userId}”

“access token check failed for key/secret $key/$accessToken”

“Argument {argument} required”

Code Examples

PHP
                $accessToken = "YOUR_API_KEY";
$url    = 'https://api.wooxy.com/v3/account/info';

/**
* Request Example
*/
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST");
curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
//curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_INFILESIZE, null);
curl_setopt($ch, CURLOPT_POSTFIELDS, '');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
    "Access-Token: $accessToken",
    'Content-Type: application/json',
    'Content-Length: ' . strlen(''),
]);

$result = curl_exec($ch);
if ($result === false) {
    echo 'cURL error:' . curl_error($ch) . PHP_EOL;
} else {
    echo strval($result) . PHP_EOL;
}
curl_close($ch);