# Create and check discount codes

> Create and check discount codes: 1 companies fully do it, 17 with a limit, 23 carry the tag. Every listing in Commerce & checkout with the reason and a source.

- Canonical: https://www.anchorterminal.com/niches/commerce.manage-discounts/
- Markdown: https://www.anchorterminal.com/niches/commerce.manage-discounts/index.md (~1,550 tokens)
- Slim: https://www.anchorterminal.com/niches/commerce.manage-discounts/index.min.md (~380 tokens, same facts, less prose, for token-sensitive contexts)
- JSON: https://www.anchorterminal.com/niches/commerce.manage-discounts/index.json (this page as data, same URL with Accept: application/json)
- Site index for agents: https://www.anchorterminal.com/llms.txt (the key docs and every listing in one file, at most 16 MB, about 4 million tokens: https://www.anchorterminal.com/llms-full.txt)
- API: https://www.anchorterminal.com/api/v1/index.json
- MCP: https://www.anchorterminal.com/mcp (the whole catalogue as tools, no key)
- DNS: dig +short TXT <slug>.grade.anchorterminal.com (the grade as a DNS TXT record, for a sandbox with no HTTP where names still resolve; also top., best.<category>. and <a>.vs.<b>. under the zone, and the same under grade.letme.dev)
- Licence: CC BY 4.0, credit Anchor Terminal and link this page (https://www.anchorterminal.com/terms/#data)
- Updated: 2026-11-15

One company's docs show a full fit.

| Companies, full fit | With a limit | Carry the tag | Share of the category's work | First-hand accounts |
| --- | --- | --- | --- | --- |
| 1 | 17 | 23 | 5 | 3 |

## What counts as done

The code created with the stated rules and verified by applying it to a test cart, or a rejected code explained with a machine-readable reason.

Measured, for our own tests: done in at most 3 calls.

How agents ask for it: make a 10% code for this customer list; extend this code until Friday; why didn't this coupon apply; how much store credit is left

## Does the job

The docs show it meets the test above, and nothing we read says otherwise.

- **Spree Commerce (Vendo Connect Inc)**: Cart discount_codes returns machine-readable errors such as coupon_code_not_eligible, but creating a promotion with its rules through create_resource may take more than one call.

## Does the job, with a limit

It does the job, but something in the docs or a user's account will get in an agent's way. The limit is named in each row.

- **Adobe Commerce (Magento) (Adobe Inc.)**: applyCouponToCart applies a code to a test cart and returns an error message, but no machine-readable code list for coupon rejection appears on the page.
- **BigCommerce API + MCP (Commerce.com US, Inc.)**: create_promotion makes one rule, created disabled, and get_promotions finds a code's promotion, but no MCP tool applies a code to a test cart or returns a rejection reason; create is not safe to retry.
- **Commerce Layer API + MCP (Commerce Layer, Inc.)**: Promotions, coupons and external promotions exist in the Core API, but no machine-readable coupon rejection reason was read.
- **commercetools (commercetools GmbH)**: create_discount_codes and create_cart_discounts exist and update_carts can add a code to a test cart, but the rejection-state field was not read this run.
- **Ecwid by Lightspeed (Ecwid, Inc.)**: Discount coupons and promotions have create, update and search endpoints, but with no server-side cart there is no way to test a code or read a rejection reason.
- **Elastic Path API + MCP (Elastic Path Software Inc.)**: Promotions, promotion codes and cart promotion endpoints exist, but no machine-readable rejection reason was read.
- **Fabric (Commerce Fabric, Inc.)**: Promotions, coupons and coupon-codes APIs create and manage codes, but applying one to a test cart and reading a rejection reason was not read.
- **Medusa API + MCP (MedusaJS, Inc.)**: Store routes add promotions to a cart, but no machine-readable rejection reasons were found in the reference, and the MCP can only read promotions.
- **Saleor API + MCP (Saleor Commerce sp. z o.o.)**: CheckoutErrorCode gives VOUCHER_NOT_APPLICABLE, but promotion and voucher settings are high-impact and checkouts are excluded from the MCP, so a test-cart check needs the API directly.
- **Shopify API + MCP (Shopify Inc.)**: Discount codes are created over the Admin API, but accounts report combination and once-per-customer rules not enforced after checkout and no webhook when a discount expires.
- **Shopware (shopware AG)**: Promotions are entities the upsert tool can write with a dry run, but no promotion tool or cart test path exists in the MCP, and rejection reasons were not read.
- **Snipcart API + MCP (Snipcart inc.)**: create_discount takes code, cart-total or product triggers and amounts, but with no server-side cart a code cannot be tested and no rejection reason is returned.
- **Square (Block, Inc.)**: Discounts and pricing rules are catalogue objects, gift cards and loyalty are services, but no discount-code object or rejection reason was found in what was read.
- **Swell (Swell Commerce Corp.)**: create_coupon and create_promotion take the rules but create them inactive; only a person can activate them in the dashboard, so the agent cannot test a code on a cart.
- **Vendure (Elevantiq GmbH)**: apply_coupon_code tests a code on a cart, but no admin tool creates promotions, and the docs note a valid coupon may sit in couponCodes without changing the total.
- **Wix Stores and eCommerce API (Wix.com Ltd.)**: Cart V2 add-coupon returns machine-readable codes such as INVALID_COUPON_CODE, INVALID_COUPON_STATUS and MAX_COUPONS_PER_CART_EXCEEDED; the Coupons create page was listed but not read.
- **WooCommerce API + MCP (WooCommerce, Inc.)**: REST coupons exist and Store API cart/coupons returns an error when a code doesn't apply, but no coupon ability exists in the MCP, so an agent there refuses.

- not this job: Agentzon (Merit Systems Inc (agentzon.co terms); Merit Systems, Inc. (merit.systems terms)): No discount or coupon object in the API.
- not this job: doola MCP (doola): No discounts.

## What stops agents finishing

- no discount tools in the agent interface
- combination rules not enforced outside checkout
- no event when a discount expires

## Around it

Before: crm.customer-list, chat.user-request. After: email.send, commerce.cart-to-checkout.

## Where this comes from

Weight 5 of 100 in Commerce & checkout: 3 of 49 accounts (WooCommerce coupon abilities, two Shopify forum threads); one of the four buyer checks, so kept

As data: https://www.anchorterminal.com/api/v1/use-cases/commerce.manage-discounts.json, or the MCP tool get_use_case with id commerce.manage-discounts. Draft, read 2026-11-15 from public docs and first-hand accounts, not yet reviewed by a person.

---

Query this catalogue directly over MCP: https://www.anchorterminal.com/mcp (Streamable HTTP, no key). How: https://www.anchorterminal.com/agents/#mcp
