Help Center / Developers · Reference
Webhook events: payments and refunds
The six payment events, when each is sent, and what its data holds.
- Plan
- Growth
- Needs
- Included with the plan
- Who can use this
- Shop owner, Shop Manager
Help Center / Developers · Reference
The six payment events, when each is sent, and what its data holds.
These events are in the Payments group of the webhook form. Five were added in October 2026 and payment.refunded in November 2026. The message shape is on Webhook events.
| Event | Sent when | Not sent |
|---|---|---|
order.paid | An order becomes fully paid: online at checkout, a saved card charged when you accept, cash or card at delivery, the wallet, the till, or a balance you mark as collected | For a free order. For a part payment, until the rest is collected |
order.payment_received | A balance pay link is paid: the rest after a deposit, or what an edit added. Sent for every such payment, even when something is still due | For the payment at checkout |
refund.created | Money is given back: a refund you mark as done, a refund to the wallet, the wallet part of a cancelled order, a Tabby or Tamara refund, or a return's refund | While a refund is only owed. For money put back on a gift card: that is gift_card.adjusted |
payment.failed | An online payment fails: declined or cancelled at the gateway, refused by the platform's checks, or abandoned | For an attempt replaced by a newer one |
payment.flagged | An online payment needs your attention: the gateway says it was paid but no order was placed with it, an order was paid twice, or a payment without an order was refused because the gateway reported another amount or currency than expected | – |
payment.refunded | The platform gave a customer's online payment back automatically because it placed no order, and the gateway accepted the refund | For a refund you make yourself: that is refund.created. While the gateway has not accepted the refund. If it never does, payment.flagged is sent instead |
order.paiddata is the full order, as on Orders and fulfilment, plus a payment block:
| Key | Holds |
|---|---|
method, collected_by | How it was paid and who collected it |
amount, currency | The amount paid |
gateway, reference | The payment gateway and its reference |
wallet_amount, gift_card_amount | The parts paid from the wallet and from a gift card |
paid_at | When it was paid |
It is sent again if the order later costs more and is paid again.
order.payment_receiveddata is the full order plus a payment block: source (always balance), method, amount, currency, reference, payment_request_id, paid_amount, amount_due, refund_amount and paid_at. When nothing is due any more, order.paid follows. A payment of more than was due is kept as the order's refund_amount. See Draft orders and pay links.
refund.created| Key | Holds |
|---|---|
id, order_id, order_number | The refund and its order |
amount, currency | The amount given back |
method, gateway, reference | How the money went back |
reason, return_id, breakdown | Why, the return it belongs to, and the parts of the refund |
created_at, created_by | When, and who made it (id, name) |
A refund to the wallet sends refund.created and wallet.credited.
payment.failed and payment.flaggedpayment.failed holds order_id, order_number, amount, currency, gateway, reason and failed_at. It is sent once per attempt, so it can be followed by order.paid for the same order. A failed payment for an order never placed carries an order_id you have not seen in any order event.
payment.flagged holds flag, order_id, order_number, amount, currency, gateway, reference and flagged_at. Check the payment and refund it in your gateway account.
flag is paid_no_order, duplicate_payment or payment_mismatch. payment_mismatch is a payment without an order whose capture was refused because the gateway reported another amount or currency; its order_id is empty.
payment.refundedSent when the platform gives a customer's online payment back by itself, because the payment placed no order:
It is sent once per refund, after the payment gateway has accepted the refund. If the refund cannot be made, payment.flagged is sent instead and you refund it yourself: see Online payments needing attention. A refund you make yourself sends refund.created, not this event.
| Key | Holds |
|---|---|
transaction_id | The payment |
order_id, order_number | The order, or empty for an app payment that never became an order |
amount, currency | The payment's amount, in your shop's currency |
refunded_amount, refunded_currency | What went back to the customer. For another amount or currency, the figure the gateway reported |
reason | paid_no_order, expired_refunded, superseded, not_found, line_unavailable or payment_mismatch |
gateway, refunded_at, customer_id | The gateway, when it was refunded, and the customer (empty when the payment has no customer) |
Amounts are in major units, such as 46.0, as in payment.flagged. The event holds no gateway reference.
amount and currency are always in the order's own currency. When the customer was charged in another currency, order.paid, refund.created, payment.failed, payment.flagged and payment.refunded also carry charged_amount and charged_currency. See Orders, invoices and refunds in other currencies.
No payment event holds card details or payment tokens.