For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dev Portal
DocsAPI ReferenceLearnCommunityChangelog
DocsAPI ReferenceLearnCommunityChangelog
  • Overview
    • Quick Start
    • Sandboxes
    • Tools & SDKs
    • Support
  • Docs
      • Getting Started
        • Products overview
        • Contextual filters
          • Overview
          • Currency-Specific Promotions
          • Multi-Currency
          • API vs UI Features
            • Brand
            • Category
            • Customer
            • Order
            • Product
            • Shipping
            • Storewide
            • Using logical operators
            • Using multiple rules
    • Archive
    • Closed Beta Programs
Dev Portal
LogoLogo
On this page
  • 10% off storewide except ‘Huggies’, ‘Munchkin’, and ‘Pampers’ brand products (NOT operator)
DocsAdminCatalog and InventoryPromotionsExamples

Storewide Promotion Code Samples

Was this page helpful?
Previous

Shipping

Next

Using logical operators

Built with

10% off storewide except ‘Huggies’, ‘Munchkin’, and ‘Pampers’ brand products (NOT operator)

Request
Response
Example request
1{
2 "name": "10% off storewide except 'Huggies', 'Munchkin', and 'Pampers' brand products",
3 "redemption_type": "AUTOMATIC",
4 "rules": [
5 {
6 "action": {
7 "cart_items": {
8 "discount": {
9 "percentage_amount": "10"
10 },
11 "items": {
12 "not": {
13 "brands": [
14 35,
15 36,
16 37
17 ]
18 }
19 }
20 }
21 },
22 "apply_once": true
23 }
24 ]
25}