Pre-Requisites to integrate with ONDC APIs
Before integrating ONDC APIs into your application, ensure you have the following prerequisites in place to facilitate a smooth integration process.
API Key and Authentication
All the APIs use an API key to authenticate requests. This will be shared by our team. Ensure you include it in the X-API-KEY header of your requests.
- Header Name: X-API-KEY
- Header Value: <your-api-key>
For API keys you can contact us
Encryption Details
Responses from the API are encrypted.
You will need to use a unique encryption key for decryption.
- Key Format: 32-byte hexadecimal string
- Encryption Format: AES-256-CBC
- IV Format: Hexadecimal (16 bytes) — included in the response
Base URL
Use the following base URLs to access the ONDC API endpoints for different environments:
Relay Setup
ONDC APIs use a relay mechanism to facilitate communication between buyer apps, our system, and seller apps. You need to set up proper relay endpoints to ensure seamless data flow. Click here for the reference.
Integration Support
For assistance during the integration process, please contact ONDC support at help@meribachat.in