Skip to main content
Bharat Bill Payment System (BBPS) is an interoperable, NPCI-operated bill payment network that enables customers to pay any registered biller, including electricity, loan repayments, insurance, mobile, and DTH, through a standardised platform accessible across all participating channels. Cashfree operates as a Customer Operating Unit (COU) on the BBPS network. Agent Institutions are businesses licensed to offer BBPS bill payment services to their customers. They integrate with Cashfree’s COU APIs to connect their platforms to the BBPS network. The Cashfree BBPS COU APIs cover the complete bill payment lifecycle: biller discovery, bill fetch and validation, payment processing, dispute and ticket management, and agent wallet operations.

Key features

Cashfree BBPS for Customers supports the following capabilities:

Biller discovery

Retrieve all active biller categories and MDM details, including customer input parameters, supported payment modes, and fee structures.

Bill fetch and payment

Initiate bill fetch requests and process payments across all BBPS billers within a single unified API suite.

Multi-Bill Fetch and Pay

Fetch and pay multiple outstanding bills for a single biller in one API call, compliant with NPCI Bharat BillPay Limited (NBBL) standards. For example, pay all traffic challans in one go.

Pay Together

Pay bills across multiple billers under a single payment gateway transaction. For example, a credit card bill, FASTag recharge, and challan all at once.

Flexible payment flows

Supports FETCH_AND_PAY, VALIDATE_AND_PAY, and direct payment flows across all BBPS categories, determined automatically by the biller’s configuration.

Ticket management

Raise a support ticket for any successfully processed transaction. Use the Ticket APIs to log and track disputes or complaints.

Wallet management

Every Agent Institution is allocated a dedicated wallet. Check your balance and retrieve paginated ledger history for reconciliation.

Webhooks

Receive near real-time notifications on your registered endpoint when a bill fetch or payment is completed.

Getting started

To begin integrating the Cashfree BBPS COU APIs, contact your Cashfree account manager to get your account set up. During onboarding, you need to confirm the following with the Cashfree team:
  • Response mode: whether you want synchronous responses, where the API attempts to return the final result in the same call, or the default asynchronous mode, where you poll for the result using a reference ID.
  • Wallet funding model: whether you want to operate on a prefunding or postfunding model. See Funding models below for details.
Once your Merchant Dashboard credentials are created, log in and generate your x-client-id and x-client-secret from the Merchant Dashboard. With your API keys ready, you can start testing in the sandbox environment. Refer to the Test integration data page for sandbox credentials, test billers, and data points to run the APIs end to end.

Authentication

All APIs use header authentication. Both headers are mandatory for every API call:
Credentials are issued per Agent Institution. Your x-client-id and x-client-secret are available in your Merchant Dashboard for both sandbox and production environments.

Versioning

All BBPS COU APIs require an x-api-version header in every request. Two versions are currently supported:
  • 2025-01-01: The default version, supported across all BBPS COU APIs.
  • 2026-01-01: Supported only for the Bill Fetch Response and Bill Payment Response APIs. Use this version when integrating with billers that return multiple bills in a single fetch, such as traffic challans, where a customer may have multiple outstanding bills.
The x-api-version value is pre-filled in the Try It playground on each API page.

Rate limits

All APIs are rate limited to 100 requests per 60 seconds. Exceeding the limit returns HTTP 429.

Funding models

Your wallet funding model determines how money flows between your account and the BBPS network. Cashfree supports two models, assigned to your Agent Institution during onboarding.

Prefunding

You maintain a prefunding wallet that you top up before initiating payments. When a bill payment is posted, the bill amount is debited from your wallet and settled to the biller.If your wallet balance is less than the bill amount at the time of posting, the payment request is rejected. Keep your wallet topped up with a sufficient buffer to avoid disruptions.

Postfunding

