Get sub-account
Sub-Accounts & White-Label Retail KYC
Returns a single sub-account by its MyStocks subAccountId. Use this to check wallet balance, KYC status, and account state.
Parameters
userIdstringpathRequired
MyStocks sub-account ID (e.g. usr_abc123).
Example: usr_abc123
Headers
AuthorizationstringRequired
Bearer sk_sandbox_<your_key> for sandbox requests.
Response fields
subAccountIdstring
MyStocks internal ID. Use in /users/{userId}/... paths.
Example: "usr_abc123"
userIdstring
Compatible alias of subAccountId. Use subAccountId as the canonical stored identifier.
externalIdstring
Your own user identifier as set at creation.
Example: "usr_8821"
displayNamestring | null
Example: "Alice K."
emailstring | null
Example: "alice@yourapp.com"
kycStatusNONE | PENDING | VERIFIED | REJECTED
VERIFIED required for trading and asset subscriptions. REJECTED remains gated until re-asserted.
kycLevelNONE | BASIC | FULL
BASIC = ID verified. FULL = enhanced due diligence.
kycRejectionCodestring | null
Stable rejection code when kycStatus is REJECTED.
kycRejectionReasonstring | null
Customer-safe remediation guidance when kycStatus is REJECTED.
kycReviewedAtstring | null
Timestamp of the rejection decision.
statusactive | frozen | closed
walletBalancenumber
Current USD wallet balance.
Example: 1250
Response codes
404Sub-account not found.