Company identification

Authenticated user may have access to several companies. Therefore, request must be linked to exactly one company. In Profit365 web app, this is achieved by using unique subdomains. In API, an company identification must be embedded in request header.

CompanyID: "3f17bfba-8bb0-414c-8709-7df66cdd4652"

When accessing company data, resources are accessed as that user with ACL for that company, so limitations will apply.

Example

POST https://api.profit365.eu/1.4/sales/invoices

ClientID: e2f082e0-5169-453d-ab38-467fda44af78
ClientSecret: sc1vcOTTFLuqjFa5u08UKtKaWl48XSqlm8jMQvrnXnuPvRjqTPgIDI6P1YcR  
Authorization: apikey HT5tI2DfA9TviUmPwzw8eePVW0zgMvfUyHwEQn5iiHmIT7BAjSKEAlopnqCXKhgcXsjTgcZbg4KeaZyGytTVL
CompanyID: d343fcf2-6311-45ed-bf4a-4a9e4315709e  
Content-Type: application/json

{ some: "postData" }