Developer API

Automate your token gifting and balance tracking with our secure JSON API.

Authentication

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
POST /api/balance
Check Balance

Fetch real-time balances for both your Gifting and Reward wallets.

Implementation Examples
$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())
Success Response
{
  "gifting": "50,000.00",
  "reward": "15,200.00"
}
POST /api/gift-token
Gift Tokens

Send tokens to one or more recipients. If type is omitted, it defaults to standard.

Request Body
Field Type Description
phones * Array Array of recipient phone numbers.
token * Int Quantity of tokens to gift per phone.
Implementation Examples
$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'})
Response
{ "status": "gifting successful" }