You can use webhooks within the Limio application to be notified anytime a specific event occurs. Limio can be configured to generate a webhook whenever any significant event occurs, which can then be handled by a designated endpoint in your application. You just need to specify the URL that needs to receive the data within the settings of the Limio application. Every time that event occurs in Limio, Limio makes a call to that endpoint sending the JSON object involved in the action.
Here is an example of the URL you have to set in the Webhooks fields: https://your-domain.com/your-endpoint
Why webhooks?
Webhooks are intended to be used for background tasks and asynchronous changes. A key use case is to notify a third-party application such as a billing or entitlement that a new order has been created or a subscription has been changed, and needs to be added to the third-party systems.
Authenticating Webhooks
Should the webhook need to be authenticated this can be done by adding a Basic Auth authentication provider in the Limio App. Select Basic Auth and enter the Name, Username and Password fields, where name is the base url of the endpoint that the webhook is being sent to.
How do I configure a webhook in Limio?
In order to receive a webhook you need to configure an endpoint for the appropriate endpoint type. You can find the webhook configuration in Settings > General Settings > Webhooks.
Webhook event format
The body of the webhook request will be the edited item that triggered the webhook.
Viewing a webhook
Webhooks can be viewed by logging into the app and navigating to Subscriptions > Webhooks. Alternatively, you can navigate directly to https://[your-limio-domain]/objects/webhooks/limio
List of events that will trigger a webhook
Below you will find all the Webhooks that Limio offers you to configure and a brief description of each one.
Customer
Customer Created / Updated
This webhook is used to receive the Customer object after a Customer gets created or updated when a new Subscription is created through the Limio Shop or the Limio Checkout for Salesforce.
This webhook is used to receive the Subscription object after a Subscription gets created using the Limio Shop, Manage My Account functionalities, or the Limio Checkout for Salesforce.
The Order object has seven Webhooks that get activated for different reasons.
Address Change
This webhook is used to receive the Order object after the Address gets updated using the Limio Shop or Manage My Account functionalities.
Payment Method Change
This webhook is used to receive the Order object after the Payment Method gets updated using the Limio Shop, or Manage My Account functionalities, or the Limio Checkout for Salesforce.
Subscription Offer Change
This webhook is used to receive the Order object after the Subscription Offer gets updated using the Limio Shop or Manage My Account functionalities.
Subscription Offer Addition
This webhook is used to receive the Order object after a new Subscription Offer is added using the Limio Shop or Manage My Account functionalities.
Subscription Cancellation
This webhook is used to receive the Order object after the Subscription is cancelled using the Limio Shop or Manage My Account functionalities.
Order Submitted
This webhook is used to receive the Order object after the Order is submitted by the customer using the Limio Shop.
Update Customer Details
This webhook is used to receive the Order object after the Customer Details gets updated using the Limio Shop.
Notifies a system that entitlements have been updated. The entitlement webhook only sends when the subscription has a status of active, i.e. the order has been processed successfully. This webhook is fired in the case of a new order and a switch.