Author:
Movyn John
Changed on:
13 Dec 2023
Using the Event API
Parameter Name | Description | Values |
context.rootEntityType | The root entity which is able to be orchestrated. |
|
context.rootEntityId | The root entity ID. | Example: 17 |
context.rootEntityRef | The root entity reference. | Example: HD_123 |
context.entityId | The entity ID. | Examples: 16 |
context.entityRef | The entity reference. | Example: c766dd91-a9a8-11ec-989e-69dadf16f9ea |
context.entityType | The entity type which is able to be orchestrated. |
|
from | The From DateTime represented as a UTC ISO String. The format of this string is as follows: 'YYY-MM-DDTHH:mm:ss.ssZ' Note: By default, if this parameter is not present in the API query, then only the past 30 days are considered | Example: 2023-03-06T01:05:45.00Z |
to | The To DateTime represented as a UTC ISO String. The format of this string is as follows: 'YYY-MM-DDTHH:mm:ss.ssZ' | Example: 2023-03-06T01:05:45.00Z |
name | The name of the event / ruleset. | Example: CheckOrderCoordinates |
category | The category of the event. |
|
retailerId | The ID of the retailer the event is specified for. | Example: 1 |
eventType | The type of event. |
|
eventStatus | The status of the event. |
|
start | The index to start at, which is used for paginating through the API response. The response will have a
| Example: 100 |
count | The number of results per page to be returned in the API response. The recommendation is to not retrieve more than 5000 events in a single request. Doing so may result in a timeout of the API due to the number of records having to be returned. Note: By default if this parameter is not present in the API query, only the first 100 events will be returned. |
Below are various examples on how to filter events using the Event API.
`{{fluentApiHost}}/api/v4.1/event?context.rootEntityType={{rootEntityType}}&context.rootEntityId={{rootEntityId}}&eventType=ORCHESTRATION`
`{{fluentApiHost}}/api/v4.1/event?context.entityType={{entityType}}&context.entityId={{entityId}}&eventType=ORCHESTRATION_AUDIT`
`{{fluentApiHost}}/api/v4.1/event?context.rootEntityRef={{rootEntityRef}}&context.rootEntityType={{rootEntityType}}`
`{{fluentApiHost}}/api/v4.1/event?context.entityId={{entityId}}&context.entityType={{entityType}}&count={{count}}&from={{from}}&to={{to}}`
`{{fluentApiHost}}/api/v4.1/event?eventType=ORCHESTRATION_AUDIT&context.rootEntityRef={{rootEntityRef}}&context.rootEntityType={{rootEntityType}}&context.entityId={{entityId}}&context.entityType={{entityType}}`
`{{fluentApiHost}}/api/v4.1/event?category=exception&from={{from}}&to={{to}}&count={{count}}`
`{{fluentApiHost}}/api/v4.1/event?eventType=ORCHESTRATION_AUDIT&context.rootEntityRef={{rootEntityRef}}&context.rootEntityType={{rootEntityType}}&category=ACTION&name=Send Webhook`
`{{fluentApiHost}}/api/v4.1/event?eventType=API&name=POST /api/v4.1/order&count=5000`
`{{fluentApiHost}}/api/v4.1/event?eventType=API&name=PUT /api/v4.1/workflow&count=5000`
`{{fluentApiHost}}/api/v4.1/event?query={{eventId}}`
`{{fluentApiHost}}/api/v4.1/event?category=CUSTOM&from={{from}}&to={{to}}&count={{count}}`
Copyright © 2024 Fluent Retail Pty Ltd (trading as Fluent Commerce). All rights reserved. No materials on this docs.fluentcommerce.com site may be used in any way and/or for any purpose without prior written authorisation from Fluent Commerce. Current customers and partners shall use these materials strictly in accordance with the terms and conditions of their written agreements with Fluent Commerce or its affiliates.