WoCreateCommand1
POSTWoCreateCommand1
https://am-ce98c.corrigo.com/api/v1/cmd/Workorder/Create
AUTHORIZATIONOAuth 2.0
HEADERS
CompanyName
RDC CE Sandbox
Bodyraw (json)
json
{
"Command" : {
"WorkOrder" : {
"Items" : [
{
"Asset" : {
"Id" : 12584
},
"Task" : {
"Id" : 14389
}
}
],
"Contactid":2,
"TypeCategory" : 4,
"SubType" : {
"Id" : 259
},
"Customer" : {
"Id" : 3
}
},
"ComputeSchedule" : true
},
"RequestId" : "1234"
}
Example Request
WoCreateCommand1
curl
curl --location 'https://am-ce98c.corrigo.com/api/v1/cmd/Workorder/Create' \
--header 'CompanyName: RDC CE Sandbox' \
--data '{
"Command" : {
"WorkOrder" : {
"Items" : [
{
"Asset" : {
"Id" : 12584
},
"Task" : {
"Id" : 14389
}
}
],
"Contactid":2,
"TypeCategory" : 4,
"SubType" : {
"Id" : 259
},
"Customer" : {
"Id" : 3
}
},
"ComputeSchedule" : true
},
"RequestId" : "1234"
}
'
200 OK
Example Response
json
{
"CommandResult": {
"Wo": {
"Number": "ASN0013660",
"TypeCategory": "Request",
"WorkOrderCost": {
"Id": 388092
},
"Priority": {
"Id": 3
},
"StatusId": "New",
"Access": "NotApplicable",
"MainAsset": {
"Id": 12584
},
"ShortLocation": "NHQ 03 East",
"TaskRefinement": "TN - NHQ (Nashville Headquarters):NHQ 03 East:Other",
"WorkZone": {
"Id": 1
},
"Duration": 0,
"VendorNte": {
"CurrencyTypeId": "USD",
"Value": 0
},
"Specialty": {
"Id": 10095
},
"PoNumber": "",
"SubType": {
"Id": 259
},
"Customer": {
"Id": 3
},
"ContactName": "",
"WonId": 0,
"IsWarranty": false,
"FlagId": 0,
"TimeZone": 35,
"CurrencyTypeId": "USD",
"LastActionDate": "2022-03-08T09:11:46.6931427",
"DtCreated": "2022-03-08T09:11:46.6931427",
"DtDue": "2022-03-25T12:30:00",
"DtAcknowledgeBy": "2022-03-10T15:30:00",
"AcknowledgeByUtc": "2022-03-10T20:30:00Z",
"LastActionDateUtc": "2022-03-08T14:11:46.6931427Z",
"CreatedDateUtc": "2022-03-08T14:11:46.6931427Z",
"DueDateUtc": "2022-03-25T16:30:00Z",
"DtOnSiteBy": "2022-03-15T12:30:00",
"DtUtcOnSiteBy": "2022-03-15T16:30:00Z",
"LastAction": {
"Id": 388092
},
"InductionAndSafetyStatusID": "NotApplicable",
"ConcurrencyId": 1,
"Id": 388092
}
},
"RequestId": "1234"
}
Cache-Control
no-cache
Pragma
no-cache
Content-Type
application/json; charset=utf-8
Expires
-1
Date
Tue, 08 Mar 2022 14:11:47 GMT
Content-Length
1079
Strict-Transport-Security
max-age=31536000; includeSubDomains
POSTWoRecallCommand
https://am-ce98c.corrigo.com/api/v1/cmd/WoRecallCommand
AUTHORIZATIONOAuth 2.0
HEADERS
CompanyName
RDC CE Sandbox
Bodyraw (json)
json
{
"Command": {
"WorkOrderId": 388138,
"Comment":"Test",
"StatusId":"New",
"ActionReasonId":1
},
"RequestId": "123"
}
Example Request
WoRecallCommand
curl
curl --location 'https://am-ce98c.corrigo.com/api/v1/cmd/WoRecallCommand' \
--header 'CompanyName: RDC CE Sandbox' \
--data '{
"Command": {
"WorkOrderId": 1
},
"RequestId": "1234"
}
'
400 Bad Request
Example Response
json
{
"ErrorMessage": "Sorry, this command can be used only to recall a Work Order sent to a connected Service Pro",
"ErrorCode": "BUSINESS_LOGIC_ERROR",
"TimeStamp": "2022-03-08T11:45:45.9316199Z",
"RequestId": "1234"
}
Cache-Control
no-cache
Pragma
no-cache
Content-Type
application/json; charset=utf-8
Expires
-1
Date
Tue, 08 Mar 2022 11:45:45 GMT
Content-Length
207
Strict-Transport-Security
max-age=31536000; includeSubDomains