HTTP Basic Authentication

Following to HTTP Basic Authentication standards, security credentials have to be provided with any request as Authorization header, encoded to Base64 string.

Authorization: "basic {user-email}:{password-or-token}"

Replace {user-email} with user's login email and {password-or-token} with password or generated API token. Example:

Authorization: "basic john.doe@profit365.eu:HT5tI2DfA9TviUmPwzw8eePVW0zgMv"

encoded to Base64:

Authorization: "basic am9obi5kb2VAcHJvZml0MzY1LmV1Ojh5c2gxMjZhNFRRNFJGekw3NTIydkhoRTcyVmpBNzFHSG9PVm9WczNRY0hVRjM1ZjVV"

HTTP Basic Authentication only authenticates the user. Request, that access company recources, requires Company identification.

 

 

Example

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

ClientID: b5134f98-f1b1-4d7a-aabb-c6f8c97e49df
ClientSecret: sc1vcOTTFLuqjFa5u08UKtKaWl48XSqlm8jMQvrnXnuPvRjqTPgIDI6P1YcR  
Authorization: Basic am9obi5kb2VAcHJvZml0MzY1LmV1Ojh5c2gxMjZhNFRRNFJGekw3NTIydkhoRTcyVmpBNzFHSG9PVm9WczNRY0hVRjM1ZjVV
Content-Type: application/json

{ some: "postData" }