Work order accepted

Both Customer and CorigoPro Desktop applications can perform acceptance action as well as CorigoPro Direct, in this case if you are using WebHooks your application receives notification.

Fields

FieldValue TypeVerificationDescription
HeaderMessageHeaderMandatoryComplex object that contains important information about the request.
StatusStatusMandatoryValue: "Accepted".
CommentstringOptional, Maximum length 3000Actor comment justifying the action.

Example: work order accepted notification

The following example shows a sample notification body:

{
	"Status": "Accepted",
	"Comment": "WorkOrder has been accepted.",
	"Header": {
		"WorkOrderId": 42,
		"BranchId": 492042,
		"PerformedBy": {
			"Name": "Jon Snow",
			"Phone": "+12025550141"
		},
		"Action": "Accepted",
		"ApiVersion": "1.0",
		"MessageId": "949213f3-87b3-4da4-b4fa-ab8daf465293"
	}
}

You should use this data to synchronize your work order Status and process additional data if needed.