Want to connect with ONDC sandbox ( integrated protocol server ) #5
Unanswered
saurTarento
asked this question in
Technical Queries
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
For authenticating request I need bapId, bapURI.. How can i get these values ?
Is there any other way to connect to ONDC sandbox ?
I want to consume the apis for buyer experience .. Please let me know if further details required.
// Initialize ONDC
const instance = new ondc.ONDC({
host: "http://localhost:5000",
bapId: "bap.com",
bapUri: "https://bap.com/beckn",
bppId: "bpp.com",
bppUri: "https://bpp.com/beckn",
country: "IND",
city: "std:080",
ttl: "P1M"
});
// Making a search call to gateway
const response = await instance.search({
"item": {
"descriptor": {
"name": "ABC Aata"
}
},
"fulfillment": {
"end": {
"location":
{
"gps": "12.4535445,77.9283792"
}
}
}
});
Beta Was this translation helpful? Give feedback.
All reactions