Event type
Something that happened to one entity, in one transaction.
Fields
id
ID!
The event's id. It is opaque and unique, and it increases in the order that events were written, which is not always the order that the feed returns them. Resume with a cursor, never with an id.
type
String!
The event type, one of those listed on events.
entityType
The type of the entity that the event happened to.
entityId
The MAX id of the entity that the event happened to.
version
Int!
The event's number within its entity: 1, 2, 3 and so on, without gaps. Order one entity's events by it.
occurredAt
When the event was written, on the MAX clock.
origin
Where a receipt, issue, transfer or shipment came from. Null for other entities, and null
for a shipment without a consignment. origin.id and origin.salesOrderId are returned
whatever else your API key may read. They are bare ids and may name records that your API
key cannot open.
transitions
The tracked fields that changed, each with its old and new value. Empty when only untracked data changed.
Values are strings: enum codes, "true" or "false", decimal integers, instants as RFC 3339
text in UTC, or text as stored (an order's invoiceNumber, an invoice's number, a receipt
advice's supplierReference). A value is null when there is none.
The tracked fields of each entity type are:
- Orders track
status,fulfilmentStatus,paymentStatus,blockedReason,isPriority,invoiceNumberandhasOpenExceptions. - Receipts, issues and transfers track
statusandrevision. - Attached documents track
status(ACTIVEorREMOVED) andversionNo, the number of the current version. - Consignments track
status. - Shipments track
statusandtrackingStatus. - Transfer advices track
status,plannedAt,lineCount(the number of lines) andlinesChangedAt(the latest change of a line that is still there). - Receipt advices track
status,expectedAt,supplierReference,lineCountandlinesChangedAt. - Invoices track
status,paymentStatus,number,cancelledandupdatedAt.
On a transfer advice, adding or removing a line moves lineCount, and changing or adding a
line moves linesChangedAt. Removing the most recently changed line moves linesChangedAt
back, so compare the values and do not assume that it only grows.
Priced as 3 transitions, however many it holds.
Costs 3 points plus 3 × one transition's selection.
actor
Who caused the event.