API Documentation

Bigpay Exchange API Integration Guide for Resellers

Getting Started

Quick Setup: Login → API Settings → Enter your Exchange Recharge credentials → Test Connection → Start recharging!
  1. Sign up on Bigpay Exchange to get your API credentials
  2. Login to your API Settings page
  3. Enter your API Username (registered mobile number) and API Token
  4. Click "Test Connection" to verify your credentials
  5. Set up your Callback URL for real-time status updates
  6. Start processing recharges from the Recharge Terminal

Authentication

All API requests require two authentication parameters:

ParameterDescription
usernameYour registered mobile number with Bigpay Exchange
api_tokenYour API token (available in your Bigpay Exchange dashboard)
Security: Never share your API token. Keep it confidential. Regenerate if compromised.

Recharge API

GET
https://www.exchangerecharge.com/webservices/api/recharge?username=[username]&api_token=[api_token]&number=[number]&amount=[amount]&operator=[operator_code]&ref_id=[your_ref_id]
Request Parameters
ParameterTypeRequiredDescription
usernameStringYesYour registered mobile number
api_tokenStringYesYour API authentication token
numberStringYesMobile number or subscriber ID to recharge
amountIntegerYesRecharge amount in INR
operatorStringYesOperator code (see Operator Codes)
ref_idStringYesYour unique reference ID for tracking (must be unique per request)
Success Response
{
    "status": "Success",
    "number": "9876543210",
    "amount": "199",
    "operator": "JIO",
    "ref_id": "RCH20260819001",
    "txn_id": "EXR123456789",
    "opt_id": "OPT987654321",
    "margin_amount": "4.50",
    "message": "Recharge successful",
    "balance": "5420.00"
}
Response Parameters
ParameterDescription
statusTransaction status: Success, Failure, Pending, Refunded, Error
numberMobile number that was recharged
amountRecharge amount
operatorOperator code
ref_idYour reference ID
txn_idBigpay Exchange transaction ID
opt_idOperator transaction ID
margin_amountCommission earned on this transaction
balanceYour remaining wallet balance
messageAdditional message from the API

Callback URL (Webhook)

Set your callback URL in API Settings. Exchange Recharge will send real-time status updates to this URL.

GET [YOUR_CALLBACK_URL]?number=&amount=&txnId=&refId=&status=&operatorId=&operatorCode=&balance=&margin_amount=
Callback Parameters
ParameterDescription
numberMobile number that was recharged
amountRecharge amount
txnIdBigpay Exchange transaction ID
refIdYour reference ID
statusUpdated status: Success, Failure, Refunded
operatorIdOperator transaction reference
operatorCodeOperator code (e.g., JIO, AT)
balanceYour updated wallet balance
margin_amountCommission earned
Auto-configured: Bigpay Exchange automatically generates your callback URL. Go to API Settings and click "Generate Callback URL".

Status Check API

GET
https://www.exchangerecharge.com/webservices/api/statusByRefId?username=[username]&api_token=[api_token]&ref_id=[ref_id]&recharge_date=[YYYY-MM-DD]
Request Parameters
ParameterTypeRequiredDescription
usernameStringYesYour registered mobile number
api_tokenStringYesYour API token
ref_idStringYesYour reference ID from the recharge request
recharge_dateStringYesDate of the recharge in YYYY-MM-DD format
Response
{
    "status": "Success",
    "number": "9876543210",
    "amount": "199",
    "operator": "JIO",
    "ref_id": "RCH20260819001",
    "txn_id": "EXR123456789",
    "opt_id": "OPT987654321",
    "margin_amount": "4.50",
    "balance": "5420.00",
    "message": ""
}

Balance API

GET
https://www.exchangerecharge.com/webservices/api/balance?username=[username]&api_token=[api_token]
Response
{
    "status": "Success",
    "buyerBalance": "5420.00",
    "sellerBalance": "0.00",
    "lienBalance": "199.00",
    "message": ""
}
FieldDescription
buyerBalanceAvailable balance for making recharges
sellerBalanceBalance from selling services (if applicable)
lienBalanceAmount held for pending transactions

Complaint API

GET
https://www.exchangerecharge.com/webservices/api/complain?username=[username]&api_token=[api_token]&txn_id=[txn_id]&reason=[reason]
Request Parameters
ParameterTypeRequiredDescription
usernameStringYesYour registered mobile number
api_tokenStringYesYour API token
txn_idStringYesBigpay Exchange transaction ID
reasonStringYesReason for complaint
Response
{
    "status": "Success",
    "message": "Complaint registered successfully",
    "complain_id": "CMP123456"
}

Operator Codes

Mobile Operators
OperatorCode
JioJIO
AirtelAT
Vi (Vodafone Idea)VI
BSNLBSNL
BSNL SpecialBSNLSTV
DTH Operators
OperatorCode
Airtel DTHATDTH
Dish TVDISHTV
Sun DirectSUNDTH
Tata Play (Tata Sky)TATASKY
Videocon D2HVDDTH

Status Codes

StatusBadgeDescriptionAction
Success Success Recharge completed successfully Commission credited to wallet
Pending Pending Recharge is being processed by the operator Wait for callback or check status manually
Failure Failed Recharge failed at operator end Amount auto-refunded to wallet
Refunded Refunded Transaction amount has been refunded Amount credited back to wallet
Error Error API error (invalid params, auth failure, etc.) Check parameters and retry

Webhook Setup on Bigpay Exchange

Bigpay Exchange automatically handles webhook callbacks. Here's how it works:

Configure API

Enter your Exchange Recharge credentials in API Settings

Generate Callback

Click "Generate Callback URL" to get your unique webhook endpoint

Auto Processing

Status updates auto-processed: refunds on failure, commission on success

Your Callback URL Format
https://exchange.bigpayindia.in/api/webhook/callback/{your-user-id}
Tip: Copy this callback URL and paste it in your Bigpay Exchange dashboard under "API Settings → Callback URL".

Error Handling & Best Practices

Do
  • Always use unique ref_id per request
  • Check status via API if callback not received
  • Handle all status codes gracefully
  • Monitor your API balance regularly
  • Keep your API credentials secure
Don't
  • Don't retry without checking status first
  • Don't reuse ref_id for different transactions
  • Don't ignore Pending status responses
  • Don't process recharge if balance is insufficient
  • Don't expose API credentials in frontend code

Need Help?

If you face any issues with API integration: