Events
The event object and the allowed CRUD operations on the related resource endpoint
Events are automatically created for a resource when a specific action happens (i.e. orders.place
). When a webhook is listening to that action's topic and the subscribed event occurs, Commerce Layer sends a POST
request to the webhook's callback URL, and the associated event callback is created.
Events can be included when fetching the resources that support them to inspect each recorded action.
Retriggering events
Events are automatically triggered at creation time, notifying all listening webhooks. If, for some reason, you want to force the firing of an existing event manually, you can patch it with the _trigger
attribute set to true
(you need to use integration API credentials) — the event will be immediately triggered, regardless of its uniqueness.
Last updated