Basic flow for Balance Check API

Sandbox Base URL: https://sandbox.giftbills.com/api/v1

Production Base URL: https://giftbills.com/api/v1

Gift Bills allows Reseller/Agent to check Balance with two different methods over API.

a. Call /api/v1/check-balance to check balance via GET method.

b. Call /api/v1/check-balance to check balance via POST method


Check Balance with Simple GET Method

API Base_URL+Endpoint

GET method

/check-balance/username=xxx&password=yyy

Sample Response

{
    "success": true,
    "code": "00000",
    "message": "Request Successful",
    "data": {
        "balance": "6400",
        "earning": "50",
        "cashback": "0",
        "point": "0",
        "sms_units": "0",
        "mtn_cg": "0",
        "mtn_sme": "0",
        "airtel_cg": "0"
    }
}
RESPONSE PROPERTY DESCRIPTION
balance Reseller/Agent or User balance
earning Reseller/Agent or User earning
cashback Reseller/Agent or User cashback

To Check Balance Using jSON POST Method

API Endpoint: /check-balance

POST method

curl -X POST --header 'Authorization: Bearer API_KEY' --header 'MerchantId:
username' --header 'content-type: application/json'

Sample Request Body

{
}
REQUEST PROPERTY DESCRIPTION
- no parameter required

Sample Response

{
    "success": true,
    "code": "00000",
    "message": "Request Successful",
    "data": {
        "balance": "6400",
        "earning": "50",
        "cashback": "0",
        "point": "0",
        "sms_units": "0",
        "mtn_cg": "0",
        "mtn_sme": "0",
        "airtel_cg": "0"
    }
}
RESPONSE PROPERTY DESCRIPTION
balance Reseller/Agent or User balance
earning Reseller/Agent or User earning
cashback Reseller/Agent or User cashback