Skip to content

Balance Check API Documentation

Balance Check API

  • URL: {{base_url}}/api/balance
  • Method: GET

Request Parameters



{
  "token": "Provided Token"
}

Success Response



{
  "credits_consumed": 777099.369900001,
  "credits_available": 161155.5
}

Credits by Date API

URL: {{base_url}}/api/credits/bydate/

Method: POST

Request Parameters



{
  "token": "",
  "date": "yy-mm-dd"
}

Success Response



{
  "credits_available": 454135.30317999,
  "status": true
}

Failure Response


{
  "detail": "Something Went Wrong",
  "status": false
}

Credit Request API

URL: {{base_url}}/api/public/creditrequest/

Method: POST

Request Parameters


{
  "token": "provided_token",
  "credit": "Credit to be requested in float"
}

Success Response

HTTP Status: 200 OK


{
  "status": true,
  "detail": "Credit Requested"
}

Error Response

HTTP Status: 400


{
  "status": false,
  "detail": "Invalid Credit"
}

Mobile Operator Regular Expressions


{
  "^([98][50-9][0-9]{7})$": "nt-postpaid",
  "^([98][46][0-9]{7})$": "ntc",
  "^([97][4-5][0-9]{7})$": "nt-cdma",
  "^([98][0-2][0-9]{7})$": "ncell",
  "^([96][0-9]{8}|[98][8][0-9]{7})$": "smartcell"
}