跳到主要内容
登录
Apus Platform
文档目录
qms

QMS – Quality

Quality management — inspections, non-conformances (NCR), corrective and preventive actions (CAPA), checklists, standards and certificates. Records that gate incoming goods, in-process work and finished output, and prove compliance to auditors and customers. Feed a LIMS, an SPC tool or a supplier scorecard from these endpoints.

GET/v1/qms/quality-inspectionsScope: qms:read

List inspections

Returns a cursor-paginated list of quality inspections. Filter by outcome or by the document inspected.

Query parameters
limitoptionalintegerPage size, 1–200 (default 50).
cursoroptionalstringPagination cursor from a previous response.
resultoptionalstringFilter by outcome: pass, fail or pending.
referenceoptionalstringFilter by the inspected document, e.g. a GRN or work order.
Request
curl "https://api.apusplatform.com/v1/qms/quality-inspections" \
  -H "Authorization: Bearer $APUS_TOKEN"
Response
{
  "data": [
    {
      "id": "qin_1a2b",
      "reference": "GRN-2026-00871",
      "sku": "STEEL-BRKT-08",
      "checked_qty": 200,
      "defect_qty": 6,
      "result": "fail",
      "inspected_by": "usr_4d5e",
      "inspected_at": "2026-07-12T03:55:00Z",
      "updated_at": "2026-07-12T04:20:11Z"
    }
  ],
  "has_more": true,
  "next_cursor": "crsr_9a10"
}
POST/v1/qms/quality-inspectionsScope: qms:write

Record an inspection

Records a quality inspection against a document. A fail result can be escalated to a non-conformance.

Body
referencerequiredstringDocument inspected, e.g. a GRN or work order.
skurequiredstringItem inspected.
checked_qtyrequiredintegerQuantity sampled or inspected.
defect_qtyrequiredintegerQuantity found defective (≤ checked_qty).
resultrequiredstringOutcome: pass or fail.
Request
curl -X POST "https://api.apusplatform.com/v1/qms/quality-inspections" \
  -H "Authorization: Bearer $APUS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "reference": "GRN-2026-00871",
    "sku": "STEEL-BRKT-08",
    "checked_qty": 200,
    "defect_qty": 6,
    "result": "fail"
  }'
Response
{
  "id": "qin_1a2b",
  "reference": "GRN-2026-00871",
  "result": "fail",
  "created_at": "2026-07-20T02:10:00Z"
}
GET/v1/qms/quality-inspections/{id}Scope: qms:read

Retrieve an inspection

Returns a single quality inspection by its id, including its measured lines.

Path parameters
idrequiredstringInspection id.
Request
curl "https://api.apusplatform.com/v1/qms/quality-inspections/qin_1a2b" \
  -H "Authorization: Bearer $APUS_TOKEN"
Response
{
  "id": "qin_1a2b",
  "reference": "GRN-2026-00871",
  "sku": "STEEL-BRKT-08",
  "checklist_id": "qcl_7h8i",
  "checked_qty": 200,
  "defect_qty": 6,
  "result": "fail",
  "lines": [
    {
      "characteristic": "Length (mm)",
      "spec": "8.0 ± 0.1",
      "measured": "8.14",
      "pass": false
    }
  ],
  "inspected_by": "usr_4d5e",
  "inspected_at": "2026-07-12T03:55:00Z",
  "updated_at": "2026-07-12T04:20:11Z"
}
GET/v1/qms/non-conformancesScope: qms:read

List non-conformances

Returns a cursor-paginated list of non-conformance reports (NCRs). Filter by status or severity.

Query parameters
limitoptionalintegerPage size, 1–200 (default 50).
cursoroptionalstringPagination cursor from a previous response.
statusoptionalstringFilter by status: open or closed.
severityoptionalstringFilter by severity: minor, major or critical.
Request
curl "https://api.apusplatform.com/v1/qms/non-conformances" \
  -H "Authorization: Bearer $APUS_TOKEN"
Response
{
  "data": [
    {
      "id": "ncr_3c4d",
      "code": "NCR-2026-00042",
      "inspection_id": "qin_1a2b",
      "severity": "major",
      "status": "open",
      "description": "Bracket length out of tolerance on 6 of 200 units.",
      "opened_at": "2026-07-12T04:22:00Z",
      "updated_at": "2026-07-12T04:22:00Z"
    }
  ],
  "has_more": true,
  "next_cursor": "crsr_9a10"
}
POST/v1/qms/non-conformancesScope: qms:write

Raise a non-conformance

Raises a non-conformance report (NCR) against a failed inspection.

Body
inspection_idrequiredstringInspection the NCR stems from.
severityrequiredstringSeverity: minor, major or critical.
descriptionrequiredstringWhat is wrong, and where it was found.
Request
curl -X POST "https://api.apusplatform.com/v1/qms/non-conformances" \
  -H "Authorization: Bearer $APUS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "inspection_id": "qin_1a2b",
    "severity": "major",
    "description": "Bracket length out of tolerance on 6 of 200 units."
  }'
Response
{
  "id": "ncr_3c4d",
  "code": "NCR-2026-00042",
  "status": "open",
  "created_at": "2026-07-20T02:12:00Z"
}
GET/v1/qms/non-conformances/{id}Scope: qms:read

Retrieve a non-conformance

Returns a single non-conformance report (NCR) by its id, including any linked CAPA.

Path parameters
idrequiredstringNon-conformance id.
Request
curl "https://api.apusplatform.com/v1/qms/non-conformances/ncr_3c4d" \
  -H "Authorization: Bearer $APUS_TOKEN"
