| Event | When | data.object |
|---|---|---|
order.created |
An order was created (WhatsApp, API or dashboard). | order |
order.paid |
The customer paid an order. | order |
order.fulfilled |
The order was marked as shipped. | order |
order.cancelled |
The order was cancelled (and its stock released). | order |
order.refunded |
A cancelled order's payment was refunded to the customer. | order |
payment_link.created |
A payment link was generated. | payment_link |
payment_link.expired |
A payment link expired unpaid. | payment_link |
customer.created |
A new customer wrote in or placed an order. | customer |
customer.updated |
A customer's details, notes, tags or preferences changed. | customer |
customer.deleted |
A customer deleted their store account. | { id, object: "customer", deleted: true } |
claim.opened |
A customer opened a claim from their account. | claim |
claim.replied |
A customer replied on one of their claims. | claim |
product.created |
A product was created. | product |
product.updated |
A product changed (details, status, variants). | product |
product.deleted |
A product was deleted. | { id, object: "product", deleted: true } |
inventory.low_stock |
A variant is running low or sold out. | inventory_level |
discount.created |
A discount code was created. | discount |
discount.updated |
A discount code changed. | discount |
discount.deleted |
A discount code was deleted. | { id, object: "discount", deleted: true } |
discount.redeemed |
An order used a discount code. | discount |
conversation.needs_attention |
A conversation needs someone to reply. | conversation |
message.received |
A customer message arrived on WhatsApp or Instagram. | message |
Payloads are versioned with api_version (currently 2026-10-18). Fields may be added within a version; nothing is removed or renamed.
order
order.created, order.paid, order.fulfilled, order.cancelled, order.refunded.
{
"id": "0199ed2a-…",
"object": "order",
"order_number": 42,
"status": "paid",
"channel": "whatsapp",
"currency": "USD",
"subtotal_cents": 5000,
"discount_id": "…",
"discount_code": "BIENVENIDA",
"discount_amount_cents": 500,
"total_cents": 4500,
"customer": { "id": "…", "name": "Ana López", "phone": "50370000000", "email": null },
"shipping_address": "Col. Escalón, San Salvador",
"shipping_location": { "departamento": "San Salvador", "municipio": "San Salvador Centro", "distrito": "San Salvador", "address_line": "Col. Escalón", "reference": null },
"notes": null,
"conversation_id": "…",
"items": [{ "id": "…", "product_id": "…", "variant_id": "…", "title": "Camisa Oxford - M", "unit_price_cents": 2500, "quantity": 2, "line_total_cents": 5000 }],
"paid_at": "2026-10-12T15:04:05.000Z",
"refund": null,
"created_at": "2026-10-12T15:00:00.000Z",
"updated_at": "2026-10-12T15:04:05.000Z"
}On order.refunded, refund is { "status": "succeeded", "amount_cents": 4500, "refunded_at": "…" }.
payment_link
payment_link.created, payment_link.expired.
{
"id": "…",
"object": "payment_link",
"order_id": "…",
"url": "https://pay.malla.business/…",
"status": "pending",
"amount_cents": 4500,
"currency": "USD",
"expires_at": "2026-10-13T15:04:05.000Z",
"paid_at": null,
"created_at": "2026-10-12T15:04:05.000Z"
}payment_link.expired adds order_cancelled: whether the order was cancelled because its last link expired.
customer
customer.created, customer.updated. customer.deleted carries only { "id": "…", "object": "customer", "deleted": true }.
{
"id": "…",
"object": "customer",
"phone": "50370000000",
"name": "Ana López",
"email": "ana@example.com",
"email_verified": true,
"birth_date": "1992-04-18",
"accepts_marketing": true,
"preferred_contact": "whatsapp",
"notes": null,
"shopper_notes": null,
"tags": ["vip"],
"orders_count": 7,
"total_spent_cents": 31500,
"last_order_at": "…",
"last_message_at": "…",
"created_at": "…",
"updated_at": "…"
}claim
claim.opened, claim.replied.
{
"id": "…",
"object": "claim",
"number": 3,
"category": "damaged",
"subject": "Llegó roto",
"status": "open",
"order_id": "…",
"order_number": 42,
"customer": { "id": "…", "name": "Ana López", "contact": "ana@example.com" },
"last_message_at": "…",
"last_message_author": "customer",
"created_at": "…"
}product
product.created, product.updated. product.deleted carries only the id.
{
"id": "…",
"object": "product",
"title": "Camisa Oxford",
"description": "Algodón 100 %.",
"status": "active",
"track_inventory": true,
"total_inventory": 37,
"cover_image_url": "https://…",
"category": { "id": "…", "label": "Camisas" },
"collections": [{ "id": "…", "title": "Nuevos" }],
"options": [{ "id": "…", "name": "Talla", "values": [{ "id": "…", "value": "M" }] }],
"variants": [{ "id": "…", "title": "M", "sku": "OX-M", "price_cents": 2500, "compare_at_price_cents": null, "inventory_quantity": 12, "image_url": null, "option_value_ids": { "…": "…" } }],
"created_at": "…",
"updated_at": "…"
}inventory_level
inventory.low_stock fires when a tracked variant's stock drops to the low threshold or to 0. Restocking never fires it.
{
"object": "inventory_level",
"variant_id": "…",
"product_id": "…",
"product_title": "Camisa Oxford",
"variant_title": "M",
"sku": "OX-M",
"inventory_quantity": 2,
"stock_level": "low",
"low_stock_threshold": 5
}stock_level is low or out.
discount
discount.created, discount.updated, discount.redeemed. discount.deleted carries only the id.
{
"id": "…",
"object": "discount",
"code": "BIENVENIDA",
"type": "percentage",
"value": 1000,
"min_subtotal_cents": null,
"usage_limit": 100,
"usage_count": 13,
"starts_at": null,
"ends_at": null,
"status": "active",
"is_public": false,
"customer_id": null,
"source": "manual",
"created_at": "…",
"updated_at": "…"
}discount.redeemed adds redemption: { order_id, customer_id, amount_cents, currency }.
conversation
conversation.needs_attention: the bot handed a WhatsApp or Instagram conversation to a person, or the customer wrote while it's in human mode.
{
"id": "…",
"object": "conversation",
"channel": "whatsapp",
"customer": { "id": "…", "phone": "50370000000", "name": "Ana López" },
"mode": "human",
"needs_attention": true,
"last_message_at": "…",
"created_at": "…"
}message
message.received: a customer sent a WhatsApp or Instagram message.
{
"id": "…",
"object": "message",
"conversation_id": "…",
"channel": "whatsapp",
"customer": { "id": "…", "phone": "50370000000", "name": "Ana López" },
"direction": "inbound",
"sender": "customer",
"type": "text",
"content": "¿Tienen talla L?",
"media_url": null,
"created_at": "…"
}webhook_test
webhook.test is sent only by Send test event, only to the tested endpoint, and can't be subscribed to.
{ "object": "webhook_test", "endpoint_id": "…", "message": "Este es un evento de prueba enviado desde Malla." }