Credit virtual funds
Developer Platform, Sandbox & Key Management
/test-tools/deposit
Credit virtual funds
createTestToolsDepositCredits virtual USD to a sandbox sub-account for deterministic integration testing. New integrations use the sandbox base with an sk_sandbox_ key. Production-base access is restricted legacy compatibility for specifically approved partners. No real money moves. Maximum $1,000,000 per call. Triggers a deposit.confirmed webhook if one is registered. Formerly POST /sandbox/deposit, which remains a deprecated alias.
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.