Docs/Revenue/Refunds & net revenue

Refunds & net revenue

Record refunds so your revenue and LTV stay accurate.

When you refund a customer, send it to Dzati so your revenue and each person's lifetime value reflect reality.

Send a refund

js
dzati.track('refund', {
  order_id: 'ORD-10492',   // the order being refunded
  value_cents: 4900,       // amount refunded, as a POSITIVE number
  currency: 'USD'
});
  • Send value_cents as a positive number — Dzati records it as a deduction for you.
  • A refund reduces both the reported revenue and the customer's lifetime value, netting against the original order.

Partial refunds

For a partial refund (or several refunds against one order), add a unique refund_id so each is counted once:

js
dzati.track('refund', {
  order_id: 'ORD-10492',
  refund_id: 'RF-558',     // distinguishes this refund from others on the order
  value_cents: 1500,
  currency: 'USD'
});
Note: Whether refunds are subtracted from your headline revenue is controlled by Count refunds in Site → Settings → Revenue.