Name | Type | Req | Description |
---|---|---|---|
sell_currency | Y | ID of the crypto asset the user wants to offramp. Retrieved from the Offramp Options API. | |
sell_network | N | Name of the network that the sell currency is on. Retrieved from the Offramp Options API. If omitted, the default network for the crypto currency is used. | |
sell_amount | String | Y | Crypto amount the user wants to offramp, exclusive of network fees |
cashout_currency | String | Y | Fiat currency of the cashout amount, e.g., USD . |
payment_method | Y | ID of payment method used to cashout the sell. Retrieved from the options API. | |
country | Y | ISO 3166-1 two-digit country code string representing the user’s country of residence, e.g., US . | |
subdivision | N | ISO 3166-2 two-digit country subdivision code representing the user’s subdivision of residence within their country, e.g. NY . Required if the country=“US” because certain states (e.g., NY ) have state specific asset restrictions. |
Name | Description |
---|---|
cashout_total | Object with amount and currency of the fiat amount of crypto asset to be received, fees deducted. The currency will match the cashout_currency in the request if it is supported, otherwise it falls back to USD . |
cashout_subtotal | Object with amount and currency of the total fiat cost of the crypto asset, fees not deducted. The currency will match the cashout_currency . |
sell_amount | Object with amount and currency of the crypto that to be sold. The currency will match the sell_currency in the request. The number of decimals will be based on the crypto asset. |
coinbase_fee | Object with amount and currency of the fee changed by the Coinbase exchange to complete the transaction. The currency will match the cashout_currency . |
quote_id | Reference to the quote that should be passed into the initialization parameters when launching the Coinbase Onramp widget via the SDK or URL generator. |