Retrieve an event
GET https://{{subdomain}}.commercelayer.io/api/events/{{event_id}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Authorization | string |
RESPONSES
status: OK
{"data":{"id":"xYZkjABcde","type":"events","links":{"self":"https://yourdomain.commercelayer.io/api/events/xYZkjABcde"},"attributes":{"name":"orders.create","created_at":"2018-01-01T12:00:00.000Z","updated_at":"2018-01-01T12:00:00.000Z","reference":"ANY-EXTERNAL-REFEFERNCE","reference_origin":"ANY-EXTERNAL-REFEFERNCE-ORIGIN","metadata":{"foo":"bar"}},"relationships":{"webhooks":{"links":{"self":"https://yourdomain.commercelayer.io/api/events/xYZkjABcde/relationships/webhooks","related":"https://yourdomain.commercelayer.io/api/events/xYZkjABcde/webhooks"}},"last_event_callbacks":{"links":{"self":"https://yourdomain.commercelayer.io/api/events/xYZkjABcde/relationships/last_event_callbacks","related":"https://yourdomain.commercelayer.io/api/events/xYZkjABcde/last_event_callbacks"}}},"meta":{"mode":"test"}}}