Work order rejected

In case if work order is rejected by a technician via CorrigoPro Desktop your application receives notification.

Fields

FieldValue TypeVerificationDescription
HeaderMessageHeaderMandatoryComplex object that contains important information about the request.
StatusStatusMandatoryValue: "Rejected".
CommentstringMandatory,
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.