Webhooks
Webhooks
Webhooks in Sucrine Pro
How it works ?
Install webhooks application in Webhooks integration page
Add a webhook URL
Click on Ajouter un élément, then set your URL, choose the method (GET or POST), and on which events it's binded.
When using POST event, the object might be attached in the body of the request.
List of available events :
| code and label | triggered when | POST body content |
|---|---|---|
order.createCommande - création | an order is created | {"orderId": "1234132412341234"} |
order.orderState.updateCommande - mise à jour du statut | an order status is updated | {"orderId": "1234132412341234","fromState":"new","toState":"validated"} |
order.deliveryDate.updateCommande - mise à jour de la date de distribution | an order delivery date is updated | {"orderId": "1234132412341234","fromValue":"2025-01-01T12:00:00.000Z","toValue":"2025-02-01T12:00:00.000Z"} |
product.createdProduit - création | a product is created | {"catalogueItemId": "1234132412341234"} |
product.updateProduit - mise à jour | a product is updated | {"catalogueItemId": "1234132412341234"} |
product.deleteProduit - suppression | a product is removed | {"catalogueItemId": "1234132412341234"} |
invoice.createdFacture - après création | an invoice is created | full invoice object |
invoice.finalizedFacture - après finalisation | an invoice is finalized | {"invoiceId":"1234123412341234"} |
invoice.sentFacture - après envoi | an invoice is sent or marked as sent | {"invoiceId":"1234123412341234"} |
deliveryNote.createdBon de livraison - après création | a delivery note is created | full delivery note object |
deliveryNote.sentBon de livraison - après envoi | a delivery note is sent | {"deliveryNoteId":"1234123412341234"} |
deliveryNote.deleteBon de livraison - suppression | a delivery note is removed | {"deliveryNoteId":"1234123412341234"} |
triggerTestTest | the trigger test button is pressed | {sample: true, date: "2026-01-01T00:00:00.000Z"} |
