XRPayDocs
SupportStart free
HomeDocumentationAPI Reference

API Reference

Integrate XRPay directly into your application backend. Use the interactive console below to test our endpoints in real-time.

POST/api/v1/checkout

Create 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

ParameterDescription
apiKeyRequired
string
Your organization's API key (can also be passed in body for this endpoint).
amountRequired
number
The fiat amount to charge (e.g., 10.50). Must be positive.
currencyRequired
string
Three-letter fiat currency code (e.g., USD, EUR).
orderIdOptional
string
Your internal system's order identifier.
customerEmailOptional
string
Email address to pre-fill on checkout.
settlementCurrencyOptional
string
XRPL token to settle in. "XRP" or "RLUSD". Defaults to your org setting.
destinationAddressOptional
string
Customer's XRPL r-address for direct settlement. Overrides org wallet.
skipTrustlineCheckOptional
boolean
If true, skips the XRPL trustline pre-check. Use if you pre-validate trustlines.
callbackUrlOptional
string
URL to redirect the customer after payment completes.
metadataOptional
object
Arbitrary key-value pairs to attach to the session (returned in webhooks).

Passed as Bearer token automatically.