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. 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

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.

Passed as Bearer token automatically.