# Promo codes

A promo code is a string an advertiser redeems for credits. Redeeming is the only thing an advertiser does here; the balance those credits land in, and everything else that moves it, is in https://ad.api.imem.me/docs/balance.md | docs_balance.

## Redeeming

- A promo code adds a fixed number of credits to the available balance straight away. The credits can be spent on any campaign.
- Each code works once, across all users.
- The amount a code is worth is set when the code is minted and changes from code to code: read it from the redemption's answer, never assume one.
- Advertisers redeem codes in the Mini App. The request and response shapes are in the OpenAPI document.

## Refusals

| Error | Message | What happened |
| --- | --- | --- |
| `PromocodeNotFoundException` | Promo code not found | No code with that string exists. |
| `PromocodeAlreadyRedeemedException` | This promo code has already been used | The code was already used, by this advertiser or another one. |

A refused redemption credits nothing. There is no retry that helps: a used code stays used, and an unknown one stays unknown.
