How it works...

By sending a GET request to the Business Central API, you can retrieve any data that is available from any company within your environment.

As with all requests against the API, you need to be authenticated. During the development phase, you can use basic authentication, and make sure to include the username and the web services access keys in order to be authenticated properly.

Remember, in a live environment, you should use AAD for your authentication method.

In order to retrieve data from the correct company, you need to know the ID of the company, which you can retrieve by calling GET <endpoint>/companies.

Once you have that ID, you need to append it to your requests like this: GET <endpoint>/companies(<id>)/items.

This is no different than any other RESTful API in that when your request has been processed, the results are returned and you can then format and process it as you require.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset