Automate your token gifting and balance tracking with our secure JSON API.
All API requests must include your unique Merchant API Key in the HTTP headers. Secure your key; it provides full access to your gifting wallet.
Header: X-API-KEY: YOUR_SECRET_API_KEY
Fetch real-time balances for both your Gifting and Reward wallets.
$client = new \GuzzleHttp\Client();
$res = $client->post('https://account.tisasng.com/api/balance', [
'headers' => ['X-API-KEY' => 'your_key_here']
]);
echo $res->getBody();
const axios = require('axios');
axios.post('https://account.tisasng.com/api/balance', {}, {
headers: { 'X-API-KEY': 'your_key_here' }
}).then(r => console.log(r.data));
import requests
res = requests.post('https://account.tisasng.com/api/balance',
headers={'X-API-KEY': 'your_key_here'})
print(res.json())
{
"gifting": "50,000.00",
"reward": "15,200.00"
}
Send tokens to one or more recipients. If type is omitted, it defaults to standard.
| Field | Type | Description |
|---|---|---|
phones * |
Array | Array of recipient phone numbers. |
token * |
Int | Quantity of tokens to gift per phone. |
$client = new \GuzzleHttp\Client();
$res = $client->post('https://account.tisasng.com/api/gift-token', [
'headers' => ['X-API-KEY' => 'your_key_here'],
'json' => [
'phones' => ['08012345678'],
'token' => 10
]
]);
const axios = require('axios');
axios.post('https://account.tisasng.com/api/gift-token', {
phones: ["08012345678"],
token: 10
}, {
headers: { 'X-API-KEY': 'your_key_here' }
});
import requests
payload = {"phones": ["08012345678"], "token": 10}
res = requests.post('https://account.tisasng.com/api/gift-token',
json=payload, headers={'X-API-KEY': 'your_key_here'})
{ "status": "gifting successful" }