Table of Contents

Working with the Service Layer

Transactions sent to the Service Layer for SAP Business One use a JSON data structure. The structures must be structured specifically as the Service Layer expects them to be. The DataBuilder tool is used to create these structures. Information on the DataBuilder tool is found here Introduction to DataBuilder.

In addition, some values must be sent as enumerators. These are specific values that represent other values in the SAP Business One database. A listing of common enumerators is found here SAP Business One Enumerators.

Samples of the JSON structures for key SAP Business One objects can be found in the links below. Data is sent to the Service Layer for SAP Business One using a web service call. This call sends the data to the Service Layer API in a JSON data structure.

JSON Samples

These samples are provided as a way to help understand the structure of the various SAP Business One objects. They are correct at the time they were created but you should always verify them with your version of SAP Business One.

To find further information, open a web browser and enter this will open the API reference for Service Layer.

 https://<YourServer>.<YourDomain>.com:50000/vs/b1

Sales Order

Sales Order for Service Layer

Sales Delivery

Sales Delivery for Service Layer

Sales Invoice

Sales Invoice for Service Layer

Business Partner

Business Partner for Service Layer

Purchase Order

Purchase Order for Service Layer