Events
The event object and the allowed CRUD operations on the related resource endpoint
Last updated
The event object and the allowed CRUD operations on the related resource endpoint
Last updated
Events are automatically created for a resource when a specific action happens (i.e. orders.place
). When a 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 is created.
Events can be when fetching the resources that support them to inspect each recorded action.
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 API credentials) — the event will be immediately triggered, regardless of its uniqueness.