> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/cloud/payments/discounts/editor.md).

# Add or edit a discount

**Where:** Payments → Discounts → New / Edit · `/projects/<project>/payments/discounts/new · …/<discountId>/edit`

{% hint style="danger" %}
This screen is not available in the current version. The route is defined but commented out in `App.tsx` ("V2: customers / pricing / discounts pages hidden — restore when backend support returns"), so opening the URL shows no screen.
{% endhint %}

When the screen returns, this form will set the code, the amount (percentage or fixed), what it applies to, and when it expires — the same form for create and edit. See [Discounts](/cloud/payments/discounts.md).

## API reference

Endpoints: [Payments](/api-reference/payments.md).
