Event API

Error

object

Details of an error or issue.

codestring

The code used for the issue.

Example:resource.issue_type

descriptionstring

A detailed message.

Example:The issue happened because something is wrong.

propertystring

The property to which the issue is associated.

Example:person

propertiesobject

Additional properties related to the issue.

Example:{"firstName":"D0nn@","lastName":"Sm!th"}

Example

Errors

object

An error occurred, and the request could not be completed.

errorsarray[object]

Details of an error or issue.

Show Child Parameters
Example

EventTypeCollection

object

Details of the event types.

hrefstringrequired

The URL used to query the current collection of the resource.

Example:https://event-api.centraldispatch.com/event-types

countinteger(int32)required

The total count of resources in the collection.

Example:1

itemsarray[object]required

Details of an event type.

Show Child Parameters
Example

EventTypeResponse

object

Details of an event type.

eventTypestring

The type of the event.

Example:DispatchCreated

descriptionstring

The description of the event type.

Example:A dispatch has been created

Example

IntegratorEventResponse

object

Details of an event.

eventIdstring(uuid)

The ID of the event.

Example:eec2b82e-29b1-47c3-a391-6da6cce37d7d

eventTypestring

The type of the event.

Example:DispatchCreated

topicstring

The versioned group of events to which the event belongs.

Example:logistics.cd.dispatch

topicVersionstring

The version of the topic.

Example:1

timeStampstring(date-time)

The timestamp at the time of submission of the event to the event service, in UTC/ISO 8601 format.

Example:2023-02-28T21:55:38Z

environmentstring

The environment of the event e.g. production.

Example:Production

partitionstring

The data partition for which the data within the event belongs (e.g. ‘production-resources’ or ‘non-production-resources’).

Example:production-resources

correlationIdstring(uuid)

The correlation ID of the event used for logging and tracking.

Example:c0b87c96-1bfb-43f4-956d-c4283ecaab7c

headersobject

The headers of the event.

Example:{"messageId":"157a16f0-503d-4256-ba60-a4876e8eb9bb","subscriptionId":"50b2863f-c75e-45cb-8d50-b5a975d67865","marketplaceIds":["10000"]}

body

The body contains a JSON object that is the event contents.

Example:{"dispatchId":"d159acc0-e89b-12d3-a456-426614174000","dispatchVehicleIds":["b331c130-e89b-12d3-a456-426614174000"]}

Example