✦Developers

KERN ERP API — Quality

Masters, products and styles, Buyer POs, purchase orders, GRNs, sales invoices, packing slips and stock.

Version 2026-10-09.1 · published 9 Oct 2026 · 105 APIs

Base URL https://kronex.codeverse.co/cedge

Download: OpenAPI (JSON) · Postman collection · Guides · Changelog

Quality

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
NameInTypeNotes
stagequerystringOnly this stage.
buyerIdqueryinteger (int64)Only this buyer (id).
styleIdqueryinteger (int64)Only records for this style (id).
lineIdqueryinteger (int64)Only this production line (id).
inspectorIdqueryinteger (int64)Only this inspector (employee id).
shiftquerystringOnly this shift.
fromquerystring (date)From this date (YYYY-MM-DD), inclusive.
toquerystring (date)Up to this date (YYYY-MM-DD), inclusive.
searchquerystringSearch text (part of a name, number or code; not case-sensitive).
pagequeryinteger (int32)Page number, starting at 0.
sizequeryinteger (int32)Items per page.
Response (200) — data
FieldTypeNotes
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"
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
NameInTypeNotes
Idempotency-Key *headerstringAny 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
FieldTypeNotes
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
FieldTypeNotes
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 '{ … }'
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
NameInTypeNotes
id *pathinteger (int64)The record's id.
Response (200) — data
FieldTypeNotes
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"
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
NameInTypeNotes
id *pathinteger (int64)The record's id.
Idempotency-Key *headerstringAny 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
FieldTypeNotes
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
FieldTypeNotes
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 '{ … }'

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
NameInTypeNotes
lineIdqueryinteger (int64)Only this production line (id).
styleIdqueryinteger (int64)Only records for this style (id).
fromquerystring (date)From this date (YYYY-MM-DD), inclusive.
toquerystring (date)Up to this date (YYYY-MM-DD), inclusive.
Response (200) — data
FieldTypeNotes
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"
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
NameInTypeNotes
lineIdqueryinteger (int64)Only this production line (id).
styleIdqueryinteger (int64)Only records for this style (id).
fromquerystring (date)From this date (YYYY-MM-DD), inclusive.
toquerystring (date)Up to this date (YYYY-MM-DD), inclusive.
Response (200) — data
FieldTypeNotes
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"