Synchronize work orders batch between customer ERP and PlantScanner bases.
GET
/api/v1/Alerts
Alerts
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.plantscanner.io/api/v1/Alerts'
Response Response Example
200 - Exemplo 1
{
"alerts": [
{
"workOrder": {
"code": "string",
"operationCode": "string",
"status": "Undefined"
},
"workStation": {
"code": "string",
"description": "string",
"shortName": "string"
},
"type": "Undefined",
"opened": "2019-08-24T14:15:22Z",
"acknowledged": "2019-08-24T14:15:22Z",
"closed": "2019-08-24T14:15:22Z",
"status": "Undefined",
"elapsedOpenTime": {
"ticks": 0,
"days": 0,
"hours": 0,
"milliseconds": 0,
"minutes": 0,
"seconds": 0,
"totalDays": 0,
"totalHours": 0,
"totalMilliseconds": 0,
"totalMinutes": 0,
"totalSeconds": 0
},
"elapsedAcknowledgeTime": {
"ticks": 0,
"days": 0,
"hours": 0,
"milliseconds": 0,
"minutes": 0,
"seconds": 0,
"totalDays": 0,
"totalHours": 0,
"totalMilliseconds": 0,
"totalMinutes": 0,
"totalSeconds": 0
},
"totalElapsedTime": {
"ticks": 0,
"days": 0,
"hours": 0,
"milliseconds": 0,
"minutes": 0,
"seconds": 0,
"totalDays": 0,
"totalHours": 0,
"totalMilliseconds": 0,
"totalMinutes": 0,
"totalSeconds": 0
},
"note": "string",
"alertReason": "string"
}
],
"workOrder": {
"code": "string",
"operationCode": "string",
"status": "Undefined"
}
}
Requisição
Parâmetros Query
LastUpdatedBegin
string <date-time>
opcional
LastUpdatedEnd
string <date-time>
opcional
BeginOpened
string <date-time>
opcional
EndOpened
string <date-time>
opcional