Synchronize work orders batch between customer ERP and PlantScanner bases.
GET
/api/v1/WorkOrdersHistory
WorkOrdersHistory
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.plantscanner.io/api/v1/WorkOrdersHistory'
Response Response Example
200 - Exemplo 1
{
"workOrdersHistory": [
{
"id": 0,
"code": "string",
"workOrderGrouper": "string",
"materialCode": "string",
"materialGroup": "string",
"operationCode": "string",
"materialDescription": "string",
"requestedQuantity": 0,
"uoM": "string",
"type": "ReadyToExecute",
"customer": "string",
"promiseDate": "2019-08-24T14:15:22Z",
"note": "string",
"status": "Undefined",
"statusDescription": "string",
"workStation": {
"code": "string"
},
"beginPlanned": "2019-08-24T14:15:22Z",
"endPlanned": "2019-08-24T14:15:22Z",
"beginExecution": "2019-08-24T14:15:22Z",
"beginEmployee": {
"registration": "string"
},
"endExecution": "2019-08-24T14:15:22Z",
"endEmployee": {
"registration": "string"
},
"producedGoodQuantity": 0,
"producedBadQuantity": 0,
"lastUpdate": "2019-08-24T14:15:22Z",
"properties": [
{
"key": "string",
"value": "string",
"name": "string",
"isLocked": true
}
],
"runtime": [
{
"begin": "2019-08-24T14:15:22Z",
"beginEmployee": {
"registration": "string"
},
"endEmployee": {
"registration": "string"
},
"end": "2019-08-24T14:15:22Z",
"status": 0,
"statusDescription": "string",
"note": "string"
}
],
"planningHistory": [
{
"begin": "2019-08-24T14:15:22Z",
"end": "2019-08-24T14:15:22Z",
"lastUpdate": "2019-08-24T14:15:22Z"
}
]
}
]
}
Requisição
Parâmetros Query
Code
string
opcional
OperationCode
string
opcional
LastUpdatedBegin
string <date-time>
opcional
LastUpdatedEnd
string <date-time>
opcional