stemp Logostemp Developer

Webhook Events

Complete reference of all webhook event types and their payloads.

Webhook Events Reference

This page lists all webhook event types available on the stemp platform. For setup instructions and signature verification, see the Webhooks guide.

Event Envelope

Every webhook delivery uses the same envelope format:

{
  "type": "user.created",
  "createdAt": "2026-11-01T10:30:00.512381Z",
  "data": {
    // Event-specific payload
  },
  "installation": {
    "id": "appi_abc123",
    "organizationId": "org_abc123",
    "organizationName": "Acme Coffee",
    "organizationSlug": "acme-coffee"
  }
}
FieldDescription
typeThe event type
createdAtWhen the event occurred (UTC)
dataEvent-specific payload
installationApp webhooks only: the app installation the event belongs to

The envelope has no id field. Use the X-Webhook-ID header to identify an event. Optional fields are sent as null.

Timestamps

Timestamps are in UTC and end in Z, except for three fields that are in UTC but have no zone suffix. Parse these as UTC:

EventField
user.createddata.createdAt
user.updateddata.updatedAt
pass.createddata.createdAt
"createdAt": "2026-11-01T10:30:00.498112"

IDs

IDs carry a type prefix: usr_ (user), pass_ (wallet pass), temp_ (template), org_ (organization), app_ (app), appi_ (app installation), and crmi_ (CRM import). The organizationId and rewardId fields of the stamp events are plain UUIDs without a prefix.

User Events

user.created

Triggered when a new user is created in your organization.

{
  "type": "user.created",
  "createdAt": "2026-11-01T10:30:00.512381Z",
  "data": {
    "id": "usr_xyz789",
    "email": "jane@example.com",
    "name": "Jane Doe",
    "phone": "+491701234567",
    "externalId": "cust_123",
    "organizationId": "org_abc123",
    "metadata": {
      "private": {},
      "public": {},
      "unsafe": {}
    },
    "createdAt": "2026-11-01T10:30:00.498112"
  }
}
FieldDescription
idThe user
email, name, phone, externalIdThe user's data; all but email can be null
organizationIdThe organization the user belongs to
metadataThe user's private, public and unsafe metadata
createdAtWhen the user was created, UTC without zone (see Timestamps)

user.updated

Triggered when user data is modified (name, email, phone, metadata). The payload is the same as for user.created, with updatedAt (UTC without zone) instead of createdAt.

{
  "type": "user.updated",
  "createdAt": "2026-11-01T11:00:00.104377Z",
  "data": {
    "id": "usr_xyz789",
    "email": "jane.doe@example.com",
    "name": "Jane Doe",
    "phone": "+491701234567",
    "externalId": "cust_123",
    "organizationId": "org_abc123",
    "metadata": {
      "private": {},
      "public": {},
      "unsafe": {}
    },
    "updatedAt": "2026-11-01T11:00:00.087215"
  }
}

Wallet Pass Events

pass.created

Triggered when a new wallet pass is created for a user.

{
  "type": "pass.created",
  "createdAt": "2026-11-01T10:35:00.230817Z",
  "data": {
    "id": "pass_abc456",
    "userId": "usr_xyz789",
    "organizationId": "org_abc123",
    "googleObjectId": null,
    "applePassId": "pass_abc456",
    "templateId": "temp_abc123",
    "qrCodeValue": "ste.mp/Ab1x",
    "createdAt": "2026-11-01T10:35:00.219904"
  }
}
FieldDescription
idThe wallet pass
userIdThe user the pass belongs to
organizationIdThe organization
googleObjectIdThe Google Wallet object, or null while there is none
applePassIdThe pass ID used for Apple Wallet; the same as id
templateIdThe template the pass was created from
qrCodeValueThe value encoded in the pass's QR code
createdAtWhen the pass was created, UTC without zone (see Timestamps)

pass.installed

Triggered when a user adds the pass to their Apple Wallet or Google Wallet.

{
  "type": "pass.installed",
  "createdAt": "2026-11-01T10:40:00.771093Z",
  "data": {
    "id": "6f1d2c9a-3e4b-4a7f-9c10-8d5e2b7a1f43",
    "passId": "pass_abc456",
    "userId": "usr_xyz789",
    "organizationId": "org_abc123",
    "provider": "APPLE",
    "installedAt": "2026-11-01T10:40:00.770412Z"
  }
}
FieldDescription
idA random ID for this event
passIdThe wallet pass
userIdThe user the pass belongs to
organizationIdThe organization
providerAPPLE or GOOGLE
installedAtWhen the pass was added

