# Promo codes

> How to redeem a promo code, get a bonus on a top-up, and what promo credit is: used first, can expire, and is never refunded as cash.

Source: https://legion.ambient.xyz/docs/renting/promo-codes

A promo code gives your organization credit, a bonus on a top-up, or a discount on compute. You use codes in **Spend**, on the Balance & top-ups tab. Only an owner of the organization can redeem a code or add a code to a top-up.

## Redeem a code

1. Open **Spend** and find **Redeem a code**.
2. Enter the code and choose **Check code**. Capital letters don't matter.
3. Legion says what the code gives you, for example how much credit and until when. Nothing is used yet.
4. Choose **Redeem code** to use it.

A redemption has one of these states:

| State | What it means |
| --- | --- |
| Being checked | Legion is checking the code. It usually takes a few seconds. |
| Added | The credit is on your balance, or the discount now applies. |
| Held for review | A person at Ambient is looking at the code. It is applied if it is approved. |
| Not accepted | The code wasn't accepted for your organization. Nothing was added. |

Every code you use is listed under **Promo code history**.

## Get a bonus on a top-up

A top-up bonus code adds extra promo credit to one top-up. Enter it in the **Promo code** field of **Add credit**, next to the amount. Choose **Check code** to see the bonus for that amount before you continue to payment.

- The top-up may need to be at least a minimum amount. If yours is too small, Legion says so.
- The bonus is added after your payment has been credited, not before.
- If the top-up is refunded, part of the bonus is taken back in the same proportion. If the payment is disputed and the money is withdrawn, the whole bonus is taken back.

A bonus code can't be redeemed on its own, and only a bonus code goes with a top-up. Legion tells you which place a code belongs in.

## Promo credit

Promo credit is part of your balance, and it is shown apart from your paid credit in Spend.

- **It is used first.** Every charge, including storage and backups, is paid from your promo credit before your paid credit. Credit that expires soonest is used first.
- **It can expire.** Each grant shows what is left and when it expires. Credit not used by then is removed from your balance.
- **It is never refunded as cash.** Promo credit can't be paid out, withdrawn or refunded. A refund of a top-up returns your own money, not promo credit.

A **discount** code takes a percentage off compute usage (not storage or backups) for a number of days, up to a limit. Spend shows what is left of the limit and when the discount ends.

## When a code doesn't work

| What you see | What to do |
| --- | --- |
| That code isn't valid | Check the spelling and try again. |
| That code has expired, isn't active yet or has been used up | The code can't be used now. |
| You've already used that code | Your organization has used it as many times as it can. |
| That code isn't available to you | Legion says why, for example that the code is only for new organizations or for a first top-up, or that you still have credit or a discount from another code. |
| Use that code when you add credit | It is a top-up bonus code. Enter it in **Add credit**. |
| Promo codes are paused right now | Try again later. |
| Too many tries | Failed attempts are limited per hour. Wait, then try again. |

The same refusals come from the API as [problem codes](https://legion.ambient.xyz/docs/errors), for example `promo_code_expired` and `promo_code_not_eligible`. The calls behind this page are [check a code](https://legion.ambient.xyz/docs/api/billing/preview-promo-code), [redeem a code](https://legion.ambient.xyz/docs/api/billing/redeem-promo-code), [your redemptions](https://legion.ambient.xyz/docs/api/billing/list-promo-redemptions) and [your promo credit](https://legion.ambient.xyz/docs/api/billing/get-promo-credit). Redeeming takes an `Idempotency-Key`, so a retry never uses a code twice.

See also [Credit and billing](https://legion.ambient.xyz/docs/renting/credit-and-billing) and [Usage and spend](https://legion.ambient.xyz/docs/renting/usage-and-spend).