Response
{
  "id": "ncr_3c4d",
  "code": "NCR-2026-00042",
  "inspection_id": "qin_1a2b",
  "severity": "major",
  "status": "open",
  "description": "Bracket length out of tolerance on 6 of 200 units.",
  "capa_ids": [
    "capa_5f6g"
  ],
  "opened_at": "2026-07-12T04:22:00Z",
  "closed_at": null,
  "updated_at": "2026-07-12T04:22:00Z"
}
POST/v1/qms/non-conformances/{id}/closeScope: qms:write

Close a non-conformance

Closes a non-conformance report with a resolution note. Fails if it is already closed.

Path parameters
idrequiredstringNon-conformance id.
Body
resolutionrequiredstringHow the non-conformance was dispositioned and resolved.
Request
curl -X POST "https://api.apusplatform.com/v1/qms/non-conformances/ncr_3c4d/close" \
  -H "Authorization: Bearer $APUS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "resolution": "Defective units returned to supplier; incoming AQL tightened to 0.65."
  }'
Response
{
  "id": "ncr_3c4d",
  "status": "closed",
  "closed_at": "2026-07-20T02:14:00Z"
}
GET/v1/qms/capaScope: qms:read

List CAPA

Returns a cursor-paginated list of corrective and preventive actions (CAPA). Filter by status.

Query parameters
limitoptionalintegerPage size, 1–200 (default 50).
cursoroptionalstringPagination cursor from a previous response.
statusoptionalstringFilter by status: open, in_progress or done.
Request
curl "https://api.apusplatform.com/v1/qms/capa" \
  -H "Authorization: Bearer $APUS_TOKEN"
Response
{
  "data": [
    {
      "id": "capa_5f6g",
      "code": "CAPA-2026-00019",
      "non_conformance_id": "ncr_3c4d",
      "action": "Re-qualify the stamping die and add a first-article check.",
      "owner_id": "usr_4d5e",
      "status": "open",
      "due_date": "2026-08-05",
      "updated_at": "2026-07-12T05:10:00Z"
    }
  ],
  "has_more": true,
  "next_cursor": "crsr_9a10"
}
POST/v1/qms/capaScope: qms:write

Open a CAPA

Opens a corrective/preventive action against a non-conformance and assigns an owner.

Body
non_conformance_idrequiredstringNon-conformance the action addresses.
actionrequiredstringCorrective or preventive action to be taken.
owner_idrequiredstringUser accountable for completing the action.
Request
curl -X POST "https://api.apusplatform.com/v1/qms/capa" \
  -H "Authorization: Bearer $APUS_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "non_conformance_id": "ncr_3c4d",
    "action": "Re-qualify the stamping die and add a first-article check.",
    "owner_id": "usr_4d5e"
  }'
Response
{
  "id": "capa_5f6g",
  "code": "CAPA-2026-00019",
  "status": "open",
  "created_at": "2026-07-20T02:16:00Z"
}
GET/v1/qms/quality-checklistsScope: qms:read

List checklists

Returns the inspection checklist templates and their characteristics.

No parameters.

Request
curl "https://api.apusplatform.com/v1/qms/quality-checklists" \
  -H "Authorization: Bearer $APUS_TOKEN"
Response
{
  "data": [
    {
      "id": "qcl_7h8i",
      "code": "QC-INCOMING-METAL",
      "name": "Incoming metal parts",
      "characteristics": [
        {
          "name": "Length (mm)",
          "spec": "8.0 ± 0.1",
          "method": "caliper"
        },
        {
          "name": "Surface finish",
          "spec": "no burrs",
          "method": "visual"
        }
      ]
    }
  ]
}
GET/v1/qms/quality-checklists/{id}Scope: qms:read

Retrieve a checklist

Returns a single inspection checklist template by its id.

Path parameters
idrequiredstringChecklist id.
Request
curl "https://api.apusplatform.com/v1/qms/quality-checklists/qcl_7h8i" \
  -H "Authorization: Bearer $APUS_TOKEN"
Response
{
  "id": "qcl_7h8i",
  "code": "QC-INCOMING-METAL",
  "name": "Incoming metal parts",
  "characteristics": [
    {
      "name": "Length (mm)",
      "spec": "8.0 ± 0.1",
      "method": "caliper"
    },
    {
      "name": "Surface finish",
      "spec": "no burrs",
      "method": "visual"
    }
  ],
  "active": true
}
GET/v1/qms/quality-standardsScope: qms:read

List standards

Returns the quality standards your organization is certified or working to.

No parameters.

Request
curl "https://api.apusplatform.com/v1/qms/quality-standards" \
  -H "Authorization: Bearer $APUS_TOKEN"
Response
{
  "data": [
    {
      "code": "ISO-9001",
      "name": "ISO 9001:2015 Quality management",
      "status": "certified"
    },
    {
      "code": "ISO-14001",
      "name": "ISO 14001:2015 Environmental management",
      "status": "in_progress"
    }
  ]
}
GET/v1/qms/certificatesScope: qms:read

List certificates

Returns quality certificates (e.g. certificates of conformance) issued for items or lots.

Query parameters
skuoptionalstringFilter certificates by item.
Request
curl "https://api.apusplatform.com/v1/qms/certificates" \
  -H "Authorization: Bearer $APUS_TOKEN"
Response
{
  "data": [
    {
      "id": "cert_9j0k",
      "number": "COC-2026-00318",
      "sku": "STEEL-BRKT-08",
      "lot": "L-2026-0712",
      "standard": "ISO-9001",
      "issued_at": "2026-07-13T00:00:00Z",
      "valid_until": "2027-07-13T00:00:00Z"
    }
  ]
}

准备好集成了吗?

在账户控制台中创建 API 客户端以获取凭证,或与集成工程师沟通您的使用场景。

noindex