API Authentication
All API requests require authentication using your API credentials in the request headers.Using Your API Credentials
Authenticate every request with your API key in thex-api-key header. You can also include your merchant ID in the x-merchant-id header:
x-merchant-id is optional.Example Request
Best Practices
Store Keys Securely
Always use environment variables to store your API credentials:Use Different Keys for Each Environment
You’ll receive separate API keys for:- Sandbox - For testing and development
- Production - For live payments
Rotate Keys Regularly
For security, periodically rotate your API keys:- Generate a new key in your dashboard
- Update your application with the new key
- Test thoroughly
- Deactivate the old key
Getting Your API Keys
- Sign up for a Cheqpay account
- Navigate to your dashboard
- Go to Settings → API Keys
- Copy your keys for sandbox and production
Contact our support team at support@cheqpay.mx if you need help setting up your API keys.