Credit virtual funds (deprecated alias)
Developer Platform, Sandbox & Key Management
/sandbox/deposit
Credit virtual funds (deprecated alias)
createSandboxDepositSandbox-only simulation mutation. Use an sk_sandbox_ key on /api/sandbox/v1/partner. Live keys receive 403 and never mutate production wallets. Deprecated /sandbox aliases retain the same environment boundary.
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
subAccountIdstringRequiredMyStocks sub-account ID to credit. Must belong to your partner key.
Example: "usr_test_abc123"
amountnumberRequiredVirtual USD to credit. No real funds move. Max 1,000,000.
Example: 10000
notestringOptional label shown in the admin log and the deposit.confirmed webhook payload.
Response fields
messagestringwalletBalancenumbertransactionIdstringResponse codes
200Virtual funds credited.403Live-key simulation writes are disabled; use isolated Sandbox credentials.