API · Events
Webhooks
Events the CRM sends to the organization's subscription address: the envelope, signature headers and the data shape of each event.
Customer created (API, admin panel, import).
POSTcustomer.created
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
customer.created
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookCustomerCreatedDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
Customer fields or identities changed — codes without values.
POSTcustomer.updated
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
customer.updated
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookCustomerUpdatedDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
Customers merged — primary and absorbed.
POSTcustomer.merged
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
customer.merged
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookCustomerMergedDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
Customer labels set or removed — manually or by a rule, the operation's result in one event.
POSTcustomer.labels_changed
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
customer.labels_changed
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookCustomerLabelsChangedDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
Interaction created.
POSTinteraction.created
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
interaction.created
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookInteractionDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
Interaction updated (new revision).
POSTinteraction.updated
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
interaction.updated
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookInteractionUpdatedDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
Interaction voided.
POSTinteraction.voided
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
interaction.voided
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookInteractionDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
Entry: manual, spend, award, reversal.
POSTledger_entry.created
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
ledger_entry.created
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookLedgerEntryCreatedDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
An asset history event or a change of its attributes.
POSTasset.changed
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
asset.changed
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookAssetChangedDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
New catalog version.
POSTcatalog.changed
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
catalog.changed
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookCatalogChangedDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
New decision table version.
POSTdecision_table.changed
The CRM sends it to the subscription URL
Headers
Btlify-Event-Idstring (uuid)headerrequiredEvent ID — matches the body'sid; a redelivery carries the same oneBtlify-Event-TypestringheaderrequiredBtlify-Delivery-Idstring (uuid)headerrequiredDelivery ID (event × subscription) — the same for all attemptsBtlify-Signaturestringheaderrequiredt=<Unix-seconds>,v1=<hex>— HMAC-SHA256 with the subscription secret (the wholebtlwh_…string is the key) over the string<t>.<raw body>; during secret rotation there are twov1=pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects atolder than 5 minutes.
Request body
application/json
object
data holds only
IDs, codes, numbers and moments, no personal data; details come from the API by ID. Redeliveries carry the same id.idstring (uuid)requiredevent ID (UUID v7) — the subscriber's deduplication keytypestringrequiredtype from the event catalog (key of thewebhookssection)- Always
decision_table.changed
occurred_atstring (date-time)requiredmoment of the operation, UTC withZ, to the seconddataWebhookDecisionTableChangedDatarequired
No other keys
Responses
2XX
Accepted — delivery complete. Any other response, a timeout or a broken connection — retry on schedule.
Schemas
WebhookCustomerCreatedData
object
customer_idstring (uuid)required
No other keys
WebhookCustomerUpdatedData
object
customer_idstring (uuid)requiredfieldsarray<string>requiredcodes of changed fields, without valuesidentitiesarray<string>requiredtype codes of changed identities, without values
No other keys
WebhookCustomerMergedData
object
customer_idstring (uuid)requiredprimary customermerged_customer_idstring (uuid)requiredabsorbed customer
No other keys
WebhookCustomerLabelsChangedData
object
customer_idstring (uuid)requiredaddedarray<object>requiredset (and extended) labels; the subscriber tracks the expiry itself — there is no expiry eventItems
codestringrequiredsourcestringrequired- Values
manualrule
expires_atstring (date-time) | nullrequired
No other keys
removedarray<object>requiredItems
codestringrequiredsourcestringrequired- Values
manualrule
No other keys
No other keys
WebhookInteractionData
object
interaction_idstring (uuid)requiredexternal_idstring | nullrequiredtypestringrequiredinteraction type codeprojectstringrequiredproject codecustomer_idstring (uuid)requiredstarted_atstring (date-time)required
No other keys
WebhookInteractionUpdatedData
object
interaction_idstring (uuid)requiredexternal_idstring | nullrequiredtypestringrequiredprojectstringrequiredcustomer_idstring (uuid)requiredstarted_atstring (date-time)requiredrevisionintegerrequirededit revision number- Constraints
minimum: 1
No other keys
WebhookLedgerEntryCreatedData
object
entry_idstring (uuid)requiredkindLedgerEntryKindrequiredcustomer_idstring (uuid)requiredaccount_kindstringrequiredaccount kind codeamountstringrequireddecimal as a string with the kind's number of decimal placesbalancestringrequiredaccount balance after this entry, decimal as a stringinteraction_idstring (uuid) | nullrequiredreverses_entry_idstring (uuid) | nullrequired
No other keys
LedgerEntryKind
string
manual — manual (API, customer card),
redemption — a spend in an interaction request, accrual — an award by the account kind's decision table,
reversal — the offsetting reversal entry, transfer — a balance transfer on a customer merge:
a pair with an offsetting entry, minus on the absorbed customer, plus on the primary, without a cause, not reversible; in the entry list and
timeline of the primary the pairs within the group “primary and those merged into it” are not returned, entries of merged customers are- Values
manualredemptionaccrualreversaltransfer
WebhookAssetChangedData
object
asset_idstring (uuid)requiredtypestringrequiredasset type codekindstringrequired- Values
registeredtransitionedowner_changedrevertedattributes_changed
status_fromstring | nullrequiredstatus_tostringrequiredcustomer_idstring (uuid) | nullrequiredowner after the eventinteraction_idstring (uuid) | nullrequired
No other keys
WebhookCatalogChangedData
object
codestringrequiredversionintegerrequired- Constraints
minimum: 1
changesintegerrequirednumber of changed items and categories; an edit of the composition or a label is 0- Constraints
minimum: 0
No other keys
WebhookDecisionTableChangedData
object
codestringrequiredversionintegerrequired- Constraints
minimum: 1
No other keys