Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console

Request payout

Treasury, Cash Management & FX Settlement

POST

/payout

Request payout

Sandbox unsupportedcreatePayout

Requests a cash withdrawal from your master wallet to a bank account. An admin reviews and processes payouts within 2 business days. The requested amount is reserved immediately from your wallet balance. Sandbox payout creation is unsupported and returns HTTP 422 because virtual funds cannot be paid out.

Parameters

This endpoint has no path or query parameters.

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Idempotency-KeystringheaderRequired

Unique string that makes write calls safe to retry on network failure. Required for money movement, trading, KYC, subscriptions, and webhook creation. Deduplicated for 24 hours -- duplicate keys return the cached response. HTTP 409 if a concurrent request with the same key is still in progress.

Example: dep_user42_1743152580

Request body

amountnumberRequired

USD to withdraw. Must not exceed master wallet balance.

Example: 5000

bankDetailsobjectRequired
bankDetails.bankNamestringRequired

Name of the receiving bank.

Example: "Equity Bank Kenya"

bankDetails.accountNamestringRequired

Account holder name.

Example: "ACME Fintech Ltd"

bankDetails.accountNumberstringRequired

Bank account number or IBAN.

Example: "0123456789"

bankDetails.swiftCodestring

SWIFT/BIC code for international wires.

Example: "EQBLKENA"

notesstring

Optional note to the MyStocks team.

Response fields

messagestring
payoutIdstring

Response codes

201Payout request submitted.
400Insufficient master wallet balance.
422Payout requests are not available in sandbox; no funds are moved.