id | yes | string | - | The event’s id. Every retry and replay of the event repeats it: deduplicate on it. It is covered by the signature; the X-Cope-Event-Id header carries the same value but is not. |
type | yes | string | - | The event type, such as payment.sale.succeeded. |
version | yes | string | - | The version of the body in data, such as v1. |
source | yes | string | - | The area of COPE the event comes from, such as cope.cart. Fixed for each type. |
created_at | yes | string (date-time) | - | When this attempt was sent. A retry carries a new created_at and the same id. |
occurred_at | yes | string (date-time) | - | When COPE recorded the event, to the millisecond. Every retry and replay of the event repeats it. Not a strict order: see below. |
data | yes | object | - | The event body, documented on each event’s page. |
test | no | boolean | true | Present only on a test event, and always the last field. Never act on an event that carries it. |