Work order rejected
In case if work order is rejected by a technician via CorrigoPro Desktop your application receives notification.
Fields
Field | Value Type | Verification | Description |
---|---|---|---|
Header | MessageHeader | Mandatory | Complex object that contains important information about the request. |
Status | Status | Mandatory | Value: "Rejected". |
Comment | string | Mandatory, Maximum length 3000 | Actor comment justifying the action. |
Example: work order rejected notification
The following example shows a sample notification body:
{
"Status": "Rejected",
"Comment": "WorkOrder has been rejected.",
"Header": {
"WorkOrderId": 42,
"BranchId": 492042,
"Sender": {
"Name": "Jon Snow",
"Phone": "+12025550141",
"Type": "CorrigoPro"
},
"Action": "Rejected",
"ActionDate": "2017-10-05T10:14:05.9546437Z",
"ApiVersion": "1.0",
"MessageId": "1d97945a-5b19-4d38-ad92-f26c54fea5f2"
}
}
You should use this data to synchronize your work order Status and process additional data if needed.
Updated over 5 years ago