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

# Read a discount

> shopify_discount_get returns one AIOD discount's full setup — its conditions, rewards, dates, and how it combines with other discounts.

Returns everything about how one discount is set up.

That means: which products, variants or collections it covers; the cart subtotal or item quantity it needs; the customer tags, segments, markets and locations it is limited to; the purchase type; its start and end dates; and what it actually gives — a percentage or amount off, a free gift, free or discounted shipping, or a tier ladder. Plus how it combines with other Shopify discounts.

<Info>
  **Tool name:** `shopify_discount_get` · **Previously:** `get_discount` · **Read-only**
</Info>

## When to use it

Two situations.

**Explaining a discount.** This is what answers "how is this offer set up?" and "why isn't my discount applying at checkout?" — the conditions it returns are precisely what a cart has to satisfy.

**Before editing one.** [Draft a discount](/docs/mcp-server/tools/shopify-discount-draft) and [Create in test mode](/docs/mcp-server/tools/shopify-discount-publish) both take a patch that gets merged onto this configuration. You cannot safely change a field without first knowing what it currently is. Read, then patch.

## Parameters

| Name | Type   | Required | What it does                                                                  |
| ---- | ------ | -------- | ----------------------------------------------------------------------------- |
| `id` | string | **Yes**  | A discount id from [Find discounts](/docs/mcp-server/tools/shopify-discount-find). |

## What comes back

```json theme={null}
{
  "id": "clx8n2k9a0001abcd",
  "title": "Summer BOGO — tees",
  "status": "ACTIVE",
  "discountType": "automatic",
  "template": "bxgy",
  "config": {
    "template": "bxgy",
    "name": { "value": "Summer BOGO — tees" },
    "condition": [ ... ],
    "action": [ ... ],
    "discountAppliesOn": "product",
    "limitQuantity": "1"
  }
}
```

`config` is the full stored rule as an object. `template` is the important one for editing — the *saved* discount's template decides which fields you are allowed to change, regardless of what you send.

## Errors

| Status | Body                                                                               |
| ------ | ---------------------------------------------------------------------------------- |
| `400`  | `{ "error": "Missing id" }`                                                        |
| `404`  | `{ "error": "Discount not found" }` — that id isn't one of this store's discounts. |

## Things people ask that land here

* "Why isn't my free shipping discount applying?"
* "What products does the summer sale cover?"
* "What's the minimum spend on my tiered discount?"
* "Show me the current end date before you extend it."

## Limits

* Setup only. No revenue, no orders, no customer records.
* If a merchant configured a discount with something personal in it — a customer segment, an email condition — that comes back, because it is part of the discount.
