
Create withdrawalPOST
OpenStock Docs
POST
/
api/withdrawal-api/withdrawalswithdrawal_api50 withdrawal requests / hourRequests a withdrawal from one of the store’s wallets. The request is accepted as pending and processed in the background; subscribe with webhook_url to learn the outcome.
Irreversible
Crypto transfers cannot be reversed. Validate destination addresses on your side before calling this endpoint.
Authorization#
AuthorizationBearer <token>In: header. A store API key starting with sk_ that has the withdrawal_api permission.
Request body#
application/json
currencyrequiredstringBTC, LTC or ETH.
amountrequirednumberAmount to withdraw. Minimums: BTC 0.0001, LTC 0.001, ETH 0.001.
to_addressrequiredstringDestination address. Must be valid for the currency and differ from the store wallet.
webhook_urlstringReceives withdrawal.completed or withdrawal.failed.
metadataobjectKey/value pairs echoed back in webhooks.
Responses#
- 201Withdrawal accepted for processing.
- 400Invalid currency, amount below minimum, bad address or insufficient balance.
- 404The store has no active wallet for that currency.
- 401Missing, malformed, disabled or expired API key.
- 429The hourly limit for this key was reached.