> ## Documentation Index
> Fetch the complete documentation index at: https://hoalulab.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Sub account information

> Get sub-account information.



## OpenAPI

````yaml /en/openapi/tcbs-v1.yaml get /eros/v2/get-profile/by-username/{custodyCode}
openapi: 3.0.3
info:
  title: TCBS iFlash Open API
  description: REST APIs for trading stocks and derivatives on TCBS.
  version: 1.0.0
  contact:
    email: openapi@tcbs.com.vn
servers:
  - url: https://openapi.tcbs.com.vn
    description: Production
security:
  - bearerAuth: []
paths:
  /eros/v2/get-profile/by-username/{custodyCode}:
    get:
      summary: Sub account information
      description: Get sub-account information.
      parameters:
        - name: custodyCode
          in: path
          required: true
          description: Custody account number, e.g. 105C334455.
          schema:
            type: string
        - name: fields
          in: query
          required: true
          description: List of information to get, e.g. basicInfo,bankSubAccounts.
          schema:
            type: string
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: object
                properties:
                  basicInfo:
                    type: object
                    description: Basic account information.
                  bankSubAccounts:
                    type: array
                    items:
                      type: object
                    description: List of sub-accounts.
                  bankSubAccounts[].accountNo:
                    type: string
                    description: Sub-account number.
                  bankSubAccounts[].accountName:
                    type: string
                    description: Account holder name.
                  bankSubAccounts[].bankCode:
                    type: string
                    description: Bank code (may be null).
                  bankSubAccounts[].accountType:
                    type: string
                    description: 'Sub-account type: NORMAL, MARGIN, DERIVATIVE.'
                  bankSubAccounts[].accountTypeName:
                    type: string
                    description: Sub-account type name.
                  bankSubAccounts[].status:
                    type: string
                    description: Sub-account status.
                  bankSubAccounts[].isDefault:
                    type: string
                    description: Whether this is the default sub-account (Y/N).
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.