Calling the CorrigoPro Direct API

Calling the CorrigoPro Direct API is as simple as it gets. Perform the following steps for every API call:

1. Get the REST service URL

Configure your integration, copy the REST SERVICE URL from the CorrigoPro Direct Settings screen and store in your application.

2. Build the API method URI

Build the method URI by using the web service URL saved in step 1.
For example, to retrieve a work order by ID in APAC, the URI must be https://apac-api.corrigopro.com/direct/api/workOrder.

3. Specify parameters

Specify method parameters according to the API reference. Some parameters are specified as query parameters appended to the path of the URI, and some parameters are specified in the JSON request body.

4. Get the bearer token

Retrieve the bearer token or reuse the existing one. Every access token has a limited lifetime, but we encourage you to track token expiration time and reuse bearer tokens.

5. Call the API method

Specify the bearer token and call the API method.

The following API request shows how a client retrieves a work order by ID=87340.

GET /direct/api/workOrder?ids=87340 HTTP/1.1
Host: apac-api.corrigopro.com
Accept: application/json
Authorization: Bearer
pyeLrTJ99eJwBkDzLWzSksaAncLRCneyaW2P9FmhGRQSVlWB60jRqiGSN5ERqyqrRq_cE_zPW0DQAj15s_uctczFpPrFSqfwSIPDhBdhyJyQe_FSWNMASC2fL2EvTyPvFduJrbkhtcCnp_QrlH10KsJGwbe7uyhWIjkl-zhANI8YlLUEJGpZMd0Kq3V1roeqkYyHN7wSNNuElXd3VDyPAe2ivcb6ijVSFPmNmo9fG8-re4wpUV_pqMXmZJ2iqGJJ4TEY2_NL_Vf0Z7sYIAZgvOvDQqw-x0AmyLkje34cMLz88zK8