List production orders (paged; status, orderType, buyerId, styleCode, delivery dates)
Scope erp.production.production_orders:read · the client's role needs view on Production Orders
Parameters
Name
In
Type
Notes
page
query
integer (int32)
Page number, starting at 0.
size
query
integer (int32)
Items per page.
status
query
string
Only records with this status (see the record's status values).
orderType
query
string
Only this order type.
buyerId
query
integer (int64)
Only this buyer (id).
locationId
query
integer (int64)
Only this location / factory (id).
styleProductId
query
integer (int64)
Only this style (product id).
styleCode
query
string
Only this style code.
deliveryFrom
query
string (date)
Delivery date from (YYYY-MM-DD).
deliveryTo
query
string (date)
Delivery date up to (YYYY-MM-DD).
Response (200) — data
Field
Type
Notes
content
array of object
id
integer (int64)
productionOrderNumber
string
orderType
string
styleCode
string
styleName
string
colorName
string
season
string
buyerName
string
locationName
string
totalQuantity
integer (int32)
productionQuantity
integer (int32)
deliveryDate
string (date)
exFactoryDate
string (date)
workflowTemplateName
string
status
string
tnaStatus
string
createdAt
string (date-time)
poRaiseAvailable
boolean
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 production orders (paged; status, orderType, buyerId, styleCode, delivery dates)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/production/production-orders?page=0&size=20" \
-H "Authorization: Bearer $KERN_API_KEY"
POST/public/v1/production/production-orders
Create a production order (DRAFT)
Scope erp.production.production_orders:write · the client's role needs create on Production Orders · 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
orderType *
string
styleCode
string
styleName
string
styleProductId
integer (int64)
colorId
integer (int64)
colorName
string
colorCode
string
season
string
sampleStyle
string
allowanceScope
string
allowanceUnit
string
totalAllowance
number
buyerId
integer (int64)
buyerName
string
locationId
integer (int64)
locationName
string
deliveryDate
string (date)
exFactoryDate
string (date)
workflowTemplateId
integer (int64)
workflowTemplateName
string
remarks
string
lines
array of object
productId
integer (int64)
colour
string
sizeCode
string
qty
integer (int32)
allowance
number
sourceBuyerPoNo
string
displayOrder
integer (int32)
buyerPos
array of object
buyerPoId
integer (int64)
buyerPoNumber *
string
buyerPoDate
string (date)
quantity
integer (int32)
styleCode
string
remarks
string
Response (200) — data
Field
Type
Notes
id
integer (int64)
productionOrderNumber
string
orderType
string
styleCode
string
styleName
string
styleProductId
integer (int64)
colorId
integer (int64)
colorName
string
colorCode
string
season
string
sampleStyle
string
allowanceScope
string
allowanceUnit
string
totalAllowance
number
productionQuantity
integer (int32)
buyerId
integer (int64)
buyerName
string
locationId
integer (int64)
locationName
string
totalQuantity
integer (int32)
deliveryDate
string (date)
exFactoryDate
string (date)
workflowTemplateId
integer (int64)
workflowTemplateName
string
assignedLineId
integer (int64)
assignedLineName
string
status
string
tnaStatus
string
remarks
string
hasWorkOrder
boolean
createdBy
integer (int64)
createdAt
string (date-time)
updatedAt
string (date-time)
lines
array of object
id
integer (int64)
measurementPointId
integer (int64)
pointName
string
uom
string
specValue
number
tolMinus
number
…33 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 — Create a production order (DRAFT)
curl -X POST "https://kronex.codeverse.co/cedge/public/v1/production/production-orders" \
-H "Authorization: Bearer $KERN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ … }'
GET/public/v1/production/production-orders/{id}
Get one production order (lines, buyer POs, TnA)
Scope erp.production.production_orders:read · the client's role needs view on Production Orders
Parameters
Name
In
Type
Notes
id *
path
integer (int64)
The record's id.
Response (200) — data
Field
Type
Notes
id
integer (int64)
productionOrderNumber
string
orderType
string
styleCode
string
styleName
string
styleProductId
integer (int64)
colorId
integer (int64)
colorName
string
colorCode
string
season
string
sampleStyle
string
allowanceScope
string
allowanceUnit
string
totalAllowance
number
productionQuantity
integer (int32)
buyerId
integer (int64)
buyerName
string
locationId
integer (int64)
locationName
string
totalQuantity
integer (int32)
deliveryDate
string (date)
exFactoryDate
string (date)
workflowTemplateId
integer (int64)
workflowTemplateName
string
assignedLineId
integer (int64)
assignedLineName
string
status
string
tnaStatus
string
remarks
string
hasWorkOrder
boolean
createdBy
integer (int64)
createdAt
string (date-time)
updatedAt
string (date-time)
lines
array of object
id
integer (int64)
measurementPointId
integer (int64)
pointName
string
uom
string
specValue
number
tolMinus
number
…33 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 production order (lines, buyer POs, TnA)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/production/production-orders/{id}" \
-H "Authorization: Bearer $KERN_API_KEY"
PUT/public/v1/production/production-orders/{id}
Update a DRAFT production order
Scope erp.production.production_orders:write · the client's role needs edit on Production Orders · 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
orderType
string
styleCode
string
styleName
string
styleProductId
integer (int64)
colorId
integer (int64)
colorName
string
colorCode
string
season
string
sampleStyle
string
allowanceScope
string
allowanceUnit
string
totalAllowance
number
buyerId
integer (int64)
buyerName
string
locationId
integer (int64)
locationName
string
deliveryDate
string (date)
exFactoryDate
string (date)
workflowTemplateId
integer (int64)
workflowTemplateName
string
remarks
string
lines
array of object
productId
integer (int64)
colour
string
sizeCode
string
qty
integer (int32)
allowance
number
sourceBuyerPoNo
string
displayOrder
integer (int32)
Response (200) — data
Field
Type
Notes
id
integer (int64)
productionOrderNumber
string
orderType
string
styleCode
string
styleName
string
styleProductId
integer (int64)
colorId
integer (int64)
colorName
string
colorCode
string
season
string
sampleStyle
string
allowanceScope
string
allowanceUnit
string
totalAllowance
number
productionQuantity
integer (int32)
buyerId
integer (int64)
buyerName
string
locationId
integer (int64)
locationName
string
totalQuantity
integer (int32)
deliveryDate
string (date)
exFactoryDate
string (date)
workflowTemplateId
integer (int64)
workflowTemplateName
string
assignedLineId
integer (int64)
assignedLineName
string
status
string
tnaStatus
string
remarks
string
hasWorkOrder
boolean
createdBy
integer (int64)
createdAt
string (date-time)
updatedAt
string (date-time)
lines
array of object
id
integer (int64)
measurementPointId
integer (int64)
pointName
string
uom
string
specValue
number
tolMinus
number
…33 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 a DRAFT production order
curl -X PUT "https://kronex.codeverse.co/cedge/public/v1/production/production-orders/{id}" \
-H "Authorization: Bearer $KERN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ … }'
Full traceability of a production order: lines, buyer POs, TnA steps
Scope erp.production.production_orders:read · the client's role needs view on Production Orders
Parameters
Name
In
Type
Notes
id *
path
integer (int64)
The record's id.
Response (200) — data
Field
Type
Notes
id
integer (int64)
productionOrderNumber
string
orderType
string
styleCode
string
styleName
string
styleProductId
integer (int64)
colorId
integer (int64)
colorName
string
colorCode
string
season
string
sampleStyle
string
allowanceScope
string
allowanceUnit
string
totalAllowance
number
productionQuantity
integer (int32)
buyerId
integer (int64)
buyerName
string
locationId
integer (int64)
locationName
string
totalQuantity
integer (int32)
deliveryDate
string (date)
exFactoryDate
string (date)
workflowTemplateId
integer (int64)
workflowTemplateName
string
assignedLineId
integer (int64)
assignedLineName
string
status
string
tnaStatus
string
remarks
string
hasWorkOrder
boolean
createdBy
integer (int64)
createdAt
string (date-time)
updatedAt
string (date-time)
lines
array of object
id
integer (int64)
measurementPointId
integer (int64)
pointName
string
uom
string
specValue
number
tolMinus
number
…33 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 — Full traceability of a production order: lines, buyer POs, TnA steps
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/production/production-orders/{id}/traceability" \
-H "Authorization: Bearer $KERN_API_KEY"
List work orders (paged; status, search, dates, styleProductId)
Scope erp.production.work_orders:read · the client's role needs view on Work Orders
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).
search
query
string
Search text (part of a name, number or code; not case-sensitive).
dateFrom
query
string (date)
From this date (YYYY-MM-DD), inclusive.
dateTo
query
string (date)
Up to this date (YYYY-MM-DD), inclusive.
styleProductId
query
integer (int64)
Only this style (product id).
jobWork
query
boolean
true: only work orders with job work (outside processing).
Response (200) — data
Field
Type
Notes
content
array of object
id
integer (int64)
workOrderNumber
string
productionOrderNumber
string
productionOrderCount
integer (int32)
styleProductId
integer (int64)
productName
string
styleName
string
colorName
string
season
string
brandName
string
workflowName
string
woDate
string (date)
deliveryDate
string (date)
jobWork
boolean
status
string
overdue
boolean
totalQty
integer (int32)
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 work orders (paged; status, search, dates, styleProductId)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/production/work-orders?page=0&size=20" \
-H "Authorization: Bearer $KERN_API_KEY"
POST/public/v1/production/work-orders
Create a work order from ACTIVE production orders of one style + colour (issue=true issues it at once)
Scope erp.production.work_orders:write · the client's role needs create on Work Orders · 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
productionOrderIds *
array of integer (int64)
woDate
string (date)
deliveryDate
string (date)
workflowName
string
workflowTemplateId
integer (int64)
jobWork
boolean
jobWorkVendorId
integer (int64)
jobWorkVendorName
string
jobWorkPrice
number
issue
boolean
sizes
array of object
sizeCode
string
sizeName
string
orderedQty
integer (int32)
woQty
integer (int32)
articleNo
string
skuNo
string
processes
array of object
id
integer (int64)
seq
integer (int32)
processName
string
status
string
vendorId
integer (int64)
vendorName
string
price
number
removable
boolean
editLocked
boolean
liveStatus
string
Response (200) — data
Field
Type
Notes
id
integer (int64)
workOrderNumber
string
styleProductId
integer (int64)
styleCode
string
styleName
string
colorId
integer (int64)
colorName
string
colorCode
string
season
string
brandName
string
productNo
string
description
string
workflowName
string
workflowTemplateId
integer (int64)
woDate
string (date)
deliveryDate
string (date)
totalQty
integer (int32)
jobWork
boolean
jobWorkVendorId
integer (int64)
jobWorkVendorName
string
jobWorkPrice
number
status
string
overdue
boolean
progressPct
integer (int32)
createdAt
string (date-time)
styleImageUrl
string
createdByName
string
styleCreatedByName
string
productionOrderCreatedByName
string
productionOrders
array of object
id
integer (int64)
productionOrderId
integer (int64)
productionOrderNumber
string
qty
integer (int32)
buyerPos
array of object
buyerPoId
integer (int64)
buyerPoNumber
string
buyerPoDate
string (date)
buyerName
string
quantity
integer (int32)
…45 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 — Create a work order from ACTIVE production orders of one style + colour (issue=true issues it at once)
curl -X POST "https://kronex.codeverse.co/cedge/public/v1/production/work-orders" \
-H "Authorization: Bearer $KERN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{ … }'
GET/public/v1/production/work-orders/{id}
Get one work order (production orders, buyer POs, sizes, BOM, processes)
Scope erp.production.work_orders:read · the client's role needs view on Work Orders
Parameters
Name
In
Type
Notes
id *
path
integer (int64)
The record's id.
Response (200) — data
Field
Type
Notes
id
integer (int64)
workOrderNumber
string
styleProductId
integer (int64)
styleCode
string
styleName
string
colorId
integer (int64)
colorName
string
colorCode
string
season
string
brandName
string
productNo
string
description
string
workflowName
string
workflowTemplateId
integer (int64)
woDate
string (date)
deliveryDate
string (date)
totalQty
integer (int32)
jobWork
boolean
jobWorkVendorId
integer (int64)
jobWorkVendorName
string
jobWorkPrice
number
status
string
overdue
boolean
progressPct
integer (int32)
createdAt
string (date-time)
styleImageUrl
string
createdByName
string
styleCreatedByName
string
productionOrderCreatedByName
string
productionOrders
array of object
id
integer (int64)
productionOrderId
integer (int64)
productionOrderNumber
string
qty
integer (int32)
buyerPos
array of object
buyerPoId
integer (int64)
buyerPoNumber
string
buyerPoDate
string (date)
buyerName
string
quantity
integer (int32)
…45 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 work order (production orders, buyer POs, sizes, BOM, processes)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/production/work-orders/{id}" \
-H "Authorization: Bearer $KERN_API_KEY"
PATCH/public/v1/production/work-orders/{id}/issue
Issue a DRAFT work order (→ ACTIVE)
Scope erp.production.work_orders:write · the client's role needs edit on Work Orders · 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.
Response (200) — data
Field
Type
Notes
id
integer (int64)
workOrderNumber
string
styleProductId
integer (int64)
styleCode
string
styleName
string
colorId
integer (int64)
colorName
string
colorCode
string
season
string
brandName
string
productNo
string
description
string
workflowName
string
workflowTemplateId
integer (int64)
woDate
string (date)
deliveryDate
string (date)
totalQty
integer (int32)
jobWork
boolean
jobWorkVendorId
integer (int64)
jobWorkVendorName
string
jobWorkPrice
number
status
string
overdue
boolean
progressPct
integer (int32)
createdAt
string (date-time)
styleImageUrl
string
createdByName
string
styleCreatedByName
string
productionOrderCreatedByName
string
productionOrders
array of object
id
integer (int64)
productionOrderId
integer (int64)
productionOrderNumber
string
qty
integer (int32)
buyerPos
array of object
buyerPoId
integer (int64)
buyerPoNumber
string
buyerPoDate
string (date)
buyerName
string
quantity
integer (int32)
…45 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 — Issue a DRAFT work order (→ ACTIVE)
curl -X PATCH "https://kronex.codeverse.co/cedge/public/v1/production/work-orders/{id}/issue" \
-H "Authorization: Bearer $KERN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json"
Scope erp.production.work_orders:write · the client's role needs edit on Work Orders · 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.
Response (200) — data
Field
Type
Notes
id
integer (int64)
workOrderNumber
string
styleProductId
integer (int64)
styleCode
string
styleName
string
colorId
integer (int64)
colorName
string
colorCode
string
season
string
brandName
string
productNo
string
description
string
workflowName
string
workflowTemplateId
integer (int64)
woDate
string (date)
deliveryDate
string (date)
totalQty
integer (int32)
jobWork
boolean
jobWorkVendorId
integer (int64)
jobWorkVendorName
string
jobWorkPrice
number
status
string
overdue
boolean
progressPct
integer (int32)
createdAt
string (date-time)
styleImageUrl
string
createdByName
string
styleCreatedByName
string
productionOrderCreatedByName
string
productionOrders
array of object
id
integer (int64)
productionOrderId
integer (int64)
productionOrderNumber
string
qty
integer (int32)
buyerPos
array of object
buyerPoId
integer (int64)
buyerPoNumber
string
buyerPoDate
string (date)
buyerName
string
quantity
integer (int32)
…45 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 — Cancel a work order
curl -X PATCH "https://kronex.codeverse.co/cedge/public/v1/production/work-orders/{id}/cancel" \
-H "Authorization: Bearer $KERN_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json"
Production Runs
Access: erp.production.runs:read(or :write)
GET/public/v1/production/runs
List production runs (paged; status, search)
Scope erp.production.runs:read · the client's role needs view on Production Runs
Parameters
Name
In
Type
Notes
page
query
integer (int32)
Page number, starting at 0.
size
query
integer (int32)
Items per page.
status
query
string
Only records with this status (see the record's status values).
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 production runs (paged; status, search)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/production/runs?page=0&size=20" \
-H "Authorization: Bearer $KERN_API_KEY"
GET/public/v1/production/runs/{id}
Get one production run (stages, per-size good/loss, daily entries)
Scope erp.production.runs:read · the client's role needs view on Production Runs
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 production run (stages, per-size good/loss, daily entries)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/production/runs/{id}" \
-H "Authorization: Bearer $KERN_API_KEY"
Available input per size for a stage (from upstream good output)
Scope erp.production.runs:read · the client's role needs view on Production Runs
Parameters
Name
In
Type
Notes
runStageId *
path
integer (int64)
The record's id.
Response (200) — data
Field
Type
Notes
runStageId
integer (int64)
trackMode
string
sizes
array of object
sizeCode
string
sizeName
string
available
integer (int32)
Errors: 400, 401, 403, 404, 405, 429, 500 — every error says how to fix it; see error codes and troubleshooting.
Example
# KERN ERP — Available input per size for a stage (from upstream good output)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/production/runs/stages/{runStageId}/available-input" \
-H "Authorization: Bearer $KERN_API_KEY"