Skip to navigation

Create Crypto Withdraw Deposit

Create a crypto deposit session for a payout. Returns a deposit address where the merchant can send funds. Once funds are received via the deposit webhook, the payout is automatically initiated.

Authentication

x-coinflow-auth-user-idstring
OR
x-coinflow-auth-session-keystring

Request

This endpoint expects an object.
accountstringRequired

The payout account token (e.g., bank account or debit card token)

speedenumRequired
chainstringRequired

The supported chain name (e.g., “Ethereum”, “Polygon”, “Solana”)

tokenstringRequired

The token symbol to deposit (e.g., “USDC”)

returnAddressstringOptional

Optional end-user wallet address to send funds back to if a withdrawal fails, instead of returning them to the originating wallet. When it is on a different chain than the received funds (Solana USDC), the refund is routed back out through the same cross-chain provider.

idempotencyKeystringOptionalformat: "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$"

Response

Ok
depositAddressstring
paymentChainNamestring
paymentCurrencySymbolstring
paymentAmountstring
chainLogoUrlstring
currencyLogoUrlstring
idempotencyKeystring

The id for this deposit. Use it as the search value on GET /api/merchant/withdraws to look up the resulting payout once funds are received.