Field contract for a category (wizard step 3)
GET/api/v1/categories/:code/schema
Required scope: schema:read. Returns every field's field_id, label, type, required, validation, options, access_tier, help_text, unit (or unit_unspecified). The machine-readable surface an ERP maps its columns against. Out-of-scope/unknown code returns 404 (no existence oracle).
Request
Responses
- 200
- 400
- 403
- 404
- 503
OK
Missing category code.
403 — missing scope (FORBIDDEN_SCOPE) or module (FORBIDDEN_MODULE).
404 — not found OR owned by another tenant (NOT_FOUND; IDOR-safe).
503 — the API is not enabled on this environment (FEATURE_DISABLED).