> For the complete documentation index, see [llms.txt](https://commanderhelp.verifone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://commanderhelp.verifone.com/feature-references/features-and-products-references/pop-discount/configuring-pop-discount/auto-generate-pop-discount-codes.md).

# Auto Generate POP Discount Codes

Utilizing this feature will create a set of valid POP Codes for an external program to reference.

The generated POP Discount Codes will be added to the transSet document, also known as the Daily Transaction Log, to be parsed out as needed.

The POP Options tab provides a detailed layout of fuel products with the list of POP Discount definitions and perspective discount amounts across each grade.

{% stepper %}
{% step %}
**POP Options**

From POP Discount Configuration, select the **\[POP Options]** tab.

<figure><img src="https://1800087076-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5nJgnNKJ9ZrZeEdr7pqh%2Fuploads%2FgLNxEwc9Pcmcnqr5hYqX%2Fimage.png?alt=media&amp;token=0c6e072f-6033-4b97-9cd4-bcc427a7997d" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}
**Fuel Discount Definitions**

Select a Fuel Discount definition from the drop down menu.
{% endstep %}

{% step %}
**Codes**

Enter the number of desired codes to generate.
{% endstep %}

{% step %}
**Generate**

Click the Generate POP Codes button.
{% endstep %}
{% endstepper %}

{% hint style="info" %}
The maximum number of codes that may be generated per Fuel Discount Definition is 300.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://commanderhelp.verifone.com/feature-references/features-and-products-references/pop-discount/configuring-pop-discount/auto-generate-pop-discount-codes.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
