Get Sell Redirect

View as Markdown
Fetch the Transak widget redirect URL using the parameters supplied in Ledger's format. Use this endpoint after quote generation when you are ready to send the user into the hosted sell flow.

Authentication

x-api-keystring
Transak API key available from the Transak Dashboard.

Query parameters

accountIdstringRequired
Ledger account ID.
cryptoCurrencystringRequired
Ledger ID for the selected crypto currency.
fiatCurrencystringRequired
Selected fiat currency code.
cryptoAmountstringRequired
Selected crypto amount.
paymentMethodstringRequired
Selected Ledger payment method.
modestringRequired

Selected mode (buy or sell).

bankResidencystringRequired

User country code in ISO 3166-1 alpha-2 format.

ledgerTransactionIdstringRequired

User’s Ledger transaction identifier (order ID).

Response

Redirect URL generated successfully.
rampRedirectUrlstringformat: "uri"
Redirect URL for launching the Transak sell flow.

Errors

400
Bad Request Error
500
Internal Server Error