Get sub-account
Sub-Accounts & White-Label Retail KYC
/users/{userId}
Get sub-account
getUsersReturns a single sub-account by its MyStocks subAccountId. Use this to check wallet balance, KYC status, and account state.
Parameters
userIdstringpathRequiredMyStocks sub-account ID (e.g. usr_abc123).
Example: usr_abc123
Headers
AuthorizationstringRequiredBearer sk_sandbox_<your_key> for sandbox requests.
Response fields
subAccountIdstringMyStocks internal ID. Use in /users/{userId}/... paths.
Example: "usr_abc123"
userIdstringCompatible alias of subAccountId. Use subAccountId as the canonical stored identifier.
externalIdstringYour own user identifier as set at creation.
Example: "usr_8821"
displayNamestring | nullExample: "Alice K."
emailstring | nullExample: "alice@yourapp.com"
kycStatusNONE | PENDING | VERIFIED | REJECTEDVERIFIED required for trading and asset subscriptions. REJECTED remains gated until re-asserted.
kycLevelNONE | BASIC | FULLBASIC = ID verified. FULL = enhanced due diligence.
kycRejectionCodestring | nullStable rejection code when kycStatus is REJECTED.
kycRejectionReasonstring | nullCustomer-safe remediation guidance when kycStatus is REJECTED.
kycReviewedAtstring | nullTimestamp of the rejection decision.
statusactive | frozen | closedwalletBalancenumberCurrent USD wallet balance.
Example: 1250
Response codes
200Sub-account detail.404Sub-account not found.