---
title: "Chi tiết một bản ghi mẫu"
url: "https://oapi-poc.hdbank.work/apis/deposit-accounts/versions/f147baf5-f4c8-40f1-b51f-b85ddc75dbd3/operations/get_deposit_accounts"
---

> Full API specification: https://oapi-poc.hdbank.work/apis/deposit-accounts/versions/f147baf5-f4c8-40f1-b51f-b85ddc75dbd3.md

# Chi tiết một bản ghi mẫu

`GET` `/deposit-accounts/v2/records/{id}`

Operation ID: `get_deposit_accounts`

## Path parameters

- `id` (string, required)

## Header parameters

- `X-Correlation-ID` (string, uuid, optional) - Tự sinh nếu thiếu
- `X-Mock-Scenario` (string, optional) - Chỉ sandbox: ép mã lỗi để thử

## Responses

- `200` - OK
- `404` - Lỗi
- `429` - Lỗi

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: Deposit Accounts
  version: "2.0"
servers:
  - url: https://apis-dev.hdbank.work
    description: Sandbox (dữ liệu giả lập)
paths:
  /deposit-accounts/v2/records/{id}:
    get:
      operationId: get_deposit_accounts
      summary: Chi tiết một bản ghi mẫu
      parameters:
        - name: X-Correlation-ID
          in: header
          schema:
            type: string
            format: uuid
          description: Tự sinh nếu thiếu
        - name: X-Mock-Scenario
          in: header
          schema:
            type: string
            enum:
              - "400"
              - "403"
              - "409"
              - "429"
              - "503"
          description: "Chỉ sandbox: ép mã lỗi để thử"
        - name: id
          in: path
          required: true
          schema:
            type: string
          example: sample-001
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Record"
              example:
                id: sample-001
                api: deposit-accounts
                version: v2
                status: SAMPLE
                note: Du lieu mau gia lap
        "404":
          description: Lỗi
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Problem"
        "429":
          description: Lỗi
          content:
            application/problem+json:
              schema:
                $ref: "#/components/schemas/Problem"
security:
  - apiKey: []
components:
  schemas:
    Record:
      type: object
      properties:
        id:
          type: string
        api:
          type: string
        version:
          type: string
        status:
          type: string
        note:
          type: string
    Problem:
      type: object
      properties:
        type:
          type: string
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apikey
      description: Khóa API sandbox cấp khi tạo ứng dụng trên cổng
```
