# Offer a discount when someone cancels

> Have an Agent set up a retention offer on a subscription plan: a discount the App Store shows with the plan's retention message when someone starts to cancel.

Source: https://air.build/docs/app-store/offer-a-discount-when-someone-cancels/

When someone starts to cancel a subscription, the App Store can show them a retention message from you, and with it a discount to stay: a retention offer. An Agent can set up both for a subscription plan and send the message to App Review.

> [!NOTE]
> AirBuild has no button for this: a plan's **Offers** page has introductory, offer code, promotional and win-back offers, not retention offers. You ask an Agent in the Project's chat, and it uses `asc subscriptions offers retention` and `asc subscriptions retention-messages` (listed under `subscriptions` in [asc: in-app purchases and subscriptions](https://air.build/docs/cli/asc-monetization/#subscriptions)). Like the other App Store Connect commands, they go through the Apple Developer account connected in AirBuild, and need no other key. For the other kinds of offer, see [Offer free trials, discounts and offer codes](https://air.build/docs/app-store/offer-trials-and-discounts/).

## How it fits together

| Part | What it is |
| --- | --- |
| Retention message | What people see when they start to cancel: a header and a body for each language, and an optional image. It's assigned to a plan, and Apple reviews it. |
| Retention offer | The discount. `asc` creates it on the plan, then presents it with the plan's retention message. An offer that isn't presented isn't shown. |

The `asc` help says a plan has at most one retention message, and an app at most 10.

## Before you ask

- The plan exists. To make one, see Sell a subscription in [Sell in-app purchases and subscriptions](https://air.build/docs/app-store/sell-in-app/#sell-a-subscription).
- The `asc` help says Apple accepts the message for review only when the app already has an approved App Store version, or when the same submission includes one. See [Submit to App Review and release](https://air.build/docs/app-store/submit-for-review/#submit-a-version).
- Know what you want to offer:

| Choice | What to tell the Agent |
| --- | --- |
| The discount | Free for a time, a lower price each period, or one payment for the whole offer. |
| How long | The length of a period (3 days, 1 week, 2 weeks, 1 month, 2 months, 3 months, 6 months or 1 year) and how many periods. |
| The price | The price in each storefront. Each price the Agent sets is for one storefront, so it adds one per storefront you want. The `asc` help doesn't say what people see in a storefront the offer has no price for. |
| Who gets it | How long someone must have paid before. The `asc` help says 1 to 24 months, or 36, 48 or 60. |
| How often | Optionally, how long before the same person can get a retention offer again. The `asc` help says 2 to 24 months. |
| The message | A header and a body for each language. The `asc` help says the header can have up to 66 characters and the body up to 144. |

## Ask

Ask in the Project's chat, for example:

```text
When someone starts to cancel Premium Monthly, offer them half price for 3 months, but only if they've paid for at least 6 months. Header: "Stay with Premium". Body: "Keep everything for half the price for the next 3 months."
```

Name the plan by its name or its product ID.

1. The message: if the plan has no retention message yet, the Agent creates one with a reference name (people don't see it, and it can't be changed later), makes a version, adds the text for each language and assigns the message to the plan. Assigning a message replaces the one the plan had.
2. The offer: the Agent creates the retention offer with a reference name (not shown to people), an offer ID, the discount, the length, who gets it and a price for each storefront.
3. Presenting it: creating an offer doesn't show it. The Agent adds it to the offers presented with the plan's retention message.
4. Review: the Agent adds the message's version to a review submission and submits it. Submitting needs `--confirm`, so the Agent asks you first.

The Agent tells you what it created and where the review stands. AirBuild's **In-App Purchases** tab doesn't list retention messages or retention offers; ask the Agent to show them.

## Follow the review

Ask the Agent where the message stands. It reads the version and its review state with `asc subscriptions retention-messages versions view`. For what each state means, see Apple's [Retention message statuses](https://developer.apple.com/help/app-store-connect/reference/in-app-purchases-and-subscriptions/retention-message-statuses). For how Apple shows the message and the offer, see [Configure retention messages](https://developer.apple.com/help/app-store-connect/manage-subscriptions/configure-retention-messages).

## Change it later

| To | What happens |
| --- | --- |
| Change who gets the offer, or how often | The Agent updates the offer. These are the only settings Apple lets you change. |
| Change the discount, length or price | The Agent creates a new offer and presents it, then stops presenting the old one. Stopping needs `--confirm`, so the Agent asks you first. |
| Change the message's text | The Agent can change a language's header or body. To change what Apple already approved, the `asc` help says to make a new version: a version itself can't be changed or deleted once it's created, and Apple refuses new languages on an approved version. The Agent makes the new version and sends it for review. Submitting needs `--confirm`, so the Agent asks you first. |
| Use another message | The Agent assigns another message to the plan. It replaces the current one. |

## Stop offering it

- To stop presenting it, the Agent removes the offer from the plan's retention message. That needs `--confirm`, so the Agent asks you first. The offer itself stays, and can be presented again.
- To delete the offer, ask the Agent. That needs `--confirm`, so the Agent asks you first. A deleted offer can't be brought back; to offer it again, create a new one.
- To delete the message, ask the Agent. That needs `--confirm`, so the Agent asks you first. The `asc` help says Apple has no way to unassign a message, so deleting it is how it comes off the plan. To put another message on the plan instead, assign that one: it replaces the current one.

> [!NOTE]
> Choosing which message to show from your own server, at the moment someone cancels, is a separate Apple feature. The `asc` help says it needs Apple's approval and an In-App Purchase API key of its own. This page doesn't cover it; see Apple's [Retention Messaging API](https://developer.apple.com/documentation/retentionmessaging).

## Questions

**Apple refuses to present the offer.**

The plan has no retention message yet. Apple refuses to present a retention offer until a message is assigned to the plan. Ask the Agent to create one and assign it, then to present the offer.

**The Agent says the months aren't allowed.**

The message is "--eligibility-paid-months must be 1-24, 36, 48, or 60" or "--eligibility-wait-months must be between 2 and 24". Pick a number in that range.

**The header or body is too long.**

The message says "--header must be at most 66 characters" or "--body must be at most 144 characters". Shorten the text.

**Can the offer go to people on the monthly plan with a 12-month commitment?**

The `asc` help says Apple targets retention offers at the plan paid up front unless told otherwise. It can target the monthly plan with a 12-month commitment only when the plan offers that in every storefront the offer has a price for.

**Apple refuses the review submission.**

The app needs an App Store version that Apple has approved, or the submission must include one. Ask the Agent to send the message with your next version. See [Submit to App Review and release](https://air.build/docs/app-store/submit-for-review/#submit-a-version).

**Do I need an In-App Purchase key?**

No. Retention messages and retention offers in App Store Connect use the same Apple sign-in as the rest of App Store Connect. Only the server feature in the note above needs a key of its own.
