Skip to main content

Authentication

All API requests require authentication using your API Key and a signature generated from your API Secret.

Getting Your Credentials

  1. Login to your Reseller Dashboard
  2. Go to Settings → API Keys
  3. Copy your API Key and API Secret
Never share your API Secret publicly. Keep it server-side only. If compromised, regenerate it immediately from your dashboard.

Signature Generation

Every request must include a sign parameter. The signature is an MD5 hash of your credentials combined with a request-specific key.

Formula

sign = MD5(api_key + api_secret + ref_id)
  • For balance check: ref_id = "balance"
  • For price list: ref_id = "pricelist"
  • For transactions: ref_id = your unique reference ID

Examples

const crypto = require('crypto');

const apiKey = 'your-api-key';
const apiSecret = 'your-api-secret';
const refId = 'your-unique-ref-id';

const sign = crypto
  .createHash('md5')
  .update(apiKey + apiSecret + refId)
  .digest('hex');

Request Headers

All requests must include:
Content-Type: application/json

Request Body

Every request body must contain:
FieldTypeRequiredDescription
api_keystringYesYour API key from the dashboard
signstringYesMD5 signature (see above)

IP Whitelisting (Optional)

For additional security, you can whitelist specific IP addresses in your dashboard. Only requests from whitelisted IPs will be accepted.