{"info":{"_postman_id":"a0f18fee-0d36-4016-a39f-b59207f7e98a","name":"WoCreateCommand1","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"19494308","collectionId":"a0f18fee-0d36-4016-a39f-b59207f7e98a","publishedId":"UVz1NBwd","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-04-12T17:11:29.000Z"},"item":[{"name":"WoCreateCommand1","id":"2cd23bfd-73fd-4c0d-8d7f-93bc1f1f9406","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"tokenType","value":"<token-type>"},{"key":"tokenName","value":"<token-name>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"POST","header":[{"key":"CompanyName","value":"RDC CE Sandbox","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"Command\" : {\r\n      \"WorkOrder\" : {\r\n         \"Items\" : [\r\n            {\r\n               \"Asset\" : {\r\n                  \"Id\" : 12584\r\n               },\r\n               \"Task\" : {\r\n                  \"Id\" : 14389\r\n               }\r\n            }\r\n         ],\r\n         \"Contactid\":2,\r\n         \"TypeCategory\" : 4,     \r\n                \r\n         \"SubType\" : {\r\n            \"Id\" : 259\r\n         },\r\n         \"Customer\" : {\r\n            \"Id\" : 3\r\n         }\r\n      },\r\n      \"ComputeSchedule\" : true     \r\n   },\r\n   \"RequestId\" : \"1234\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://am-ce98c.corrigo.com/api/v1/cmd/Workorder/Create","urlObject":{"protocol":"https","path":["api","v1","cmd","Workorder","Create"],"host":["am-ce98c","corrigo","com"],"query":[],"variable":[]}},"response":[{"id":"9997882d-d19f-480c-9a75-e3e1b7257114","name":"WoCreateCommand1","originalRequest":{"method":"POST","header":[{"key":"CompanyName","value":"RDC CE Sandbox","type":"text"}],"body":{"mode":"raw","raw":"{\r\n   \"Command\" : {\r\n      \"WorkOrder\" : {\r\n         \"Items\" : [\r\n            {\r\n               \"Asset\" : {\r\n                  \"Id\" : 12584\r\n               },\r\n               \"Task\" : {\r\n                  \"Id\" : 14389\r\n               }\r\n            }\r\n         ],\r\n         \"Contactid\":2,\r\n         \"TypeCategory\" : 4,     \r\n                \r\n         \"SubType\" : {\r\n            \"Id\" : 259\r\n         },\r\n         \"Customer\" : {\r\n            \"Id\" : 3\r\n         }\r\n      },\r\n      \"ComputeSchedule\" : true     \r\n   },\r\n   \"RequestId\" : \"1234\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://am-ce98c.corrigo.com/api/v1/cmd/Workorder/Create"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Date","value":"Tue, 08 Mar 2022 14:11:47 GMT"},{"key":"Content-Length","value":"1079"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"CommandResult\": {\n        \"Wo\": {\n            \"Number\": \"ASN0013660\",\n            \"TypeCategory\": \"Request\",\n            \"WorkOrderCost\": {\n                \"Id\": 388092\n            },\n            \"Priority\": {\n                \"Id\": 3\n            },\n            \"StatusId\": \"New\",\n            \"Access\": \"NotApplicable\",\n            \"MainAsset\": {\n                \"Id\": 12584\n            },\n            \"ShortLocation\": \"NHQ 03 East\",\n            \"TaskRefinement\": \"TN - NHQ (Nashville Headquarters):NHQ 03 East:Other\",\n            \"WorkZone\": {\n                \"Id\": 1\n            },\n            \"Duration\": 0,\n            \"VendorNte\": {\n                \"CurrencyTypeId\": \"USD\",\n                \"Value\": 0\n            },\n            \"Specialty\": {\n                \"Id\": 10095\n            },\n            \"PoNumber\": \"\",\n            \"SubType\": {\n                \"Id\": 259\n            },\n            \"Customer\": {\n                \"Id\": 3\n            },\n            \"ContactName\": \"\",\n            \"WonId\": 0,\n            \"IsWarranty\": false,\n            \"FlagId\": 0,\n            \"TimeZone\": 35,\n            \"CurrencyTypeId\": \"USD\",\n            \"LastActionDate\": \"2022-03-08T09:11:46.6931427\",\n            \"DtCreated\": \"2022-03-08T09:11:46.6931427\",\n            \"DtDue\": \"2022-03-25T12:30:00\",\n            \"DtAcknowledgeBy\": \"2022-03-10T15:30:00\",\n            \"AcknowledgeByUtc\": \"2022-03-10T20:30:00Z\",\n            \"LastActionDateUtc\": \"2022-03-08T14:11:46.6931427Z\",\n            \"CreatedDateUtc\": \"2022-03-08T14:11:46.6931427Z\",\n            \"DueDateUtc\": \"2022-03-25T16:30:00Z\",\n            \"DtOnSiteBy\": \"2022-03-15T12:30:00\",\n            \"DtUtcOnSiteBy\": \"2022-03-15T16:30:00Z\",\n            \"LastAction\": {\n                \"Id\": 388092\n            },\n            \"InductionAndSafetyStatusID\": \"NotApplicable\",\n            \"ConcurrencyId\": 1,\n            \"Id\": 388092\n        }\n    },\n    \"RequestId\": \"1234\"\n}"}],"_postman_id":"2cd23bfd-73fd-4c0d-8d7f-93bc1f1f9406"},{"name":"WoRecallCommand","id":"1051a536-bb73-483f-b0a7-8c1562929a43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"oauth2","oauth2":{"basicConfig":[],"advancedConfig":[{"key":"clientSecret","value":"<client-secret>"},{"key":"clientId","value":"<client-id>"},{"key":"accessTokenUrl","value":"<access-token-url>"},{"key":"tokenType","value":"<token-type>"},{"key":"client_authentication","value":"<client_authentication>"},{"key":"grant_type","value":"<grant_type>"}]},"isInherited":false},"method":"POST","header":[{"key":"CompanyName","value":"RDC CE Sandbox","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"Command\": {\r\n        \"WorkOrderId\": 388138,\r\n        \"Comment\":\"Test\",\r\n        \"StatusId\":\"New\",\r\n        \"ActionReasonId\":1\r\n    },\r\n    \"RequestId\": \"123\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":"https://am-ce98c.corrigo.com/api/v1/cmd/WoRecallCommand","urlObject":{"protocol":"https","path":["api","v1","cmd","WoRecallCommand"],"host":["am-ce98c","corrigo","com"],"query":[],"variable":[]}},"response":[{"id":"87f876bf-7dc5-4f89-83e7-8f6a5272ee5a","name":"WoRecallCommand","originalRequest":{"method":"POST","header":[{"key":"CompanyName","value":"RDC CE Sandbox","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"Command\": {\r\n        \"WorkOrderId\": 1\r\n    },\r\n    \"RequestId\": \"1234\"\r\n}\r\n","options":{"raw":{"language":"json"}}},"url":{"raw":"https://am-ce98c.corrigo.com/api/v1/cmd/WoRecallCommand","protocol":"https","host":["am-ce98c","corrigo","com"],"path":["api","v1","cmd","WoRecallCommand"],"query":[{"key":"","value":"","disabled":true}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Cache-Control","value":"no-cache"},{"key":"Pragma","value":"no-cache"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Expires","value":"-1"},{"key":"Date","value":"Tue, 08 Mar 2022 11:45:45 GMT"},{"key":"Content-Length","value":"207"},{"key":"Strict-Transport-Security","value":"max-age=31536000; includeSubDomains"}],"cookie":[],"responseTime":null,"body":"{\n    \"ErrorMessage\": \"Sorry, this command can be used only to recall a Work Order sent to a connected Service Pro\",\n    \"ErrorCode\": \"BUSINESS_LOGIC_ERROR\",\n    \"TimeStamp\": \"2022-03-08T11:45:45.9316199Z\",\n    \"RequestId\": \"1234\"\n}"}],"_postman_id":"1051a536-bb73-483f-b0a7-8c1562929a43"}]}