Authorizations
A JWT signed using your CDP API Key Secret, encoded in base64. Refer to the Generate Bearer Token section of our Authentication docs for information on how to generate your Bearer Token.
Body
The timestamp of when the user acknowledged that by using Coinbase Onramp they are accepting the Coinbase Terms (https://www.coinbase.com/legal/guest-checkout/us), User Agreement (https://www.coinbase.com/legal/user_agreement), and Privacy Policy (https://www.coinbase.com/legal/privacy).
"2025-04-24T00:00:00Z"
The address the purchased crypto will be sent to.
"0x71C7656EC7ab88b098defB751B7401B5f6d8976F"
The name of the crypto network the purchased currency will be sent on.
Use the Onramp Buy Options API to discover the supported networks for your user's location.
"base"
The verified email address of the user requesting the onramp transaction. This email must be verified by your app (via OTP) before being used with the Onramp API.
"test@example.com"
A unique string that represents the user in your app. This can be used to link individual transactions together so you can retrieve the transaction history for your users. Prefix this string with “sandbox-” (e.g. "sandbox-user-1234") to perform a sandbox transaction which will allow you to test your integration without any real transfer of funds.
This value can be used with with Onramp User Transactions API to retrieve all transactions created by the user.
"user-1234"
The fiat currency to be converted to crypto.
"USD"
The type of payment method to be used to complete an onramp order.
GUEST_CHECKOUT_APPLE_PAY
"GUEST_CHECKOUT_APPLE_PAY"
The phone number of the user requesting the onramp transaction in E.164 format. This phone number must be verified by your app (via OTP) before being used with the Onramp API.
Please refer to the Onramp docs for more details on phone number verification requirements and best practices.
"+12055555555"
Timestamp of when the user's phone number was verified via OTP. User phone number must be verified every 60 days. If this timestamp is older than 60 days, an error will be returned.
"2025-04-24T00:00:00Z"
The ticker (e.g. BTC
, USDC
, SOL
) or the Coinbase UUID (e.g. d85dce9b-5b73-5c3c-8978-522ce1d1c1b4
) of the crypto asset to be purchased.
Use the Onramp Buy Options API to discover the supported purchase currencies for your user's location.
"USDC"
If true, this API will return a quote without creating any transaction.
Optional partner order reference ID.
"order-1234"
A string representing the amount of fiat the user wishes to pay in exchange for crypto. When using this parameter, the returned quote will be inclusive of fees i.e. the user will pay this exact amount of the payment currency.
"100.00"
A string representing the amount of crypto the user wishes to purchase. When using this parameter the returned quote will be exclusive of fees i.e. the user will receive this exact amount of the purchase currency.
"10.000000"
The IP address of the end user requesting the onramp transaction.
"127.0.0.1"
The domain that the Apple Pay button will be rendered on. Required when using the GUEST_CHECKOUT_APPLE_PAY
payment method and embedding the payment link in an iframe.
"pay.coinbase.com"
Response
Successfully created an onramp order.
An Onramp order.
A payment link to pay for an order.
Please refer to the Onramp docs for details on how to integrate with the different payment link types.