List EventResponse
Changed onList all Events.
Retrieve a list of all Events, with options to filter the returned list based on various criteria. Each Event represents a unique instance of a state change within the system, classified under a specific kind of Event.
NOTES: You can:
- Use eventName as a valid Query parameter to filter the list of Events returned. For example: .../organizations/{orgId}/events?eventName=configuration.commitment.created
- Use the List Notification Events endpoint in this section. The response lists the valid Query parameters.
Request
- Base URLhttps://api.m3ter.com
- AuthOAuth 2Authorization codehttps://m3ter.auth.us-east-1.amazoncognito.com/oauth2/authorize, token URL https://m3ter.auth.us-east-1.amazoncognito.com/oauth2/tokenClient credentialsToken URL /oauth/token
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
The unique identifier (UUID) of the Organization. The Organization represents your company as a direct customer of our service.
Query parameters
The maximum number of Events to retrieve per page.
List of Event UUIDs to filter the results.
NOTE: cannot be used with other filters.
Notification UUID to filter the results. Returns the Events that have triggered the Notification.
The Account ID associated with the Event to filter the results. Returns the Events that have been generated for the Account.
The category of Events to filter the results by. Options:
- Notification
- IntegrationEvent
- IngestValidationFailure
- DataExportJobFailure
Short code of the Notification to filter the results. Returns the Events that have triggered the Notification.
A Boolean flag indicating whether to return Events that have been actioned.
- TRUE - include actioned Events.
- FALSE - exclude actioned Events.
The nextToken for multi-page retrievals. It is used to fetch the next page of Events in a paginated list.
Response
Returns list of Events
Example response
{
"data": [
{
"id": "9cb46d85-7cb6-4637-80a1-d4ec38e4ab30",
"eventName": "configuration.commitment.created",
"eventTime": "2022-10-28T13:54:49.557Z",
"dtActioned": "2022-10-28T13:56:49.557Z",
"m3terEvent": {
"eventData": {
"newDto": {
"commitmentFeeDescription": "",
"endDate": "2024-12-31",
"billingInterval": 1,
"orgId": "396d788d-5174-XXXX-9d69-YYYY4671fc33",
"overageSurchargePercent": 5,
"overageDescription": "",
"currency": "USD",
"id": "480d317e-2030-416b-b64b-c07577c418b4",
"amountSpent": 0,
"accountCode": "doetech_premium",
"amount": 15000,
"billingOffset": 0,
"lastModifiedBy": "USER_810e3a43-XXXX-4dab-YYYY-470977405b58",
"billingPlanId": "0409e75a-8a87-43de-aa58-fc6ec823ce37",
"version": 1,
"accountId": "1cf2a754-476c-498c-b05a-7d41abfc404d",
"dtCreated": "2022-10-28T13:54:48.081781Z",
"amountPrePaid": 0,
"productIds": [
"bec371ef-dbad-4e73-a56a-dadecff2287c"
],
"createdBy": "USER_810e3a43-XXXX-4dab-YYYY-470977405b58",
"contractId": "68595d6d-261f-496b-bf88-51fc7d2b5ccc",
"commitmentUsageDescription": "",
"startDate": "2023-01-01",
"dtLastModified": "2022-10-28T13:54:48.081781Z"
}
}
}
}
]
}Changes
- breaking
for the
queryrequest parameterids, the type of propertyitems/was specialized fromstringtoobject - breaking
the
//response's property type changed from no type toobjectfor status
- breaking
- breaking
the response's body type changed from no type to
objectfor status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking