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

➑️Buy flow

1. Collect valid IDs

Use the shared resources endpoints to select region, payment method, fiat currency, cryptocurrency, and network.

2. Search all eligible providers

curl 'https://api.coindisco.com/api/white-label/v1/search-buy-quotes/' \
  --request POST \
  --header 'Partner-Api-Key: pk_test_YOUR_PUBLIC_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
    "region": 157,
    "payment_method": 39,
    "cryptocurrency": 1,
    "currency": 3,
    "network": 1,
    "currency_amount": "400"
  }'

Without service, quote aggregation is asynchronous:

{
  "search_id": "7e038ab6-3c65-41cb-a364-2d47471b00de"
}

Continue while status is in_progress. Render partial results only if the application clearly indicates that the search is still running.

Search a specific provider

Add "service": 5 to the request. When one request item contains a service, the endpoint attempts the provider synchronously and returns the quote object directly instead of a search_id.

4. Create the buy transaction

Send the selected provider and the same inputs used for its quote. Include the quote_id when it is returned.

Open the returned link; never construct a provider checkout URL from provider fields.

When the request comes from your backend, set X-Forwarded-For to the end user's real public IP. Providers use it for geo and risk checks, and some bind it to the checkout session. See Forwarding the end-user IP.

Last updated