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. Supports the Universal On-Ramp API — specify settlement currency and destination address per request.
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. |
settlementCurrencyOptionalstring | XRPL token to settle in. "XRP" or "RLUSD". Defaults to your org setting. |
destinationAddressOptionalstring | Customer's XRPL r-address for direct settlement. Overrides org wallet. |
skipTrustlineCheckOptionalboolean | If true, skips the XRPL trustline pre-check. Use if you pre-validate trustlines. |
callbackUrlOptionalstring | URL to redirect the customer after payment completes. |
metadataOptionalobject | Arbitrary key-value pairs to attach to the session (returned in webhooks). |