Get Account Info
Get your TxTRIA account details
POST
https://txtria.net/api/accountinfo
Query Parameter
Key | Description | Required | Example |
---|---|---|---|
sys_id | Your TxTRIA sys_id | Yes | ACfc98e7b0aae031b9h... |
auth_token | Your TxTRIA account token | Yes | c74eac89884a126a2c... |
$url = 'https://txtria.net/api/accountinfo';
$data = array(
'sys_id' => 'ACfc98e7b0aae031b9fa',
'auth_token' => 'c74eac89884a126a2cca'
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
Example Response
{
"success": "1",
"data": {
"account_status": "active",
"account_type": "Trial",
"account_balance": "10.0030",
"account_join": "2014-03-17 12:23:01",
"account_last_login": "2024-11-05 10:21:39",
"account_last_payment": "20.0000",
"account_last_payment_date": "2024-11-05 10:21:39",
"account_last_charge": "0.0003",
"account_last_transaction_type": "sms_outbound",
"account_last_transaction_date": "2024-11-05 10:21:39"
}
}