Generate unique, single-use discount codes in your store and deliver them inside your automations.
The Coupon step creates a real discount code in your Shopify or WooCommerce store — unique to each contact, single-use, and with an expiry you control. Because the code is created in your store, it works at checkout like any other discount.
After a Coupon step, use the coupon merge tags in any later email or WhatsApp step:
Coupon code — the contact’s unique code, often inside a styled coupon block.
Coupon expiry date — reinforces urgency.
Checkout link with coupon applied — in cart recovery flows, one click restores the cart and applies the discount.
Place the Coupon step immediately before the email that reveals it — the code is generated when the contact reaches the step, so its expiry countdown starts at the right moment.
When an order uses a generated code, the purchase is attributed to the automation and shows up in its revenue analytics.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Retainful","description":"Retainful documentation for Shopify, WooCommerce, and ecommerce businesses. Learn how to recover abandoned carts, create email campaigns, build marketing automations, use the Retainful API, and increase repeat sales through customer retention.","colors":{"primary":"#F85C1B","light":"#FF7A3D","dark":"#D94A0E"},"logo":{"light":"https://mintcdn.com/retainful/g1y_gjHObY2ffyJj/images/Logo.svg?fit=max\u0026auto=format\u0026n=g1y_gjHObY2ffyJj\u0026q=85\u0026s=fa1b4412d689384ddf8a2a0c8363ab08","dark":"https://mintcdn.com/retainful/azsORbPtFH-KdMvR/images/retianful-logo-dark-mode.svg?fit=max\u0026auto=format\u0026n=azsORbPtFH-KdMvR\u0026q=85\u0026s=dc56df36665daea3c9d8b83dcbebc222"},"favicon":{"light":"https://mintcdn.com/retainful/YbnU1lv-LfLa9ysj/images/retainful-fav-icon.svg?fit=max\u0026auto=format\u0026n=YbnU1lv-LfLa9ysj\u0026q=85\u0026s=c19407a1664b24ff3e40b7154d0f8eac","dark":"https://mintcdn.com/retainful/YbnU1lv-LfLa9ysj/images/retainful-fav-icon.svg?fit=max\u0026auto=format\u0026n=YbnU1lv-LfLa9ysj\u0026q=85\u0026s=c19407a1664b24ff3e40b7154d0f8eac"},"appearance":{"default":"light"},"navbar":{"links":[{"href":"https://app.retainful.com","label":"Log in"}],"primary":{"type":"button","label":"Start free","href":"https://app.retainful.com/register"}},"footer":{"socials":{"website":"https://www.retainful.com"}},"integrations":{"gtm":{"tagId":"GTM-T9BMB4BC"}},"errors":{"404":{"redirect":true}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"retainful","hasAudioNarration":false,"actualSubdomain":"retainful","customDomains":["help.retainful.com"],"gitSource":{"type":"github","owner":"mintlify-community","repo":"docs-retainful-58de66c5","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"collectionId":"7879caa2-4912-48ad-b512-cda5c2571630","liveDeploymentHistoryId":"6ad0b2525ee9fc6a32da1314","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ad0b2525ee9fc6a32da1314"},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6ad0b2525ee9fc6a32da1314","clientVersion":"0.0.3965","searchFilterCounts":[{"language":"default","tag":"Documentation","count":46},{"language":"default","tag":"Automations","count":13},{"language":"default","tag":"Developers","count":11},{"language":"default","tag":"Audience","count":7},{"language":"default","tag":"Use cases","count":7},{"language":"default","tag":"Campaigns","count":5},{"language":"default","tag":"Signup forms","count":5},{"language":"default","tag":"Getting started","count":4},{"language":"default","tag":"Email setup","count":4},{"language":"default","tag":"Account \u0026 billing","count":3}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-v7-file-tree","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"pause-universal-search-reconcile","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"per-site-search-delta","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-private-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-nav-generations","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"byok-sep-25","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"vite-origin","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-agent-model-picker","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-updated-9-15","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"automations/coupons","slug":"/automations/coupons","pageMetadata":{"title":"Coupons","description":"Generate unique, single-use discount codes in your store and deliver them inside your automations.","icon":"ticket","href":"/automations/coupons"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Generate unique, single-use discount codes in your store and deliver them inside your automations.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,code:`code`,em:`em`,li:`li`,p:`p`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Table,Tip}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Tip)_missingMdxReference(`Tip`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`The `,_jsx(_components.strong,{children:`Coupon`}),` step creates a real discount code in your Shopify or WooCommerce store — unique to each contact, single-use, and with an expiry you control. Because the code is created in your store, it works at checkout like any other discount.`]}),`\n`,_jsx(Heading,{level:`2`,id:`why-unique-codes-beat-shared-codes`,children:`Why unique codes beat shared codes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`No leaks`}),` — a shared code like `,_jsx(_components.code,{children:`SAVE10`}),` ends up on coupon sites within hours. A unique code works once, for one person.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Real urgency`}),` — each code carries its own expiry date, so “expires in 48 hours” is actually true.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Clean attribution`}),` — when a unique code is redeemed, you know exactly which automation and email drove the sale.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`configure-the-coupon-step`,children:`Configure the coupon step`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Setting`}),_jsx(_components.th,{children:`Options`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Discount type`})}),_jsx(_components.td,{children:`Fixed amount, percentage, or free shipping.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Applies to`})}),_jsx(_components.td,{children:`The entire order, specific products, or specific collections.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Minimum purchase`})}),_jsx(_components.td,{children:`Optional minimum order value or minimum quantity.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Code prefix`})}),_jsxs(_components.td,{children:[`Codes are auto-generated; the prefix keeps them recognizable, e.g. `,_jsx(_components.code,{children:`WELCOME-8FK2D1`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Activation`})}),_jsx(_components.td,{children:`Active immediately, or starting at a specific date.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Expiration`})}),_jsx(_components.td,{children:`Never, after a number of days, on a specific date, or up to one year.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Combinations`})}),_jsx(_components.td,{children:`Whether the code can stack with product, order, or shipping discounts (Shopify).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Exclude sale items`})}),_jsx(_components.td,{children:`Skip already-discounted products (WooCommerce).`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`show-the-code-in-your-messages`,children:`Show the code in your messages`}),`\n`,_jsxs(_components.p,{children:[`After a Coupon step, use the coupon `,_jsx(_components.a,{href:`/campaigns/personalization`,children:`merge tags`}),` in any later email or WhatsApp step:`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Coupon code`}),` — the contact’s unique code, often inside a styled coupon block.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Coupon expiry date`}),` — reinforces urgency.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Checkout link with coupon applied`}),` — in cart recovery flows, one click restores the cart `,_jsx(_components.em,{children:`and`}),` applies the discount.`]}),`\n`]}),`\n`,_jsx(Tip,{children:_jsxs(_components.p,{children:[`Place the Coupon step immediately `,_jsx(_components.strong,{children:`before`}),` the email that reveals it — the code is generated when the contact reaches the step, so its expiry countdown starts at the right moment.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`recommended-recipes`,children:`Recommended recipes`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Welcome offer`}),` — 10% off, expires in 7 days, minimum purchase to protect margins.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Cart recovery closer`}),` — hold the discount until the `,_jsx(_components.em,{children:`last`}),` email; many shoppers return without one.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Next-order coupon`}),` — after a first purchase, a code valid for 30 days drives the second order, which is the hardest one to win.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Win-back`}),` — a stronger offer (15–20%) for customers inactive 90+ days, with a short expiry.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`tracking-redemptions`,children:`Tracking redemptions`}),`\n`,_jsxs(_components.p,{children:[`When an order uses a generated code, the purchase is attributed to the automation and shows up in its `,_jsx(_components.a,{href:`/automations/analytics`,children:`revenue analytics`}),`.`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Coupons","description":"Generate unique, single-use discount codes in your store and deliver them inside your automations.","icon":"ticket","href":"/automations/coupons"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Why unique codes beat shared codes","slug":"why-unique-codes-beat-shared-codes","depth":2,"children":[]},{"title":"Configure the coupon step","slug":"configure-the-coupon-step","depth":2,"children":[]},{"title":"Show the code in your messages","slug":"show-the-code-in-your-messages","depth":2,"children":[]},{"title":"Recommended recipes","slug":"recommended-recipes","depth":2,"children":[]},{"title":"Tracking redemptions","slug":"tracking-redemptions","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"retainful","siteName":"Retainful","title":"Coupons - Retainful","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-06-11T06:11:34.991Z","originalFileLocation":"automations/coupons.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Generate unique, single-use discount codes in your store and deliver them inside your automations.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Retainful\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Coupons - Retainful\">\u003cmeta data-mint-head property=\"og:description\" content=\"Generate unique, single-use discount codes in your store and deliver them inside your automations.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Retainful\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.retainful.com/automations/coupons\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://retainful.mintlify.app/_mintlify/api/og/v2?division=Automations\u0026amp;title=Coupons\u0026amp;description=Generate+unique%2C+single-use+discount+codes+in+your+store+and+deliver+them+inside+your+automations.\u0026amp;theme=77672df225165d394d648f98\u0026amp;signature=be37c34360ecfaa7479b43cd0d9579c3b32042044a7377e6aeb01e15268681ad\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Coupons - Retainful\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Generate unique, single-use discount codes in your store and deliver them inside your automations.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://retainful.mintlify.app/_mintlify/api/og/v2?division=Automations\u0026amp;title=Coupons\u0026amp;description=Generate+unique%2C+single-use+discount+codes+in+your+store+and+deliver+them+inside+your+automations.\u0026amp;theme=77672df225165d394d648f98\u0026amp;signature=be37c34360ecfaa7479b43cd0d9579c3b32042044a7377e6aeb01e15268681ad\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/retainful/sFkz0TgbYet946pJ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Retainful\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#F85C1B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.retainful.com/automations/coupons\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/automations/coupons.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.retainful.com/#organization\",\"name\":\"Retainful\",\"url\":\"https://help.retainful.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/retainful/g1y_gjHObY2ffyJj/images/Logo.svg?fit=max\u0026auto=format\u0026n=g1y_gjHObY2ffyJj\u0026q=85\u0026s=fa1b4412d689384ddf8a2a0c8363ab08\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.retainful.com#website\",\"name\":\"Retainful\",\"url\":\"https://help.retainful.com\",\"publisher\":{\"@id\":\"https://help.retainful.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.retainful.com/automations/coupons#webpage\",\"url\":\"https://help.retainful.com/automations/coupons\",\"name\":\"Coupons\",\"description\":\"Generate unique, single-use discount codes in your store and deliver them inside your automations.\",\"dateModified\":\"2026-06-11T06:11:34.991Z\",\"isPartOf\":{\"@id\":\"https://help.retainful.com#website\"},\"breadcrumb\":{\"@id\":\"https://help.retainful.com/automations/coupons#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.retainful.com/automations/coupons#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Automations\",\"item\":\"https://help.retainful.com/automations/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Coupons\",\"item\":\"https://help.retainful.com/automations/coupons\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://help.retainful.com/automations/coupons#article\",\"headline\":\"Coupons\",\"name\":\"Coupons\",\"description\":\"Generate unique, single-use discount codes in your store and deliver them inside your automations.\",\"url\":\"https://help.retainful.com/automations/coupons\",\"mainEntityOfPage\":{\"@id\":\"https://help.retainful.com/automations/coupons#webpage\"},\"dateModified\":\"2026-06-11T06:11:34.991Z\",\"publisher\":{\"@id\":\"https://help.retainful.com/#organization\"},\"isPartOf\":{\"@id\":\"https://help.retainful.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Retainful\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Retainful","nav":{"global":null,"tabs":[{"tab":"Documentation","groups":[{"group":"Get started","pages":[{"title":"Welcome to Retainful","sidebarTitle":"Welcome","icon":"hand-wave","href":""},{"title":"Quickstart","icon":"rocket","href":"/quickstart"}]},{"group":"Connect your site","pages":[{"title":"Connect Shopify","icon":"shopify","iconType":"brands","href":"/integrations/shopify"},{"title":"Connect WooCommerce","icon":"https://cdn.simpleicons.org/woo/9ca3af","href":"/integrations/woocommerce"},{"title":"Connect WordPress","icon":"wordpress","href":"/integrations/wordpress"}]},{"group":"Email setup","pages":[{"title":"Sending domains","icon":"globe","href":"/email-setup/sending-domains"},{"title":"Sender addresses","icon":"at","href":"/email-setup/sender-addresses"},{"title":"Deliverability best practices","icon":"shield-check","href":"/email-setup/deliverability"},{"title":"Shortcodes","icon":"brackets-curly","href":"/email-setup/shortcodes"}]},{"group":"Campaigns","pages":[{"title":"Campaigns overview","icon":"envelope","href":"/campaigns/overview"},{"title":"Create a campaign","icon":"paper-plane","href":"/campaigns/create-a-campaign"},{"title":"Email editor","icon":"pen-ruler","href":"/campaigns/email-editor"},{"title":"Personalization","icon":"user-pen","href":"/campaigns/personalization"},{"title":"Campaign analytics","icon":"chart-line","href":"/campaigns/analytics"}]},{"group":"Automations","pages":[{"title":"Automations overview","icon":"diagram-project","href":"/automations/overview"},{"title":"Create an automation","icon":"wand-magic-sparkles","href":"/automations/create-an-automation"},{"title":"Triggers","icon":"bolt","href":"/automations/triggers"},{"title":"Steps","description":"The building blocks of every flow: actions, timing, and logic.","icon":"shoe-prints","href":"/automations/steps"},{"title":"Coupons","icon":"ticket","href":"/automations/coupons"},{"group":"Use cases","icon":"grid-2","pages":[{"title":"Automation use cases","description":"A library of proven, high-ROI automations — what each one is for, when to use it, and the sequence that works.","icon":"grid-2","href":"/automations/use-cases/overview"},{"title":"Abandoned cart recovery","icon":"cart-shopping","href":"/automations/abandoned-cart-recovery"},{"title":"Welcome series","icon":"envelope-open-text","href":"/automations/use-cases/welcome-series"},{"title":"Post-purchase \u0026 cross-sell","icon":"heart","href":"/automations/use-cases/post-purchase"},{"title":"Replenishment reminder","icon":"arrows-rotate","href":"/automations/use-cases/reorder-reminder"},{"title":"Win-back","icon":"user-clock","href":"/automations/use-cases/win-back"},{"title":"Back in stock","icon":"bell","href":"/automations/use-cases/back-in-stock"}]},{"title":"Automation analytics","icon":"chart-line","href":"/automations/analytics"}]},{"group":"Audience","pages":[{"title":"Audience overview","icon":"users","href":"/audience/overview"},{"title":"Manage contacts","icon":"address-book","href":"/audience/contacts"},{"title":"Lists","href":"/audience/lists"},{"title":"Segments","icon":"filter","href":"/audience/segments"},{"title":"Import contacts","icon":"file-import","href":"/audience/import-contacts"},{"title":"Export contacts","icon":"file-export","href":"/audience/export-contacts"},{"title":"Custom fields","icon":"sliders","href":"/audience/custom-fields"},{"title":"Suppressed contacts","icon":"user-slash","href":"/audience/suppressed-contacts"}]},{"group":"Signup forms","pages":[{"title":"Signup forms overview","icon":"window-restore","href":"/forms/overview"},{"title":"Create a form","icon":"square-plus","href":"/forms/create-a-form"},{"title":"Form use cases","icon":"lightbulb","href":"/forms/use-cases"},{"title":"Display rules","icon":"crosshairs","href":"/forms/display-rules"},{"title":"Form analytics","icon":"chart-line","href":"/forms/analytics"}]},{"group":"Account \u0026 billing","pages":[{"title":"Team and roles","icon":"users-gear","href":"/account/team-and-roles"},{"title":"Billing and plans","icon":"credit-card","href":"/account/billing-and-plans"},{"title":"Account security","icon":"lock","href":"/account/security"}]},{"group":"WhatsApp","pages":[{"title":"Set up WhatsApp","icon":"comments","href":"/whatsapp/setup"},{"title":"Message templates","icon":"message","href":"/whatsapp/message-templates"}]},{"group":"Troubleshooting (WooCommerce)","icon":"wrench","pages":[{"title":"Fix: \"WooCommerce plugin not installed\"","sidebarTitle":"Fix: plugin not installed","icon":"triangle-exclamation","href":"/troubleshooting/fix-woocommerce-plugin-not-installed"},{"title":"Purchased customers still get abandoned cart emails","sidebarTitle":"Abandoned cart emails after purchase","icon":"cart-shopping","href":"/troubleshooting/woocommerce-abandoned-cart-emails-after-purchase"}]}]},{"tab":"Developers","pages":[{"title":"Developers","href":"/developers/overview"}]}]},"title":"Coupons - Retainful","buildId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","deploymentId":"dpl_849ArpqvBiCczQiT1Y1stNGpbqHT","dynamics":[],"chunks":[]}