For the complete documentation index, see llms.txt. This page is also available as Markdown.

Beckn ONIX Provider Onboarding

Beckn ONIX Provider Onboarding Guide

Scenario

If you're onboarding a new provider that belongs to a new domain, first create the domain in Registry. Otherwise, reuse an existing domain and continue with provider onboarding.

1. Add Network Domain in Registry

Login to the Registry portal. Navigate to Beckn → Network Domain. Click the Add icon. Enter the following values:

Field

Value

Name

knowledge-advisory:oan:kenya

Description

Knowledge Advisory

Schema URL

https://raw.githubusercontent.com/beckn/missions/refs/heads/main/VISTAAR/layer2/knowledge-advisory_agrinet_vistaar_1.1.0.yaml

2. Install a New ONIX BPP Adapter

Even if you already have a beckn-onix repository, perform a fresh clone in a new directory.

cd <new-direcoty> git clone https://github.com/Beckn-One/beckn-onix cd beckn-onix/install wget -qO- https://gist.githubusercontent.com/tejash-jl/a3ff66e72679042d2403f0e3b6e99b99/raw/bpp-onboarder.sh | bash

Provide the prompted values exactly as below (replace placeholders where applicable):

Prompt

Value / Notes

BPP subscriber id

bpp-knowledge (must be unique)

Domain

knowledge-advisory:oan:kenya (new or existing domain)

Webhook target URL

http://weather-provider:3000/knowledge (sample; replace with your provider base URL if different)

BPP Subscriber URL

http://bpp-knowledge-adapter:8081/bpp/receiver or http://<subscriber-id>-adapter:8081/bpp/receiver (DNS can also be used and changed later)

Registry URL

http://localhost:3030/subscribers (or registry DNS)

Registry username

root

Registry password

****

Install ONIX Adapter

Y

Expected output:

✔ Container bpp-knowledge-adapter Started ONIX Adapter installation successful Process complete. Thank you for using Beckn-ONIX!

3. Update Registry Network Participant

Go to Admin → Network Participants and edit the above created participant. • Set Network Role domain to the respective domain. • Change Status to Subscribed. • Verify signingPublicKey and encrPublicKey match config/local-simple.yaml. • Ensure Valid From date is one day prior to the current date.

4. Restart Services

docker restart <subscriber-id>-adapter docker restart gateway docker ps | grep adapter

824df910e092 fidedocker/onix-adapter "./server --config=/…" Up bpp-knowledge-adapter

Verify the adapter container is running.

5. Update BAP Routing (Only for New Domains)

In the previously cloned beckn-onix, modify the following

Update both configuration files by adding routing rules for the new domain alongside the existing weather domain.

Files:

• config/local-simple-routing-BAPCaller.yaml

routingRules:

- domain: "weather-forecast:oan:kenya"

version: "0.0.1"

targetType: "bpp"

endpoints:

- select

- init

- confirm

- status

- track

- cancel

- update

- rating

- support

- domain: "weather-forecast:oan:kenya"

version: "0.0.1"

targetType: "url"

target:

url: "http://gateway:4030/bg"

endpoints:

- search

- domain: "knowledge-advisory:oan:kenya"

version: "0.0.1"

targetType: "bpp"

endpoints:

- select

- init

- confirm

- status

- track

- cancel

- update

- rating

- support

- domain: "knowledge-advisory:oan:kenya"

version: "0.0.1"

targetType: "url"

target:

url: "http://gateway:4030/bg"

endpoints:

- search

• config/local-simple-routing-BAPReceiver.yaml

routingRules:

- domain: "weather-forecast:oan:kenya"

version: "0.0.1"

targetType: "url"

target:

url: "http://sva_app:8000/api/bap-webhook"

endpoints:

- on_search

- on_select

- on_init

- on_confirm

- on_status

- on_track

- on_cancel

- on_update

- on_rating

- on_support

- domain: "knowledge-advisory:oan:kenya"

version: "0.0.1"

targetType: "url"

target:

url: "http://sva_app:8000/api/bap-webhook"

endpoints:

- on_search

- on_select

- on_init

- on_confirm

- on_status

- on_track

- on_cancel

- on_update

- on_rating

- on_support

Preserve all existing weather-forecast rules and add identical rules for knowledge-advisory:oan:kenya.

docker restart bap-onix-adapter

6. Update bharat-oan-api

We have updated the tools to enable knowledge advisory

cd bharat-oan-api git pull docker compose up -d --force-recreate --build

7. Update Sample Provider

cd mock-bpp-provider/ git pull docker build -t sample-weather-provider . docker stop weather-provider docker rm weather-provider

Original example:

docker run -d --name weather-provider --network beckn_network -p 3002:3000 -e CALLBACK_URL=http://bpp-onix-adapter:8081/bpp/caller/on_search -e BPP_ID=bpp-network -e BPP_URI=http://bpp-onix-adapter:8081/bpp/caller -e KNOWLEDGE_CALLBACK_URL=http://bpp-knowledge-adapter:8081/bpp/caller/on_search -e KNOWLEDGE_BPP_ID=bpp-knowledge -e KNOWLEDGE_BPP_URI=http://bpp-knowledge-adapter:8081/bpp/receiver -e KNOWLEDGE_API_KEY=klm_bad**** sample-weather-provider

Generic version (replace subscriber-id and API key):

docker run -d --name weather-provider --network beckn_network -p 3002:3000 -e CALLBACK_URL=http://bpp-onix-adapter:8081/bpp/caller/on_search -e BPP_ID=bpp-network -e BPP_URI=http://bpp-onix-adapter:8081/bpp/caller -e KNOWLEDGE_CALLBACK_URL=http://bpp-knwlg-adapter:8081/bpp/caller/on_search -e KNOWLEDGE_BPP_ID=<subscriber-id> -e KNOWLEDGE_BPP_URI=http://<subscriber-id>-adapter:8081/bpp/receiver -e KNOWLEDGE_API_KEY=klm_bad**** sample-weather-provider

Note: The sample provider has been updated to invoke Knowledge APIs. Update KNOWLEDGE_API_KEY, KNOWLEDGE_BPP_ID, and KNOWLEDGE_BPP_URI according to the subscriber that was created.

7. Testing

Open OAN UI

And search for “What fertilizer should I use for maize?”

Last updated