Moonpay Onramp

This endpoint is used to create a Moonpay onramp URL.

Body Params
number

A positive integer representing how much fiat the user wants to spend

string

The code of the fiat currency (e.g. usd, aud, gbp) you want the user to purchase with

number

A positive integer representing how much crypto the user wants to buy. If you pass both fiatAmount and cryptoAmount, the cryptoAmount amount will take precedence.

cryptoCurrency
object

Define the crypto network

string

This is the URL where you want to send the user after they finish the buying process. A transaction ID and status is added to the URL as query parameters.

string

This is the user's email address. If you provide a valid email address, the user won't need to enter it

string

This is the cryptocurrency wallet address where the purchased funds will be sent. If a valid wallet address is passed, the user won't need to enter one.

Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Credentials
OAuth2
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
*/*
application/json