/api/v1/payment-intentsCreate a payment intent
Send a secret API key or an XRPay Connect access token in the Authorization header.
checkout.writeA connected access token must include this merchant-approved scope. Secret API keys remain subject to their own account permissions.
Parameters
Idempotency-KeyheaderrequiredStable key for one logical operation. Reusing a key with different parameters returns HTTP 409.
stringJSON body
amount_minorrequiredFiat amount in the currency's smallest unit.
integercurrencyrequiredAccepted request value.
stringexternal_order_idrequiredAccepted request value.
stringorder_numberAccepted request value.
stringcustomer_emailAccepted request value.
stringlocation_idAccepted request value.
stringterminal_idAccepted request value.
stringoperator_idAccepted request value.
stringintegration_typeAccepted request value.
pos | ecommerce | invoice | payment_link | apipayment_method_typesOptional allow-list enforced by both the hosted checkout UI and server actions.
card | mobile_money | bank | xrp | rlusd | crypto[]collection_modeUse direct with mobile_money to send the approval prompt to the customer's phone without creating a hosted checkout page.
hosted | directpayment_method_dataRequired only for direct Mobile Money collection. The full phone number is used for submission but is never returned.
objectsettlement_currencyAccepted request value.
XRP | RLUSDmetadataAccepted request value.
objectline_itemsAccepted request value.
object[]success_urlAccepted request value.
stringcancel_urlAccepted request value.
stringexpires_inRelative expiry in seconds. Mutually exclusive with expires_at.
integerexpires_atAbsolute expiry at least 60 seconds and no more than 30 days ahead. Mutually exclusive with expires_in.
stringResponses
Idempotent replay
Created