HomeRecipesAPI ReferenceChangelogDiscussions
Log In
Discussions

Discussions

Ask a Question
Back to All

Completion Note payload

Per earlier submission that needs additional clarity regarding the payload for sending completion note upon resolution: https://developer.corrigo.com/discuss/65b7e55dbbd20f004ddf2ed4

Are you saying I should replace:

{
"Region": "AM",
"commandRequest": {
"type": 'WoCompleteCommand',
"Comment": "WO Completed",
"WorkOrderId": id //The WO ID
},

WITH:

"Body": "Sample text",
"WorkOrderId": 15167,
"NoteTypeId": 1, //Constant for completion note
"Id": 0

Or should the additional payload be within the commandRequest parameters, like this?

{
"Region": "AM",
"commandRequest": {
"type": 'WoCompleteCommand',
"Comment": "WO Completed",
"WorkOrderId": id, //The WO ID
"Body": "Sample text",
"WorkOrderId": 15167,
"NoteTypeId": 1, //Constant for completion note
"Id": 0
},

I just need to know the full payload to send on resolve 😊