API Reference
Anypay API Reference
The Anypay API is organized around REST. Our API accepts JSON-encoded request bodies, returns JSON-encoded responses, and uses standard HTTP response codes and authentication.
Authentication
The Anypay API uses API keys for authentication. You can view and manage your API keys in the dashboard under API Keys.
Authentication Example
curl https://api.anypayx.com/api/v1/prices \
-H "Authorization: Bearer YOUR_API_KEY"
Authentication Security
Your API keys carry many privileges, so be sure to keep them secure. Don't share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
Base URL
All API requests should be made to:
https://api.anypayx.com
Response Codes
Code | Description |
---|---|
200 - OK | Request succeeded |
400 - Bad Request | Invalid request parameters |
401 - Unauthorized | Invalid or missing API key |
404 - Not Found | Resource not found |
500 - Server Error | Internal server error |
Rate Limiting
The API has rate limiting in place to prevent abuse. Rate limits are applied on a per-API-key basis. If you exceed the rate limit, you'll receive a 429 Too Many Requests response.
Current limits:
- 1000 requests per minute for most endpoints
- 100 requests per minute for invoice creation