Skip to content
Kaizena FlowDocs
Search

Search the docs

lead.deal_made

Lead made a deal: someone made a deal of a lead: the person became a customer if they were not one, and a deal about them opened.

  • Topic: lead.deal_made, in the Kaizena-Webhook-Topic header and the body's topic

  • Sent to: Your own endpoints, and apps

  • About: the lead, under data.lead

  • Payload version: 1

Payload

FieldTypeDescription
idstring (uuid)The delivery's id: the same when a delivery is sent again, so a receiver can do it once.
topic"lead.deal_made"
version1The payload's version; a change to a shape raises it.
storeobject
store.slugstring
store.namestring
created_atstring (date-time)When the event happened.
dataobject
data.leadobject
data.lead.idstring (uuid)The decision's id: one per person and store, the latest decision.
data.lead.decisionone of dismissed, dealSet aside, or made a deal of.
data.lead.deal_idstring (uuid) or nullThe deal made of the lead.
data.lead.customer_idstring (uuid) or nullThe store's customer with the lead's address, when there is one: always, once a deal is made.
data.lead.requestslist of objectsWhat the person asked for in the 90 days before the decision, newest first, as ids.
data.lead.requests[].kindone of quote, question, chat, subscriberWhat they asked for: a quote, a question (a form or the email form), a chat, or to join the email list.
data.lead.requests[].sourceone of draft, form, conversation, subscriberWhere it is kept: a draft order, a form's response, a support conversation or a subscriber.
data.lead.requests[].idstring (uuid)That record's id.
data.lead.requests[].atstring (date-time)
data.lead.decided_bystring (uuid) or nullThe staff member who decided.
data.lead.decided_atstring (date-time)
data.lead.admin_urlstringWhere it is in the store's admin; empty in a sample.

Example

{
  "id": "3f2b8c1e-6d4a-4b9e-8c7f-1a2b3c4d5e6f",
  "topic": "lead.deal_made",
  "version": 1,
  "store": {
    "slug": "your-store",
    "name": "Example"
  },
  "created_at": "2026-11-03T09:30:00Z",
  "data": {
    "lead": {
      "id": "3f2b8c1e-6d4a-4b9e-8c7f-1a2b3c4d5e6f",
      "decision": "deal",
      "deal_id": "52d64847-0f21-406e-b255-6970165ca371",
      "customer_id": "0af2dcd1-60e1-45c6-9774-425ae857a555",
      "requests": [
        {
          "kind": "quote",
          "source": "draft",
          "id": "3f2b8c1e-6d4a-4b9e-8c7f-1a2b3c4d5e6f",
          "at": "2026-11-03T09:30:00Z"
        }
      ],
      "decided_by": "a6d22feb-ec8c-4284-a98b-73d0ddf9c721",
      "decided_at": "2026-11-03T09:30:00Z",
      "admin_url": "https://kaizenaflow.com/admin/your-store"
    }
  }
}

Every value is an example of its type, not a real store's.

Signature and retries

Each delivery carries the headers every topic has and is signed: check the signature before you trust it. One not answered with a 2xx status is tried again.

Made from the API contract, version 1.57This page as Markdown

Was this page helpful?