Skip to content
@ONDC-Official

ONDC

Open Network for Digital Commerce

ONDC - Open Network for Digital Commerce

ONDC is an ambitious initiative to democratize digital commerce by creating a decentralized network of buyer apps and seller apps through an interoperable protocol specification.

Overview

This comprehensive guide is designed to walk you through the process of integrating your digital commerce platform with the Open Network for Digital Commerce (ONDC). By following these steps, you'll enable seamless interoperability with the decentralized network, allowing your platform to leverage the benefits of ONDC.

Table of Contents

  1. Getting Started
  2. Quick Start Guide
  3. The Protocol
  4. Subscription Process
  5. Signing and Verification
  6. Enabled Domains
  7. Reference Applications
  8. Utilities
  9. Taxonomies
  10. Gateway and Registry Endpoints
  11. Network Observability for Production

Getting Started

The ONDC Web Portal serves as a self-service platform that streamlines interaction between ONDC and its network participants across their entire lifecycle. "Network player" encompasses network participants, ecosystem partners, and other entities engaged with ONDC. The portal provides access to a range of services for network players, such as self-service onboarding, self-monitored compliance, and self-monitored operations. Creating an account on ONDC Web Portal is necessary for starting your integration with ONDC.

Quick Start Guide

ONDC Integration Guide is a roadmap designed to illuminate key resources and navigate through the integration journey.

The Protocol

Beckn is an open protocol that allows local businesses across any industry to be discovered and engaged by any beckn-enabled application. Beckn protocol is a collection of open specifications consisting of protocol APIs, message formats, network design and reference architectures to allow any two entities to execute commercial transactions without being on the same platform.

ONDC has provided the network extension layer over the Beckn Protocol (base layer). Over the base layer, the network extension layer comprises model specifications customised to the ONDC context that have been adopted in order to facilitate transactions over the network. For a detailed understanding of the ONDC network architecture, please refer to our Tech Briefing Presentation and Video.

Subscription Process

To enroll in the ONDC network, Network Participants (NP) must be added to the registry. The steps for an NP to onboard onto the ONDC Registry (Staging, Pre Production, Production) are outlined as follows:

  1. Staging Registry

    • Obtain whitelisting for the subscriber ID.
    • Initiate the subscription process by calling the /subscribe API. The complete process is documented here
  2. Pre-Production Registry

    After presenting a demo and receiving approval from the relevant team, follow the outlined process to be added to the Pre-Prod registry.

  3. Production Registry Upon successfully completing functional testing and satisfying the final checklist in Pre-Production, an NP can transition to the the Production environment.

Signing and Verification

When communicating over HTTP using Beckn APIs, the subscribers need to authenticate themselves to perform transactions with other subscribers. Due to the commercial nature of the transactions, every request/callback pair is considered to be a "contract" between two parties. Therefore, it is imperative that all requests and callbacks are digitally signed by the sender and subsequently verified by the receiver.

The complete process is documented here. Some frequently asked questions and answers are compiled here.

Enabled Domains

Network Participants are requested to refer to the list here for ONDC defined domains and respective codes, across all environments (Staging, Pre-production and Production). The list will be updated as in when required.

Below are links to the comprehensive developer guide and model implementations for the enabled domains.

  • Retail - This domain encompasses subcategories such as grocery, food and beverages, fashion, electronics, home & decor, beauty, and personal care, etc. It facilitates seamless transactions in both B2C and B2B modes, offering a comprehensive shopping experience for consumers and businesses alike.

  • Logistics - This domain streamlines the acquisition of on-network logistics services, providing logistics buyers with a variety of choices for flexible solutions that suit their specific needs.

  • Financial Services - This domain facilitates easy access to a spectrum of financial solutions, covering loans, insurance, investments.

    • Financial Services Developer Guide

      • For Personal Loan , select Version : release-FIS12-2.0.0
      • For Invoice based Loan , select Version : draft-FIS12-invoice-2.1.0
      • For Health Insurance , select version : draft-health
      • For Motor Insurance , select version : draft-motor
      • For Marine Insurance , select version : draft-marine
      • For Investments , select version : draft-FIS14-enhancements
    • Gift Card

  • Travel & Tourism - This domain enables easy access to a range of travel-related services, covering On-demand Ride hailing with various transport modes, ticket booking without designated seat, airlines, hotels, intercity bus, entry ticket pass, etc.

    • Mobility Specifications Developer Guide

      • For On-demand Ride hailing, select version : release-TRV10-2.0.0
      • For Unreserved Ticket Booking (metro and intracity bus), select version : release-TRV11-2.0.0
      • For Airlines Booking, select version : draft-TRV12-airline
      • For Hotel Booking, select version : draft-TRV13-hotel
      • For Unreserved Entry Pass (heritage sights, museums, concerts, etc), select version : draft-TRV14-2.0.0
  • Services - This domain empowers individuals to effortlessly access a diverse array of services, covering skilled services like home painting, chefs and consulations, auction of agricultural outputs, leasing farming machinery and tools, soil testing, assaying services, lab testing, subscriptions, etc.

    • v2.0.0

    • Services Developer Guide

      • For Skilled Services, select version : release-services
      • For Auction of Agricultural Outputs, select version : draft-agri_bids_and_auction
      • For Equipment hiring (leasing farming machinery and tools), select version : draft-agri_equipment
      • For Soil Testing and Assaying Service, select version : draft-agri_services
      • For Healthcare Services (Lab Test Booking), select version : draft-healthcare
      • For Subcription based services, select version : draft-subscriptions
  • Ancillary Services

    • Issue & Grievance Management (IGM) within the ONDC Network serves as a critical mechanism for resolving disputes and concerns among Network Participants (NPs).
    • Reconcillation and Settlement Framework (RSF) plays a pivotal role in maintaining a comprehensive trail of settlements between Network Participants.
    • Rating
    • Score
    • Test Case Scenarios (IGM & RSF)

