Usage Info

Postman collection

This postman collection can be imported. On the collection level, the given settings can be modified.

Access

In order to use the API you must get a personal account from CloudSuite. We will give you a username and password.

Authentication

OAuth

This method is the authentication after 1 february 2024

To use the API you must use the created token by the OAuth service. A username and password will be given to fetch the token from the provided URL.

Field

Value

Field

Value

Grant type

Client Credentials

Access Token URL

https://id.cloudsuite.io/realms/CloudSuite/protocol/openid-connect/token

Access Token URL TEST

https://id.cloudsuite.io/realms/CloudSuite-test/protocol/openid-connect/token

Client ID

Supplied username

Client Secret

Supplied password

Scope

openid

Client Authentication

Send client credentials in body

Refesh token

same as access token url

The token will expire. After the expiration the token must be renewed.

Token

To use the API you must use a supplied token and you will have access with your IP address.

The received token must be used in the header of each request to the API:

Key: Authorization Value: Token 186262d49fd0855555a88bf9871e0cb592f456748

Usage

GET

Each call on the API can be done with a GET. This will return the requested object in json.

POST

Each object can be posted to the webservice. However, if the object already exists, an error will be given. This can only be used to do a one-time add to the database

PUT

Each object can be PUT into the database. An ID of the object is always required to use this. If a PUT is done, the entire object is replaced with the new data. The data of the entire object is required when doing a PUT.
If an object does not exist it will be added to the database.

PATCH

Most objects can be patched. This method allows a user to update a small item of the object. Only the changed data has to be given.

DELETE

Some objects can also be deleted from the database.

Error reporting

When an error occurs during a call it will look the same as an outgoing API body, except for two differences:

Non_field_errors

An additional field can be added within each element. This element will describe the error regarding errors which are not related to specific elements.
This element is called: non_field_errors

Example request 

Example error response

In this case the pricelist already exists when posting it.

Element specific errors

Also error reporting can be done on a specific element. In this case the same key is used exept that the response is a collection of strings.

Example request 

The type of active is a boolean in the original request.

Example error response

Rate Limit



© 2024 CloudSuite BV, All rights reserved