Quotes
Get a quote
Build quotes for fiat->crypto transactions
POST
Build a buy quote
Some Platform API capabilities must be enabled on your account by MoonPay
before you can call them. If this endpoint returns an unexpected
404, see
Capability
enablement.Identifying the destination token
The destination crypto asset is identified differently depending on whether it is a centralised (CeFi) or DeFi token:- CeFi assets: pass
destination.asset.code(for example,ETHorUSDC_SOL). - DeFi tokens: pass
destination.asset.caip19, the CAIP-19 identifier returned by the list assets endpoint. A DeFi token’scodeis not unique, socaip19is required to disambiguate it.
code or caip19. If you send both, caip19 takes
precedence.
For DeFi tokens, set the amount on source.amount. Quoting by the amount of
destination token isn’t supported. The quote response returns the resolved
destination.asset.caip19 and a top-level slippageBps. See
MoonPay Gateway.Authorizations
Body
application/json
Disclosures the customer accepted in your UI. Send them only after a quote returned the matching disclosure in paymentDisclosures, for example wallet-ownership-custodial.
Each id and version must match a disclosure this quote returns, or the request fails with 400. Attestations are dropped when this quote asks for no declaration, for example when it returns no wallet-ownership disclosure.
Maximum array length:
2