Settlements flow directly to the BBPS escrow, so no advance top-up is required. You are assigned a shortfall wallet to cover any shortfall amounts or redemptions that arise after settlement.If your shortfall wallet drops below the configured threshold, bill payments are restricted until the wallet is replenished.
The table below summarises the key differences between the two models:
For amount formulas, bbps block examples, and worked payment scenarios across both models, including prefunding, postfunding, and Pay Together, see Payment scenarios.

API flow

A complete bill payment journey involves the following steps:
1

Fetch biller categories

Retrieve the list of active biller categories such as Electricity, DTH, and Gas to identify the category the biller belongs to.
2

Fetch biller MDM details

Retrieve the biller’s configuration details, including customer input parameters, supported payment modes, and fee structures. This is needed before initiating a bill fetch.
3

Initiate a bill fetch

Submit a bill fetch request for the customer. The API determines the biller’s payment flow: FETCH_AND_PAY, where the customer’s outstanding dues are returned for review before payment, or VALIDATE_AND_PAY, where the customer’s details are validated before payment without returning bill details. Skip this step for DIRECT_PAY billers. Calling Bill Fetch Request for a DIRECT_PAY biller returns a validation error. By default, the API returns a ref_id immediately for async processing. If you have opted in for synchronous responses, Cashfree attempts to return the final result in the same call.
4

Poll for the bill fetch result

Use the ref_id to poll the Bill Fetch Response API at regular intervals until you receive a success or failure response. Skip this step if synchronous responses are enabled and the bill fetch request returned HTTP 200.
5

Collect payment through Cashfree Payment Gateway

Once the bill fetch or validation is successful, or if no fetch is required for the biller (for example, donation billers), collect the payment from the customer using the Cashfree Payment Gateway. Create an order using the Create Order API with the bbps block and complete the payment through your preferred payment flow. The bbps block supports a bills array for single and multiple bill payments (Pay Together). For details on the bbps block structure, prefunding and postfunding rules, and sample payloads, refer to the Create Order API.
6

Initiate a bill payment

After the payment is collected through the payment gateway, use the Bill Payment Request API to post the payment to the BBPS network. This step settles the amount with the biller. By default, the API returns a transaction_ref_id immediately for async processing. If you have opted in for synchronous responses, Cashfree attempts to return the final payment result in the same call.
7

Poll for the payment result

Use the bill_fetch_ref_id and transaction_ref_id to poll the Bill Payment Response API at regular intervals until you receive a final payment status. Skip this step if synchronous responses are enabled and the bill payment request returned HTTP 200.
8

Raise a ticket (optional)

If the customer has a dispute or complaint about a successfully processed payment, use the Ticket APIs to raise and track a support ticket.

Billers

Fetch biller categories

Get all active biller category codes, such as Electricity, DTH, and Gas. Cache this list because it changes infrequently.


Fetch biller MDM details

Get MDM details for billers in a category, including customer input parameters, supported payment modes, fetch requirements, and fee structures.

Webhooks

Cashfree delivers near real-time webhook notifications to your registered endpoint when a bill fetch or payment is completed. This reduces the need to continuously poll the response APIs. Webhooks are delivered for the following events: bill fetch status, bill validation status, and bill payment status. Each notification is signed using HMAC-SHA256 and Verify the signature before processing.
Webhooks are delivered in addition to the polling APIs, not instead of them. Always implement polling as a fallback to handle cases where webhook delivery is delayed or retried.
For payload contracts, event types, and signature verification, see COU Webhooks.

Synchronous responses

By default, the Bill Fetch Request and Bill Payment Request APIs are asynchronous. They return HTTP 202 and you poll the corresponding response API for the final result. With synchronous responses enabled, these APIs attempt to return the final result within a 30-second window in the same call. If the result is not ready within that window, the API falls back to the standard async flow and returns HTTP 202.
Synchronous responses are an opt-in feature and are disabled by default. To enable them for your account, contact your Cashfree account manager. You do not need to change your request format.
For detailed response handling, code examples, and implementation guidance, see Synchronous responses.