Initiate a Transaction (V2)
Changed onCreates a checkout session bound to the end user's IP and returns the URL to redirect them to.
This endpoint requires a Signature V2 request. Sign every call with your Ed25519 key and send x-onramper-signature, x-onramper-timestamp and x-onramper-nonce. There is no API-key-only mode: an unsigned or invalid request returns 401. See API: Sign requests (V2).
The body is the same as POST /checkout/intent, plus endUserIpHash (required) and platform. Both are covered by the signature, so build them before you sign. clientIpHash remains accepted as a deprecated alias.
Step-by-step integration guide: Checkout V2. Widget integrations do not call this endpoint. They pass endUserIpHash as a signed URL parameter instead: Widget: Sign a URL (V2).
Redirect the browser to redirectUrl exactly as returned. It carries a one-time resume token, so treat it as a credential. Each session is single-use and expires 10 minutes after intent.
🛠️ Please Use https://api-stg.onramper.com/ For Test Environments
Request
- Base URLhttps://api.onramper.com
- Authnone declared. Required headers: x-onramper-signature, x-onramper-timestamp, x-onramper-nonce
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Ed25519 signature over the canonical request, prefixed with v2:.
ISO 8601 timestamp used in the signature.
UUID v4, unique per request. A reused nonce is rejected.
Request body
Example request
{
"onramp": "moonpay",
"source": "eur",
"destination": "btc",
"amount": 100,
"type": "buy",
"paymentMethod": "creditcard",
"network": "bitcoin",
"uuid": "6756256e-d07f-42f0-a873-4d992eec8a2e",
"originatingHost": "buy.onramper.com",
"partnerContext": "123-CLIENT-ORDER-ID-456",
"email": "satoshi@gmx.com",
"wallet": {
"address": "bc1qxy2kgdygjrsqtzq2n0yrf2493p83kkfjhx0wlh"
},
"supportedParams": {
"theme": {
"isDark": false,
"themeName": "light-theme",
"primaryColor": "#241D1C",
"secondaryColor": "#FFFFFF",
"primaryTextColor": "#141519",
"secondaryTextColor": "#6B6F80",
"cardColor": "#F6F7F9"
},
"partnerData": {
"redirectUrl": {
"success": "http%3A%2F%2Fredirecturl.com%2F"
}
}
},
"endUserIpHash": "3b7a4f1c8e2d5a9b6c0f3e8d1a4b7c2e5f8a1d4b7c0e3f6a9b2c5d8e1f4a7b0c",
"platform": "mobile-ios"
}Response
OK
Example response
{
"redirectUrl": "https://buy.onramper.com?session=01ABCDEFGHIJKLMNOPQRSTUVWX&resumeToken=8f2c1d5e9a3b7c0f",
"sessionId": "01ABCDEFGHIJKLMNOPQRSTUVWX",
"resumeToken": "8f2c1d5e9a3b7c0f"
}Changes
- info
endpoint added
- info