Ingest a signed business event
POST /events
The signed, idempotent, channel-agnostic event front door. Requires a secret key, the X-Loyalty-Signature/X-Loyalty-Timestamp/X-Loyalty-Nonce headers, and an Idempotency-Key header echoing the body idempotency_key.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
The sales channel this order came through, for programme routing. A key such as shopify:web: lower-case letters, digits and : . _ -, starting with a letter or digit, up to 64 characters. Optional. An order with none is keyed by its channel: a channel that already fits the key shape is the key as it is (acme:pos stays acme:pos); any other channel is lower-cased, each run of characters outside a-z 0-9 . _ - (a space or a : included) becomes one -, leading characters that are not a letter or digit are dropped, the result is cut to 64 characters and trailing - characters are dropped; if nothing is left the key is unknown. It does not name a programme, and a refund ignores it (a refund follows its order).
object
object
object
Responses
Section titled “ Responses ”Duplicate or opt-in-skipped (deduped).
object
Accepted (first sighting).
object
Malformed event body.
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210Missing/invalid API key credential (unauthorized), or a missing/invalid signature, or a detected replay (signature_invalid / replay_detected).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210The credential lacks the loyalty:write scope — a publishable key (publishable_key_forbidden), or an OAuth token, which is always read-only in v1 (insufficient_scope).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210The Idempotency-Key was reused with a different body (idempotency_key_conflict).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210The payload failed validation, or the event type is unsupported.
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210