Reference Applications

The network participants need to complete the end-to-end testing with ONDC reference applications.

Staging Environment

Pre-Production Environment

Utilities

  • Signing and Verification : This tool is designed to support and aid ONDC Network Participants in constructing their own cryptocurrency libraries essential for engaging with the ONDC Network. It encompasses tasks such as key generation, signing, verification, encryption, and decryption.
  • Subcription process : This tool aids ONDC Network Participants during the subscription process for the registry (Staging, Pre Prod, Prod). It includes the implementation of the /on_subscribe API in both NodeJS and Python.
  • Retail/IGM Log Verification : This tool is designed for ONDC Network Participants to verify their transaction logs related to the Retail and IGM use cases on their end, ensuring accuracy before submission to the ONDC team for technical clearance.
  • B2B/Logistics Log Verification : This tool is designed for ONDC Network Participants to verify their transaction logs related to the B2B and Logistics use cases on their end, ensuring accuracy before submission to the ONDC team for technical clearance.
  • vlookup : This tool is developed to perform a registry lookup and retrieve details related to Network Participants (NP).
  • RSF Mock Server : The RSF Mock Server is a tool specifically designed to test network integration for Reconcillation and Settlement Framework (RSF) , based on ONDC model implementation.

Taxonomies

  • Taxonomies for different domains can be found here.

Gateway and Registry Endpoints

Environment Endpoint For URL
Staging Gateway https://staging.gateway.proteantech.in/search
Registry https://staging.registry.ondc.org/lookup
https://staging.registry.ondc.org/vlookup
Pre-Production Gateway https://preprod.gateway.ondc.org/search
Registry https://preprod.registry.ondc.org/ondc/lookup
https://preprod.registry.ondc.org/ondc/vlookup
Production Gateway https://prod.gateway.ondc.org/search
Registry https://prod.registry.ondc.org/ondc/lookup
https://prod.registry.ondc.org/ondc/vlookup

Network Observability for Production

Refer to the following document for the Network Observability API Schema Requirements for the Production Environment Network Observability

Pinned Loading

  1. protocol-network-extension protocol-network-extension Public

    ONDC Protocol (network extension layer) is the network enablement layer for ONDC. Together with the Beckn Protocol as the ONDC Protocol (base layer), it comprises the ONDC protocol

    23 21

  2. protocol-base protocol-base Public

    ONDC Protocol (base layer) is the Beckn Protocol Specification

    4 3

  3. developer-docs developer-docs Public

    Developer documentation

    34 45

  4. reference-implementations reference-implementations Public

    ONDC reference apps

    JavaScript 25 63

  5. verification-logs verification-logs Public

    ONDC Pre-production issue & discussion board

    HTML 21 257

  6. 3rd-Party-Apps 3rd-Party-Apps Public

    5

Repositories

Showing 10 of 66 repositories
  • ONDC-Mobile-Buyer-App Public

    private repo of ONDC-Mobile-Buyer-App

    ONDC-Official/ONDC-Mobile-Buyer-App’s past year of commit activity
    TypeScript 23 18 2 2 Updated Jul 27, 2024
  • ONDC-Official/biap-client-node-js’s past year of commit activity
    JavaScript 22 31 9 0 Updated Jul 27, 2024
  • v1.2.0-logs Public

    Retail and Logistics Logs for 1.2.0

    ONDC-Official/v1.2.0-logs’s past year of commit activity
    Shell 9 226 138 12 Updated Jul 27, 2024
  • ONDC-Official/ONDC-FIS-Specifications’s past year of commit activity
    2 11 3 6 Updated Jul 26, 2024
  • verification-logs Public

    ONDC Pre-production issue & discussion board

    ONDC-Official/verification-logs’s past year of commit activity
    HTML 21 257 87 48 Updated Jul 26, 2024
  • py-protocol-layer Public

    python based protocol layer which abstracts ondc shenanigans and lets you focus on your app

    ONDC-Official/py-protocol-layer’s past year of commit activity
    Python 7 MIT 26 1 1 Updated Jul 26, 2024
  • developer-docs Public

    Developer documentation

    ONDC-Official/developer-docs’s past year of commit activity
    34 45 16 3 Updated Jul 26, 2024
  • static-terms Public

    Repo will contain the static terms for the various domains released by the network participants to transact on the network

    ONDC-Official/static-terms’s past year of commit activity
    0 19 0 2 Updated Jul 25, 2024
  • protocol-network-extension Public

    ONDC Protocol (network extension layer) is the network enablement layer for ONDC. Together with the Beckn Protocol as the ONDC Protocol (base layer), it comprises the ONDC protocol

    ONDC-Official/protocol-network-extension’s past year of commit activity
    23 21 6 1 Updated Jul 26, 2024
  • ONDC-Official/protocol-server-config’s past year of commit activity
    0 0 0 0 Updated Jul 25, 2024

Top languages

Loading…

Most used topics

Loading…