Credit virtual funds (deprecated alias)
Developer Platform, Sandbox & Key Management
/sandbox/deposit
Credit virtual funds (deprecated alias)
createSandboxDepositDeprecated alias of POST /test-tools/deposit. Existing approved legacy integrations keep working; new integrations use /test-tools/deposit on the sandbox base with an sk_sandbox_ key.
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.