Request top-up
Treasury, Cash Management & FX Settlement
/topup
Request top-up
createTopupNotifies MyStocks that you have sent a wire transfer to top up your master wallet. An admin confirms the wire receipt and credits your wallet (typically within 1 business day). Provide your wire transfer reference in paymentReference so we can match the incoming funds. paymentReference is unique per partner after normalization; duplicate references return 409. Sandbox: the request auto-approves instantly — the master wallet is credited in the same call and topup.confirmed fires, so the funding webhook path is fully testable. Production requests stay PENDING until the remittance is confirmed.
Parameters
This endpoint has no path or query parameters.
Headers
AuthorizationstringRequiredBearer sk_sandbox_<your_key> for sandbox requests.
Idempotency-KeystringheaderRequiredUnique 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
amountnumberRequiredUSD amount to top up. Must be positive.
Example: 10000
paymentReferencestringRequiredYour wire transfer reference or payment ID. Unique per partner after normalization; duplicate references return 409.
Example: "WIRE-2026-05-001"
paymentMethodstringPayment method, e.g. SWIFT wire, SEPA, ACH.
Example: "SWIFT wire"
notesstringOptional note to the MyStocks operations team.
Response fields
messagestringtopupIdstringResponse codes
201Top-up request received.