Prefill all query string parameters in the Offramp URL and take users straight to the order preview screen!
Security Requirements must be enforced: Your backend API that generates session tokens must implement proper security measures. See Security Requirements for complete implementation guidance.
Should my App use One-click-sell?If your users have already selected the asset they want to sell, an amount, and/or a cashout method in your App, yes.
If you want to preset these values for your users, yes.
Get a ready-to-use One-Click-Sell URL directly from the Sell Quote API by including source_address, redirect_url, and partner_user_ref parameters in your quote request!
Generating One-Click-Sell URLs
One-Click-Sell URLs must have following query parameters set in the URL:
defaultAsset
presetFiatAmount or presetCryptoAmount
Then it initializes Coinbase Offramp with the appropriate parameters to execute that sell.
For example:
Crypto amount only:
Query parameters