Hi, I need to add a data source to SAP Business One with Rest, which needs login details in a JSON in the body.
How can I add this?
From the documentation:
Log in Service Layer with the specified credentials. Generally it is the first step to using the Service Layer API. Calling the Service Layer API without a login will result in failure. After logging in successfully, one session ID will be returned in HTTP response body. At the same time, two HTTP cookie items named "B1SESSION" and "ROUTEID" will be set. You do not need to relate to them if calling the Service Layer API in a browser because the browser will send them to Service Layer automatically in subsequent HTTP requests. You do need to add them to your HTTP header in a subsequent Service Layer API call. Otherwise, Service Layer will consider them as a bad request without a login.