Prerequisites
Before you begin, ensure you have:- A PayNext account with API access
- A tool to send HTTP requests (e.g.,
curl, Postman, or fetch) - Basic understanding of REST APIs
Quick Start
1
Choose Environment
Select the appropriate base URL for your development stage—sandbox for testing or production for live transactions.
2
Set API Version
Include the
X-API-Version header in all requests to ensure consistent behavior as we release updates.3
Authenticate Requests
Add your API key to the
Authorization header to securely access PayNext endpoints.curl
You should receive a JSON response with your payment data or an empty array if no payments exist.
API Endpoint Deployments
Choose the correct base URL for your environment:- Sandbox:
https://sandbox-api.paynext.com/ - Production:
https://api.paynext.com
Use the sandbox environment for all development and testing. Switch to production only when your integration is complete and ready for live transactions.
API Versioning
PayNext updates the API regularly as we release new features. To control your integration, pass aX-API-Version header in every request.
curl