Skip to content
MaxLTV Docs

Docs / Dunning discounts

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.

This page is for stores running Ordergroove with recovery email in Klaviyo. The settings live in your MaxLTV admin under Dunning Discount.

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

DecisionOwner
Who is offered a discount, and when in the sequenceYour Klaviyo flow
What the discount is, and which order it attaches toMaxLTV
Whether an offer can be honoured at allMaxLTV, 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.

  1. Keep whatever delay and branch logic already decides who reaches the discount email. That is your targeting and it stays yours.
  2. Add a Webhook action directly before the discount email.
  3. Configure it as below.

Webhook configuration

FieldValue
Method and URLPOST to the endpoint we give you, which ends in your store handle
HeaderAuthorization: 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.

If your flow splits on the grant tag, move that split after the webhook. The webhook is what applies the tag, so a branch that checks for it beforehand will always find it missing and route everyone away from the email. Either move the split after the webhook, or send the discount email to everyone who reaches that step.

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.

The hold is a cool-off marker, not a lock. It does not stop MaxLTV granting again — your flow's own timing decides whether someone is offered a second discount. If you want a genuine limit on re-offers, build it into the flow, not into the hold.

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:

OutcomeMeaning
appliedThe discount was attached to the order
skippedNothing was granted, with a reason recorded
failedSomething 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

  1. Is Dunning Discount enabled? The common one.
  2. 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.
  3. Is a branch checking the grant tag too early? See the callout above — this routes everyone away silently.
  4. Are the calls returning 401 or 503? Those are configuration, not eligibility.
  5. 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