For the complete documentation index, see llms.txt. This page is also available as Markdown.

⬅️Sell flow

1. Collect sell-compatible inputs

Use providers with sell_available: true and payment methods with sell_available: true. Still validate the complete region, asset, network, currency, method, and amount combination through sell quote search.

2. Search sell quotes

curl 'https://api.coindisco.com/api/white-label/v1/search-sell-quotes/' \
  --request POST \
  --header 'Partner-Api-Key: pk_test_YOUR_PUBLIC_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "region": 157,
    "currency": 3,
    "network": 2,
    "payment_method": 39,
    "cryptocurrency": 2,
    "cryptocurrency_amount": "0.05"
  }'
{
  "search_id": "e0070884-d502-44ba-93c2-ee77101897cb"
}

As with buy quotes, adding service requests one provider synchronously.

4. Create the sell transaction

Open the link and instruct the user to follow the provider's deposit and payout steps exactly.

When the request comes from your backend, set X-Forwarded-For to the end user's real public IP, the same as in the buy flow. See Forwarding the end-user IP.

Last updated