This guide to ONDC integration for sellers is for engineering leads and developers at Indian brands, retailers and commerce platforms who want to list on India's Open Network for Digital Commerce. The Open Network for Digital Commerce is India's experiment in decoupling buyers and sellers from any single marketplace platform. It has been live for two years, has real volume in some categories, and the protocol is finally stable enough that integrating now is not a research project. Here is the developer's view: the architecture, the roles, the API flows, what to build, and how to plan the rollout.
Key takeaways on ONDC integration
ONDC is a network of independent buyer apps (BAPs) and seller apps (BPPs) that interoperate via a shared Beckn-based protocol.
As a seller, you integrate as a BPP; your products are then discoverable on every BAP on the network.
The integration is HTTP-based, asynchronous (callbacks), and uses a defined schema for catalog, search, select, init, confirm, status, track, cancel and update.
The hard parts are matching the schema, handling async callbacks reliably, and getting onboarded by a network participant.
Why ONDC matters for sellers and platforms
ONDC volume is real and growing, particularly in groceries, food, and certain B2B categories. For sellers, ONDC is incremental demand. For platforms, ONDC participation is increasingly expected. Engineering ahead of competitors gives you network presence with lower CAC than running paid ads on traditional marketplaces. For a look at how the network has matured since launch, see our follow-up, ONDC six months later.
How the ONDC architecture works, in plain terms
A buyer on a buyer app (let's say Paytm) searches for "atta 5kg". The buyer app sends a search call to the ONDC network. Your seller app (your BPP), registered on the network, receives the search and responds with matching products via an on_search callback. The buyer sees products from many sellers, chooses one, and places an order. The order flows back through the network to your BPP. You fulfill it. Status updates flow back asynchronously.
The key mental shift: no single platform owns the buyer, the catalog or the order. Each participant owns its own piece and talks to the others through the protocol.
BAP, BPP, gateway and registry: the network roles
Role | Stands for | What it does |
|---|---|---|
BAP | Beckn Application Platform | The consumer-facing buyer app where buyers discover and purchase. |
BPP | Beckn Provider Platform | The seller-side platform. This is what you build or integrate to. |
Gateway | Network gateway | Routes between BAPs and BPPs, broadcasting a buyer's search to the relevant seller apps. |
Registry | Network registry | A discovery layer for who is on the network, including the keys used to verify each participant's signatures. |
You will likely operate as a BPP or partner with a Technology Service Provider (TSP) who runs one for you. A TSP gets you live faster; running your own BPP gives you full control of catalog, pricing and fulfillment logic.
The core ONDC API flows
The Beckn protocol defines a request/callback pattern. You receive a search POST; you respond asynchronously by POSTing an on_search back. The same pattern applies across the whole order lifecycle:
Request you receive | Callback you send | Stage |
|---|---|---|
|
| Discovery: return matching catalog items |
|
| Quote for the chosen items |
|
| Order draft with billing and fulfillment details |
|
| Order placed |
|
| Order state |
|
| Delivery tracking |
|
| Cancellation |
|
| Changes after confirmation |
Every payload has a signed envelope and a structured body. Catalog format is defined per domain (retail, food, mobility, and so on). In practice your endpoint acknowledges the request straight away and does the real work in the background, as in this simplified sketch:
// Simplified: acknowledge fast, do the work later, call back.
app.post("/search", async (req, res) => {
await verifySignature(req); // reject anything unsigned
await queue.enqueue("search", req.body);
res.json({ message: { ack: { status: "ACK" } } });
});
// Worker: build the catalog response and POST it to the caller.
worker.on("search", async (body) => {
const catalog = await mapCatalog(body.message.intent);
await signedPost(`${body.context.bap_uri}/on_search`, catalog);
});
What to build: a Beckn protocol adapter
Build a Beckn protocol adapter that sits between your existing commerce backend and the ONDC network. It handles authentication, signature verification, schema mapping (your product model to ONDC's catalog schema), and the async callback pattern. Do not build it from scratch unless you have to: a few open-source BPP frameworks (most notably Beckn-ONIX) handle the boilerplate.
Keeping the adapter separate from your core backend means the order, inventory and returns systems you already run stay untouched. If those systems are due for a rethink anyway, our comparisons of headless commerce platforms and return management software in India cover the pieces an ONDC adapter plugs into.
Common ONDC integration pitfalls
The second is undertesting on the sandbox. Onboarding has staged tests; some BAPs have additional integration tests. Allocate 3 to 4 weeks for testing.
The third is schema drift. The ONDC catalog schema evolves. Build the mapping layer to be easy to update, so a schema change is a mapping change rather than a rewrite.
Our recommended ONDC rollout plan
Phase | Scope |
|---|---|
Phase 1: pilot | One or two BAPs and one product category |
Phase 2: expand | All relevant categories |
Phase 3: optimize | Search relevance, pricing, fulfillment SLAs |
FAQs
Is ONDC mandatory?
No, but for several categories it is becoming expected.
Does ONDC handle payments?
Payment is settled via integrated payment processors (Razorpay, Cashfree, others). ONDC orchestrates; it does not process. Our review of Indian payment gateways compares the options.
What about returns and disputes?
ONDC has defined flows for both, but operational maturity varies by category.
Can we operate both our own storefront and ONDC?
Yes, most sellers do.
Ready to list on the network? Talk to Techpuvi about eCommerce engineering, including ONDC integration, or explore our eCommerce engineering work.