Stamp Card Events

stamp.added

Triggered when a stamp is added to a user's stamp card.

{
  "type": "stamp.added",
  "createdAt": "2026-11-01T14:00:00.318264Z",
  "data": {
    "id": "0c7a51e2-9f84-4b1d-a6e3-52d9c0b8f716",
    "passId": "pass_abc456",
    "userId": "usr_xyz789",
    "organizationId": "1f0c8a52-7b3e-4d29-9e61-3a5b7c9d2e40",
    "stampsBefore": 4,
    "stampsAfter": 5,
    "note": "Purchase at Main St. location",
    "addedAt": "2026-11-01T14:00:00.317502Z"
  }
}
FieldDescription
idA random ID for this event
passIdThe wallet pass that got the stamp
userIdThe user the pass belongs to
organizationIdThe organization, as a plain UUID
stampsBefore, stampsAfterThe stamp count before and after. When the stamp starts a new card, they are 0 and 1
noteThe note sent with the stamp, or null
addedAtWhen the stamp was added

stamp.reward_triggered

Triggered when a user reaches the stamp threshold and earns a reward.

{
  "type": "stamp.reward_triggered",
  "createdAt": "2026-11-01T14:30:00.902158Z",
  "data": {
    "id": "a83e0f6b-2c71-4d95-b4a8-6e1f9d3c5072",
    "passId": "pass_abc456",
    "userId": "usr_xyz789",
    "organizationId": "1f0c8a52-7b3e-4d29-9e61-3a5b7c9d2e40",
    "rewardId": "5d2b8e14-0a6c-4f3e-8b97-c41e7a9f6d28",
    "rewardName": "Free coffee",
    "totalStamps": 10,
    "triggeredAt": "2026-11-01T14:30:00.901377Z"
  }
}
FieldDescription
idA random ID for this event
passIdThe wallet pass
userIdThe user the pass belongs to
organizationIdThe organization, as a plain UUID
rewardIdThe reward the user earned, as a plain UUID
rewardNameThe reward's name, or null
totalStampsThe stamp count when the reward was reached
triggeredAtWhen the reward was reached

User Tag Events

user_tag.assigned

Triggered when a tag is assigned to a user, either via the API or through the console UI.

{
  "type": "user_tag.assigned",
  "createdAt": "2026-11-01T12:00:00.146920Z",
  "data": {
    "id": "d4f7a2c8-61e3-4b0a-9d25-7c8e3f1b6a94",
    "userId": "usr_xyz789",
    "tagSlug": "vip",
    "tagName": "VIP",
    "organizationId": "org_abc123",
    "assignedAt": "2026-11-01T12:00:00.146102Z"
  }
}
FieldDescription
idA random ID for this event
userIdThe user who was tagged
tagSlugSlug identifier of the tag
tagNameDisplay name of the tag at the time of assignment
organizationIdOrganization the tag belongs to
assignedAtTimestamp of the assignment

user_tag.unassigned

Triggered when a tag is removed from a user. Deleting a tag does not trigger this event.

{
  "type": "user_tag.unassigned",
  "createdAt": "2026-11-02T08:00:00.583371Z",
  "data": {
    "id": "7b9e1d3f-48a2-4c6e-a0f5-2d8c6b4e9a17",
    "userId": "usr_xyz789",
    "tagSlug": "vip",
    "tagName": "VIP",
    "organizationId": "org_abc123",
    "unassignedAt": "2026-11-02T08:00:00.582540Z"
  }
}
FieldDescription
idA random ID for this event
userIdThe user who was untagged
tagSlugSlug identifier of the tag
tagNameDisplay name of the tag at the time of removal
organizationIdOrganization the tag belongs to
unassignedAtTimestamp of the removal

Organization Events

organization.updated

Triggered when organization details are changed (name, logo, etc.).

{
  "type": "organization.updated",
  "createdAt": "2026-11-01T10:00:00.665019Z",
  "data": {
    "id": "org_abc123",
    "name": "Acme Coffee Co.",
    "slug": "acme-coffee",
    "updatedAt": "2026-11-01T10:00:00.664280Z"
  }
}

