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:
{
"environment": "production",
"event": "OrderPaid",
"data": { "id": 99042, "status": "aprovado", "...": "..." }
}| Field | Description |
|---|---|
environment | Environment 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. |
event | Event name. It is the identifier from the table below with an uppercase first letter (orderPaid → OrderPaid). |
data | Resource 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
OrderAuthorizedWithDelayarrives asOrderAuthorized.PaymentNotAuthorizedandPaymentNotAuthorizedWithDelayarrive asPaymentNotAuthorized | Code: <code> | Reason: <reason>; theCodepart only comes when there is a return code. Compare by the start of the text.
Orders
Event (event) | When it fires | data |
|---|---|---|
OrderApproved | Order approved | order |
OrderAuthorized | Order authorized | order |
OrderAuthorizedWithDelay | Order authorized, sent 60 minutes later | order |
OrderIntegrated | Order integrated | order |
OrderPendingIntegration | Order pending integration | order |
OrderPaid | Order paid | order |
OrderRefund | Order refunded | order |
OrderPartialRefund | Order partially refunded | order |
OrderUpSold | Upsell paid | order |
OrderRefusedByRisk | Order refused by antifraud | order |
Payments
Event (event) | When it fires | data |
|---|---|---|
OrderPixCreated | Pix generated | order |
OrderPaidByPix | Pix paid | order |
OrderPixExpired | Pix expired | order |
OrderBilletCreated | Boleto generated | order |
OrderBilletOverdue | Boleto overdue | order |
PaymentNotAuthorized | Payment not authorized | order, with issuer_message |
PaymentNotAuthorizedWithDelay | Payment not authorized, sent 60 minutes later | order, with issuer_message |
OrderChargeBackInTreatment | Chargeback under review | order |
OrderChargeBackGain | Chargeback won | order |
Customers
Event (event) | When it fires | data |
|---|---|---|
CustomerCreated | Customer created | customer |
CustomerContacted | Customer contacted | customer |
CustomerInterested | Interested customer, sent 60 minutes later | customer |
Subscriptions
Event (event) | When it fires | data |
|---|---|---|
SubscriptionDelayedEvent | Subscription overdue (previous model, see below) | customer, with subscription |
SubscriptionCancellationEvent | Subscription canceled (previous model, see below) | customer, with subscription |
CreatedSubscription | Subscription created | subscription lifecycle |
CanceledSubscription | Subscription canceled | subscription lifecycle |
ChargeSuccess | Subscription charge approved | subscription lifecycle |
ChargeFailed | Subscription charge failed | subscription lifecycle |
What comes in data
Order
| Group | Fields |
|---|---|
| Identification | id, customer_id, status, origin, created_at, paid_at, refunded_at, integrated_at, upsell_order_id, invoice_id, payment_link_id |
| Amounts | total_products, freight_value, freight_type, discount, interest, total, full_payment_amount, total_refunded, refund_amount, cashback, partner_total, partner_affiliate_total |
| Payment | payment_type, installments, card_brand, card_details, issuer_message |
| Pix | pix_creation_date, pix_expiration_date, pix_emv, pix_ref, pix_qrcode, pix_end_to_end_id, pix_payment_link |
| Boleto | billet_url, billet_digitable_line, billet_date_overdue, order_billet_payment_code |
| Related | customer, bundles, products, visit, traffic_description |
| Metadata | metadata, payment_metadata, refund_metadata |
| Company and commissions | company_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)
{
"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
SubscriptionDelayedEventandSubscriptionCancellationEvent: the customer fields plus asubscriptionobject withid,installments,total,created_at,cancelled_atand the subscribedbundle(with its products).CreatedSubscription,CanceledSubscription,ChargeSuccessandChargeFailed: the subscription lifecycle, withorder_idandsubscription_id. Depending on the event, they also carryintervalandinterval_count(on creation),uuid(on charges) andstatus.ChargeFailedalso carries, on every declined attempt:attempt: the charge attempt number for that order (1 on the first decline, 2 on the second...);failure_codeandfailure_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_idandattempt. Use both fields together to skip the repeat.CanceledSubscriptioncarriesorigin, 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_code | Reason |
|---|---|
100 | Insufficient balance |
200 | Transaction amount not allowed for the card |
300 | Suspected fraud |
400 | Card reported as lost |
500 | Account closed |
600 | Transaction not allowed for the card |
700 | Suspected fraud |
800 | Generic 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
200before 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 receiveddata.id. - Ignore repeated events: store the
eventanddata.idyou 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.