Discussions

Ask a Question
Back to all

Complete Integration Guidance

(edited)

Hello, we are integrating Corrigo for managing our Work Orders. But we need you guidance for our queries:

Below API calls are how I am trying to get WOs, but getting ERROR.

First Step

Generate Token - This works well.

Request -

Method : GET
URL : https://oauth-pro-v2.corrigo.com/OAuth/token?grant_type&client_id&client_secret

Body -
Content Type : x-www-form-urlencoded
Credentials:
grant_type : client_credentials
Client_id : ceapiclient.xxx
Client_secret : xxx

Response -

{
"access_token": "xxx",
"token_type": "bearer",
"expires_in": 1199
}

Second Step

Get Work Orders - This gives error.

Request -

Method : POST
URL : https://am-ce98c.corrigo.com/api/v1/query/WorkOrder

Headers: CompanyName - Stage Sun City Hilton Head Community

Authorization : OAuth 2.0 (Please paste the token generated by above API)
Body -
{
"QueryExpression": {
"Distinct": true,
"PropertySet": {
"Properties": [
"*",
"Employee.DisplayAs",
"SubType.DisplayAs",
"Priority.DisplayAs",
"MainAsset.Name",
"WorkZone.DisplayAs",
"Customer.DisplayAs",
"Notes"
]
},
"FirstResultIndex": 0
}
}

Response -

{
"ErrorMessage": "Requests to the instance Stage Sun City Hilton Head Community cannot be processed by this URI",
"ErrorCode": "DATABASE_VERSION_MISMATCH",
"TimeStamp": "2025-09-09T13:20:01.4830591Z"
}


I want to -

1)Get all the work orders for Stage Sun City Hilton Head Community.
2)Get all the work orders for each property of Stage Sun City Hilton Head Community separately.
3)Create work orders along with notes and attachments for Stage Sun City Hilton Head Community .
4)Create work orders along with notes and attachments for each property of Stage Sun City Hilton Head Community separately.
5)Also, Edit those Work Orders along with notes and attachments.

Can you please let me know what should I do in order to achieve all the 5 points listed above.

Please let me know if you need anything else from our end.