Skip to content

Panel webhooks ​

Panel webhooks are the notifications a store registers itself on the API screen, Webhooks tab. For every chosen event — order paid, Pix generated, customer created and others — Appmax sends a POST with the event data to the store's URL.

Not the same as Appstore webhooks

Developers of an app receive the Appstore webhooks, with a different envelope (app_id, site_id, external_key) and a different event list. This page is only for those integrating their own store.

Using an AI assistant

The context from the AI guide (API screen) already tells the assistant the store receives these webhooks and points to this page. Paste the context at the start of the conversation: without it, the assistant tends to follow the Appstore webhooks.

How the delivery arrives ​

Every event produces a POST with a JSON body and three top-level fields:

json
{
  "environment": "production",
  "event": "OrderPaid",
  "data": { "id": 99042, "status": "aprovado", "...": "..." }
}
FieldDescription
environmentEnvironment that produced the event. Sandbox and Production both send production; do not use this field to tell environments apart — use a different URL in each one.
eventEvent name. It is the identifier from the table below with an uppercase first letter (orderPaid → OrderPaid).
dataResource data: order, customer or subscription, depending on the event.

The request carries the User-Agent: apphook header and, if the webhook has a secret, the Signature header (see Security).

Events ​

These are the same 28 events as the Webhooks tab, grouped the same way.

Three events arrive with a different event

  • OrderAuthorizedWithDelay arrives as OrderAuthorized.
  • PaymentNotAuthorized and PaymentNotAuthorizedWithDelay arrive as PaymentNotAuthorized | Code: <code> | Reason: <reason>; the Code part only comes when there is a return code. Compare by the start of the text.

Orders ​

Event (event)When it firesdata
OrderApprovedOrder approvedorder
OrderAuthorizedOrder authorizedorder
OrderAuthorizedWithDelayOrder authorized, sent 60 minutes laterorder
OrderIntegratedOrder integratedorder
OrderPendingIntegrationOrder pending integrationorder
OrderPaidOrder paidorder
OrderRefundOrder refundedorder
OrderPartialRefundOrder partially refundedorder
OrderUpSoldUpsell paidorder
OrderRefusedByRiskOrder refused by antifraudorder

Payments ​

Event (event)When it firesdata
OrderPixCreatedPix generatedorder
OrderPaidByPixPix paidorder
OrderPixExpiredPix expiredorder
OrderBilletCreatedBoleto generatedorder
OrderBilletOverdueBoleto overdueorder
PaymentNotAuthorizedPayment not authorizedorder, with issuer_message
PaymentNotAuthorizedWithDelayPayment not authorized, sent 60 minutes laterorder, with issuer_message
OrderChargeBackInTreatmentChargeback under revieworder
OrderChargeBackGainChargeback wonorder

Customers ​

Event (event)When it firesdata
CustomerCreatedCustomer createdcustomer
CustomerContactedCustomer contactedcustomer
CustomerInterestedInterested customer, sent 60 minutes latercustomer

Subscriptions ​

Event (event)When it firesdata
SubscriptionDelayedEventSubscription overdue (previous model, see below)customer, with subscription
SubscriptionCancellationEventSubscription canceled (previous model, see below)customer, with subscription
CreatedSubscriptionSubscription createdsubscription lifecycle
CanceledSubscriptionSubscription canceledsubscription lifecycle
ChargeSuccessSubscription charge approvedsubscription lifecycle
ChargeFailedSubscription charge failedsubscription lifecycle

What comes in data ​

Order ​

GroupFields
Identificationid, customer_id, status, origin, created_at, paid_at, refunded_at, integrated_at, upsell_order_id, invoice_id, payment_link_id
Amountstotal_products, freight_value, freight_type, discount, interest, total, full_payment_amount, total_refunded, refund_amount, cashback, partner_total, partner_affiliate_total
Paymentpayment_type, installments, card_brand, card_details, issuer_message
Pixpix_creation_date, pix_expiration_date, pix_emv, pix_ref, pix_qrcode, pix_end_to_end_id, pix_payment_link
Boletobillet_url, billet_digitable_line, billet_date_overdue, order_billet_payment_code
Relatedcustomer, bundles, products, visit, traffic_description
Metadatametadata, payment_metadata, refund_metadata
Company and commissionscompany_name, company_cnpj, company_email, co_production_commission, affiliate_comission, seller_name

Fields that do not apply to the order come as null — the Pix ones on a card order, for example. issuer_message is only filled on the payment-not-authorized events.

metadata is the order's, payment_metadata the payment's and refund_metadata the last approved refund's, as sent through the API (see Metadata). They always come as an object, {} when empty.

