Follow the simple list below to learn about the Connected Cloud API


To follow this guides we recomment using the Postman desktop app, so you can easily create your first request to the Connected Cloud API. All requests used in this section are available as a Postman collection. Click the button below to download the collection to be used with Postman.

Download Postman collection


On-Boarding

To integrate with Connected Cloud you MUST first acquire an ‘API Key’. An ‘API Key’ can be acquired by completing the following steps of the On-Boarding Process.

Developer and Application Registration

The first step to receiving an ‘API Key’ is to register your details, including the details of the application you wish to integrate with Connected Cloud. On completion of this step you will be assigned a personal ‘Developer ID’ and Application ID’.

Follow the steps below to receive your ‘Developer ID’ and ‘Application ID’

  1. First register your Developer and Application details by issuing a request against the POST developers operation.
  2. Next retrieve the value of the 'registrationUrl' property from the response.
  3. Next open up a Web Browser and navigate to the value retrieved from the 'registrationUrl' property.
  4. Finally, to complete the registration process, complete the captcha challenge.
  5. You will now receive an e-mail with your personal ‘Developer ID’ and ‘Application ID’. NOTE: You MUST store your ‘Developer ID’ and ‘Application ID’ securely.

NOTE: To register additional applications, please go for the POST applications operation to receive addition Application ID’s.


The next step to receiving an ‘API Key’ is to consent the integration within the target Connected Cloud application. To achieve this you must generate a ‘passcode’ using the and present the ‘passcode’ to the user.


Generating a Passcode

Follow the steps below to generate a ‘passcode’.

  1. First issue a request against the POST passcodes operation providing a ‘secret’
  2. Finally, retrieve the value of the ‘passcode’ property from the response.
  3. NOTE: You should also take note of the value of the ‘expires’ property in the response as this specifies how long the ‘passcode’ will remain valid.
  4. Typically the ‘passcode’ will now be displayed to the user.

Receiving an API Key

The final step to receiving an ‘API Key’ is to consent the integration within the target Connected Cloud application. This is typically achieved within the target Connected Cloud by selecting the relevant ‘Enable External Integration’ option and entering the ‘passcode’. Typically a consent challenge will then be presented, which when granted will result in an ‘API Key’ being provided via the ‘notificationUrl’ specified during the application registration.

NOTE: You MUST securely store your 'apiKey' and 'secret'


API Key Rotation

API Keys have an associated expiry value, which will result in the ‘API Key’ being denied access to the when expired. The implements an ‘API Key’ rotation process, which you MUST implement to ensure continued usage of the . You can detect when an ‘API Key’ expires due to the responding with a 401 HTTP Status Code as a result of an API request.

To ensure that you always have a valid ‘API Key’, follow the ‘API Key’ Rotation steps below

  1. First, issue a request against the PATCH apikey operation providing the 'initialApikey' and 'secret' parameters.
  2. Finally, retrieve your new ‘API Key’ from the value of the ‘apikey’ property in the response

Downloading Data

Once an integration is consented within the target Connected Cloud application, Connected Cloud will now upload data (e.g. Products, Customers, …) for the integration at scheduled intervals. On completion of an upload, Connected Cloud will notify your application of the existence of the new data.

How does the new data notification work?

The contents of the download will be formatted using the ‘application/json’ mime type and the structure will conform to the definition as published for your integration in the Solutions section.


Managing the Downloaded Data

Scope files uploaded from the Sage applications always contain the full data of the scope. Two different cases:

Uploading files

It is the responsibility of the 3rd party application to decide when and how often is required to upload files on the platform. Recommendations will depend on the integration use case, and business requirements.

Uploading a file is the mechanism to inform Sage applications about new or updated records on the 3rd party application.

The process has the following steps:

Tracking Progress

Once the file is uploaded you can get status information calling GET tracking file operation and get 'status', 'progress' and 'downloadResultUrl':

Validation

When a file is uploaded to Connected Cloud platform, there is a validation process on the platform before file is available to be downloaded by the Sage application.

Status values could be:


Processing

Once file is available then the Sage product downloads it and process file data.

Status values could be:

When 'accepted' or 'failed', the Sage product upload a file with the results of processing. Download results (e.g. Order result) from 'downloadResultUrl'