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": 7091.771590436469, "orderId": 2102, "endDate": 1769038808542, "prReference": "prReference", "customerOrderId": 1929, "workHours": 3097.9985860554293, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 4648.740714050915, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 7134.944417507203, "partAmount": 3819.9744535523296, "totalReserved": 1417.4672499093676 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 2553.660510230887, "name": "name", "comment": "comment", "finishDate": 1769038808542, "storeState": 6470, "state": "0", "articles": [{ "waste": "0", "amount": 9487.915245058502, "articleName": "articleName", "productionOrderId": 1747, "articleId": "articleId", "accuracy": 4054.723411466108, "finished": 1161.125930670661, "time": 4453.692568455979, "status": 5276 }], "startDate": 1769038808542, "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 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": 7460, "pages": 3914, "pageSize": 9286, "orders": [{ "finishedAmount": 7311.499350321211, "orderId": 8858, "endDate": 1769038808543, "prReference": "prReference", "customerOrderId": 5800, "workHours": 2703.9559418179683, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 5228.537542192458, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 2398.333306000241, "partAmount": 4094.6080193352986, "totalReserved": 1120.4331039133108 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 1062.208984660975, "name": "name", "comment": "comment", "finishDate": 1769038808543, "storeState": 6253, "state": "0", "articles": [{ "waste": "0", "amount": 290.92962801221864, "articleName": "articleName", "productionOrderId": 5717, "articleId": "articleId", "accuracy": 7966.103478723059, "finished": 5097.701522501762, "time": 6304.96748268799, "status": 6297 }], "startDate": 1769038808543, "reserveInDepth": "false" }], "page": 9943 }
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": 4255, "batches": [{ "deliveredAmount": 2771.443306665934, "serialNr": "serialNr", "bestBefore": 8722, "batchId": "batchId", "orderedAmount": 5476.6989156738455 }], "articleId": "articleId", "countSerial": 3191 }
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": 9275.084779394136, "orderId": 5613, "endDate": 1769038808544, "prReference": "prReference", "customerOrderId": 9391, "workHours": 5601.97326732141, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 113.13293592108087, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 6280.825610411464, "partAmount": 2720.7346636275242, "totalReserved": 2620.778845367604 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 3893.1569640212683, "name": "name", "comment": "comment", "finishDate": 1769038808544, "storeState": 5804, "state": "0", "articles": [{ "waste": "0", "amount": 9477.133232674798, "articleName": "articleName", "productionOrderId": 7587, "articleId": "articleId", "accuracy": 3178.65519914045, "finished": 2356.511986829459, "time": 254.57587878726872, "status": 7951 }], "startDate": 1769038808544, "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": 4219, "pages": 1705, "pageSize": 1167, "orders": [{ "finishedAmount": 7810.088033976122, "orderId": 9480, "endDate": 1769038808544, "prReference": "prReference", "customerOrderId": 7023, "workHours": 7068.588211728298, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 2647.6271343513768, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 1891.782094525446, "partAmount": 4789.2783345714115, "totalReserved": 2281.6811546652016 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 5075.299653008754, "name": "name", "comment": "comment", "finishDate": 1769038808544, "storeState": 9465, "state": "0", "articles": [{ "waste": "0", "amount": 6231.860569064952, "articleName": "articleName", "productionOrderId": 1895, "articleId": "articleId", "accuracy": 5747.389827712716, "finished": 4790.091774254398, "time": 7051.425043600946, "status": 950 }], "startDate": 1769038808544, "reserveInDepth": "false" }], "page": 9693 }
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": 8281, "pages": 2753, "pageSize": 5623, "orders": [{ "finishedAmount": 8619.5870098049, "orderId": 3993, "endDate": 1769038808544, "prReference": "prReference", "customerOrderId": 1518, "workHours": 9381.755628435023, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 1956.4576590768568, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 1961.294753781101, "partAmount": 2608.9600813268667, "totalReserved": 1900.1848716351333 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 8735.66618204164, "name": "name", "comment": "comment", "finishDate": 1769038808544, "storeState": 2288, "state": "0", "articles": [{ "waste": "0", "amount": 8439.39864656882, "articleName": "articleName", "productionOrderId": 7925, "articleId": "articleId", "accuracy": 1456.9108554792365, "finished": 9385.613640720981, "time": 2404.4907261203152, "status": 1066 }], "startDate": 1769038808544, "reserveInDepth": "false" }], "page": 7787 }
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": 1562.066815539298, "articleName": "articleName", "supplierId": 7160, "purchasePriceMisc": 7734.152385665326, "articleId": "articleId", "purchasePrice": 8969.354752272859, "partAmount": 4688.977743690116, "stockplace": "stockplace", "unit": "unit", "reserved": 9138.319423701867, "purchasePriceShipment": 4590.488477405347, "supplierArticleId": "supplierArticleId", "purchaseOrders": [{ "ordered": 5684.002428174499, "orderId": 9710, "poRef": "poRef", "state": 1893, "deliveryDate": 1769038808544 }] }]}
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": 6968.5734148448455, "orderId": 9551, "endDate": 1769038808545, "prReference": "prReference", "customerOrderId": 869, "workHours": 4859.804542867526, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 8956.042475312739, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 9192.602328432835, "partAmount": 4486.748746906397, "totalReserved": 9701.537585447555 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 672.8298743711836, "name": "name", "comment": "comment", "finishDate": 1769038808545, "storeState": 2214, "state": "0", "articles": [{ "waste": "0", "amount": 4644.816113412974, "articleName": "articleName", "productionOrderId": 2681, "articleId": "articleId", "accuracy": 4131.005839011289, "finished": 8689.96382442911, "time": 6533.200468595207, "status": 8855 }], "startDate": 1769038808545, "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": 1429.857889192947, "orderId": 9377, "endDate": 1769038808545, "prReference": "prReference", "customerOrderId": 9567, "workHours": 878.8125750899434, "internalReference": "internalReference", "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 3135.828916402543, "name": "name", "comment": "comment", "finishDate": 1769038808545, "storeState": 897, "state": "0", "startDate": 1769038808545, "reserveInDepth": "false" }
Successfull response:
{ "finishedAmount": 982.7546988370417, "orderId": 4891, "endDate": 1769038808545, "prReference": "prReference", "customerOrderId": 1313, "workHours": 4365.936584626602, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 8429.652354328426, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 7205.480736903331, "partAmount": 1335.0809529109754, "totalReserved": 5681.444724761969 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 9957.28271350683, "name": "name", "comment": "comment", "finishDate": 1769038808545, "storeState": 1126, "state": "0", "articles": [{ "waste": "0", "amount": 8357.782452333802, "articleName": "articleName", "productionOrderId": 3391, "articleId": "articleId", "accuracy": 3902.7863830583087, "finished": 5068.370364975296, "time": 6898.436059796473, "status": 1809 }], "startDate": 1769038808545, "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": 654.060141928825, "articleName": "articleName", "productionOrderId": 6231, "articleId": "articleId", "finished": 7606.06318230219, "time": 5569.641944449601, "status": 4043 }
Successfull response:
{ "parts": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 807.8102753123251, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 1218.6868226421022, "partAmount": 7639.206809689105, "totalReserved": 3808.881386504509 }] }], "articles": [{ "waste": "0", "amount": 3485.9054647299195, "articleName": "articleName", "productionOrderId": 4402, "articleId": "articleId", "accuracy": 1625.3131283751022, "finished": 2539.783534690121, "time": 7717.344304664537, "status": 6642 }] }
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": 8603.234475762754, "orderId": 4032, "endDate": 1769038808545, "prReference": "prReference", "customerOrderId": 5163, "workHours": 5801.961539854209, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 7288.776804341417, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 3414.9276555721253, "partAmount": 1580.7866496017098, "totalReserved": 9781.493336002239 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 5834.577850282377, "name": "name", "comment": "comment", "finishDate": 1769038808545, "storeState": 7821, "state": "0", "articles": [{ "waste": "0", "amount": 2909.1015552087297, "articleName": "articleName", "productionOrderId": 6990, "articleId": "articleId", "accuracy": 500.0092304486725, "finished": 3680.0250301071724, "time": 2734.562873920905, "status": 8055 }], "startDate": 1769038808545, "reserveInDepth": "false" }
Successfull response:
{ "finishedAmount": 4735.381297023128, "orderId": 4836, "endDate": 1769038808545, "prReference": "prReference", "customerOrderId": 4404, "workHours": 615.2635262927242, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 6480.607597541563, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 666.8647701984275, "partAmount": 2383.5008759630205, "totalReserved": 2524.389843703425 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 5491.201147246678, "name": "name", "comment": "comment", "finishDate": 1769038808545, "storeState": 1578, "state": "0", "articles": [{ "waste": "0", "amount": 9141.931362843574, "articleName": "articleName", "productionOrderId": 5905, "articleId": "articleId", "accuracy": 8819.720896280152, "finished": 118.0164762753988, "time": 8184.829292853765, "status": 467 }], "startDate": 1769038808545, "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": 6673.530090856171, "articleName": "articleName", "productionOrderId": 7888, "articleId": "articleId", "accuracy": 9252.59692114441, "finished": 6705.429006927746, "time": 5296.654342984371, "status": 3819 }
Successfull response:
{ "finishedAmount": 4520.573225270776, "orderId": 4352, "endDate": 1769038808546, "prReference": "prReference", "customerOrderId": 3601, "workHours": 5797.36267583359, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 1886.5467576477724, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 2522.0942335455297, "partAmount": 6010.891884176729, "totalReserved": 1135.0501066794493 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 657.5285001394948, "name": "name", "comment": "comment", "finishDate": 1769038808546, "storeState": 7793, "state": "0", "articles": [{ "waste": "0", "amount": 8794.675319444174, "articleName": "articleName", "productionOrderId": 8025, "articleId": "articleId", "accuracy": 1488.0224895197891, "finished": 5998.055551112701, "time": 6708.061306827142, "status": 7309 }], "startDate": 1769038808546, "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": 7779.931829004157, "partTraceability": [{ "batches": [{ "amount": 9881.722733135548, "batchId": "batchId" }], "amount": 9309.172833829905, "serial": [{}], "articleId": "articleId" }], "limitPartAmounts": "false", "serial": "serial", "bestBefore": 8007, "articleId": "articleId", "batch": "batch", "barcode": "barcode" }
Successfull response:
{ "finishedAmount": 6308.429659833903, "orderId": 4421, "endDate": 1769038808546, "prReference": "prReference", "customerOrderId": 1744, "workHours": 7580.4098645979375, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 7877.1463344278545, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 5555.697451189312, "partAmount": 6438.609542118347, "totalReserved": 1185.8788393698871 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 9760.522119338739, "name": "name", "comment": "comment", "finishDate": 1769038808546, "storeState": 3861, "state": "0", "articles": [{ "waste": "0", "amount": 6137.88936180447, "articleName": "articleName", "productionOrderId": 6110, "articleId": "articleId", "accuracy": 4626.667120853208, "finished": 6190.690417504689, "time": 1574.6594461308016, "status": 3211 }], "startDate": 1769038808546, "reserveInDepth": "false" }
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": 1347.0675350757178, "orderId": 6759, "endDate": 1769038808546, "prReference": "prReference", "customerOrderId": 2849, "workHours": 6919.924864619978, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 531.5392225928483, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 2282.36338472811, "partAmount": 8883.314286471263, "totalReserved": 2445.2819299775883 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 5972.546677041696, "name": "name", "comment": "comment", "finishDate": 1769038808546, "storeState": 6684, "state": "0", "articles": [{ "waste": "0", "amount": 9726.347959349909, "articleName": "articleName", "productionOrderId": 5720, "articleId": "articleId", "accuracy": 8612.801896000934, "finished": 3062.576201714865, "time": 4088.3035272931256, "status": 8500 }], "startDate": 1769038808546, "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": 4474.257680422481, "orderId": 1498, "endDate": 1769038808546, "prReference": "prReference", "customerOrderId": 8517, "workHours": 2961.1277453487673, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 911.8437795804967, "hasStockValue": true, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 782.2239365269135, "partAmount": 9118.621530611943, "totalReserved": 6665.2339452192555 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 8586.375276188783, "name": "name", "comment": "comment", "finishDate": 1769038808546, "storeState": 6618, "state": "0", "articles": [{ "waste": "0", "amount": 1774.026368414936, "articleName": "articleName", "productionOrderId": 5556, "articleId": "articleId", "accuracy": 1775.8192429146136, "finished": 963.459087571421, "time": 8012.994152044825, "status": 9483 }], "startDate": 1769038808546, "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": 7817.056511701032, "orderId": 3435, "endDate": 1769038808546, "prReference": "prReference", "customerOrderId": 9216, "workHours": 1485.2592691465338, "internalReference": "internalReference", "singleArticles": [{ "articleId": "articleId", "singleArticles": [{ "totalAmount": 7392.843087527167, "hasStockValue": false, "unit": "unit", "singleArticleId": "singleArticleId", "singleArticleName": "singleArticleName", "articleId": "articleId", "purchasePrice": 501.1057879709169, "partAmount": 6806.866741130646, "totalReserved": 5273.970043745707 }] }], "customerOrderExternalId": "customerOrderExternalId", "totalAmount": 6511.163574546609, "name": "name", "comment": "comment", "finishDate": 1769038808546, "storeState": 3336, "state": "0", "articles": [{ "waste": "0", "amount": 276.10903747025463, "articleName": "articleName", "productionOrderId": 7177, "articleId": "articleId", "accuracy": 925.4407676574227, "finished": 5048.08925390382, "time": 2947.2425730112604, "status": 482 }], "startDate": 1769038808546, "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 |