---
title: "Chi tiết một bản ghi mẫu"
url: "https://oapi-poc.hdbank.work/apis/approval-workflow-api/versions/e09cfb10-a58e-422c-bf5d-4603c9d8a600/operations/get_approval_workflow_api"
---

> Full API specification: https://oapi-poc.hdbank.work/apis/approval-workflow-api/versions/e09cfb10-a58e-422c-bf5d-4603c9d8a600.md

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

`GET` `/approval-workflow-api/v1/records/{id}`

Operation ID: `get_approval_workflow_api`

## 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: Approval Workflow API
  version: "1.8"
servers:
  - url: https://apis-dev.hdbank.work
    description: Sandbox (dữ liệu giả lập)
paths:
  /approval-workflow-api/v1/records/{id}:
    get:
      operationId: get_approval_workflow_api
      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: approval-workflow-api
                version: v1
                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
```
