Skip to main content

Bill Payment

Authentication

Basic Authentication

  • Username: Client Id
  • Password: Secret Key

Example Authorization Header:

Authorization: Basic eGV0dGxlXzgzMjg2NjU5YmRmNzBkZWEzMDUwMzcwNzE1MTYwMzA0MDo3YzE1ZDQyYTZhYjEyOTYzYWI4NzJhMzFkOTk4MDk1ZDMwNTAzNzA3MTUxNjMyMDg5

Request Body

{
"merchantCode":"SPI329053",
"operatorId":"NPCL00000NOI01",
"transactionRefrenceId":"TSBc4fcc82e2c134836a24d884240891829",
"accountNumber":"2000240168",
"transactionId":"2299988bbbb",
"customerMobileNumber":"1234567890",
"amount":"20"
}

Request Parameters

ParameterTypeRequiredDescription
merchantCodeStringYesUnique merchant code
operatorIdStringYesUnique identifier for the operator
transactionRefrenceIdStringYesUnique reference ID for the transaction
accountNumberStringYesCustomer's account number
transactionIdStringYesUnique transaction identifier
customerMobileNumberStringYesCustomer's mobile number
amountStringYesPayment amount

Request Examples

Request Examples

curl --location 'https://xyz.com/v1/service/bbps/bill-payment' --header 'Content-Type: application/json' --header 'Authorization: Basic Og==' --data '{
"merchantCode":"SPI329053",
"operatorId":"NPCL00000NOI01",
"transactionRefrenceId":"TSBc4fcc82e2c134836a24d884240891829",
"accountNumber":"2000240168",
"transactionId":"2299988bbbb",
"customerMobileNumber":"1234567890",
"amount":"20"
}'

Response Examples

{
"code": "0x0200",
"message": "Order accepted successfully",
"status": "SUCCESS",
"data": {
"clientRefId": "IN3STAN4344517788",
"orderRefId": "REF307464872548520306F08",
"status": "queued"
}
}

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.