To integrate with Business Central On-Premise using their APIs, you'll need to gather all necessary information and set up authentication properly. Here's a step-by-step solution to achieve this:
Obtain the required information:
APIVersion (e.g., v1.0, v2.0)
APIGroup (e.g., company, system)
EntityCaption or EntitySetCaption (e.g., customers, salesOrders)
You may need to consult the Business Central On-Premise documentation or contact their support to obtain these details specific to your deployment.
Construct the API endpoint URL:
Using the server location, server instance, environment, APIVersion, APIGroup, and EntityCaption, you can construct the complete API endpoint URL.
Example:
https://{server_location}/{server_instance}/ODataV4/{environment}/api/{APIGroup}/{APIVersion}/{EntityCaption}
Replace the placeholders with the actual values you've obtained.
Set up authentication:
Business Central On-Premise typically uses Basic authentication. With the provided username and password, you'll also need a web service access key. To obtain the web service access key:
a. Log in to Business Central using the provided credentials.
b. Search for "Users" in the search bar and open the "Users" page.
c. Find your user account and click on "Edit."
d. In the "User Card" window, locate the "Web Service Access Key" field and generate a new key if needed.
lets chat for the last part