curl --request POST \
--url https://api.moonpay.com/platform/v1/quotes/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": {
"asset": {
"code": "USD"
},
"amount": "<string>"
},
"destination": {
"asset": {
"code": "<string>"
},
"amount": "<string>"
},
"wallet": {
"address": "0x1234567890123456789012345678901234567890"
}
}
'{
"data": {
"source": {
"amount": "<string>",
"asset": {
"code": "USD"
}
},
"destination": {
"amount": "<string>",
"asset": {
"code": "<string>",
"name": "<string>",
"precision": 123
}
},
"fees": {
"network": {
"amount": "2.39",
"asset": {
"code": "USD"
}
},
"moonpay": {
"amount": "4.99",
"asset": {
"code": "USD"
}
},
"ecosystem": {
"amount": "1.00",
"asset": {
"code": "USD"
}
}
},
"wallet": {
"address": "0x1234567890123456789012345678901234567890"
},
"paymentMethod": {
"type": "apple_pay",
"id": "<string>"
},
"limits": {
"daily": {
"limit": {
"amount": "<string>",
"asset": {
"code": "USD"
}
},
"remaining": {
"amount": "<string>",
"asset": {
"code": "USD"
}
}
},
"monthly": {
"limit": {
"amount": "<string>",
"asset": {
"code": "USD"
}
},
"remaining": {
"amount": "<string>",
"asset": {
"code": "USD"
}
}
},
"yearly": {
"limit": {
"amount": "<string>",
"asset": {
"code": "USD"
}
},
"remaining": {
"amount": "<string>",
"asset": {
"code": "USD"
}
}
}
},
"expiresAt": "2023-11-07T05:31:56Z",
"executable": true,
"exchangeRate": "<string>",
"signature": "<string>"
}
}Build quotes for fiat->crypto transactions
curl --request POST \
--url https://api.moonpay.com/platform/v1/quotes/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"source": {
"asset": {
"code": "USD"
},
"amount": "<string>"
},
"destination": {
"asset": {
"code": "<string>"
},
"amount": "<string>"
},
"wallet": {
"address": "0x1234567890123456789012345678901234567890"
}
}
'{
"data": {
"source": {
"amount": "<string>",
"asset": {
"code": "USD"
}
},
"destination": {
"amount": "<string>",
"asset": {
"code": "<string>",
"name": "<string>",
"precision": 123
}
},
"fees": {
"network": {
"amount": "2.39",
"asset": {
"code": "USD"
}
},
"moonpay": {
"amount": "4.99",
"asset": {
"code": "USD"
}
},
"ecosystem": {
"amount": "1.00",
"asset": {
"code": "USD"
}
}
},
"wallet": {
"address": "0x1234567890123456789012345678901234567890"
},
"paymentMethod": {
"type": "apple_pay",
"id": "<string>"
},
"limits": {
"daily": {
"limit": {
"amount": "<string>",
"asset": {
"code": "USD"
}
},
"remaining": {
"amount": "<string>",
"asset": {
"code": "USD"
}
}
},
"monthly": {
"limit": {
"amount": "<string>",
"asset": {
"code": "USD"
}
},
"remaining": {
"amount": "<string>",
"asset": {
"code": "USD"
}
}
},
"yearly": {
"limit": {
"amount": "<string>",
"asset": {
"code": "USD"
}
},
"remaining": {
"amount": "<string>",
"asset": {
"code": "USD"
}
}
}
},
"expiresAt": "2023-11-07T05:31:56Z",
"executable": true,
"exchangeRate": "<string>",
"signature": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt
Use this file to discover all available pages before exploring further.
Bearer authentication header using an access token.
Example: Authorization: Bearer <accessToken>
Source asset in fiat. Amount can be set in source or destination.
Show child attributes
{
"amount": "100.02",
"asset": { "code": "USD" }
}Destination asset in crypto. Amount can be set in destination or source.
Show child attributes
Wallet address and optional tag where the crypto will be sent. Required for the quote to be executable.
Show child attributes
{
"address": "0x1234567890123456789012345678901234567890"
}Payment method for the transaction. Required for the quote to be executable.
Show child attributes
The request has succeeded.
Quote for a fiat-to-crypto buy. Contains locked rate, fees, expiry, and signature for payment execution.
Show child attributes
{
"source": {
"amount": "100.00",
"asset": { "code": "USD" }
},
"destination": {
"amount": "0.00114",
"asset": { "code": "BTC" }
},
"fees": {
"network": {
"amount": "2.39",
"asset": { "code": "USD" }
},
"moonpay": {
"amount": "4.99",
"asset": { "code": "USD" }
},
"ecosystem": {
"amount": "1.00",
"asset": { "code": "USD" }
}
},
"wallet": {
"address": "0x1234567890123456789012345678901234567890"
},
"paymentMethod": {},
"limits": null,
"expiresAt": "2026-03-27T12:30:00.000Z",
"executable": true,
"exchangeRate": "87523.17",
"signature": "cXVvdGUuc2lnbmF0dXJl..."
}