Skip to content

Making a request

HTTP Requests

Use these components to construct HTTP requests to the Cloudmore API.

HTTP MethodGET – Request data from the API
POST – Submits data to the API
PUT – Updates all properties in a resource
PATCH – Update certain properties in a resource
DELETE – Deletes data in a resource
Path ParametersA Broker or a Seller unique identifier needs to be provided as a path parameter:

Other ids are also provided as path parameters.
Query ParametersSome API calls allow for query parameters to filter or limit the request data. For example:

Each endpoint supports different query parameters.
Request HeadersEach API request needs to include the following headers:
Authorization: The access token that was received from the Cloudmore Authentication API.
Content-type: application/json
Accept: application/json

In curl, you specify headers with the -h command.
Request BodyThe request body is the data to submit with the API request. Some API endpoints require you to include JSON data in the request body.

In curl, you specify the data to submit with the -d command.

Example Requests

Get all organizations under a broker:

curl -X GET{resellerId}/Organizations \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json'

Create a new organization:

curl -X POST{resellerId}/Organizations \
-H 'Authorization: Bearer {token}' \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
 "name": "My Test Organization",
 "registrationNumber": "123456789",
 "vat": "123456789",
 "contact": {
 "name": "John Doe",
 "email": "",
 "phone": "123456789",
 "cellPhone": "123456789"
 "customerNumber": "123456789",
 "notificationEmail": "",
 "address": {
 "street": "street 1",
 "postalCode": "12345",
 "city": "stockholm",
 "countryCode": "SE"
 "primaryDomain": ""