Thanx sends users push notifications in a variety of situations, such as when they make a purchase or earn a reward.
We can send push notifications to your app as well. When you are ready to
register your app with Thanx for push notifications, you should send your CSM at
Thanx your APNS certificate, FCM server key, and sender ID via a secure
mechanism, such as Dropbox TransferThe rest of this page provides information regarding the types of push
notifications that Thanx currently sends.A push notification payload will contain an event key and a merchant key. Each
notification type may have other information provided. The sample notification
text provided is not set in stone and will sometimes vary depending on the kinds
of campaigns a merchant is running.
{ aps: { "alert": "You just made your first purchase at Pizza Merchant! You're now 56% towards your next reward here!", "badge": 1, "sound": "default", "content-available": 1 } "merchant_id": "oiu234oiurw", "event": "purchase_discount_applied", "purchase_id": "wotu310589"}
{ "content_available": true, "data": { "message": "You just made your first purchase at Pizza Merchant! You're now 56% towards your next reward here!", "merchant_id": "oiu234oiurw", "event": "purchase_discount_applied", "purchase_id": "wotu310589" }, "notification": { "title": "You just made your first purchase at Pizza Merchant! You're now 56% towards your next reward here!" }}
A user activated a statement credit reward, and this reward was applied to the
purchase.Thanx! You just saved $10 at Pizza Merchant! It’ll show up on your credit card
statement in about two days.
A user’s receipt was accepted and they were granted progress toward their
loyalty reward.Heads up: Pizza Merchant granted you credit for $15.63 toward your next
reward.
A user had activated a statement credit reward, but didn’t spend enough money on
their subsequent purchase.We couldn’t apply your statement credit reward at Pizza Merchant - it was less
than the $25 minimum! We’ll try to apply it to your next purchase.
This purchase resulted in a user earning their loyalty reward.Cha-ching! You just earned $10 off your purchase at Pizza Merchant! Open up
Pizza Merchant and activate it when you’re ready to use it.
A user made a purchase and had a reward they could have used.Heads up: you had a reward waiting for you at Pizza Merchant that you could
have used! Activate it before your next visit!
A user made a purchase that was too small to count for loyalty progress.Your purchase came in from Pizza Merchant but it was under the minimum
purchase. Make a purchase over $5 to earn loyalty progress.
A merchant’s settings require a settlement to come in before the user can be
granted loyalty progress.Your Pizza Merchant purchase came through but reward progress won’t apply until
your credit card purchase settles. Stay tuned!
A user made a purchase that counted toward tier progress. If a merchant has both
a loyalty campaign and tiers, the loyalty progress message will be sent instead.You’re on your way! Spend $670.56 before the end of the year to earn Silver.
This text is customizable by the merchant when they run a campaign. If
customized text isn’t provided, the following text is used.You have a new reward from Pizza Merchant!
Deprecated. The 0-10 NPS rating is retired. The purchase_nps_prompt
event and its feedback_id payload go away with it. The post-order prompt
continues as a thumbs up/down rating, with no equivalent event at launch.
Contact your Thanx representative before you depend on this event.
How was your visit to Pizza Merchant?
event: :purchase_nps_prompt
Additional payload keys:
purchase_id: 'to35yu2o4i6y34io2j24'
feedback_id: 'ghjh2k34j5l23kj44566'
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Thanx","public":true,"colors":{"primary":"#129B9B","light":"#13C1BF","dark":"#129B9B"},"logo":{"light":"https://mintcdn.com/thanx/NEzLP0j6kJjm2liR/logo/light.svg?fit=max\u0026auto=format\u0026n=NEzLP0j6kJjm2liR\u0026q=85\u0026s=8b3bd3f1ffbb1567714a92067df956d9","dark":"https://mintcdn.com/thanx/NEzLP0j6kJjm2liR/logo/dark.svg?fit=max\u0026auto=format\u0026n=NEzLP0j6kJjm2liR\u0026q=85\u0026s=9b7fc286cc5789385ace66cf725d131f"},"favicon":"https://mintcdn.com/thanx/slNzKdUXQiByOc6X/favicon.png?fit=max\u0026auto=format\u0026n=slNzKdUXQiByOc6X\u0026q=85\u0026s=bc7fda50982b59fe2dd5384ca7bd2961","api":{},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Help Center","icon":"book-bookmark","href":"https://help.thanx.com/hc/en-us"},{"anchor":"Thanx Product Updates","icon":"bullhorn","href":"https://thanx.launchnotes.io/"},{"anchor":"Status","icon":"wave-pulse","href":"https://status.thanx.com"},{"anchor":"Email Support","icon":"envelope","href":"mailto:developer.support@thanx.com"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"thanx","hasAudioNarration":false,"actualSubdomain":"thanx","customDomains":["docs.thanx.com"],"gitSource":{"type":"github","owner":"thanx","repo":"thanx-docs","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6ae11cec017d49fc88baee5e","collectionId":"5fe6e5e5-5979-44f1-bcb0-e50bec4fab97","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6ae11cec017d49fc88baee5e"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6ae11cec017d49fc88baee5e","clientVersion":"0.0.3990","searchFilterCounts":[{"language":"default","tag":"Reference","count":100},{"language":"default","tag":"Consumer API","count":90},{"language":"default","tag":"Data Exports","count":39},{"language":"default","tag":"Partner API","count":32},{"language":"default","tag":"Thanx Connex","count":24},{"language":"default","tag":"Destination Setup","count":23},{"language":"default","tag":"Overview","count":22},{"language":"default","tag":"Models","count":10},{"language":"default","tag":"Users","count":8},{"language":"default","tag":"Loyalty API","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"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":"workos-sso-scim","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},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"isAtlas":false,"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"consumer/guides/push-notifications","slug":"/consumer/guides/push-notifications","pageMetadata":{"title":"Push Notifications","description":"Thanx sends users push notifications in a variety of situations, such as when they make a purchase or earn a reward.","href":"/consumer/guides/push-notifications"},"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: \"Thanx sends users push notifications in a variety of situations, such as when they make a purchase or earn a reward.\"\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={code:`code`,em:`em`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Heading,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(_components.p,{children:`We can send push notifications to your app as well. When you are ready to\nregister your app with Thanx for push notifications, you should send your CSM at\nThanx your APNS certificate, FCM server key, and sender ID via a secure\nmechanism, such as Dropbox Transfer`}),`\n`,_jsx(_components.p,{children:`The rest of this page provides information regarding the types of push\nnotifications that Thanx currently sends.`}),`\n`,_jsx(_components.p,{children:`A push notification payload will contain an event key and a merchant key. Each\nnotification type may have other information provided. The sample notification\ntext provided is not set in stone and will sometimes vary depending on the kinds\nof campaigns a merchant is running.`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Notification object example for iOS`,numberOfLines:`11`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` aps:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"alert\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"You just made your first purchase at Pizza Merchant! You're now 56% towards your next reward here!\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"badge\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 1,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"sound\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"default\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"content-available\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 1`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"merchant_id\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"oiu234oiurw\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"event\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"purchase_discount_applied\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"purchase_id\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"wotu310589\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Notification object example for Android`,numberOfLines:`12`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`12`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"content_available\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` true`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"message\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"You just made your first purchase at Pizza Merchant! You're now 56% towards your next reward here!\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"merchant_id\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"oiu234oiurw\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"event\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"purchase_discount_applied\",`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"purchase_id\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"wotu310589\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"notification\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"You just made your first purchase at Pizza Merchant! You're now 56% towards your next reward here!\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]}),`\n`,_jsx(Heading,{level:`2`,id:`purchase-notifications`,children:`Purchase notifications`}),`\n`,_jsx(_components.p,{children:`When a user makes a purchase, one of the following notifications is sent:`}),`\n`,_jsx(Heading,{level:`3`,id:`discount-applied`,children:`Discount Applied`}),`\n`,_jsx(_components.p,{children:`A user activated a statement credit reward, and this reward was applied to the\npurchase.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Thanx! You just saved $10 at Pizza Merchant! It’ll show up on your credit card\nstatement in about two days.`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :purchase_discount_applied`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`granted`,children:`Granted`}),`\n`,_jsx(_components.p,{children:`A user’s receipt was accepted and they were granted progress toward their\nloyalty reward.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Heads up: Pizza Merchant granted you credit for $15.63 toward your next\nreward.`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :progress_granted`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`under-minimum`,children:`Under Minimum`}),`\n`,_jsx(_components.p,{children:`A user had activated a statement credit reward, but didn’t spend enough money on\ntheir subsequent purchase.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`We couldn’t apply your statement credit reward at Pizza Merchant - it was less\nthan the $25 minimum! We’ll try to apply it to your next purchase.`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :reward_under_minimum`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`reward_id: 'ri3of2o5i46o32iu4u4k'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reward-earned`,children:`Reward Earned`}),`\n`,_jsx(_components.p,{children:`This purchase resulted in a user earning their loyalty reward.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Cha-ching! You just earned $10 off your purchase at Pizza Merchant! Open up\nPizza Merchant and activate it when you’re ready to use it.`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :purchase_reward_earned`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`reward_id: 'ri3of2o5i46o32iu4u4k'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`initial-purchase`,children:`Initial Purchase`}),`\n`,_jsx(_components.p,{children:`The user made their first purchase.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You just made your first purchase at Pizza Merchant! You’re now 56% towards\nyour next reward here!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :first_purchase`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reward-unused`,children:`Reward Unused`}),`\n`,_jsx(_components.p,{children:`A user made a purchase and had a reward they could have used.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Heads up: you had a reward waiting for you at Pizza Merchant that you could\nhave used! Activate it before your next visit!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :purchase_reward_unused`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`reward_id: 'ri3of2o5i46o32iu4u4k'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`invalid-purchase-amount`,children:`Invalid Purchase Amount`}),`\n`,_jsx(_components.p,{children:`A user made a purchase that was too small to count for loyalty progress.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Your purchase came in from Pizza Merchant but it was under the minimum\npurchase. Make a purchase over $5 to earn loyalty progress.`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :purchase_under_minimum`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`settlement-required`,children:`Settlement Required`}),`\n`,_jsx(_components.p,{children:`A merchant’s settings require a settlement to come in before the user can be\ngranted loyalty progress.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Your Pizza Merchant purchase came through but reward progress won’t apply until\nyour credit card purchase settles. Stay tuned!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :purchase_settlement_required`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`tier-purchase-progress`,children:`Tier Purchase Progress`}),`\n`,_jsx(_components.p,{children:`A user made a purchase that counted toward tier progress. If a merchant has both\na loyalty campaign and tiers, the loyalty progress message will be sent instead.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You’re on your way! Spend $670.56 before the end of the year to earn Silver.`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :purchase_tier_progress`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`loyalty-progress`,children:`Loyalty Progress`}),`\n`,_jsx(_components.p,{children:`A user made a purchase that counted toward loyalty progress.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You’re almost there! You’re now 45% toward your next reward at Pizza Merchant.`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :purchase_loyalty_progress`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`tiers-notifications`,children:`Tiers notifications`}),`\n`,_jsx(Heading,{level:`3`,id:`on-track-to-reach-the-silver-tier`,children:`On track to reach the silver tier`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You’re on track to reach Silver for Pizza Merchant - spend $35.24 more by Dec\n31st!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :tier_silver_on_track`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reached-the-silver-tier`,children:`Reached the silver tier`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Silver rewards at Pizza Merchant are yours! Congrats on achieving Silver\nstatus!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :tier_silver_reached`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`on-track-to-reach-the-gold-tier`,children:`On track to reach the gold tier`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You’re on track to reach Gold for Pizza Merchant - spend $23.45 more by Dec\n31st!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :tier_gold_on_track`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reached-the-gold-tier`,children:`Reached the gold tier`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Congrats on achieving Gold status at Pizza Merchant! Open up the app to see\nyour new perks!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :tier_gold_reached`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`tier-status-expiring-soon`,children:`Tier status expiring soon`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Your Gold status runs out in four weeks. Spend $450.24 to keep it for another\nyear!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :tier_status_expiring`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`vip-notifications`,children:`Vip notifications`}),`\n`,_jsx(_components.p,{children:`As users earn toward VIP status, they receive the following messages.`}),`\n`,_jsx(Heading,{level:`3`,id:`vip-active`,children:`VIP active`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You’re a Pizza Merchant VIP! Open up the app to check out your VIP Reward!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :vip_active`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`vip-at-risk`,children:`VIP at risk`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You’re almost out of time! You still need to spend $35 before Dec 1st to remain\na Pizza Merchant VIP.`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :vip_at_risk`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`vip-eligible`,children:`VIP eligible`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You’re eligible for VIP this month at Pizza Merchant! Spend $50 before the end\nof the month to earn VIP status through Jan 1st!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :vip_eligible`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`vip-on-track`,children:`VIP on track`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Your spending makes you eligible to earn VIP at Pizza Merchant! Spend $50 next\nmonth to earn a free pizza all month!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :vip_on_track`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`vip-nearly-there`,children:`VIP nearly there`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You’re almost a Pizza Merchant VIP! Spend $45 before Dec 1st to earn a free\ncactus all month!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :vip_visible`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`reward-notifications`,children:`Reward notifications`}),`\n`,_jsx(Heading,{level:`3`,id:`a-reward-is-issued`,children:`A reward is issued`}),`\n`,_jsx(_components.p,{children:`This text is customizable by the merchant when they run a campaign. If\ncustomized text isn’t provided, the following text is used.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`You have a new reward from Pizza Merchant!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :reward_issued`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`reward_id: 'ri3of2o5i46o32iu4u4k'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`a-reward-is-expiring`,children:`A reward is expiring`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Heads up! Your $5 off at Pizza Merchant expires on 12/15! Don’t miss out!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :reward_expiring`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`reward_id: 'ri3of2o5i46o32iu4u4k'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`a-reward-was-granted`,children:`A reward was granted`}),`\n`,_jsx(_components.p,{children:`The merchant issued a user a reward as a result of NPS feedback.`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Pizza Merchant granted you a new reward: a free pizza!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :reward_granted`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`reward_id: 'ri3of2o5i46o32iu4u4k'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`3`,id:`reminder-about-an-unused-reward`,children:`Reminder about an unused reward`}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`Don’t forget! You have a reward ($15 off) waiting for you at Pizza Merchant!`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :reward_reminder`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`reward_id: 'ri3of2o5i46o32iu4u4k'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`other-notifications`,children:`Other notifications`}),`\n`,_jsx(Heading,{level:`3`,id:`nps-prompt`,children:`NPS prompt`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Deprecated.`}),` The 0-10 NPS rating is retired. The `,_jsx(_components.code,{children:`purchase_nps_prompt`}),`\nevent and its `,_jsx(_components.code,{children:`feedback_id`}),` payload go away with it. The post-order prompt\ncontinues as a thumbs up/down rating, with no equivalent event at launch.\nContact your Thanx representative before you depend on this event.`]})}),`\n`,_jsx(_components.p,{children:_jsx(_components.em,{children:`How was your visit to Pizza Merchant?`})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`event: :purchase_nps_prompt`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(_components.p,{children:`Additional payload keys:`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`purchase_id: 'to35yu2o4i6y34io2j24'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`feedback_id: 'ghjh2k34j5l23kj44566'`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})})]})}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":"Push Notifications","description":"Thanx sends users push notifications in a variety of situations, such as when they make a purchase or earn a reward.","href":"/consumer/guides/push-notifications"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"Purchase notifications","slug":"purchase-notifications","depth":2,"children":[{"title":"Discount Applied","slug":"discount-applied","depth":3,"children":[]},{"title":"Granted","slug":"granted","depth":3,"children":[]},{"title":"Under Minimum","slug":"under-minimum","depth":3,"children":[]},{"title":"Reward Earned","slug":"reward-earned","depth":3,"children":[]},{"title":"Initial Purchase","slug":"initial-purchase","depth":3,"children":[]},{"title":"Reward Unused","slug":"reward-unused","depth":3,"children":[]},{"title":"Invalid Purchase Amount","slug":"invalid-purchase-amount","depth":3,"children":[]},{"title":"Settlement Required","slug":"settlement-required","depth":3,"children":[]},{"title":"Tier Purchase Progress","slug":"tier-purchase-progress","depth":3,"children":[]},{"title":"Loyalty Progress","slug":"loyalty-progress","depth":3,"children":[]}]},{"title":"Tiers notifications","slug":"tiers-notifications","depth":2,"children":[{"title":"On track to reach the silver tier","slug":"on-track-to-reach-the-silver-tier","depth":3,"children":[]},{"title":"Reached the silver tier","slug":"reached-the-silver-tier","depth":3,"children":[]},{"title":"On track to reach the gold tier","slug":"on-track-to-reach-the-gold-tier","depth":3,"children":[]},{"title":"Reached the gold tier","slug":"reached-the-gold-tier","depth":3,"children":[]},{"title":"Tier status expiring soon","slug":"tier-status-expiring-soon","depth":3,"children":[]}]},{"title":"Vip notifications","slug":"vip-notifications","depth":2,"children":[{"title":"VIP active","slug":"vip-active","depth":3,"children":[]},{"title":"VIP at risk","slug":"vip-at-risk","depth":3,"children":[]},{"title":"VIP eligible","slug":"vip-eligible","depth":3,"children":[]},{"title":"VIP on track","slug":"vip-on-track","depth":3,"children":[]},{"title":"VIP nearly there","slug":"vip-nearly-there","depth":3,"children":[]}]},{"title":"Reward notifications","slug":"reward-notifications","depth":2,"children":[{"title":"A reward is issued","slug":"a-reward-is-issued","depth":3,"children":[]},{"title":"A reward is expiring","slug":"a-reward-is-expiring","depth":3,"children":[]},{"title":"A reward was granted","slug":"a-reward-was-granted","depth":3,"children":[]},{"title":"Reminder about an unused reward","slug":"reminder-about-an-unused-reward","depth":3,"children":[]}]},{"title":"Other notifications","slug":"other-notifications","depth":2,"children":[{"title":"NPS prompt","slug":"nps-prompt","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"thanx","siteName":"Thanx","title":"Push Notifications - Thanx","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-09-02T18:09:07.459Z","originalFileLocation":"consumer/guides/push-notifications.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=\"system\"}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=\"Thanx sends users push notifications in a variety of situations, such as when they make a purchase or earn a reward.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Thanx\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_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/thanx/0JkP31DGq1SVLm6U/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Push Notifications - Thanx\">\u003cmeta data-mint-head property=\"og:description\" content=\"Thanx sends users push notifications in a variety of situations, such as when they make a purchase or earn a reward.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Thanx\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.thanx.com/consumer/guides/push-notifications\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://thanx.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Push+Notifications\u0026amp;description=Thanx+sends+users+push+notifications+in+a+variety+of+situations%2C+such+as+when+they+make+a+purchase+or+earn+a+reward.\u0026amp;theme=547b57199640445129b8df81\u0026amp;signature=544b5dff678264dd8a8a88227a7e0313dff05dc12452c3cdad90337897672a09\">\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=\"Push Notifications - Thanx\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Thanx sends users push notifications in a variety of situations, such as when they make a purchase or earn a reward.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://thanx.mintlify.app/_mintlify/api/og/v2?division=Guides\u0026amp;title=Push+Notifications\u0026amp;description=Thanx+sends+users+push+notifications+in+a+variety+of+situations%2C+such+as+when+they+make+a+purchase+or+earn+a+reward.\u0026amp;theme=547b57199640445129b8df81\u0026amp;signature=544b5dff678264dd8a8a88227a7e0313dff05dc12452c3cdad90337897672a09\">\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/thanx/0JkP31DGq1SVLm6U/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Thanx\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#129B9B\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.thanx.com/consumer/guides/push-notifications\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/consumer/guides/push-notifications.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.thanx.com/#organization\",\"name\":\"Thanx\",\"url\":\"https://docs.thanx.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/thanx/NEzLP0j6kJjm2liR/logo/light.svg?fit=max\u0026auto=format\u0026n=NEzLP0j6kJjm2liR\u0026q=85\u0026s=8b3bd3f1ffbb1567714a92067df956d9\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.thanx.com#website\",\"name\":\"Thanx\",\"url\":\"https://docs.thanx.com\",\"publisher\":{\"@id\":\"https://docs.thanx.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.thanx.com/consumer/guides/push-notifications#webpage\",\"url\":\"https://docs.thanx.com/consumer/guides/push-notifications\",\"name\":\"Push Notifications\",\"description\":\"Thanx sends users push notifications in a variety of situations, such as when they make a purchase or earn a reward.\",\"dateModified\":\"2026-09-02T18:09:07.459Z\",\"isPartOf\":{\"@id\":\"https://docs.thanx.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.thanx.com/consumer/guides/push-notifications#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.thanx.com/consumer/guides/push-notifications#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Consumer API\",\"item\":\"https://docs.thanx.com/consumer/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Guides\",\"item\":\"https://docs.thanx.com/consumer/guides/points\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Push Notifications\",\"item\":\"https://docs.thanx.com/consumer/guides/push-notifications\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.thanx.com/consumer/guides/push-notifications#article\",\"headline\":\"Push Notifications\",\"name\":\"Push Notifications\",\"description\":\"Thanx sends users push notifications in a variety of situations, such as when they make a purchase or earn a reward.\",\"url\":\"https://docs.thanx.com/consumer/guides/push-notifications\",\"mainEntityOfPage\":{\"@id\":\"https://docs.thanx.com/consumer/guides/push-notifications#webpage\"},\"dateModified\":\"2026-09-02T18:09:07.459Z\",\"publisher\":{\"@id\":\"https://docs.thanx.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.thanx.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Thanx\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Thanx","nav":{"global":{"anchors":[{"anchor":"Help Center","icon":"book-bookmark","href":"https://help.thanx.com/hc/en-us"},{"anchor":"Thanx Product Updates","icon":"bullhorn","href":"https://thanx.launchnotes.io/"},{"anchor":"Status","icon":"wave-pulse","href":"https://status.thanx.com"},{"anchor":"Email Support","icon":"envelope","href":"mailto:developer.support@thanx.com"}]},"tabs":[{"tab":"Overview","pages":[{"title":"Overview","href":"/overview/intro"}]},{"tab":"Consumer API","pages":[{"group":"Consumer API","pages":[{"title":"Overview","href":"/consumer/overview"},{"group":"Guides","pages":[{"title":"Points Integration","description":null,"href":"/consumer/guides/points"},{"title":"Push Notifications","href":"/consumer/guides/push-notifications"},{"title":"Deep Linking","description":null,"href":"/consumer/guides/deep-linking"}]},{"group":"Best Practices","pages":[{"title":"Design Best Practices","sidebarTitle":"Design","href":"/consumer/best-practices/design"},{"title":"Card Enrollment Best Practices","sidebarTitle":"Card Enrollment","href":"/consumer/best-practices/enrollment"},{"title":"Onboarding \u0026 Authentication","href":"/consumer/best-practices/onboarding-authentication"},{"title":"Loyalty \u0026 Rewards Best Practices","sidebarTitle":"Loyalty \u0026 Rewards","href":"/consumer/best-practices/loyalty"},{"title":"Feedback \u0026 Support Best Practices","sidebarTitle":"Feedback \u0026 Support","href":"/consumer/best-practices/feedback"},{"title":"Messaging Best Practices","sidebarTitle":"Messaging","href":"/consumer/best-practices/messaging"}]},{"group":"Usage","pages":[{"title":"Patterns","href":"/consumer/usage/patterns"},{"title":"Headers","href":"/consumer/usage/headers"},{"title":"Errors","href":"/consumer/usage/errors"},{"title":"Legal","href":"/consumer/usage/legal"},{"title":"Certification","href":"/consumer/usage/certification"}]}]},{"group":"Reference","pages":[{"group":"Users","pages":[{"title":"Create User","api":"POST /users","href":"/consumer/users/create-user"},{"title":"Get User","api":"GET /users/me","href":"/consumer/users/get-user"},{"title":"Update User","api":"PATCH /users/:id","href":"/consumer/users/update-user"},{"title":"Delete User","api":"DELETE /users/me","href":"/consumer/users/delete-user"},{"title":"Get Check In Code","api":"GET /users/:id/check_in_code","href":"/consumer/users/check-in-code"}]},{"group":"SSO","pages":[{"title":"Single Sign-On (SSO) Overview","sidebarTitle":"Overview","href":"/consumer/sso/overview"},{"title":"Legal Requirements","href":"/consumer/sso/legal-requirements"},{"title":"Acquire Authorization Code","api":"POST /oauth/authorize","href":"/consumer/sso/acquire-auth-code"},{"title":"Acquire Authorization Code (Cross-Domain)","api":"POST /oauth/authorize-cross-domain","href":"/consumer/sso/acquire-auth-code-cross-domain"},{"title":"Acquire Access Token","api":"POST /oauth/token","href":"/consumer/sso/acquire-access-token"},{"title":"Revoke Access Token","api":"POST /oauth/revoke","href":"/consumer/sso/revoke-access-token"}]},{"group":"Locations","pages":[{"title":"Get Locations","api":"GET /locations","href":"/consumer/locations/get-locations"}]},{"group":"Features","pages":[{"title":"Get Features","api":"GET /features","href":"/consumer/features/get-features"}]},{"group":"Cards","pages":[{"title":"Create Card","api":"POST https://secure.api.thanxsandbox.com/cards","href":"/consumer/cards/create-card"},{"title":"Get Cards","api":"GET /cards","href":"/consumer/cards/get-cards"},{"title":"Delete Card","api":"DELETE /cards/:id","href":"/consumer/cards/delete-card"}]},{"group":"Rewards","pages":[{"title":"Reward Overview","sidebarTitle":"Overview","href":"/consumer/rewards/overview"},{"title":"Get Rewards","api":"GET /rewards","href":"/consumer/rewards/get-rewards"},{"title":"Get Reward","api":"GET /rewards/:id","href":"/consumer/rewards/get-reward"},{"title":"Activate Reward","api":"PATCH /rewards/:id/activate","href":"/consumer/rewards/activate-reward"},{"title":"Finalize Reward","api":"PATCH /rewards/:id/finalize","href":"/consumer/rewards/finalize-reward"},{"title":"Grant Reward","api":"POST /rewards/grant","href":"/consumer/rewards/grant-reward"},{"title":"Update reward","api":"PATCH /rewards/:id","href":"/consumer/rewards/update-reward"}]},{"group":"Signup Programs","pages":[{"title":"Get Signup Programs","api":"GET /signup_programs","href":"/consumer/signup-programs/get-signup-programs"},{"title":"Get Signup Program","api":"GET /signup_programs/:handle","href":"/consumer/signup-programs/get-signup-program"}]},{"group":"Tags","pages":[{"title":"Get Tags","api":"GET /tags","href":"/consumer/tags/get-tags"},{"title":"Update Tags","api":"PUT /tags","href":"/consumer/tags/update-tags"},{"title":"Delete Tag","api":"DELETE /tags/:id","href":"/consumer/tags/delete-tag"}]},{"group":"Communication Settings","pages":[{"title":"Get Communication Settings","api":"GET /communication_settings","href":"/consumer/communication-settings/get"},{"title":"Get Communication Setting by UID","api":"GET /communication_settings/:uid","href":"/consumer/communication-settings/get-by-uid"},{"title":"Update Communication Settings","api":"PATCH /communication_settings/:id","href":"/consumer/communication-settings/update"}]},{"group":"Push Registrations","pages":[{"title":"Create Push Registration","api":"PUT /push_registrations","href":"/consumer/push/create-push-registration"}]},{"group":"Points","pages":[{"title":"Get Points Experiences","api":"GET /points_experiences","href":"/consumer/points/get-experiences"},{"title":"Get Points Experience","api":"GET /points_experiences/:id","href":"/consumer/points/get-experience"},{"title":"Get Points Balance","api":"GET /points_experiences/:id/balance","href":"/consumer/points/get-points-balance"},{"title":"Get Points Products","api":"GET /points_products","href":"/consumer/points/get-products"},{"title":"Get Points Multipliers","api":"GET /points_multipliers","href":"/consumer/points/get-points-multipliers"},{"title":"Exchange Points Product","api":"POST /points_products/:id/rewards","href":"/consumer/points/exchange-product"}]},{"group":"Tiers","pages":[{"title":"Get Tiers Configurations","api":"GET /tier_configurations","href":"/consumer/tiers/get-configs"},{"title":"Get Tier Statuses","api":"GET /tier_statuses","href":"/consumer/tiers/get-statuses"},{"title":"Grant Tier Status","api":"PATCH /tier_statuses/:id","href":"/consumer/tiers/grant-status"}]},{"group":"Feedbacks","pages":[{"title":"Get Feedbacks","api":"GET /feedbacks","href":"/consumer/feedbacks/get-feedbacks"},{"title":"Get Feedback","api":"GET /feedbacks/:id","href":"/consumer/feedbacks/get-feedback"},{"title":"Update Feedback","api":"PATCH /feedbacks/:id","href":"/consumer/feedbacks/update-feedback"}]},{"group":"Gift Cards","pages":[{"title":"Gift Cards Overview","sidebarTitle":"Overview","href":"/consumer/gift-cards/overview"},{"title":"Get Gift Cards","api":"GET /gift_cards","href":"/consumer/gift-cards/get-gift-cards"},{"title":"Create Gift Card","api":"POST /gift_cards","href":"/consumer/gift-cards/create-gift-card"},{"title":"Get Gift Card","api":"GET /gift_cards/{id}","href":"/consumer/gift-cards/get-gift-card"},{"title":"Delete Gift Card","api":"DELETE /gift_cards/{id}","href":"/consumer/gift-cards/delete-gift-card"},{"title":"Get Merchant Configuration","api":"GET /gift_cards/merchant_config","href":"/consumer/gift-cards/get-merchant-config"}]},{"group":"Purchases","pages":[{"title":"Create Purchase","api":"POST /purchases","href":"/consumer/purchases/create-purchase"},{"title":"Get Purchases","api":"GET /purchases","href":"/consumer/purchases/get-purchases"},{"title":"Get Purchase","api":"GET /purchases/:id","href":"/consumer/purchases/get-purchase"},{"title":"Update Purchase Tags","api":"PUT /purchases/:id/tags","href":"/consumer/purchases/update-tags"}]},{"group":"Receipts","pages":[{"title":"Overview","href":"/consumer/receipts/overview"},{"title":"Create Receipt","api":"POST /receipts","href":"/consumer/receipts/create-receipt"},{"title":"Get Receipts","api":"GET /receipts","href":"/consumer/receipts/get-receipts"},{"title":"Get Upload URL","api":"GET /upload_url","href":"/consumer/receipts/get-upload-url"}]},{"group":"Archive","pages":[{"title":"Archive Overview","sidebarTitle":"Overview","href":"/consumer/archive/overview"},{"title":"Get Loyalty Statuses","api":"GET /loyalty_statuses","href":"/consumer/loyalty/get-loyalty-statuses"}]}]}]},{"tab":"Partner API","pages":[{"title":"Partner API","href":"/partner/overview"}]},{"tab":"Loyalty API","pages":[{"title":"Loyalty API","href":"/loyalty/overview"}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/webhooks/overview"}]},{"tab":"Data Exports","pages":[{"title":"Data Exports","href":"/data/overview"}]},{"tab":"AI","icon":"sparkles","pages":[{"title":"AI","href":"/ai/overview"}]}]},"title":"Push Notifications - Thanx","buildId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","deploymentId":"dpl_2oYXwqkEXirXBPk8wV1FtM5USFWi","dynamics":[],"chunks":[]}