Skip to content

Withdrawals lifecycle

  1. Request a withdrawal quote through the API (POST /withdrawal/quote)
  2. Commit the quote (POST /withdrawal/commit)
  3. Listen for withdrawal.statusChanged webhook events
  4. Update your internal withdrawal status when it reaches completed or failed

See Withdrawal statuses for the full status table.

  1. Merchant requests a withdrawal quote and commits it

    A withdrawal can be initiated either:

    • through the Cryptonly Merchant Dashboard
    • via the API

    The merchant provides:

    • the destination wallet address
    • the cryptocurrency and amount
    • whether auto-converting may cover a shortfall

    In the dashboard, Get Quote shows the quote before you confirm:

    Confirm Withdrawal dialog: destination address, 500 USDT TRC-20, a 1.5 USDT network fee, 501.5 USDT total deducted and the quote expiry.Confirm Withdrawal dialog: destination address, 500 USDT TRC-20, a 1.5 USDT network fee, 501.5 USDT total deducted and the quote expiry.

    Through the API, the flow is two steps:

    1. Quote — returns a fee estimate and a short-lived quoteId
    2. Commit — creates the withdrawal in created status and debits the required balance, including the network fee

    Once the quote is committed, Cryptonly begins processing the withdrawal.

  2. Cryptonly sends the on-chain transaction

    Cryptonly creates and broadcasts an on-chain transaction based on the withdrawal request details.

    The withdrawal moves to processing while the underlying network transfer is prepared, broadcast, and monitored.

  3. Withdrawal completion and webhooks

    Cryptonly sends a withdrawal.statusChanged webhook on each status transition after commit.

    Your integration should handle at least:

    • created → processing — on-chain send has started
    • processing → completed — withdrawal confirmed on-chain
    • processing → failed — withdrawal could not be completed; debited balance is returned

    The webhook goes to the webhookUrl passed on commit, or to the default withdrawal webhook URL under Settings → Integration.