Skip to main content

Bill Fetch

Authentication

Basic Authentication

  • Username: Client Id
  • Password: Secret Key

Example Authorization Header:

Authorization: Basic eGV0dGxlXzgzMjg2NjU5YmRmNzBkZWEzMDUwMzcwNzE1MTYwMzA0MDo3YzE1ZDQyYTZhYjEyOTYzYWI4NzJhMzFkOTk4MDk1ZDMwNTAzNzA3MTUxNjMyMDg5

Request Body

{
"operatorId":"21944",
"customerMobileNumber":"7505332915",
"number0":"JH05DS1301",
"number1":"33"
}

Request Parameters

ParameterTypeRequiredDescription
operatorIdStringYesUnique identifier for the operator
customerMobileNumberStringYesCustomer's mobile number
number0StringConditionalPrimary account identifier (varies by operator)
number1StringConditionalSecondary account identifier (varies by operator)

Request Examples

Request Examples

curl --location 'https://xyz.com/v1/service/bbps/fetch-bill' --header 'Content-Type: application/json' --header 'Authorization: Basic eGV0dGxlXzU1NDlhYmQwYzJmNjdiOGUyMjM4Mjg5MTExMDc3MTExMjpjYjYyNzZlZTUwNGE1NzUzNDJlOTRlNmIwZjQ4MmQ0MTIyMzgyODkxMTEwNzc3NjM2' --data '{
"operatorId":"21944",
"customerMobileNumber":"7505332915",
"number0":"JH05DS1301",
"number1":"33"
}'

Response Examples

{
"code": "0x0200",
"message": "000: Operators Fetch Successfully.",
"status": "SUCCESS",
"data": {
"requestId": "R93DFS0FZQ9XMKEA5V3TR5U1LDCHH4PBU8S",
"customerName": "Sushil Kumar Mishra",
"billDueDate": null,
"billAmount": 500,
"billDetails": ""{\"responseCode\":\"000\",\"inputParams\":{\"input\":[{\"paramName\":\"Vehicle Number\",\"paramValue\":\"JH05DS1301\"}]},\"billerResponse\":{\"billAmount\":\"50000\",\"billNumber\":\"1746258537757\",\"customerName\":\"Sushil Kumar Mishra\"},\"additionalInfo\":{\"info\":[{\"infoName\":\"Fast Tag Balance\",\"infoValue\":\"5175.88\"},{\"infoName\":\"Vehicle Model\",\"infoValue\":\"Xuv 700\"},{\"infoName\":\"Tag Status\",\"infoValue\":\"Active\"},{\"infoName\":\"Maximum Permissible Recharge Amount\",\"infoValue\":\"10000.0\"},{\"infoName\":\"Minimum Amount for Top-up\",\"infoValue\":\"500.0\"}]}}""
}
}

Response Codes

The API uses the following response codes to indicate the status of requests:

CodeDescriptionMeaning
0x0200SUCCESSThe request was processed successfully.
0x0201UNAUTHORIZEDAuthentication failed or insufficient permissions.
0x0202FAILEDThe request processing failed for a reason other than those specifically identified.
0x0203MISSING_PARAMETERThe request is missing one or more required parameters.
0x0206PENDINGThe request has been received and is being processed, but processing has not yet completed.
0x0205SOMETHING_WENT_WRONGA server error occurred during processing of the request.