SAP Business One Service Layer
Configure Service Layer access for TaprNext.
Verify Service Layer is Running
Section titled “Verify Service Layer is Running”- Open browser
- Navigate to:
https://your-server:50000/b1s/v1/ - You should see the OData service document
Create API User
Section titled “Create API User”In SAP B1 Client
Section titled “In SAP B1 Client”- Go to Administration > Setup > General > Users
- Click Add
- Configure:
- User Code: TAPRNEXT
- User Name: TaprNext API
- Password: [set secure password]
- Superuser: No
- Mobile User: No
Assign Permissions
Section titled “Assign Permissions”- Go to Administration > Setup > General > Authorizations > General Authorizations
- Select user TAPRNEXT
- Set permissions:
| Module | Permission |
|---|---|
| Purchasing - A/P Invoice | Full Authorization |
| Business Partners | Read Only |
| Purchasing - Purchase Order | Read Only |
Test Service Layer Login
Section titled “Test Service Layer Login”curl -X POST https://your-server:50000/b1s/v1/Login \ -H "Content-Type: application/json" \ -d '{ "CompanyDB": "SBODemoUS", "UserName": "TAPRNEXT", "Password": "your-password" }'Expected response:
{"SessionId": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}