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.4/sales/invoices 

ClientID: fbd5f916-261f-4d25-9580-7b97c41dfe96
ClientSecret: sc1vcOTTFLuqjFa5u08UKtKaWl48XSqlm8jMQvrnXnuPvRjqTPgIDI6P1YcR  
Authorization: Basic am9obi5kb2VAcHJvZml0MzY1LmV1Ojh5c2gxMjZhNFRRNFJGekw3NTIydkhoRTcyVmpBNzFHSG9PVm9WczNRY0hVRjM1ZjVV
Content-Type: application/json

{ some: "postData" }