API Reference
Integrate XRPay directly into your application backend. Use the interactive console below to test our endpoints in real-time.
POST
/api/v1/checkoutCreate Checkout Session
Creates a new payment session and returns a hosted checkout URL along with QR code data. Perfect for custom e-commerce integrations.
Authentication
Authenticate your requests by including your API key. Test keys start with pk_test_ or sk_test_.
Required Key Type: Publishable Key (pk_test_... or pk_live_...)
Parameters
| Parameter | Description |
|---|---|
apiKeyRequiredstring | Your organization's API key (can also be passed in body for this endpoint). |
amountRequirednumber | The fiat amount to charge (e.g., 10.50). Must be positive. |
currencyRequiredstring | Three-letter fiat currency code (e.g., USD, EUR). |
orderIdOptionalstring | Your internal system's order identifier. |
customerEmailOptionalstring | Email address to pre-fill on checkout. |