> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vos.verolabs.co/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenAPI Spec

> Dùng Vero OMS OpenAPI files làm nguồn chuẩn cho API clients

Dùng các file OpenAPI khi generate client, validate payload hoặc đưa context API cho AI tools.

## Specification files

| File                                           | Mục đích                                               |
| ---------------------------------------------- | ------------------------------------------------------ |
| [`/openapi.oms.en.json`](/openapi.oms.en.json) | REST API reference tiếng Anh dùng cho English docs     |
| [`/openapi.oms.vi.json`](/openapi.oms.vi.json) | REST API reference tiếng Việt dùng cho Vietnamese docs |

OMS REST API reference hiện có 48 HTTP operations.

## Dùng với AI tools

Đưa OpenAPI file cho model kèm instruction này:

```text theme={null}
Build against the Vero OMS OpenAPI spec.
Use the operation's method and path exactly.
Use Bearer authentication for protected endpoints.
Validate all path, query, and body fields against the schema.
Treat response schemas as authoritative for payload shape and field meanings.
Handle documented error responses.
```

## Checklist cho client

1. Tìm operation theo method hoặc path.
2. Đọc toàn bộ path, query, header và body parameters.
3. Build request từ typed fields; tránh tự nối string nếu có structured client.
4. Parse success response theo schema đã document.
5. Parse error response defensive vì error payload có thể khác nhau theo điểm fail.
