For AI agents: the complete documentation index is available at https://docs.clickmax.io/en/llms.txt, the full documentation bundle is available at https://docs.clickmax.io/en/llms-full.txt, and this page is available as Markdown at https://docs.clickmax.io/en/features/products/webhook-delivery-payload.md.
  • English
  • What data can I send in the delivery webhook payload?

    When you check Customize this event payload on a webhook delivery, you write the JSON that Clickmax sends and fill in values with variables in the {{variable}} format. This page lists every variable and how to build lists with @each.

    Workspace role: Owner, Administrator, Editor or Collaborator.

    How values are filled in

    How you write itWhat is sent
    "{{transaction.amount}}" (the variable alone inside quotes)The value in its original type: numbers stay numbers, true/false stay booleans and empty fields become null
    "Order {{id}}" (variable inside text)Text, with the variable replaced
    13, "invoice_paid" (no variable)The fixed value, exactly as written

    Money values are always in cents: 59700 is R$ 597.00.

    When the webhook fires

    The webhook fires once for each offer in the order that has this delivery: the main offer and each order bump. In these deliveries, offerId is the offer that fired that delivery, while items and orderBumps always carry the whole order.

    Variables

    General

    VariableTypeDescription
    idtextTransaction ID (or subscription ID, on the subscription canceled event)
    eventtextTechnical event name, such as checkout.transaction.paid.v1
    typetextEvent name in Portuguese, such as Transação paga
    datetimetextDate and time in ISO 8601
    offerId, offerNametextOffer that fired this delivery
    productId, productNametextProduct of that offer
    isOrderBumpbooleantrue when the offer that fired this delivery is an order bump of the order

    Buyer

    VariableTypeDescription
    buyerName, buyerEmailtextName and email
    buyerPhonetextPhone with country and area code, digits only
    buyerDocumenttextCPF or CNPJ, digits only. null when checkout did not ask for it
    buyerAddress.zipCode, buyerAddress.street, buyerAddress.number, buyerAddress.complement, buyerAddress.neighborhood, buyerAddress.city, buyerAddress.state, buyerAddress.countrytextAddress entered at purchase. null when checkout does not ask for an address

    Transaction

    These are null on the subscription canceled event, which has no transaction.

    VariableTypeDescription
    transaction.amountnumberTotal amount charged, in cents
    transaction.statustextTransaction status
    transaction.installmentsnumberNumber of installments
    transaction.paymentMethodtextPayment method, such as credit_card
    transaction.currencytextCurrency, such as BRL
    transaction.discountAmountnumberDiscount applied, in cents. null when there was none
    transaction.couponCodetextCoupon code used. null when there was none
    transaction.isSubscriptionInvoicebooleantrue on recurring charges of a subscription
    transaction.occurrencenumberCharge number within the subscription
    transaction.subscriptionIdtextSubscription ID of the charge, when there is one

    Order items

    items is the list with the main offer first, then each order bump. Use it inside an @each block (see below).

    VariableTypeDescription
    item.typetextmain for the main offer, order_bump for bumps
    item.offerId, item.offerNametextItem offer
    item.productId, item.productNametextItem product
    item.valuenumberOffer price at sale time, in cents, before coupon discount and interest. Because of that, the items may not add up to transaction.amount. null when the price was not recorded at sale time

    orderBumps is still available with only the order bumps, through item.offerId, item.offerName, item.productId, item.productName and item.value.

    Subscription

    Filled on the subscription canceled event.

    VariableTypeDescription
    subscription.idtextSubscription ID
    subscription.planNametextPlan name
    subscription.billingCycletextSubscription status

    Tracking / UTM

    VariableTypeDescription
    utm.source, utm.medium, utm.campaign, utm.term, utm.contenttextUTM parameters of the visit that generated the sale
    utm.src, utm.scktextsrc and sck parameters of the visit

    Building a list with @each

    An array with a single object that has the "@each" key becomes a list with one entry per element. Inside the block, use {{item.field}}. The @each block must be the only element of the array, and one @each cannot be nested inside another.

    Example payload in another platform's format, with every item of the order:

    {
      "cus_name": "{{buyerName}}",
      "cus_email": "{{buyerEmail}}",
      "recurrence_cod": "{{id}}",
      "trans_paymentmethod": 13,
      "event_name": "invoice_paid",
      "trans_items": [
        {
          "@each": "items",
          "item_product_id": "{{item.productId}}",
          "item_value": "{{item.value}}"
        }
      ]
    }

    In a sale with one order bump, trans_items comes out with two objects: the main offer and the bump.