Available collections
Payment Gateway APIs
Complete collection for payment processing, orders, refunds, settlement, and subscription APIs.
Payouts APIs
Transfer funds and manage company finances through payout APIs.
Testing APIs in Postman
Getting started
To import a Postman collection, choose your preferred method:- Fork Collection (Recommended)
- Download and Import
- Click on any collection link above.
- Click the Fork button in Postman.
- Choose your workspace.
- The collection will be available in your workspace with automatic updates.
- Create a new environment in Postman.
- Add the following variables:
base_url: Set tohttps://sandbox.cashfree.com(sandbox) orhttps://api.cashfree.com(production)client_id: Your Cashfree Client IDclient_secret: Your Cashfree Client Secretx-api-version: API version (for example,2025-01-01)
- Select your environment from the dropdown in the top-right corner.
- Choose a simple request like “Get Order” or “Create Order.”
- Review the request parameters and body.
- Click Send to execute the request.
Features and best practices
Each Postman collection includes the following features:- Pre-configured requests with correct HTTP methods and headers.
- Sample request bodies with placeholder data.
- Environment variables for dynamic URLs and authentication.
- Example data including test card numbers and mock account details.
- Test scripts for automatic response validation.
Troubleshooting common issues
The following are common Postman collection errors and solutions:Authentication Failed (401)
Authentication Failed (401)
- Verify your
client_idandclient_secretare correct. - Ensure you’re using the right environment (sandbox vs production).
- Check that your credentials are active and not expired.
Invalid API Version (400)
Invalid API Version (400)
- Confirm the
x-api-versionheader is set correctly. - Use
2025-01-01for the latest API version. - Check the API documentation for supported versions.
Environment Variables Not Working
Environment Variables Not Working
- Ensure you’ve selected the correct environment.
- Verify all required variables are defined.
- Check for typos in variable names (case-sensitive).
Request Validation Errors
Request Validation Errors
- Review the API documentation for required fields.
- Check data types and formats in request body.
- Ensure all mandatory parameters are included.
Support
If you need help with Postman collections or API integration, you can use the following resources:- Documentation: Review the detailed API documentation.
- Support form: Submit a ticket through the support form for technical assistance.
- Support: Contact the developer support team.
- Community: Join the developer community.