Webhooks are a tool to retrieve and store data from a specific event. They allow you to register an https: // URL that Ventiapp would be calling when the registered event is fired. These are the events that we have webhook:
Creation of Webhook, here we must send the following data for a webhook to be created in Ventiapp. It is mandatory that the url be in https://
This will respond with the webhook ID, important to be able to delete it.
{"productId": 3182093,"sku": "AA123","price": 99.99,"title": "Olla a presion Gris","ean": null,"upc": "41123123","longDescription": "Descripcion larga de prueba","shortDescription": "Descripción corta de prueba","baseStock": 66,"images": ["url imagen 1","url imagen 2"],"brand": "Greycon","weight": 2400,"height": 30,"width": 20,"depth": 20}
Importants notes
Information variation
The information that travels through webhooks is completely dynamic, that is, it is possible that several fields change information, including shopping carts. This depends on the information that each sales channel informs us.
It is HIGHLY RECOMMENDED that the order update webhooks be implemented since in these the information may have a lot of variation.
Examples of information changes:
Shipping information changes
Cart changes (items)
Changes in shipping costs
Order status changes
Shipping status changes
Another very important example is when the order is generated in the first instance, it is likely that you will not have a shipping guide or shipping information until a few minutes later, in which an order update will be triggered.
Mercado Libre Cart
Mercado Libre separates orders from the same cart in several calls. That is why the cartId field comes so that a grouping can be adapted from the development side.