Create a withdrawal session
Sends funds OUT to a destination you specify. This is the one product where the destination is supplied by you rather than allowlisted by us, so the completion webhook repeats it as destinationWallet for you to reconcile against your own dispatch record before marking the withdrawal settled.
Same orderId idempotency as checkout.
Authorizations
Body
Amount in BASE UNITS, as a string (10 USDC at 6 decimals is "10000000"). A string because these exceed IEEE-754 safe range at 18 decimals. Omit for an OPEN amount — the payer names it — which is the normal shape for deposit and legal for withdrawal; a checkout almost always fixes it.
"10000000"
Response
Idempotent replay: the existing non-terminal session for the same partner and orderId.
Domain error code. OK on success; non-OK values come with a non-null error.
OK, BAD_REQUEST, UNAUTHORIZED, FORBIDDEN, NOT_FOUND, CONFLICT, RATE_LIMITED, PAYLOAD_TOO_LARGE, UNSUPPORTED_CHAIN, INTERNAL_ERROR, UPSTREAM_TIMEOUT, UPSTREAM_ERROR, SERVICE_UNAVAILABLE, KILL_SWITCH_ACTIVE, CIRCUIT_BREAKER_OPEN, NO_QUOTE_AVAILABLE, QUOTE_STALE, SIMULATION_REVERTED, INVALID_PARAMS, AMOUNT_OUT_OF_BOUNDS, PAYOUT_TOKEN_NOT_ALLOWED, RECIPIENT_NOT_ALLOWLISTED, PAYMENT_EXPIRED, PAYMENT_NOT_FOUND, PAYMENT_IN_PROGRESS, NOT_CONFIGURED, INSUFFICIENT_LIQUIDITY, ROUTE_TEMPORARILY_UNAVAILABLE, UNSUPPORTED_ROUTE, OVER_DELIVERY_CAP, ORIGIN_NOT_CONFIGURED, ORIGIN_NOT_ALLOWED, PUBLISHABLE_DEPOSIT_NOT_ENABLED, PUBLISHABLE_WITHDRAWAL_NOT_ENABLED "OK"