Webhooks
Token Based Authentication
In order to make the webhook communication secure we need to allow token based authentication and create an access token inside magento admin
Follow below steps in order to allow token based authentication
- Login to magento admin
- Navigate to Stores >> Services >> Oauth
- Open Consumer Settings Section
- Select yes for configuration field "Allow OAuth Access Tokens to be used as standalone Bearer tokens"
Follow below steps in order to create a new access token
- Login to magento admin
- Navigate to System >> Extensions >> Integrations
- Click Add New Integration
- Fill in all the required fields under Integration Info tab
-
Under API tab find and select LS Retail >> Webhooks

- Click on Save
- Once you see your newly created integration, click activate
- Click Allow
-
Copy the value in the access token field and keep it safe somewhere

In order to allow Central to sync order updates with magento we need to configure the magento rest api endpoint at respective POS Functionality Profile based on the webstore, under Ls Commerce Server
The rest API endpoint for Magento looks like this: https://YourMagentoWebsiteLink/rest/V1/.
Put your relevant magento rest API endpoint, authentication type, access token that was created in magento admin
For more information about further settings regarding order status see: eCommerce Communication.
The Webhooks process
Order Payment Finalization from POS