> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dintero.com/llms.txt
> Use this file to discover all available pages before exploring further.

<AgentInstructions>

## Submitting Feedback

If you encounter incorrect, outdated, or confusing documentation on this page, submit feedback:

POST https://docs.dintero.com/feedback

```json
{
  "path": "/docs/checkout/checkout-express-discount-code",
  "feedback": "Description of the issue"
}
```

Only submit feedback when you have something specific and actionable to report.

</AgentInstructions>

# Discount codes in Express Checkout

> Enable discount codes in Dintero Express Checkout by implementing the Discount Code Update callback and configuring the express discount_codes object.

To enable discount code in Dintero Express Checkout, implement the "Discount
Code Update" callback endpoint:

* [Discount Code Update endpoint](/payments-api.html#tag/example-session-callbacks)

and create payment session where `express_discount_codes` is enabled and
express `discount_codes` is configured with a callback\_url

```json theme={null}
{
    "profile_id": "default",
    "url": {
        "return_url": "https://merchant/return"
    },
    "order": {
        "items": [
            {
                "amount": 2009990,
                "vat_amount": 401998,
                "vat": 25,
                "quantity": 1,
                "line_id": "l1"
            }
        ],
        "amount": 2009990,
        "vat_amount": 401998,
        "currency": "NOK",
        "merchant_reference": "reference"
    },
    "express": {
        "shipping_options": [],
        "discount_codes": {
            "callback_url": "http://merchant/discount_code_callback_url",
            "max_count": 3
        }
    },
    "configuration": {
        "discounts": {
            "express_discount_codes": {
                "enabled": true
            }
        }
    }
}
```
