Event reference
For developers
Every event uses the same envelope (event, createdAt, companyId, data).
This page lists the data for each. Events identify people and cards by ID.
Fetch the record from the API when you need more.
Card holders
Section titled “Card holders”card_holder.created
Section titled “card_holder.created”A person was added in the portal, through the REST API, or by SCIM.
{ "id": "0b5e4c1a-…", "externalId": "S1024", "firstName": "Emma", "lastName": "Hall", "via": "api" }via says where the change came from: api, sync (the
upsert by record ID)
or scim. Portal additions, and people who join through an organisation’s
sign-up page, have no via. SCIM additions carry only id and via.
People added by a CSV import are reported by one
import.completed instead of an event each.
card_holder.updated
Section titled “card_holder.updated”A person’s details changed in the portal, through the REST API, or by SCIM.
{ "id": "0b5e4c1a-…", "changes": { "department": "Midwifery" }, "via": "api" }changes holds the new values of the fields that were written. The record-ID
upsert sends this event only when a field actually changed, so a routine run
that changes nothing is silent. If your system writes through the API and also
listens for these events, expect to hear your own changes.
card_holder.status_changed
Section titled “card_holder.status_changed”A person became active, inactive or archived, from any source, including a CSV import.
{ "id": "0b5e4c1a-…", "externalId": "S1024", "from": "active", "to": "inactive", "via": "scim" }This is the event for a door access system to act on: switch the person’s
access off when to is anything but active, and back on when it is active.
via is portal, api, sync, scim or import; retention when the
organisation’s retention policy archived the person; or review when an
access review removed them. Treat any other value
the same way: the change is real whatever its source.
A person who stops being active also has any cards still waiting to be
printed for them cancelled. Cards they already hold are not revoked; see
Deactivating is not revoking.
card_holder.erased
Section titled “card_holder.erased”A person’s identifying details were removed: on a privacy request, or because the organisation’s retention period for their record ended.
{ "id": "0b5e4c1a-…", "via": "request" }via is request or retention. The event carries nothing else that
identifies the person, on purpose: it tells you to forget them, not who they
were. If your system copied their name, photo or other details, delete your
copy of the person with this id. What CardOffice keeps afterwards is only
card numbers and dates, and the
card holders changed feed shows the
person with disposedAt set.
The person was archived before this, so you will already have had a
card_holder.status_changed for them. This event is sent within about a
minute of the erasure.
Photos
Section titled “Photos”photo.uploaded
Section titled “photo.uploaded”A photo was received and checked, from any source: the portal, a desk camera, an emailed photo link, or the API.
{ "photoId": "5d1f0a52-…", "cardHolderId": "0b5e4c1a-…", "status": "pending_review", "complianceScore": 87 }status is pending_review when the photo waits for a reviewer, or approved
when it was approved without review (taken by staff, or passing your
organisation’s automatic approval). An automatic approval sends no
photo.approved.
photo.approved / photo.rejected
Section titled “photo.approved / photo.rejected”Staff approved or rejected a photo.
{ "photoId": "5d1f0a52-…", "cardHolderId": "0b5e4c1a-…", "reason": null }reason carries the rejection reason for photo.rejected.
Orders
Section titled “Orders”order.submitted
Section titled “order.submitted”An order was submitted, from the portal, by POST /orders with
"submit": true, or by PATCH /orders/{id}.
{ "orderId": "a3e8e6f0-…", "orderNumber": "ACME-2027-0412", "cardCount": 40, "fulfilment": "self" }order.status_changed
Section titled “order.status_changed”An order’s status changed.
{ "orderId": "a3e8e6f0-…", "orderNumber": "ACME-2027-0412", "from": "submitted", "to": "in_production" }order.shipped
Section titled “order.shipped”An order printed by CardOffice was sent by courier.
{ "orderId": "a3e8e6f0-…", "orderNumber": "ACME-2027-0412", "shipmentNumber": "SHP-0091", "carrier": "NZ Couriers", "trackingNumber": "NZC123456", "trackingUrl": "https://…"}order.completed
Section titled “order.completed”An order printed by CardOffice was delivered and closed. Data is orderId, orderNumber and
shipmentNumber.
Shipments and invoices (orders printed by CardOffice)
Section titled “Shipments and invoices (orders printed by CardOffice)”shipment.dispatched
Section titled “shipment.dispatched”{ "shipmentId": "…", "shipmentNumber": "SHP-0091", "carrier": "NZ Couriers", "trackingNumber": "NZC123456", "trackingUrl": "https://…", "orderIds": ["a3e8e6f0-…"]}invoice.issued
Section titled “invoice.issued”{ "invoiceId": "…", "invoiceNumber": "INV-2027-0033", "totalAmount": "1148.00", "currency": "NZD" }Invoices raised for shipments also carry orderIds and shipmentIds.
card.issued
Section titled “card.issued”A card or digital ID was issued.
{ "cardId": "c2a4f0f6-…", "serialNumber": "AC-000123", "cardHolderId": "0b5e4c1a-…", "externalId": "S1024", "orderId": "a3e8e6f0-…" }Digital-only issuance sends format: "digital" and a reason instead of
orderId. A card that was reported by mistake and then restored is announced
as card.issued with "restored": true, because it is valid again.
card.revoked
Section titled “card.revoked”A card stopped being valid: it was reported lost, stolen or damaged, revoked by staff, reached its expiry date, or was replaced by a newer card.
{ "cardId": "c2a4f0f6-…", "serialNumber": "AC-000123", "cardHolderId": "0b5e4c1a-…", "externalId": "S1024", "status": "lost", "reason": "Reported lost" }status is the card’s new status. A card past its expiry date, or replaced by a
newer one, has status: "expired"; a replaced card’s reason is “Replaced by a
newer card.”, and its card.revoked is sent before the new card’s
card.issued. To check a card before acting on it, read it with
GET /cards/{id}.
Imports
Section titled “Imports”import.completed
Section titled “import.completed”A CSV import of card holders finished.
{ "batchId": "e1c0…", "filename": "intake-2027.csv", "status": "completed", "rowCount": 412, "created": 380, "updated": 30, "failed": 2 }If the whole file could not be read, status is failed and the data carries
error, the reason, in place of the counts. Rows that failed one by one are
counted in failed, and the portal has the report.
© 2026 Secure ID Ltd. All rights reserved.Documentation licence and terms