> ## 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.

# Thông tin tiểu khoản

> Lấy thông tin hồ sơ của một tài khoản lưu ký theo danh sách trường yêu cầu.



## OpenAPI

````yaml /vi/openapi/tcbs.v1.openapi.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: []
tags:
  - name: authentication
    description: Xác thực và cấp token truy cập.
    x-group: Xác thực
  - name: account
    description: Thông tin tài khoản, tài sản và hạn mức.
    x-group: Tài khoản
  - name: market-data
    description: Dữ liệu chứng khoán và phái sinh.
    x-group: Dữ liệu thị trường
  - name: cash
    description: Giao dịch và thông tin tiền.
    x-group: Tiền
  - name: stock-orders
    description: Đặt, sửa, hủy và tra cứu lệnh cổ phiếu.
    x-group: Lệnh cổ phiếu
  - name: derivative-orders
    description: Đặt, sửa, hủy và tra cứu lệnh phái sinh.
    x-group: Lệnh phái sinh
paths:
  /eros/v2/get-profile/by-username/{custodyCode}:
    get:
      tags:
        - account
      summary: Thông tin tiểu khoản
      description: >-
        Lấy thông tin hồ sơ của một tài khoản lưu ký theo danh sách trường yêu
        cầu.
      operationId: getErosGetProfileByUsernameCustodyCode
      parameters:
        - name: custodyCode
          in: path
          required: true
          description: 'Số tài khoản lưu ký, ví dụ: 105C334455.'
          schema:
            type: string
        - name: fields
          in: query
          required: true
          description: 'Danh sách thông tin cần lấy, ví dụ: basicInfo, bankSubAccounts.'
          schema:
            type: string
      responses:
        '200':
          description: Phản hồi thành công
          content:
            application/json:
              schema:
                type: object
                properties:
                  basicInfo:
                    type: object
                    description: Thông tin cơ bản tài khoản.
                  bankSubAccounts:
                    type: array
                    description: Danh sách tiểu khoản.
                    items:
                      type: object
                      properties:
                        accountNo:
                          type: string
                          description: Số tiểu khoản.
                        accountName:
                          type: string
                          description: Tên chủ tài khoản.
                        bankCode:
                          type: string
                          nullable: true
                          description: Mã ngân hàng (có thể null).
                        accountType:
                          type: string
                          description: 'Loại tiểu khoản: NORMAL, MARGIN, DERIVATIVE.'
                        accountTypeName:
                          type: string
                          description: Tên loại tiểu khoản.
                        status:
                          type: string
                          description: Trạng thái tiểu khoản.
                        isDefault:
                          type: string
                          description: Là tiểu khoản mặc định (Y/N).
                example:
                  basicInfo:
                    custodyCode: 105C334455
                    fullName: NGUYEN VAN A
                    status: ACTIVE
                  bankSubAccounts:
                    - accountNo: 0001K36265
                      accountName: Khuynh Thanh Chi Luyen
                      bankCode: null
                      accountType: NORMAL
                      accountTypeName: Thường
                      status: '1'
                      isDefault: 'N'
                    - accountNo: 0001G75216
                      accountName: Khuynh Thanh Chi Luyen
                      bankCode: null
                      accountType: MARGIN
                      accountTypeName: Ký quỹ
                      status: '1'
                      isDefault: 'N'
                    - accountNo: 105C738764A
                      accountName: Khuynh Thanh Chi Luyen
                      bankCode: 105C738764A
                      accountType: DERIVATIVE
                      accountTypeName: Phái sinh
                      status: '1'
                      isDefault: 'N'
        '401':
          $ref: '#/components/responses/Unauthorized'
components:
  responses:
    Unauthorized:
      description: Không xác thực — thiếu, sai hoặc không hợp lệ Bearer token.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

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