# Custom Code

> The sheet that adds one custom code to a code offer: the code people type, how many times it can be redeemed, and when it expires.

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

Custom Code adds one code to a code offer, a word you choose that anyone can type, for example in a newsletter or on a poster. You set how many times it can be redeemed in total and when it expires.

## Open it

On an [Offer code page](https://air.build/docs/screens/developer/offer-code-page/), tap **Add a Custom Code**. It's the last row of **Codes** on iPhone and iPad, and a button under **Codes** on the Mac. It's dimmed while a batch is being made.

**Cancel** and **Add** are in the sheet's top bar on iPhone and iPad, and at its bottom right on the Mac.

## What's on it

| Part | What it shows or does | Default |
| --- | --- | --- |
| **Code** | The code people type to redeem the offer. Spaces before and after it are dropped. | Empty |
| **Redemptions** | How many times the code can be redeemed in total. The stepper moves 50 at a time. | 100 |
| **Expires** | The day the code stops working. The date is read in UTC. | 90 days from today |
| Footer | "A single code anyone can enter, valid for the number of redemptions you set." |  |

## Add the code

1. Type the **Code**.
2. Set **Redemptions** and **Expires**.
3. Tap **Add**. The sheet closes at once and the code goes to Apple.

**Add** is dimmed until **Code** has something in it. Apple checks the code when it gets it.

When Apple has taken it, the code shows under **Codes** on the [Offer code page](https://air.build/docs/screens/developer/offer-code-page/) with its redemptions and expiry, for example "100 redemptions".

## Messages

| Message | When | What to do |
| --- | --- | --- |
| Apple's reason, above the codes on the [Offer code page](https://air.build/docs/screens/developer/offer-code-page/) | Apple refused the code. | Fix what Apple names, then open **Custom Code** again. |
