latestOpenAPI 3.0.32026-08-20146131.7 MB
672b1916ba61
Payments
Create on-ramp quote
Creates a provider-specific on-ramp quote. Hosted providers return a hosted URL; instruction-based providers return manual funding instructions.
post/v1/payments/ramps/onramp/quote
Request body
Example request
{
"provider": "moonpay",
"counterpartyId": "counterparty_example",
"destinationWallet": "privy_wallet_123",
"cryptoToken": "USDC",
"fiatCurrency": "USD",
"fiatAmount": "100.00",
"redirectUrl": "https://example.com/onramp/complete"
}Response
On-ramp quote created
Example response
{
"data": {
"quote": {
"id": "ramp_quote_example",
"provider": "moonpay",
"status": "pending",
"deliveryMode": "hosted",
"paymentInstructions": [
{
"provider": "lightspark",
"kind": "crypto_deposit",
"destinationAddress": "So11111111111111111111111111111111111111112",
"cryptoCurrency": "USDC",
"network": "SOLANA",
"accountOrWalletInfo": {
"accountType": "USD_ACCOUNT",
"accountNumber": "0000000000000000",
"routingNumber": "000000000",
"paymentRails": [
"ACH",
"WIRE"
],
"reference": "quote-reference-example",
"bankName": "Example Bank",
"address": "ExampleSolanaWalletAddress11111111111111111",
"assetType": "USDC"
}
}
],
"sendingCurrency": {
"code": "USDC",
"decimals": 2
},
"receivingCurrency": {
"code": "USDC",
"decimals": 2
},
"feeCurrency": {
"code": "USDC",
"decimals": 2
},
"expiresAt": "2025-01-01T00:00:00.000Z"
}
},
"meta": {
"requestId": "req_example",
"timestamp": "2025-01-01T00:00:00.000Z"
}
}