Order data example (trimmed, fictitious data)
json
{
  "id": 99042,
  "customer_id": 17,
  "status": "aprovado",
  "payment_type": "CreditCard",
  "card_brand": "Visa",
  "installments": 12,
  "total_products": 242.03,
  "freight_value": 39.99,
  "freight_type": "PAC",
  "discount": 0,
  "interest": 57.97,
  "total": 339.99,
  "paid_at": "2026-10-01 15:02:52",
  "created_at": "2026-10-01 15:02:36",
  "origin": "API",
  "customer": {
    "id": 17,
    "firstname": "Maria",
    "lastname": "Silva",
    "email": "[email protected]",
    "document_number": "00000000000"
  },
  "bundles": [
    {
      "id": 23,
      "name": "Recipe book",
      "products": [{ "sku": "9000010", "name": "Recipe book", "price": "121.02", "quantity": 2 }]
    }
  ],
  "company_name": "My Store",
  "issuer_message": null
}

Customer ​

id, firstname, lastname, fullname, email, telephone, document_number, hash, address (postcode, address_street, address_street_number, address_street_complement, address_street_district, address_city, address_state, uf), site_id, created_at, interested_bundle (the product of interest, with a checkout link) and visited_url.

Subscription ​

  • SubscriptionDelayedEvent and SubscriptionCancellationEvent: the customer fields plus a subscription object with id, installments, total, created_at, cancelled_at and the subscribed bundle (with its products).

  • CreatedSubscription, CanceledSubscription, ChargeSuccess and ChargeFailed: the subscription lifecycle, with order_id and subscription_id. Depending on the event, they also carry interval and interval_count (on creation), uuid (on charges) and status.

  • ChargeFailed also carries, on every declined attempt:

    • attempt: the charge attempt number for that order (1 on the first decline, 2 on the second...);
    • failure_code and failure_message: the decline reason, per the table below.

    On the last attempt, the one that cancels the subscription (see Charge retries), the event may arrive twice with the same order_id and attempt. Use both fields together to skip the repeat.

  • CanceledSubscription carries origin, who canceled:

    • overdue_max_tries: the charge attempts ran out (payment failure);
    • customer: the customer, in the subscriber area;
    • admin: the store, in the Appmax dashboard;
    • api-v4: the store, through the API.
failure_codeReason
100Insufficient balance
200Transaction amount not allowed for the card
300Suspected fraud
400Card reported as lost
500Account closed
600Transaction not allowed for the card
700Suspected fraud
800Generic issuer decline (review the card details)

Subscriptions from the previous model

SubscriptionDelayedEvent and SubscriptionCancellationEvent belong to subscriptions from the previous Appmax checkout model. They do not fire for subscriptions created through Shopify, the API or a payment link. For those, use ChargeFailed for declined charges and CanceledSubscription for cancellations.

Delays, retries and response time ​

  • Sent right away, except for the three events marked with 60 minutes in the table, which only go out an hour after the fact.
  • Reply with HTTP 2xx. Any other status, or a connection failure, counts as an error.
  • Up to 4 attempts in total. After an error, Appmax waits 10 seconds, then 100, then 1,000 (about 17 minutes) before each new attempt. Once the attempts run out, the delivery is dropped.
  • Reply fast. Put the event in a queue and return 200 before processing — a slow response can hit the timeout and turn into a new attempt.

Security ​

Signing with a secret (HMAC) ​

When registering the webhook in the Webhooks tab, fill in the secret field (optional): generate one with the button or type your own, from 32 to 64 characters (unaccented letters, digits and symbols, no spaces). With a secret, every delivery carries the Signature header, the HMAC-SHA256 of the raw request body computed with the secret, in hexadecimal. Your endpoint redoes the calculation and compares: if it does not match, respond 401 and drop the event.

  • Copy the secret before saving. Once saved it is never shown again: the list only shows that the webhook is Signed. To change it, generate a new one; to stop signing, remove it.
  • The header is not the secret: the value changes on every delivery, because it depends on the body.
  • The calculation and code samples in Node.js, Python, PHP and Go are in Webhook signature. Panel webhooks use the same algorithm.

Without a secret, deliveries arrive without the Signature header.

Other precautions ​

  • Use an HTTPS URL and do not publish it.
  • Before acting on a sensitive event — releasing a paid order, for example —, confirm through the API: fetch the order with GET /v1/orders/{order_id} using the received data.id.
  • Ignore repeated events: store the event and data.id you already processed.

Testing the endpoint ​

In the webhook list of the Webhooks tab, the Test button sends the first event the webhook subscribes to, with fictitious data. Use it to check that the endpoint replies 2xx — not to check the values of a real order. If the webhook has a secret, the test also carries the Signature header, so you can validate your endpoint's signature check.

Delivery history, resend and conditional rules live on the full webhooks screen of the panel.