Appearance
Webhooks
Webhooks provide a powerful mechanism for communication between your application and the MyLION ERP system. With webhooks, you can receive notifications and updates about important events and changes within the ERP system. Currently, MyLION supports four types of webhooks: Product Update, Inventory Update, Price update and Customer Update. It's important to note that MyLION webhooks are not real-time, but are sent in batches in your specified time interval.
Product Update Webhook
Product Update Webhook allow you to receive notifications whenever there are changes to product attributes, templates, or inventory levels within the MyLION ERP system. By subscribing to this webhook, your application can stay up-to-date with the latest information about products, ensuring accurate and timely data synchronization.
Inventory Update Webhook
Inventory Update Webhook are designed specifically to provide you with updates about changes in inventory levels for a given product. By subscribing to this webhook, your application can receive notifications when inventory quantities are adjusted, ensuring that you have the most current information available.
Customer Update Webhook
Customer Update Webhook enable you to receive notifications about changes to customer information within the MyLION ERP system.
Price Update Webhook
Price Update Webhook allow you to receive notifications about changes to product prices within the MyLION ERP system.
Images Update Webhook
Images Update Webhook allow you to receive notifications about changed to product images within the MyLION ERP system.
How Webhooks Work
When an event that matches the webhook's criteria occurs within the MyLION ERP system, a POST request is sent to a designated endpoint in your application. The POST request includes relevant data about the event, allowing your application to process and respond to the event accordingly.
Prerequisites
Before integrating with MyLION's webhooks, make sure you have the necessary infrastructure in place to receive and process incoming webhook notifications. This typically involves setting up a secure endpoint in your application to handle webhook requests.