Grouped by screen, as in the app. Scope for the whole module: erp.planning.*:read or :write.
Line Planning
Access: erp.planning.line_plans:read(or :write)
GET/public/v1/planning/line-plans
List line plans (paged; status, location, search)
Scope erp.planning.line_plans:read · the client's role needs view on Line Planning
Parameters
Name
In
Type
Notes
page
query
integer (int32)
Page number, starting at 0.
size
query
integer (int32)
Items per page.
sortBy
query
string
Field to sort by.
sortDir
query
string
Sort direction: asc or desc.
status
query
string
Only records with this status (see the record's status values).
locationId
query
integer (int64)
Only this location / factory (id).
search
query
string
Search text (part of a name, number or code; not case-sensitive).
Response (200) — data
Field
Type
Notes
content
array of object
id
integer (int64)
qcNo
string
qcDate
string (date)
qcPerson
string
process
string
dcNo
string
vendorName
string
locationName
string
status
string
page
integer (int32)
size
integer (int32)
totalElements
integer (int64)
totalPages
integer (int32)
last
boolean
Errors: 400, 401, 403, 404, 405, 429, 500 — every error says how to fix it; see error codes and troubleshooting.
Example
# KERN ERP — List line plans (paged; status, location, search)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/planning/line-plans?page=0&size=20" \
-H "Authorization: Bearer $KERN_API_KEY"
GET/public/v1/planning/line-plans/{id}
Get one line plan (entries per line, planned windows)
Scope erp.planning.line_plans:read · the client's role needs view on Line Planning
Parameters
Name
In
Type
Notes
id *
path
integer (int64)
The record's id.
Response (200) — data
Field
Type
Notes
id
integer (int64)
qcNo
string
qcDate
string (date)
qcPerson
string
process
string
locationId
integer (int64)
locationName
string
status
string
inspectionLines
array of object
id
integer (int64)
grnLineId
integer (int64)
dcNo
string
fabricProgramNo
string
itemType
string
itemNo
string
rollNo
string
gsm
number
width
number
weight
number
rollQty
number
acceptedQty
number
qcResult
string
stockInwardLines
array of object
id
integer (int64)
grnLineId
integer (int64)
dcNo
string
fabricProgramNo
string
itemType
string
fabricId
integer (int64)
itemName
string
inwardFabricColor
string
uomId
integer (int64)
uomName
string
lotNo
string
width
number
gsm
number
weight
number
locationId
integer (int64)
locationName
string
rollNo
string
…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 line plan (entries per line, planned windows)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/planning/line-plans/{id}" \
-H "Authorization: Bearer $KERN_API_KEY"
Capacity Report
Access: erp.planning.capacity:read(or :write)
GET/public/v1/planning/capacity-report
Capacity and load: line / factory utilisation and late orders (from, to, locationId)
Scope erp.planning.capacity:read · the client's role needs view on Capacity Report
Parameters
Name
In
Type
Notes
from
query
string (date)
From this date (YYYY-MM-DD), inclusive.
to
query
string (date)
Up to this date (YYYY-MM-DD), inclusive.
locationId
query
integer (int64)
Only this location / factory (id).
Response (200) — data
Field
Type
Notes
from
string (date)
to
string (date)
lines
array of object
lineId
integer (int64)
lineName
string
locationId
integer (int64)
locationName
string
workingDays
integer (int32)
availableMinutes
number
plannedMinutes
number
utilizationPct
number
entryCount
integer (int32)
samMinutes
number
factories
array of object
locationId
integer (int64)
locationName
string
lineCount
integer (int32)
availableMinutes
number
plannedMinutes
number
utilizationPct
number
overloads
array of object
entryId
integer (int64)
linePlanId
integer (int64)
planNo
string
lineId
integer (int64)
lineName
string
buyerPoId
integer (int64)
buyerPoCode
string
styleCode
string
styleName
string
totalQty
integer (int32)
plannedStart
string (date)
plannedEnd
string (date)
buyerDeliveryDate
string (date)
delayDays
integer (int64)
Errors: 400, 401, 403, 404, 405, 429, 500 — every error says how to fix it; see error codes and troubleshooting.
Example
# KERN ERP — Capacity and load: line / factory utilisation and late orders (from, to, locationId)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/planning/capacity-report" \
-H "Authorization: Bearer $KERN_API_KEY"