ankitjh4/indic-ai-skills/ondc-buyer
Claude Code and agent skill by ankitjh4/indic-ai-skills
- community
Checking that the SKILL.md file is still in the repository.
Deploy and manage ONDC buyer applications. Set up buyer reference apps with product discovery, cart management, checkout flows, and order tracking. Handle payment integration, delivery tracking, and ONDC protocol compliance for consumer-facing applications.
Install
npx vskill@latest install ankitjh4/indic-ai-skills/ondc-buyerSKILL.md
ONDC Buyer Skill
This skill helps you deploy and manage ONDC (Open Network for Digital Commerce) buyer applications. ONDC is India's digital commerce network enabling buyers to discover and purchase from sellers across multiple platforms.
What This Skill Does
- Deploy ONDC Buyer Apps: Set up the complete buyer reference application
- Product Discovery: Search and browse products across ONDC network
- Shopping Cart: Manage cart, apply customizations, and handle variants
- Checkout Flow: Handle select, init, confirm, and payment flows
- Order Tracking: Track orders in real-time with GPS/URL-based tracking
- Returns & Cancellations: Process returns, cancellations, and refunds
- IGM Support: File and track issues/complaints with sellers
Architecture Overview
The ONDC Buyer App uses microservice architecture:
- biap-client-node-js: Node.js backend API layer
- biap-app-ui-front: React web application (served via nginx)
- py-ondc-protocol: Python protocol layer for ONDC communication
- biap-igm-node-js: Node.js IGM service for issue management
- biap-bugzilla-service: Bugzilla integration for ticket management
- catalog-service: Catalog indexing and search service
Prerequisites
Before using this skill, ensure you have:
- Docker & Docker Compose installed
- Git with submodule support
- Domain name or ngrok for public endpoint
- Required service accounts:
- Firebase (authentication)
- Juspay or other payment gateway
- Map My India (location services)
- MongoDB (included in docker-compose)
- ONDC Registry Access (for production deployment)
Quick Start
1. Clone and Initialize
2. Generate Cryptographic Keys
This creates signing and encryption keys required for ONDC registration.
3. Configure Environment
4. Deploy Locally (Development)
Access the app at http://localhost (or your configured domain).
5. Register with ONDC
Once deployed, use the registration helper:
Common Operations
Check Application Status
Shows the status of all services (client, frontend, protocol, IGM, catalog).
Search Products
Manage Orders
Handle Returns & Cancellations
Manage IGM Issues
Environment Variables
Key environment variables required (store in Settings > Advanced):
Feature Support Matrix
The ONDC Buyer App implements ONDC Retail v1.2 specification:
| Feature | Status | |
|---|---|---|
| Incremental catalog refresh | ✅ Available | |
| Full catalog refresh | ✅ Available | |
| Product search & discovery | ✅ Available | |
| Shopping cart management | ✅ Available | |
| Checkout flow (select/init/confirm) | ✅ Available | |
| Payment integration (Juspay) | ✅ Available | |
| Order tracking (GPS-based) | ✅ Available | |
| Live order tracking | ✅ Available | |
| Customization (selection) | ✅ Available | |
| Variants support | ✅ Available | |
| Return with liquidation | ✅ Available | |
| Cancellation flows | ✅ Available | |
| RTO (Return to Origin) | ✅ Available | |
| IGM issue management | ✅ Available | |
| Order history | ✅ Available | |
| Multi-store cart | ✅ Available | |
| Address management | ✅ Available | |
| Customization (free text) | 📅 Future scope | |
| Subscription orders | 📅 Future scope | |
| Offers & discounts | 📅 Future scope |
Payment Gateway Integration
Juspay Setup
- Create account at https://dashboard.juspay.in
- Generate API credentials from console
- Download merchant certificate (.pem file)
- Configure environment variables
- Set up webhook endpoints for payment callbacks
Alternative Payment Gateways
To integrate other payment gateways (Razorpay, Paytm, etc.):
Update the payment service to match your gateway's API.
Map My India Integration
MMI provides:
- Address autocomplete
- PIN code lookup
- State/city detection
- Geocoding (lat/long from address)
Required APIs:
https://outpost.mapmyindia.com/api- Authenticationhttps://atlas.mapmyindia.com/api/places/search/json- Searchhttps://explore.mappls.com- Explore placeshttps://apis.mapmyindia.com/advancedmaps/v1- Advanced mappinghttps://atlas.mappls.com/api/places/geocode- Geocoding
Bugzilla Setup (Optional)
For IGM ticket management:
- After deployment, visit
https://yourdomain.com/bugzilla/admin - Login with username
adminand passwordpassword - Configure SMTP settings for email notifications
- Generate API key from dashboard
- Add
BUGZILLA_API_KEYto environment variables - Restart bugzilla container
Note: Bugzilla is optional but recommended for full IGM functionality.
Troubleshooting
Services Not Starting
Search Not Working
- Verify protocol layer is running
- Check ONDC registry connectivity
- Review
/searchrequest/response logs - Ensure catalog service is indexed
Payment Failures
- Verify Juspay credentials
- Check webhook configuration
- Review payment service logs
- Test with Juspay sandbox first
Order Tracking Issues
- Confirm seller provides tracking URLs
- Check GPS coordinate format
- Verify
/trackendpoint responses - Review order status updates
Security Notes
- Store all secrets in Zo's Settings > Advanced
- Never commit
.envfiles or credentials to version control - Use HTTPS for all endpoints
- Implement rate limiting on public APIs
- Validate payment webhook signatures
- Sanitize user inputs
- Regular security audits
Deployment Options
Local Development (with ngrok)
Production Deployment (with SSL)
Ansible Deployment
References
See the references/ folder for:
- ONDC API Contract v1.2 documentation
- Buyer app user manual
- Feature implementation guide
- Integration requirements
- Payment gateway setup guides
Support
- ONDC Documentation: https://docs.ondc.org
- Buyer App Repo: https://github.com/ONDC-Official/ondc-sdk
- ONDC Slack: https://witsinnovationlab.slack.com/archives/C0280AR5CUQ
- Registry Form: https://forms.gle/registrationform
- Juspay Docs: https://developer.juspay.in
When to Use This Skill
Use this skill when you need to:
- Deploy an ONDC-compliant buyer application
- Build a consumer-facing shopping experience on ONDC
- Integrate payment gateways with ONDC flows
- Implement product search and discovery
- Handle end-to-end order management
- Process returns and cancellations
- File and track customer issues (IGM)
- Scale buyer operations across India
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/ondc-buyer/SKILL.md
Popularity
- Repository stars
- 65
- Repository forks
- 10
- 7-day trend score
- 21
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/ankitjh4/indic-ai-skills/ondc-buyer)