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: ebf1050a-385c-4ab6-ac02-b86ece5992b0
ClientSecret: sc1vcOTTFLuqjFa5u08UKtKaWl48XSqlm8jMQvrnXnuPvRjqTPgIDI6P1YcR  
Authorization: apikey HT5tI2DfA9TviUmPwzw8eePVW0zgMvfUyHwEQn5iiHmIT7BAjSKEAlopnqCXKhgcXsjTgcZbg4KeaZyGytTVL
CompanyID: a7ee61a3-76d5-45b9-b46c-43d0db52f5d7  
Content-Type: application/json

{ some: "postData" }