Grouped by screen, as in the app. Scope for the whole module: erp.quality.*:read or :write.
Inspections Access: erp.quality.inspections:read(or :write)
GET /public/v1/quality/inspections
List quality inspections (paged; stage, buyer, style, line, inspector, dates) Scope erp.quality.inspections:read · the client's role needs view on Inspections
Parameters Name In Type Notes stagequery string Only this stage. buyerIdquery integer (int64) Only this buyer (id). styleIdquery integer (int64) Only records for this style (id). lineIdquery integer (int64) Only this production line (id). inspectorIdquery integer (int64) Only this inspector (employee id). shiftquery string Only this shift. fromquery string (date) From this date (YYYY-MM-DD), inclusive. toquery string (date) Up to this date (YYYY-MM-DD), inclusive. searchquery string Search text (part of a name, number or code; not case-sensitive). pagequery integer (int32) Page number, starting at 0. sizequery integer (int32) Items per page.
Response (200) — data Field Type Notes contentarray of object idinteger (int64) qcNostring qcDatestring (date) qcPersonstring processstring dcNostring vendorNamestring locationNamestring statusstring pageinteger (int32) sizeinteger (int32) totalElementsinteger (int64) totalPagesinteger (int32) lastboolean
Errors: 400, 401, 403, 404, 405, 429, 500 — every error says how to fix it; see error codes and troubleshooting .
Example # KERN ERP — List quality inspections (paged; stage, buyer, style, line, inspector, dates)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/quality/inspections?page=0&size=20" \
-H "Authorization: Bearer $KERN_API_KEY"Try it (sandbox) POST /public/v1/quality/inspections
Record an inspection (INLINE / END_LINE / FINAL_AQL) Scope erp.quality.inspections:write · the client's role needs create on Inspections · send an Idempotency-Key
Parameters Name In Type Notes Idempotency-Key * header string Any unique text up to 120 characters (e.g. a UUID). A retry with the same key and body returns the first answer instead of doing the work twice.
Request body Field Type Notes qcNostring qcDate * string (date) qcPerson * string process * string locationIdinteger (int64) inspectionLinesarray of object grnLineId * integer (int64) fabricProgramNostring itemTypestring itemNostring rollNostring gsmnumber widthnumber weightnumber rollQtynumber acceptedQtynumber qcResultstring stockInwardLinesarray of object idinteger (int64) grnLineId * integer (int64) fabricProgramNostring itemTypestring fabricId * integer (int64) inwardFabricColorstring uomIdinteger (int64) lotNostring widthnumber gsmnumber weightnumber locationIdinteger (int64) rollNostring qty * number
Response (200) — data Field Type Notes idinteger (int64) qcNostring qcDatestring (date) qcPersonstring processstring locationIdinteger (int64) locationNamestring statusstring inspectionLinesarray of object idinteger (int64) grnLineIdinteger (int64) dcNostring fabricProgramNostring itemTypestring itemNostring rollNostring gsmnumber widthnumber weightnumber rollQtynumber acceptedQtynumber qcResultstring stockInwardLinesarray of object idinteger (int64) grnLineIdinteger (int64) dcNostring fabricProgramNostring itemTypestring fabricIdinteger (int64) itemNamestring inwardFabricColorstring uomIdinteger (int64) uomNamestring lotNostring widthnumber gsmnumber weightnumber locationIdinteger (int64) locationNamestring rollNostring
…5 more fields — see the OpenAPI file.
Errors: 400, 401, 403, 404, 405, 409, 413, 422, 429, 500 — every error says how to fix it; see error codes and troubleshooting .
Example # KERN ERP — Record an inspection (INLINE / END_LINE / FINAL_AQL)
curl -X POST "https://kronex.codeverse.co/cedge/public/v1/quality/inspections" \
-H "Authorization: Bearer $KERN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ … }'Try it (sandbox) GET /public/v1/quality/inspections/{id}
Get one inspection (header, operator rows, defect lines) Scope erp.quality.inspections:read · the client's role needs view on Inspections
Parameters Name In Type Notes id * path integer (int64) The record's id.
Response (200) — data Field Type Notes idinteger (int64) qcNostring qcDatestring (date) qcPersonstring processstring locationIdinteger (int64) locationNamestring statusstring inspectionLinesarray of object idinteger (int64) grnLineIdinteger (int64) dcNostring fabricProgramNostring itemTypestring itemNostring rollNostring gsmnumber widthnumber weightnumber rollQtynumber acceptedQtynumber qcResultstring stockInwardLinesarray of object idinteger (int64) grnLineIdinteger (int64) dcNostring fabricProgramNostring itemTypestring fabricIdinteger (int64) itemNamestring inwardFabricColorstring uomIdinteger (int64) uomNamestring lotNostring widthnumber gsmnumber weightnumber locationIdinteger (int64) locationNamestring rollNostring
…5 more fields — see the OpenAPI file.
Errors: 400, 401, 403, 404, 405, 429, 500 — every error says how to fix it; see error codes and troubleshooting .
Example # KERN ERP — Get one inspection (header, operator rows, defect lines)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/quality/inspections/{id}" \
-H "Authorization: Bearer $KERN_API_KEY"Try it (sandbox) PUT /public/v1/quality/inspections/{id}
Update an inspection Scope erp.quality.inspections:write · the client's role needs edit on Inspections · send an Idempotency-Key
Parameters Name In Type Notes id * path integer (int64) The record's id. Idempotency-Key * header string Any unique text up to 120 characters (e.g. a UUID). A retry with the same key and body returns the first answer instead of doing the work twice.
Request body Field Type Notes qcNostring qcDate * string (date) qcPerson * string process * string locationIdinteger (int64) inspectionLinesarray of object grnLineId * integer (int64) fabricProgramNostring itemTypestring itemNostring rollNostring gsmnumber widthnumber weightnumber rollQtynumber acceptedQtynumber qcResultstring stockInwardLinesarray of object idinteger (int64) grnLineId * integer (int64) fabricProgramNostring itemTypestring fabricId * integer (int64) inwardFabricColorstring uomIdinteger (int64) lotNostring widthnumber gsmnumber weightnumber locationIdinteger (int64) rollNostring qty * number
Response (200) — data Field Type Notes idinteger (int64) qcNostring qcDatestring (date) qcPersonstring processstring locationIdinteger (int64) locationNamestring statusstring inspectionLinesarray of object idinteger (int64) grnLineIdinteger (int64) dcNostring fabricProgramNostring itemTypestring itemNostring rollNostring gsmnumber widthnumber weightnumber rollQtynumber acceptedQtynumber qcResultstring stockInwardLinesarray of object idinteger (int64) grnLineIdinteger (int64) dcNostring fabricProgramNostring itemTypestring fabricIdinteger (int64) itemNamestring inwardFabricColorstring uomIdinteger (int64) uomNamestring lotNostring widthnumber gsmnumber weightnumber locationIdinteger (int64) locationNamestring rollNostring
…5 more fields — see the OpenAPI file.
Errors: 400, 401, 403, 404, 405, 409, 413, 422, 429, 500 — every error says how to fix it; see error codes and troubleshooting .
Example # KERN ERP — Update an inspection
curl -X PUT "https://kronex.codeverse.co/cedge/public/v1/quality/inspections/{id}" \
-H "Authorization: Bearer $KERN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ … }'Try it (sandbox) Reports Access: erp.quality.reports:read(or :write)
GET /public/v1/quality/reports/dhu
DHU (defects per 100 units) by date and line Scope erp.quality.reports:read · the client's role needs view on Reports
Parameters Name In Type Notes lineIdquery integer (int64) Only this production line (id). styleIdquery integer (int64) Only records for this style (id). fromquery string (date) From this date (YYYY-MM-DD), inclusive. toquery string (date) Up to this date (YYYY-MM-DD), inclusive.
Response (200) — data Field Type Notes rowsarray of object datestring (date) lineIdinteger (int64) lineNamestring checkedinteger (int32) defectsinteger (int32) dhuPctnumber (double) bandstring totalCheckedinteger (int32) totalDefectsinteger (int32) overallDhunumber (double)
Errors: 400, 401, 403, 404, 405, 429, 500 — every error says how to fix it; see error codes and troubleshooting .
Example # KERN ERP — DHU (defects per 100 units) by date and line
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/quality/reports/dhu" \
-H "Authorization: Bearer $KERN_API_KEY"Try it (sandbox) GET /public/v1/quality/reports/top-defects
Top defects over a period (Pareto) Scope erp.quality.reports:read · the client's role needs view on Reports
Parameters Name In Type Notes lineIdquery integer (int64) Only this production line (id). styleIdquery integer (int64) Only records for this style (id). fromquery string (date) From this date (YYYY-MM-DD), inclusive. toquery string (date) Up to this date (YYYY-MM-DD), inclusive.
Response (200) — data Field Type Notes defectIdinteger (int64) defectNamestring countinteger (int32) pctnumber (double) cumulativePctnumber (double)
Errors: 400, 401, 403, 404, 405, 429, 500 — every error says how to fix it; see error codes and troubleshooting .
Example # KERN ERP — Top defects over a period (Pareto)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/quality/reports/top-defects?page=0&size=20" \
-H "Authorization: Bearer $KERN_API_KEY"Try it (sandbox)