Grouped by screen, as in the app. Scope for the whole module: erp.yarn_fabric.*:read or :write.
PO List
Access: erp.yarn_fabric.purchase_orders:read(or :write)
GET/public/v1/yarn-fabric/purchase-orders
List yarn / greige fabric purchase orders (paged)
Scope erp.yarn_fabric.purchase_orders:read · the client's role needs view on PO List
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). |
vendorId | query | integer (int64) | Only this vendor / customer (id). |
dateFrom | query | string (date) | From this date (YYYY-MM-DD), inclusive. |
dateTo | query | string (date) | Up to this date (YYYY-MM-DD), inclusive. |
Response (200) — data
| Field | Type | Notes |
|---|
content | array of object | |
id | integer (int64) | |
poNo | string | |
poCreationDate | string (date) | |
vendorName | string | |
companyLocationName | string | |
shipToType | string | |
shipToLabel | string | |
poDeliveryDate | string (date) | |
shipMode | string | |
itemsCount | integer (int32) | |
grandTotal | number | |
status | string | |
closureType | string | |
approverName | string | |
grnCount | 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 yarn / greige fabric purchase orders (paged)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/yarn-fabric/purchase-orders?page=0&size=20" \
-H "Authorization: Bearer $KERN_API_KEY"GET/public/v1/yarn-fabric/purchase-orders/{id}
Get one yarn / greige fabric purchase order
Scope erp.yarn_fabric.purchase_orders:read · the client's role needs view on PO List
Parameters
| Name | In | Type | Notes |
|---|
id * | path | integer (int64) | The record's id. |
Response (200) — data
| Field | Type | Notes |
|---|
id | integer (int64) | |
poNo | string | |
vendorId | integer (int64) | |
vendorName | string | |
companyLocationId | integer (int64) | |
companyLocationName | string | |
shipToType | string | |
shipToRefId | integer (int64) | |
shipToLabel | string | |
poCreationDate | string (date) | |
poDeliveryDate | string (date) | |
shippingTermsId | integer (int64) | |
shippingTermsName | string | |
deliveryTermsId | integer (int64) | |
deliveryTermsName | string | |
shipMode | string | |
notes | string | |
status | string | |
grossTotal | number | |
transportCost | number | |
additionalCost | number | |
grandTotal | number | |
submittedAt | string (date-time) | |
submittedBy | integer (int64) | |
approvedAt | string (date-time) | |
approvedBy | integer (int64) | |
rejectedAt | string (date-time) | |
rejectedBy | integer (int64) | |
rejectionReason | string | |
cancelledAt | string (date-time) | |
cancelledBy | integer (int64) | |
cancellationReason | string | |
closeReason | string | |
closedBy | integer (int64) | |
closedAt | string (date-time) | |
closureType | string | |
grnCount | integer (int32) | |
createdAt | string (date-time) | |
updatedAt | string (date-time) | |
createdBy | integer (int64) | |
…40 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 yarn / greige fabric purchase order
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/yarn-fabric/purchase-orders/{id}" \
-H "Authorization: Bearer $KERN_API_KEY"GRN
Access: erp.yarn_fabric.grns:read(or :write)
GET/public/v1/yarn-fabric/purchase-orders/{poId}/grns
Goods receipts of one yarn / fabric purchase order (newest first)
Scope erp.yarn_fabric.grns:read · the client's role needs view on GRN
Parameters
| Name | In | Type | Notes |
|---|
poId * | path | integer (int64) | The record's id. |
Response (200) — data
| Field | Type | Notes |
|---|
id | integer (int64) | |
grnNo | string | |
poId | integer (int64) | |
poNo | string | |
vendorName | string | |
companyLocationName | string | |
receivedDate | string (date) | |
referenceNo | string | |
referenceDate | string (date) | |
receivedBy | integer (int64) | |
receivedByName | string | |
notes | string | |
status | string | |
approvedBy | integer (int64) | |
approvedByName | string | |
approvedAt | string (date-time) | |
createdAt | string (date-time) | |
lines | array of object | |
id | integer (int64) | |
poId | integer (int64) | |
poNum | string | |
poLineId | integer (int64) | |
itemRefType | string | |
itemRefId | integer (int64) | |
itemCode | string | |
itemDescription | string | |
uom | string | |
uomId | integer (int64) | |
sizeId | integer (int64) | |
scale | string | |
poQty | number | |
prevReceived | number | |
receiveQty | number | |
rejectQty | number | |
netQty | number | |
unitPrice | number | |
lotNumber | string | |
rollNo | string | |
qcStatus | string | |
remarks | string | |
…18 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 — Goods receipts of one yarn / fabric purchase order (newest first)
curl -X GET "https://kronex.codeverse.co/cedge/public/v1/yarn-fabric/purchase-orders/{poId}/grns?page=0&size=20" \
-H "Authorization: Bearer $KERN_API_KEY"