CRM Import Events

crm_import.started

Triggered when an import of contacts from a connected CRM starts. The event is delivered when the import attempt ends. A failed attempt is retried and sends crm_import.started again; crm_import.completed follows only the final result.

{
  "type": "crm_import.started",
  "createdAt": "2026-11-01T09:00:00.120554Z",
  "data": {
    "importJobId": "crmi_abc123",
    "provider": "MAILCHIMP",
    "providerDisplayName": "Mailchimp",
    "sourceListName": "Newsletter",
    "importTag": "import-newsletter"
  }
}

crm_import.completed

Triggered when the import has finished or failed. The payload adds the outcome to the fields of crm_import.started; status is COMPLETED or FAILED.

{
  "type": "crm_import.completed",
  "createdAt": "2026-11-01T09:02:14.877403Z",
  "data": {
    "importJobId": "crmi_abc123",
    "provider": "MAILCHIMP",
    "providerDisplayName": "Mailchimp",
    "sourceListName": "Newsletter",
    "importTag": "import-newsletter",
    "status": "COMPLETED",
    "totalRecords": 120,
    "successCount": 117,
    "failureCount": 1,
    "skippedCount": 2,
    "durationMs": 134512
  }
}

App Events

Your app receives these only for its own installations.

app.installed

Triggered when an app is installed by an organization.

{
  "type": "app.installed",
  "createdAt": "2026-11-01T10:00:00.402875Z",
  "data": {
    "id": "3a6d9f12-7c4e-4b8a-9e05-d1f2b8c6a473",
    "installationId": "appi_abc123",
    "appId": "app_xyz789",
    "appName": "POS Connector",
    "appSlug": "pos-connector",
    "organizationId": "org_abc123",
    "scopesGranted": ["pass:read", "pass:create", "loyalty:manage"],
    "installedAt": "2026-11-01T10:00:00.385116Z",
    "accessToken": null,
    "refreshToken": null
  }
}

accessToken and refreshToken are only set when stemp installs the app for an organization itself, without the OAuth consent flow. Otherwise they are null, and your app gets its tokens through the OAuth2 flow.

app.uninstalled

Triggered when an app is uninstalled.

{
  "type": "app.uninstalled",
  "createdAt": "2026-11-02T08:00:00.219734Z",
  "data": {
    "id": "c2e8b4f6-91a3-4d7c-8f52-6b0e3a9d1c85",
    "installationId": "appi_abc123",
    "appId": "app_xyz789",
    "appName": "POS Connector",
    "appSlug": "pos-connector",
    "organizationId": "org_abc123",
    "uninstalledAt": "2026-11-02T08:00:00.218893Z"
  }
}

app.scopes_updated

Triggered when an installed app's permissions are changed.

{
  "type": "app.scopes_updated",
  "createdAt": "2026-11-03T10:00:00.548126Z",
  "data": {
    "id": "f1b7d3a9-26c8-4e5f-b0a4-8d3e7c1f9b62",
    "installationId": "appi_abc123",
    "appId": "app_xyz789",
    "appName": "POS Connector",
    "appSlug": "pos-connector",
    "organizationId": "org_abc123",
    "previousScopes": ["pass:read", "pass:create"],
    "newScopes": ["pass:read", "pass:create", "loyalty:manage"],
    "scopesAdded": ["loyalty:manage"],
    "scopesRemoved": [],
    "updatedAt": "2026-11-03T10:00:00.547301Z"
  }
}

Event Type Summary

EventCategoryDescription
user.createdUser ManagementNew user created
user.updatedUser ManagementUser data modified
pass.createdWallet PassNew pass created
pass.installedWallet PassPass added to wallet
stamp.addedStamp CardStamp added
stamp.reward_triggeredStamp CardReward threshold reached
user_tag.assignedUser ManagementTag assigned to user
user_tag.unassignedUser ManagementTag removed from user
organization.updatedOrganizationOrganization updated
crm_import.startedCRM ImportContact import started
crm_import.completedCRM ImportContact import finished or failed
app.installedAppsApp installed
app.uninstalledAppsApp uninstalled
app.scopes_updatedAppsApp permissions changed

user.deleted can be selected when you subscribe, but stemp does not send it yet.