Complete reference for the XRN Pay API
The XRN Pay API provides secure payment processing with built-in foreign exchange rate conversion. All API endpoints return JSON responses and use standard HTTP status codes.
API access requires JWT authentication. Sign up to receive your access token and start processing payments immediately.
Enterprise-grade rate limiting is implemented to ensure optimal performance and security for all users.
Check the health status of the API.
Process a payment transaction with automatic FX conversion to USD.
Field | Type | Required | Description |
---|---|---|---|
sender |
string | Yes | Valid email address of the sender |
recipient |
string | Yes | Valid email address of the recipient (must be different from sender) |
amount |
number | Yes | Payment amount (positive, max 2 decimal places) |
currency |
string | Yes | 3-letter ISO currency code (e.g., USD, EUR, GBP) |
Get the current foreign exchange rate between two currencies.
Parameter | Type | Description |
---|---|---|
source |
string | Source currency code (e.g., EUR) |
target |
string | Target currency code (e.g., USD) |
Code | Description | Meaning |
---|---|---|
200 | OK | Request successful |
400 | Bad Request | Invalid request format (e.g., malformed JSON) |
404 | Not Found | Endpoint does not exist |
405 | Method Not Allowed | HTTP method not supported for this endpoint |
422 | Unprocessable Entity | Request validation failed |
500 | Internal Server Error | Server encountered an error |
The following currencies are supported for payment processing: