Skip to content

Bill payment API · BBPS

Bill payments through BBPS, from your software.

Add electricity, water, gas, broadband, FASTag, insurance and EMI payments to your own app or billing system, on the same transaction model as every other Bonpay service.

curl -X POST https://api.bonpay.in/v1/txns \
  -H "Authorization: Bearer $TOKEN" \
  -H "Idempotency-Key: order-10492" \
  -H "X-TPIN: $TPIN" \
  -H "Content-Type: application/json" \
  -d '{"service":"BBPS","amount_paise":124000,"params":{ … }}'

Response201 Created

{
  "id": "b3f1c2e4-7a9d-4c1e-9f27-5d8e0a6c4b21",
  "txn_no": 104921,
  "service": "BBPS",
  "amount_paise": 124000,
  "fee_paise": 0,
  "state": "SUCCESS",
  "created_at": "2026-09-30T10:42:07+05:30"
}

BBPS bill payment API

What the API gives you.

01

One transaction endpoint

Bill payments use the same POST /v1/txns as every service, with BBPS as the service.

02

Quote before you pay

The exact total, with any fee and GST on the fee, before you commit.

03

Exactly once

An Idempotency-Key on every payment means a retry never pays a bill twice.

04

Final answers

Status is tracked until the payment is confirmed or reversed.

05

References for receipts

Successful payments return a reference for your customer’s receipt.

06

Wallet and statement

Balances and statement lines, from your own systems.

How it works

Integrate in four calls.

  1. 01

    Sign in

    POST/v1/auth/login returns a bearer token.

  2. 02

    Quote

    GET/v1/pricing/quote with service BBPS and the amount.

  3. 03

    Pay

    POST/v1/txns with service BBPS, an Idempotency-Key and X-TPIN.

  4. 04

    Confirm

    GET/v1/txns/{id} for the final state and reference.

Request shape

The life of a transaction.

Biller categories and their parameters are shared with approved partners during onboarding. Every bill payment uses the common transaction format below.

  1. PROCESSING

    Validated, priced and the wallet debited in one step, then sent to the operator or bank.

  2. PENDING

    Waiting on the other side. The platform keeps asking until there is a final answer.

  3. SUCCESS

    Confirmed. Commission is recorded against the payment.

  4. FAILED → REVERSED

    Declined. The full amount returns to the wallet, and both entries are on the statement.

Response

GET https://api.bonpay.in/v1/txns/b3f1c2e4-7a9d-4c1e-9f27-5d8e0a6c4b21

{
  "id": "b3f1c2e4-7a9d-4c1e-9f27-5d8e0a6c4b21",
  "txn_no": 104921,
  "service": "BBPS",
  "amount_paise": 124000,
  "state": "SUCCESS",
  "error_code": null,
  "updated_at": "2026-09-30T10:42:09+05:30"
}
  1. 10:42:07.114PROCESSINGwallet debited, sent
  2. 10:42:07.902PENDINGawaiting confirmation
  3. 10:42:09.021SUCCESSconfirmed, commission recorded

FAQ

Questions, answered.

Bills through BBPS, on the same transaction model.

What is a BBPS API?

An API that lets your software pay bills through the Bharat Bill Payment System. With Bonpay, bill payments use the same transaction endpoint and guarantees as every other service.

Which bill categories are supported?

Electricity, water, gas, broadband, FASTag, insurance premiums and loan EMIs, among other categories.

How do I prevent duplicate bill payments?

Send a unique Idempotency-Key with every payment. Retrying with the same key returns the original payment.

How do I get access?

The API is available to approved partners. Contact us with your use case.

Add bill payments to your product.

Tell us about your customers and volumes.