Skip to content
MyStocks Developers
API v1

API v1

Current stable contract

Versioning policyRelease changelog
Sandbox console

Sub-account transactions

Sub-Accounts & White-Label Retail KYC

GET

/users/{userId}/transactions

Sub-account transactions

Sandbox availablelistTransactions

Returns the full ledger transaction history for a sub-account — deposits, withdrawals, trade escrows (INVEST), trade settlements (SELL), dividend distributions, fund redemptions, and fee entries. Cursor-paginated; use nextCursor from the previous response as the cursor query param to fetch the next page.

Parameters

userIdstringpathRequired

Example: usr_abc123

typeDEPOSIT | WITHDRAWAL | INVEST | SELL | DISTRIBUTION | REDEEM | FEE | TRANSFER_IN | TRANSFER_OUT | SWAP | ACCOUNT_CLOSUREquery

Filter to a single transaction type. Empty filtered pages can have hasMore=true; continue with nextCursor.

fromstringquery

Inclusive lower bound: YYYY-MM-DD in UTC or a timezone-aware ISO timestamp.

Example: 2026-01-01

tostringquery

Inclusive upper bound: full UTC day including final milliseconds, or a timezone-aware ISO timestamp.

Example: 2026-06-30

cursorstringquery

Opaque cursor from nextCursor of the previous response. Omit for the first page.

limitintegerquery

Example: 50

Headers

AuthorizationstringRequired

Bearer sk_sandbox_<your_key> for sandbox requests.

Response fields

transactionsobject[]
transactions[].idstring
transactions[].typeDEPOSIT | WITHDRAWAL | INVEST | SELL | DISTRIBUTION | REDEEM | FEE | TRANSFER_IN | TRANSFER_OUT | SWAP | ACCOUNT_CLOSURE
transactions[].statusPENDING | COMPLETED | FAILED
transactions[].directionCREDIT | DEBIT
transactions[].amountnumber
transactions[].currencystring

Example: "USD"

transactions[].descriptionstring | null
transactions[].referencestring | null
transactions[].createdAtstring
transactions[].settledAtstring | null

Settlement timestamp for completed rows. Legacy completed records return their immutable completion/creation timestamp when the original field was absent.

countinteger
hasMoreboolean
nextCursorstring | null

Response codes

200Transaction ledger.