Prerequisites: You need a Sandbox account. Sign up here if you don’t have one.
Send your first API request
1
Get your API credentials
Navigate to Sandbox Console and go to Settings → API Keys to retrieve your API Key and API Secret.You’ll see two sets of credentials:
- Test environment: Keys prefixed with
key_testfor development - Live environment: Keys prefixed with
key_livefor production
2
Authenticate to get an access token
Use the Authenticate API to generate an access token. Pass your API Key and API Secret in the request headers.Response
Access tokens are valid for 24 hours. Regenerate a new token when it expires.
3
Make your first API call
You are all set to use Sandbox APIs
Environment host URLs
| Environment | Host url |
|---|---|
| Test | https://test-api.sandbox.co.in |
| Production | https://api.sandbox.co.in |
The same workflow works for both test and production environments. Use the appropriate host url based on your environment.