Dunning discounts
A discount offered late in a failed-payment sequence, to subscribers who have not responded to anything else. Your Klaviyo flow decides who is offered one; MaxLTV decides what the offer is, attaches it to the right Ordergroove order, and records the outcome.
Why the discount is granted in the moment
A discount is only granted when the email that offers it is about to send. There is no background sweep attaching discounts in advance.
That design exists to stop two failure modes that pre-attaching produces. The first is granting to people who never see the offer, because they recovered, cancelled, or dropped out of the flow before that step — money given away silently. The second is drift: a discount attached hours earlier, against an order that has since changed, recovered or been retried.
Granting at send time means the offer and the email are the same event. If the subscriber reaches that step, they are offered a discount; if they do not, nothing was ever given.
Who does what
| Decision | Owner |
|---|---|
| Who is offered a discount, and when in the sequence | Your Klaviyo flow |
| What the discount is, and which order it attaches to | MaxLTV |
| Whether an offer can be honoured at all | MaxLTV, as a safety check |
Because Klaviyo owns the targeting, eligibility on the MaxLTV side is deliberately minimal: reaching the flow step is taken as the decision to offer. MaxLTV does not second-guess it with its own audience rules. It only declines when it cannot honour the offer — the feature is off, the customer cannot be resolved, there is no upcoming or retrying order to attach to, or the subscription is already cancelled.
Setting it up in Klaviyo
The grant is a Webhook action placed immediately before the discount email in your dunning flow.
- Keep whatever delay and branch logic already decides who reaches the discount email. That is your targeting and it stays yours.
- Add a Webhook action directly before the discount email.
- Configure it as below.
Webhook configuration
| Field | Value |
|---|---|
| Method and URL | POST to the endpoint we give you, which ends in your store handle |
| Header | Authorization: Bearer <your Klaviyo webhook secret> |
| JSON body | { "email": "{{ person.email }}", "external_id": "{{ person.external_id }}" } |
The secret is the one stored in MaxLTV under API and Webhook Connections, Klaviyo Integration, Klaviyo Webhook Secret. Klaviyo flow webhooks are not signed the way account webhooks are, so this bearer token is what proves the call is yours.
To check connectivity, a GET to the same URL returns 200 {"ok":true} without granting anything.
The master switch
Dunning Discount must be enabled in MaxLTV. With it off, the webhook still answers normally but grants nothing — so the flow keeps running and the emails keep sending, without a discount attached. Useful as a kill switch, and easy to forget when you are wondering why nothing is being granted.
What the discount is
The offer itself is a rule in MaxLTV, so changing it does not mean editing your flow:
- Type and value — a percentage or a fixed amount.
- Attach to — the next scheduled order, or the order currently being retried.
- Stacking — whether it applies on top of an existing discount or replaces it as the base.
- Expires after — how long the subscriber has. The expiry sent to Ordergroove is truncated to midnight UTC, so a short window can land earlier in the day than you might assume. Worth allowing for when the window is only a day or two.
- Excluded tags — subscribers who should never receive one.
- Priority — which rule wins when more than one could apply.
The grant tag and its hold
A rule can apply a Shopify customer tag when it grants. That tag is a signal back to Klaviyo that this subscriber has already had an offer, and it is removed automatically after the hold period you set.
What comes back
Every call returns one of three outcomes, and all of them are recorded against the customer with the rule that matched and a snapshot of the discount:
| Outcome | Meaning |
|---|---|
| applied | The discount was attached to the order |
| skipped | Nothing was granted, with a reason recorded |
| failed | Something went wrong attaching it |
A skip still returns a success code. That is deliberate: Klaviyo retries failures, and a subscriber who is legitimately ineligible would otherwise be retried indefinitely. The reason is recorded on our side instead, which is also where to look when grants are not happening — the skips carry the explanation, and most of them leave no other trace.
Two responses do signal a real problem rather than a business decision:
- 401 — the bearer token is missing or does not match. Check the header in the flow against the secret in MaxLTV.
- 503 — no webhook secret is configured for the store. Set it in MaxLTV before the flow goes live.
When grants are not happening
- Is Dunning Discount enabled? The common one.
- Is the webhook action before the email, and is the email actually being reached? If nobody reaches that step, nothing is granted and nothing is wrong.
- Is a branch checking the grant tag too early? See the callout above — this routes everyone away silently.
- Are the calls returning 401 or 503? Those are configuration, not eligibility.
- Otherwise, ask us for the skip reasons. Every authenticated call is recorded with why it was skipped, which usually answers it in one look.
Related
- Onboarding: Ordergroove — where the Klaviyo connection is set up.
- Reading your recovery numbers — how recovered revenue is counted.