# Offer code page

> The sheet for one code offer on a subscription plan, titled with its name: what it gives, who can redeem it, the Active switch, and the batches of codes made under it.

Source: https://air.build/docs/screens/developer/offer-code-page/

A code offer's sheet shows what the offer gives and who can redeem it, lets you switch it on or off, and lists the codes made under it: batches of one-time codes Apple generates, and custom codes everyone types. It's titled with the offer's reference name.

## Open it

On [Offers](https://air.build/docs/screens/developer/offers/), tap an offer under **Offer Codes**. An offer that's still being created can't be opened yet.

Close it with **Done**: at the top right on iPhone and iPad, at the bottom right on the Mac.

## What's on it

### The offer

| Part | What it shows or does |
| --- | --- |
| **Discount** | **Free Trial**, **Pay As You Go** or **Pay Up Front**. |
| **Length** | How many periods of what length, for example "1 × 1 Month". |
| **Who Can Redeem It** | **Never Subscribed**, **Subscribed Now** and **Lapsed**, as chosen when it was made. |
| **Active** | Whether the codes still work. Turning it off stops them being redeemed. Dimmed while the change is being sent. |
| Footer | "Only the Active switch can be changed after a code is created." |

There's no way to delete a code offer: Apple keeps it. Switch it off instead.

### Codes

| Part | What it shows or does |
| --- | --- |
| One-time codes | A batch Apple generated, for example "500 one-time codes", with "expires" and its date, and "switched off" when it's off. |
| Custom code | The code people type, with how many redemptions it allows, for example "100 redemptions", its expiry, and "switched off" when it's off. |
| **Generate Codes** | Opens [Generate Codes](https://air.build/docs/screens/developer/generate-codes/), to ask Apple for a batch of one-time codes. |
| **Add a Custom Code** | Opens [Custom Code](https://air.build/docs/screens/developer/custom-code/), to add one code everyone can type. |
| Footer | "Apple generates one-time codes and delivers them in App Store Connect." |

On iPhone and iPad **Generate Codes** and **Add a Custom Code** are the last rows of **Codes**; on the Mac they're buttons under it. Both dim while a batch is being made.

The one-time codes themselves aren't shown here: download them from App Store Connect.

## Messages

| Message | When | What to do |
| --- | --- | --- |
| "Loading codes…" | While the batches are read. | Wait. |
| "No codes created for this offer yet." | No batches have been made. | Tap **Generate Codes** or **Add a Custom Code**. |
| Apple's reason, in place of the codes | The batches couldn't be read. | Close the sheet and open it again. |
| Apple's reason, above the codes | Apple refused a new batch. | Fix what Apple names and try again. |
| Apple's reason, above the sections on **Offers** | Apple refused switching **Active**. The switch goes back. | Try again. |
