Production orders API
General:
Basics:
Parameters in the url should all be encoded and all data sent should be UTF-8
MAX number of requests per minute is set to 200.
When the limit is hit an error with code 429 is returned, with the header "Retry-After" containing the number of seconds you have to wait for your next request.
When the limit is hit an error with code 429 is returned, with the header "Retry-After" containing the number of seconds you have to wait for your next request.
Headers:
There are 2 ways to be authenticated when using this API. in both ways you add headers to the request.
1) Use an API-key together with store-id. This would be used when communicating machine to machine and no real person is involved. The API-key is available from where you activated the API. The store-id is also available in the same place.
2) Use a user_id and user_token together with a store-id. You get these values from the login-request. The values are connected to a person and are gained when an actual login to the system has been made.
1) Use an API-key together with store-id. This would be used when communicating machine to machine and no real person is involved. The API-key is available from where you activated the API. The store-id is also available in the same place.
2) Use a user_id and user_token together with a store-id. You get these values from the login-request. The values are connected to a person and are gained when an actual login to the system has been made.
store: <<STORE>> user_id: <<USER_ID>> user_token: <<USER_TOKEN>> api_key: <<API_KEY>> Accept: application/json Content-Type: application/json
Errors:
Code | Description |
---|---|
900001 | Credentials don't match |
900101 | Common error |
900429 | Too many requests |
903001 | Error when getting production order |
903002 | Error when creating a production order |
903003 | Error when updating a production order |
903004 | Error when getting customer order |
{ "errorCode" : 900101, "errorMessage" : "Something went wrong on the server", "errorField" : null, "errorData" : null }
Production orders API:
Customer orders
Create production order from customer order
POSTUrl: /customer_order/{customer_order_id}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Create production order from an existing customer order
Body:
Successfull response:
{ "finishedAmount": 7480.7133787665825, "orderId": 9804, "endDate": 1761211585972, "prReference": "prReference", "customerOrderId": 1014, "workHours": 1191.7866519444653, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 9900.57549742947, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 267.1689133891197, "partAmount": 3911.660235522736, "totalReserved": 4386.221290690026 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 2239.349490822924, "name": "name", "comment": "comment", "finishDate": 1761211585972, "storeState": 8032, "state": "0", "articles": [{ "waste": "0", "amount": 615.209560216009, "articleName": "articleName", "productionOrderId": 9490, "articleId": "articleId", "accuracy": 8400.097712939641, "finished": 4187.51312074246, "time": 9655.345884057127, "status": 5387 }], "startDate": 1761211585972, "reserveInDepth": "false" }
Print pickinglist
GETUrl: /{order_id}/pickinglist/print
Headers:
Accept: application/pdf or application/json
Print pickinglist of flat articles for production order
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
filter_non_available | false | ||
article_images | false | ||
order | asc | asc,desc | |
sort_column | art | art,name,supplier,supplier_art |
Production orders
Get batch and serial for a production order
GETUrl: /{order_id}/batch
Headers:
Accept: application/json or application/xml
Get batches and serial numbers for all the articles in a production order
Body:
Successfull response:
{ "countBatch": 9338, "batches": [{ "deliveredAmount": 8941.93027972588, "serialNr": "serialNr", "bestBefore": 1447, "batchId": "batchId", "orderedAmount": 8567.532935124553 }], "articleId": "articleId", "countSerial": 237 }
Get production order for id
GETUrl: /{order_id}
Headers:
Accept: application/json or application/xml
Get production order based on id
Body:
Successfull response:
{ "finishedAmount": 2202.7780500917515, "orderId": 9522, "endDate": 1761211585998, "prReference": "prReference", "customerOrderId": 9887, "workHours": 9339.950974447776, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 5448.929696124684, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 9984.726561995763, "partAmount": 2522.0173318996676, "totalReserved": 7279.047867014049 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 9722.262146998948, "name": "name", "comment": "comment", "finishDate": 1761211585998, "storeState": 7210, "state": "0", "articles": [{ "waste": "0", "amount": 2095.608308537019, "articleName": "articleName", "productionOrderId": 1666, "articleId": "articleId", "accuracy": 8444.278151379072, "finished": 8756.286377865647, "time": 9282.389957619624, "status": 4415 }], "startDate": 1761211585998, "reserveInDepth": "false" }
Get production orders for state
GETUrl: /state/{state}
Headers:
Accept: application/json or application/xml
Get a list of production orders based on state
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
from | 0 | ||
to | 0 | ||
page | 0 | ||
limit | 50 | ||
sort_column | start_date | start_date,end_date | |
order | desc | asc,desc |
Body:
Successfull response:
{ "ordersCount": 120, "pages": 1869, "pageSize": 6428, "orders": [{ "finishedAmount": 3626.965012818535, "orderId": 7695, "endDate": 1761211585999, "prReference": "prReference", "customerOrderId": 479, "workHours": 1755.7902216330644, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 8155.634532673317, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 7697.734878019753, "partAmount": 172.8448288845863, "totalReserved": 2562.301112259329 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 2329.395603698594, "name": "name", "comment": "comment", "finishDate": 1761211585999, "storeState": 3807, "state": "0", "articles": [{ "waste": "0", "amount": 8964.165994682768, "articleName": "articleName", "productionOrderId": 6219, "articleId": "articleId", "accuracy": 9866.729365259825, "finished": 2162.466027556308, "time": 3935.1257499121507, "status": 206 }], "startDate": 1761211585999, "reserveInDepth": "false" }], "page": 3975 }
Get production orders for customer order
GETUrl: /customer_order/{order_id}
Headers:
Accept: application/json or application/xml
Get a list of production orders connected to a customer order
Body:
Successfull response:
{ "ordersCount": 9636, "pages": 9639, "pageSize": 9403, "orders": [{ "finishedAmount": 4231.621290023335, "orderId": 6917, "endDate": 1761211586000, "prReference": "prReference", "customerOrderId": 3473, "workHours": 810.8957793554994, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 6051.378363897071, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 7553.771704574378, "partAmount": 8073.546703786155, "totalReserved": 4381.693141706811 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 5413.862587838966, "name": "name", "comment": "comment", "finishDate": 1761211586000, "storeState": 5289, "state": "0", "articles": [{ "waste": "0", "amount": 7711.1141736858235, "articleName": "articleName", "productionOrderId": 6041, "articleId": "articleId", "accuracy": 5968.506067305246, "finished": 5212.396415818022, "time": 6023.047547707948, "status": 7310 }], "startDate": 1761211586000, "reserveInDepth": "false" }], "page": 9667 }
Get production orders with article
GETUrl: /article/{article_id : .+}
Headers:
Accept: application/json or application/xml
Get a list of production orders that contains a specific article
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
max_state | |||
page | 0 | ||
limit | 50 | ||
sort_column | start_date | start_date,end_date | |
order | desc | asc,desc |
Body:
Successfull response:
{ "ordersCount": 6581, "pages": 4357, "pageSize": 3634, "orders": [{ "finishedAmount": 4743.837980385779, "orderId": 9299, "endDate": 1761211586001, "prReference": "prReference", "customerOrderId": 3840, "workHours": 3882.776190262468, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 5642.252175055832, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 7648.780970465125, "partAmount": 4359.451652670041, "totalReserved": 5095.658265830711 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 3055.1551609723247, "name": "name", "comment": "comment", "finishDate": 1761211586001, "storeState": 1914, "state": "0", "articles": [{ "waste": "0", "amount": 2705.5759603903252, "articleName": "articleName", "productionOrderId": 4119, "articleId": "articleId", "accuracy": 8763.01376363482, "finished": 6918.253239623893, "time": 5109.8230940449475, "status": 6089 }], "startDate": 1761211586001, "reserveInDepth": "false" }], "page": 3183 }
Get flat products
GETUrl: /{order_id}/products/flat
Headers:
Accept: application/json or application/xml
Get a flat list of products for a production order based on id
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
query | |||
supplier | |||
order | asc | asc,desc | |
sort_column | art | art,name,supplier,supplier_art |
Body:
Successfull response:
{"articles": [{ "supplierName": "supplierName", "amount": 6463.425713305243, "articleName": "articleName", "supplierId": 1746, "purchasePriceMisc": 8317.887863577786, "articleId": "articleId", "purchasePrice": 4097.022602514087, "partAmount": 100.0561850858661, "stockplace": "stockplace", "unit": "unit", "reserved": 4608.427172126266, "purchasePriceShipment": 2190.2556356931723, "supplierArticleId": "supplierArticleId", "purchaseOrders": [{ "ordered": 5685.34742203668, "orderId": 6803, "poRef": "poRef", "state": 8017, "deliveryDate": 1761211586003 }] }]}
Get po-ref for production order
GETUrl: /pr_ref/next_id
Headers:
Accept: application/json or application/xml
Get the next unique po-ref for production order
Get production orders between states
GETUrl: /production_orders_state
Headers:
Accept: application/json or application/xml
Get a list of production orders between two states
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
state_from | 0,1,2,3 | ||
state_to | 0,1,2,3 | ||
page | 0 | ||
limit | 20 | ||
query |
Body:
Successfull response:
{ "finishedAmount": 9049.985996848507, "orderId": 9004, "endDate": 1761211586010, "prReference": "prReference", "customerOrderId": 678, "workHours": 6038.7819579737325, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 2032.1001092238012, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 8243.404922409954, "partAmount": 2174.3501908954777, "totalReserved": 7703.578519780632 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 6746.267195223299, "name": "name", "comment": "comment", "finishDate": 1761211586010, "storeState": 3077, "state": "0", "articles": [{ "waste": "0", "amount": 4439.925053136916, "articleName": "articleName", "productionOrderId": 5895, "articleId": "articleId", "accuracy": 5064.136755989827, "finished": 4624.5390289371535, "time": 3755.9171985023786, "status": 9904 }], "startDate": 1761211586010, "reserveInDepth": "false" }
Add production order
POSTUrl:
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Add a new production order
Body:
{ "finishedAmount": 9064.316508654945, "orderId": 3422, "endDate": 1761211586013, "prReference": "prReference", "customerOrderId": 4823, "workHours": 5723.84003180669, "internalReference": "internalReference", "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 7303.564558548323, "name": "name", "comment": "comment", "finishDate": 1761211586013, "storeState": 9151, "state": "0", "startDate": 1761211586013, "reserveInDepth": "false" }
Successfull response:
{ "finishedAmount": 9056.764105134389, "orderId": 6519, "endDate": 1761211586013, "prReference": "prReference", "customerOrderId": 8612, "workHours": 1668.704310170962, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 5831.550761692434, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 5067.848997184964, "partAmount": 5186.527502265603, "totalReserved": 9607.109696737552 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 7413.064002258647, "name": "name", "comment": "comment", "finishDate": 1761211586013, "storeState": 361, "state": "0", "articles": [{ "waste": "0", "amount": 7883.449968963331, "articleName": "articleName", "productionOrderId": 8661, "articleId": "articleId", "accuracy": 3692.635914988547, "finished": 2922.939424576918, "time": 3303.4374702883283, "status": 9497 }], "startDate": 1761211586013, "reserveInDepth": "false" }
Add article for production order
POSTUrl: /{order_id}/article
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Add a new article for production order
Body:
{ "waste": "0", "amount": 4376.711385909846, "articleName": "articleName", "productionOrderId": 5262, "articleId": "articleId", "finished": 9611.450881770706, "time": 710.3615389357365, "status": 3734 }
Successfull response:
{ "parts": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 4529.2894743329425, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 3385.390975277358, "partAmount": 3366.7871574331675, "totalReserved": 5436.652731033782 }] }], "articles": [{ "waste": "0", "amount": 8084.5543488372305, "articleName": "articleName", "productionOrderId": 7744, "articleId": "articleId", "accuracy": 3189.044087614632, "finished": 3997.387914215259, "time": 6840.701413328948, "status": 3756 }] }
Cancel production order
PUTUrl: /{id}/cancel
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Update production order state to cancelled
Body:
Successfull response:
{ "finishedAmount": 4418.030711127952, "orderId": 7246, "endDate": 1761211586017, "prReference": "prReference", "customerOrderId": 1237, "workHours": 9730.885011524366, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 1972.1547995597932, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 2161.372909395266, "partAmount": 9125.852088096146, "totalReserved": 8379.435874534682 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 5743.309169854417, "name": "name", "comment": "comment", "finishDate": 1761211586017, "storeState": 7126, "state": "0", "articles": [{ "waste": "0", "amount": 1603.329397298442, "articleName": "articleName", "productionOrderId": 8799, "articleId": "articleId", "accuracy": 5325.233650769968, "finished": 6095.055801402624, "time": 8562.216282634277, "status": 6046 }], "startDate": 1761211586017, "reserveInDepth": "false" }
Finish production order
PUTUrl: /{id}/finish
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Update production order state to finished
Body:
Successfull response:
{ "finishedAmount": 1497.7266332987892, "orderId": 5151, "endDate": 1761211586018, "prReference": "prReference", "customerOrderId": 5971, "workHours": 8382.457204596803, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 3293.986632984345, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 3729.356939373062, "partAmount": 2904.420617777408, "totalReserved": 1918.770122194443 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 5304.666792314621, "name": "name", "comment": "comment", "finishDate": 1761211586018, "storeState": 9433, "state": "0", "articles": [{ "waste": "0", "amount": 3160.5512568906593, "articleName": "articleName", "productionOrderId": 5867, "articleId": "articleId", "accuracy": 7070.962198116104, "finished": 2443.8605910331135, "time": 9039.297287646661, "status": 1768 }], "startDate": 1761211586018, "reserveInDepth": "false" }
Update production order
PUTUrl: /{id}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Update an existing production order
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
startProduction | false |
Body:
{ "finishedAmount": 6382.090345594624, "orderId": 7499, "endDate": 1761211586019, "prReference": "prReference", "customerOrderId": 6108, "workHours": 8805.351036280586, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 8753.361393678624, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 3245.9846553425955, "partAmount": 9288.185393098098, "totalReserved": 1220.8763886946183 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 7281.492280906749, "name": "name", "comment": "comment", "finishDate": 1761211586019, "storeState": 5018, "state": "0", "articles": [{ "waste": "0", "amount": 2179.5567761954894, "articleName": "articleName", "productionOrderId": 9826, "articleId": "articleId", "accuracy": 7841.094320074744, "finished": 2603.540191966831, "time": 412.2090671881851, "status": 5545 }], "startDate": 1761211586019, "reserveInDepth": "false" }
Successfull response:
{ "finishedAmount": 6594.124753622182, "orderId": 7152, "endDate": 1761211586019, "prReference": "prReference", "customerOrderId": 6848, "workHours": 6768.710528537014, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 1322.428410482085, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 7738.58281301189, "partAmount": 8905.953502261404, "totalReserved": 2839.754285943018 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 9035.15282036175, "name": "name", "comment": "comment", "finishDate": 1761211586019, "storeState": 2912, "state": "0", "articles": [{ "waste": "0", "amount": 6937.408256257755, "articleName": "articleName", "productionOrderId": 9533, "articleId": "articleId", "accuracy": 4158.473037147248, "finished": 5236.154998725296, "time": 8752.728527645535, "status": 7623 }], "startDate": 1761211586019, "reserveInDepth": "false" }
Update article for production order
PUTUrl: /{id}/article
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Update an article for production order
Body:
{ "waste": "0", "amount": 9619.266848731893, "articleName": "articleName", "productionOrderId": 9928, "articleId": "articleId", "accuracy": 6198.488460206223, "finished": 2753.099205383913, "time": 2069.947592240552, "status": 6251 }
Successfull response:
{ "finishedAmount": 9099.394173551565, "orderId": 363, "endDate": 1761211586020, "prReference": "prReference", "customerOrderId": 7061, "workHours": 2843.232894561163, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 3631.159068069836, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 3182.46481125536, "partAmount": 6452.4399738157135, "totalReserved": 3813.6742227991317 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 9038.20516960445, "name": "name", "comment": "comment", "finishDate": 1761211586020, "storeState": 3533, "state": "0", "articles": [{ "waste": "0", "amount": 9124.922552068538, "articleName": "articleName", "productionOrderId": 5092, "articleId": "articleId", "accuracy": 4548.347116326875, "finished": 5454.315592160059, "time": 7693.512973520897, "status": 2208 }], "startDate": 1761211586020, "reserveInDepth": "false" }
Update article with traceability for production order
PUTUrl: /{id}/article/{article_id : .+}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Update an article for production order with traceability
Valid parameters:
Parameter | Description | Default value | Allowed values |
---|---|---|---|
waste |
Body:
{ "amount": 1332.9353933153855, "partTraceability": [{ "batches": [{ "amount": 1393.6454814184785, "batchId": "batchId" }], "amount": 9955.347872351598, "serial": [{}], "articleId": "articleId" }], "limitPartAmounts": "false", "serial": "serial", "bestBefore": 1651, "articleId": "articleId", "batch": "batch", "barcode": "barcode" }
Successfull response:
{ "finishedAmount": 5105.964610404125, "orderId": 1183, "endDate": 1761211586021, "prReference": "prReference", "customerOrderId": 3130, "workHours": 9520.388891106428, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 386.74144508473506, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 6447.2424021844545, "partAmount": 2728.7890635963654, "totalReserved": 3042.540327322912 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 4066.7111011751713, "name": "name", "comment": "comment", "finishDate": 1761211586021, "storeState": 8227, "state": "0", "articles": [{ "waste": "0", "amount": 6833.415748931313, "articleName": "articleName", "productionOrderId": 2853, "articleId": "articleId", "accuracy": 9398.71479774241, "finished": 8345.90723699146, "time": 3469.7314738883224, "status": 3833 }], "startDate": 1761211586021, "reserveInDepth": "false" }
Remove production order article
DELETEUrl: /{order_id}/article/{article_id : .+}
Headers:
Accept: application/json or application/xml
Content-type: application/json or application/xml
Content-type: application/json or application/xml
Remove article from an existing production order
Body:
Successfull response:
{ "finishedAmount": 7669.853717763437, "orderId": 3008, "endDate": 1761211586024, "prReference": "prReference", "customerOrderId": 7047, "workHours": 4548.155503224817, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 5084.183096278693, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 5065.418525994465, "partAmount": 3361.113851617925, "totalReserved": 4606.271660845759 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 6797.2845128351855, "name": "name", "comment": "comment", "finishDate": 1761211586024, "storeState": 7682, "state": "0", "articles": [{ "waste": "0", "amount": 617.3749750294355, "articleName": "articleName", "productionOrderId": 5167, "articleId": "articleId", "accuracy": 249.08648888119833, "finished": 890.9301442031192, "time": 8219.087842572948, "status": 2514 }], "startDate": 1761211586024, "reserveInDepth": "false" }
Classes:
FlatBundledArticleDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
articleId | String | Article id for a single article within the bundled article | R,W | ||||
articleName | String | R,W | |||||
reserved | Double | R,W | |||||
amount | Double | R,W | |||||
partAmount | Double | R,W | |||||
purchasePrice | Double | R,W | |||||
purchasePriceMisc | Double | R,W | |||||
purchasePriceShipment | Double | R,W | |||||
supplierId | Long | R,W | |||||
supplierName | String | R,W | |||||
supplierArticleId | String | R,W | |||||
unit | String | R,W | |||||
stockplace | String | R,W | |||||
purchaseOrders | List | R,W |
FlatBundledArticlePurchaseOrderDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
orderId | Long | R,W | |||||
poRef | String | R,W | |||||
ordered | Double | R,W | |||||
state | int | R,W | |||||
deliveryDate | Date | R,W |
FlatBundledArticlesResponseDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
articles | List | R |
PartTraceabilityBatchDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
batchId | String | R,W | |||||
amount | double | R,W |
PartTraceabilityDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
articleId | String | R,W | |||||
amount | double | R,W | |||||
batches | List | List of batches that should be used for this production. For multiple productions don`t include the whole history | R,W | ||||
serial | List | List of serial numbers that should be used for this production. For multiple productions don`t include the whole history | R,W |
ProductionOrderArticleDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
productionOrderId | long | R,W | |||||
articleId | String | R,W | |||||
articleName | String | R,W | |||||
time | Double | R,W | |||||
amount | Double | R,W | |||||
finished | Double | R,W | |||||
waste | Double | Total number of produced is finished plus waste | 0 | R,W | |||
status | int | R,W | |||||
accuracy | Double | Percentage on accuracy of the production result. A positive accuracy describes a general overproduction, while a negative accuracy describes waste in production | R |
ProductionOrderArticlesResponseDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
articles | List | R | |||||
parts | List | R |
ProductionOrderArticleTraceabilityDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
articleId | String | Article id for bundled article | R,W | ||||
batch | String | Batch for bundled article | R,W | ||||
serial | String | Serial number for bundled article | R,W | ||||
amount | double | Amount to be produced for bundled article | R,W | ||||
bestBefore | Long | Best before for bundled article | R,W | ||||
barcode | String | Barcode for bundled article | R,W | ||||
partTraceability | List | List of traceability for all parts in the bundled article | R,W | ||||
limitPartAmounts | Boolean | Set flag to true if we want to limit part amounts to ordered amount when overproducing | false | R,W |
ProductionOrderBatchResponseDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
articleId | String | R | |||||
countBatch | int | R | |||||
countSerial | int | R | |||||
batches | List | R |
ProductionOrderDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
orderId | Long | When updating a production order (PUT) | R,W | ||||
prReference | String | Unique ProductionOrder-id which the customer can decide themselves | R,W | ||||
customerOrderId | Long | POST | must point to an existing customerOrder | R,W | |||
customerOrderExternalId | String | R,W | |||||
internalReference | String | R,W | |||||
name | String | R,W | |||||
comment | String | R,W | |||||
startDate | Date | R,W | |||||
endDate | Date | R,W | |||||
finishDate | Date | R,W | |||||
workHours | Double | R,W | |||||
state | Integer | Write only with POST | 0 | NEW = 0, DEVELOPING = 1, FINISHED = 2, CANCELLED = 3 |
R,W | ||
reserveInDepth | Boolean | Flag to indicate if reservation should be done on only first layer of bundled articles, or if it should be done on all simple articles in all layers | false | R,W | |||
storeState | Integer | R,W | |||||
totalAmount | Double | R,W | |||||
finishedAmount | Double | R,W | |||||
articles | List | List of ProductionOrderArticles | R | ||||
singleArticles | List | List of ProductionOrderSingleArticles | R |
ProductionOrderProductBatchDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
batchId | String | R,W | |||||
serialNr | String | R,W | |||||
orderedAmount | Double | R,W | |||||
deliveredAmount | Double | R,W | |||||
bestBefore | Long | R,W |
ProductionOrderRefDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
prReference | String | Next available purchase order reference | R |
ProductionOrderSingleArticleGroupDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
articleId | String | R,W | |||||
singleArticles | List | R,W |
ProductionOrderSingleArticleReservedDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
articleId | String | Article id for the bundled article | R,W | ||||
singleArticleId | String | Article id for a single article within the bundled article | R,W | ||||
singleArticleName | String | R,W | |||||
unit | String | R,W | |||||
totalReserved | Double | R,W | |||||
totalAmount | Double | R,W | |||||
partAmount | Double | R,W | |||||
purchasePrice | Double | R,W | |||||
hasStockValue | Boolean | R,W |
ProductionOrdersResponseDto
Field | Type | Description | Default | Mandatory | Accepted values | Example values | Access |
---|---|---|---|---|---|---|---|
page | int | R | |||||
pages | int | R | |||||
pageSize | int | R | |||||
ordersCount | int | R | |||||
orders | List | R |