> For the complete documentation index, see [llms.txt](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://script-and-theory.gitbook.io/all-in-one-commerce-docs/checkout-blocks/discounts.md).

# Discounts

This category enables you to create and manage discount blocks that can be applied during checkout. You can set up various rules for discounts, such as offering percentage-based discounts, fixed-price discounts, or time-limited offers. These blocks can be triggered based on specific customer actions, like meeting a minimum purchase threshold or adding certain products to their cart.

**Key Features:**

1. Set up discount codes or automatic discounts for customers during checkout.
2. Offer promotions based on specific actions like order amount or cart content.
3. Create limited-time offers to encourage quick purchases and boost sales.

**How to Use:**

1. Click on the button “Add discount” and select the discount type and create the discount according to the requirements set by the rules.&#x20;

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXeFQN40-XUACfbDJswFnjCdkpyHigz3TRQ6OSWjKGbGWQkOKb2iDe6Omf9R-ClVHqYvbpGuOE0B7nd1TsTKhjHP28buzzooVccVCqt3kXMfAjcAsPFOUR-ADx7giI-pyWh8aY4?key=PWWdpJ3Y_qEUOcs-2MfQnVdS" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXc2rZQua6Qay5CzgSg0C138eySs9QiDHo9JiD51SAdLysAP3dEQ--hTUTWPDSydWGXpFTnFUZn1tyAh72KqPm2ccNjKq1vv1jWijJzsncT0GeeGVgiWgwR3aKLRf-m38a-B3HCH?key=PWWdpJ3Y_qEUOcs-2MfQnVdS" alt=""><figcaption></figcaption></figure>

**Order Discount**

<figure><img src="/files/r5Ua2aO6nnrUUNMXU8K4" alt=""><figcaption></figcaption></figure>

**Shipping Discount**

<figure><img src="/files/PBWJex9bRF5tzCOCsziK" alt=""><figcaption></figcaption></figure>


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://script-and-theory.gitbook.io/all-in-one-commerce-docs/checkout-blocks/discounts.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
