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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    customer.created
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookCustomerCreatedDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    customer.updated
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookCustomerUpdatedDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    customer.merged
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookCustomerMergedDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    customer.labels_changed
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookCustomerLabelsChangedDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    interaction.created
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookInteractionDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    interaction.updated
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookInteractionUpdatedDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    interaction.voided
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookInteractionDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    ledger_entry.created
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookLedgerEntryCreatedDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    asset.changed
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookAssetChangedDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    catalog.changed
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookCatalogChangedDatarequired

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)headerrequired

    Event ID — matches the body's id; a redelivery carries the same one
  • Btlify-Event-Typestringheaderrequired

  • Btlify-Delivery-Idstring (uuid)headerrequired

    Delivery ID (event × subscription) — the same for all attempts
  • Btlify-Signaturestringheaderrequired

    t=<Unix-seconds>,v1=<hex> — HMAC-SHA256 with the subscription secret (the whole btlwh_… string is the key) over the string <t>.<raw body>; during secret rotation there are two v1= pairs (new and previous, for one day). The subscriber verifies against the raw body and rejects a t older than 5 minutes.

Request body

application/json

object

Webhook event envelope: the same for all types; 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)required

    event ID (UUID v7) — the subscriber's deduplication key
  • typestringrequired

    type from the event catalog (key of the webhooks section)
    Always
    decision_table.changed
  • occurred_atstring (date-time)required

    moment of the operation, UTC with Z, to the second
  • dataWebhookDecisionTableChangedDatarequired

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)required

  • fieldsarray<string>required

    codes of changed fields, without values
  • identitiesarray<string>required

    type codes of changed identities, without values

No other keys

WebhookCustomerMergedData

object

  • customer_idstring (uuid)required

    primary customer
  • merged_customer_idstring (uuid)required

    absorbed customer

No other keys

WebhookCustomerLabelsChangedData

object

  • customer_idstring (uuid)required

  • addedarray<object>required

    set (and extended) labels; the subscriber tracks the expiry itself — there is no expiry event
    Items
    • codestringrequired

    • sourcestringrequired

      Values
      manualrule
    • expires_atstring (date-time) | nullrequired

    No other keys

  • removedarray<object>required

    Items
    • codestringrequired

    • sourcestringrequired

      Values
      manualrule

    No other keys

No other keys

WebhookInteractionData

object

  • interaction_idstring (uuid)required

  • external_idstring | nullrequired

  • typestringrequired

    interaction type code
  • projectstringrequired

    project code
  • customer_idstring (uuid)required

  • started_atstring (date-time)required

No other keys

WebhookInteractionUpdatedData

object

  • interaction_idstring (uuid)required

  • external_idstring | nullrequired

  • typestringrequired

  • projectstringrequired

  • customer_idstring (uuid)required

  • started_atstring (date-time)required

  • revisionintegerrequired

    edit revision number
    Constraints
    minimum: 1

No other keys

WebhookLedgerEntryCreatedData

object

  • entry_idstring (uuid)required

  • kindLedgerEntryKindrequired

  • customer_idstring (uuid)required

  • account_kindstringrequired

    account kind code
  • amountstringrequired

    decimal as a string with the kind's number of decimal places
  • balancestringrequired

    account balance after this entry, decimal as a string
  • interaction_idstring (uuid) | nullrequired

  • reverses_entry_idstring (uuid) | nullrequired

No other keys

LedgerEntryKind

string

Entry kind (closed list): 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)required

  • typestringrequired

    asset type code
  • kindstringrequired

    Values
    registeredtransitionedowner_changedrevertedattributes_changed
  • status_fromstring | nullrequired

  • status_tostringrequired

  • customer_idstring (uuid) | nullrequired

    owner after the event
  • interaction_idstring (uuid) | nullrequired

No other keys

WebhookCatalogChangedData

object

  • codestringrequired

  • versionintegerrequired

    Constraints
    minimum: 1
  • changesintegerrequired

    number of changed items and categories; an edit of the composition or a label is 0
    Constraints
    minimum: 0

No other keys

WebhookDecisionTableChangedData

object

  • codestringrequired

  • versionintegerrequired

    Constraints
    minimum: 1

No other keys