{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Masivo","colors":{"primary":"#9333ea","light":"#c084fc","dark":"#9333ea"},"logo":{"light":"https://mintcdn.com/trd/7W_vRQTxJHIpxqe2/logo/light.svg?fit=max\u0026auto=format\u0026n=7W_vRQTxJHIpxqe2\u0026q=85\u0026s=d6c63ec91328f53e2881c4b8c6463002","dark":"https://mintcdn.com/trd/7W_vRQTxJHIpxqe2/logo/dark.svg?fit=max\u0026auto=format\u0026n=7W_vRQTxJHIpxqe2\u0026q=85\u0026s=4f3a37e246a4bdd211beae4f51571bea","href":"/"},"favicon":"https://mintcdn.com/trd/7W_vRQTxJHIpxqe2/favicon.svg?fit=max\u0026auto=format\u0026n=7W_vRQTxJHIpxqe2\u0026q=85\u0026s=d626565ed6bd780993b9f7d91f7ab1be","navbar":{"links":[{"href":"mailto:soporte@trade.ec?subject=Masivo Support","label":"Support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.masivo.ai"}},"footer":{"socials":{"x":"https://x.com/mintlify","github":"https://github.com/mintlify","linkedin":"https://www.linkedin.com/company/mintsearch"}},"styling":{"latex":true},"navigation":{"global":{"anchors":[{"anchor":"Roadmap","icon":"map","href":"https://docs.masivo.ai/roadmap"},{"anchor":"Changelog","icon":"rocket","href":"https://docs.masivo.ai/changelog"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/2DgqGUej"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"trd","hasAudioNarration":false,"actualSubdomain":"trd","customDomains":["docs.masivo.ai"],"gitSource":{"type":"github","owner":"trade-ec","repo":"masivo","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":false,"mountPath":"","label":""},"chroma":{"liveDeploymentHistoryId":"6adf3604f325da4ba4e0af9e","collectionId":"b12cea4e-7fd3-4ec8-8c5c-2877b1cd2082","schemaVersion":"v3","latestBuiltDeploymentHistoryId":"6adf3604f325da4ba4e0af9e"},"entitlements":{},"buildId":"6adfaf339f4f979a1a0e93c6","clientVersion":"0.0.3971","searchFilterCounts":[{"language":"default","tag":"API Reference","count":92},{"language":"default","tag":"Documentation","count":88},{"language":"default","tag":"Endpoints","count":72},{"language":"default","tag":"Guides","count":72},{"language":"default","tag":"Get Started","count":23},{"language":"default","tag":"Concepts","count":20},{"language":"default","tag":"Marketing Automation","count":19},{"language":"default","tag":"Customers","count":17},{"language":"default","tag":"CDP","count":17},{"language":"default","tag":"Integrations","count":16}]},"assistantConfig":{},"basePath":"","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":"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":"api-reference/coupons/reverse/post","slug":"/api-reference/coupons/reverse/post","pageMetadata":{"title":"Reverse coupon","openapi":"POST /coupons/reverse","description":"Reverse a coupon redemption and remove rewards from customer's wallet","href":"/api-reference/coupons/reverse/post"},"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: \"Reverse a coupon redemption and remove rewards from customer’s wallet\"\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}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Reverse coupon","openapi":"POST /coupons/reverse","description":"Reverse a coupon redemption and remove rewards from customer's wallet","href":"/api-reference/coupons/reverse/post"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"operationId":"reverseCoupon","tags":["Coupons"],"description":"Reverse a coupon redemption and remove rewards from customer's wallet","requestBody":"a5e937ea-4afe-46ca-baf4-1cab2bdc3013","responses":{"200":"69936c97-29a4-490a-87ad-8b2e526d04a7","404":"1c5a584f-c443-438a-9554-5d844eca7380","422":"2855dc08-5913-4a67-8355-c4c17ff1d949"},"method":"post","type":"path","servers":["e171325b-53ae-45cf-854f-c3588a3e764a"],"security":["da9d8232-ebd9-4bac-b7ab-fd0880df2eb5"],"path":"/coupons/reverse","baseUrlOptions":["https://app.masivo.ai/api/storefront/v1"],"title":"","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated"},"dependencies":{"parameters":{},"requestBody":{"content":{"application/json":{"schema":{"type":"object","required":["customer_id","code"],"properties":{"customer_id":{"type":"string","description":"The customer unique identifier in your system","isRequired":true,"uniqueKey":"customer_id","typeLabel":"string"},"code":{"type":"string","description":"The coupon code to reverse","isRequired":true,"uniqueKey":"code","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{},"examples":{"Example":{"title":"Example","value":{}}},"exampleType":"examples"}},"required":true,"exampleType":"examples"},"responses":{"69936c97-29a4-490a-87ad-8b2e526d04a7":{"description":"Coupon reversed successfully","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"customer":{"type":"object","required":["id","name","email","registration_date"],"properties":{"id":{"type":"string","description":"Your customer unique identifier","isRequired":true,"uniqueKey":"data.customer.id","typeLabel":"string"},"name":{"description":"The full name of the customer","type":"string","example":"John Smith","isRequired":true,"uniqueKey":"data.customer.name","typeLabel":"string"},"email":{"description":"The email of the customer","type":"string","format":"email","isRequired":true,"uniqueKey":"data.customer.email","typeLabel":"string\u003cemail>"},"registration_date":{"description":"The date when the customer was registered","type":"string","format":"date-time","isRequired":true,"uniqueKey":"data.customer.registration_date","typeLabel":"string\u003cdate-time>"},"status":{"description":"The status of the customer","type":"string","enum":["ACTIVE","INACTIVE"],"uniqueKey":"data.customer.status","typeLabel":"enum\u003cstring>"},"is_anonymous":{"description":"Whether the customer is anonymous","type":"boolean","default":false,"uniqueKey":"data.customer.is_anonymous","typeLabel":"boolean"},"gender":{"oneOf":[{"description":"The gender of the customer","type":"string","enum":["MALE","FEMALE"],"uniqueKey":"data.customer.gender.oneOf.0","typeLabel":"enum\u003cstring>"},{"description":"The gender of the customer","type":"null","enum":["MALE","FEMALE"],"uniqueKey":"data.customer.gender.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customer.gender","typeLabel":"enum\u003cstring> | null"},"dob":{"oneOf":[{"description":"The date of birth of the customer","type":"string","format":"date-time","uniqueKey":"data.customer.dob.oneOf.0","typeLabel":"string\u003cdate-time>"},{"description":"The date of birth of the customer","type":"null","format":"date-time","uniqueKey":"data.customer.dob.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customer.dob","typeLabel":"string\u003cdate-time> | null"},"document_type":{"oneOf":[{"description":"The document type of the customer","type":"string","uniqueKey":"data.customer.document_type.oneOf.0","typeLabel":"string"},{"description":"The document type of the customer","type":"null","uniqueKey":"data.customer.document_type.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customer.document_type","typeLabel":"string | null"},"document_number":{"oneOf":[{"description":"The document number of the customer","type":"string","maxLength":50,"uniqueKey":"data.customer.document_number.oneOf.0","typeLabel":"string"},{"description":"The document number of the customer","type":"null","maxLength":50,"uniqueKey":"data.customer.document_number.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customer.document_number","typeLabel":"string | null"},"country":{"oneOf":[{"description":"The country of the customer","type":"string","maxLength":100,"uniqueKey":"data.customer.country.oneOf.0","typeLabel":"string"},{"description":"The country of the customer","type":"null","maxLength":100,"uniqueKey":"data.customer.country.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customer.country","typeLabel":"string | null"},"phone":{"oneOf":[{"description":"The customer's phone number in international format. Required for WhatsApp delivery.","type":"string","example":"+593 99 123 4567","uniqueKey":"data.customer.phone.oneOf.0","typeLabel":"string"},{"description":"The customer's phone number in international format. Required for WhatsApp delivery.","type":"null","example":"+593 99 123 4567","uniqueKey":"data.customer.phone.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customer.phone","typeLabel":"string | null"},"phone_verified":{"description":"Whether the customer's phone number is verified","type":"boolean","default":false,"uniqueKey":"data.customer.phone_verified","typeLabel":"boolean"},"tier_id":{"description":"The id of the tier the customer currently belongs to","type":"string","format":"uuid","uniqueKey":"data.customer.tier_id","typeLabel":"string\u003cuuid>"},"tags":{"type":"object","description":"Include your conditions customer tags here","uniqueKey":"data.customer.tags","typeLabel":"object"},"consent":{"oneOf":[{"type":"object","required":["consent_string"],"properties":{"consent_string":{"type":"string","description":"IAB TCF consent string in base64url format, starting with 'CO', minimum 20 characters, maximum 500 characters","example":"COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA","minLength":20,"maxLength":500,"pattern":"^CO[A-Za-z0-9_-]+$","isRequired":true,"uniqueKey":"data.customer.consent.oneOf.0.consent_string","typeLabel":"string"},"version":{"type":"string","description":"IAB TCF version","example":"2.0","uniqueKey":"data.customer.consent.oneOf.0.version","typeLabel":"string"},"consent_timestamp":{"type":"string","format":"date-time","description":"The timestamp when consent was given","uniqueKey":"data.customer.consent.oneOf.0.consent_timestamp","typeLabel":"string\u003cdate-time>"},"customer_id":{"type":"string","description":"The customer unique identifier","uniqueKey":"data.customer.consent.oneOf.0.customer_id","typeLabel":"string"},"purposes":{"type":"object","properties":{"behavioral_campaigns":{"type":"boolean","description":"Consent for behavioral campaigns","uniqueKey":"data.customer.consent.oneOf.0.purposes.behavioral_campaigns","typeLabel":"boolean"},"coupon_campaigns":{"type":"boolean","description":"Consent for coupon campaigns","uniqueKey":"data.customer.consent.oneOf.0.purposes.coupon_campaigns","typeLabel":"boolean"},"punchcard_campaigns":{"type":"boolean","description":"Consent for punchcard campaigns","uniqueKey":"data.customer.consent.oneOf.0.purposes.punchcard_campaigns","typeLabel":"boolean"},"email_marketing":{"type":"boolean","description":"Consent for email marketing","uniqueKey":"data.customer.consent.oneOf.0.purposes.email_marketing","typeLabel":"boolean"},"push_notifications":{"type":"boolean","description":"Consent for push notifications","uniqueKey":"data.customer.consent.oneOf.0.purposes.push_notifications","typeLabel":"boolean"},"whatsapp_marketing":{"type":"boolean","description":"Consent for WhatsApp marketing messages","uniqueKey":"data.customer.consent.oneOf.0.purposes.whatsapp_marketing","typeLabel":"boolean"},"audience_marketing":{"type":"boolean","description":"Consent to belong to marketing audiences","uniqueKey":"data.customer.consent.oneOf.0.purposes.audience_marketing","typeLabel":"boolean"},"inapp_messages":{"type":"boolean","description":"Consent for in-app messages","uniqueKey":"data.customer.consent.oneOf.0.purposes.inapp_messages","typeLabel":"boolean"},"news_feed":{"type":"boolean","description":"Consent for news feed cards","uniqueKey":"data.customer.consent.oneOf.0.purposes.news_feed","typeLabel":"boolean"},"link_tracking":{"type":"boolean","description":"Consent for link click tracking. When `false`, clicks on links that carry this customer's `customer_id` are not stored (the link still opens), and `/events/identify` does not link a `tracking_id` to this customer.","uniqueKey":"data.customer.consent.oneOf.0.purposes.link_tracking","typeLabel":"boolean"}},"uniqueKey":"data.customer.consent.oneOf.0.purposes","typeLabel":"object"},"vendors":{"type":"object","description":"Vendor consent mapping (vendor_id: boolean)","additionalProperties":{"type":"boolean","uniqueKey":"data.customer.consent.oneOf.0.vendors.additionalProperties","typeLabel":"boolean"},"example":{"vendor_123":true,"vendor_456":false},"uniqueKey":"data.customer.consent.oneOf.0.vendors","typeLabel":"object"}},"description":"The customer's consent preferences","uniqueKey":"data.customer.consent.oneOf.0","typeLabel":"object"},{"type":"null","required":["consent_string"],"properties":{"version":{"type":"string","description":"IAB TCF version","example":"2.0"},"consent_timestamp":{"type":"string","format":"date-time","description":"The timestamp when consent was given"},"customer_id":{"type":"string","description":"The customer unique identifier"},"purposes":{"type":"object","properties":{"behavioral_campaigns":{"type":"boolean","description":"Consent for behavioral campaigns"},"coupon_campaigns":{"type":"boolean","description":"Consent for coupon campaigns"},"punchcard_campaigns":{"type":"boolean","description":"Consent for punchcard campaigns"},"email_marketing":{"type":"boolean","description":"Consent for email marketing"},"push_notifications":{"type":"boolean","description":"Consent for push notifications"},"whatsapp_marketing":{"type":"boolean","description":"Consent for WhatsApp marketing messages"},"audience_marketing":{"type":"boolean","description":"Consent to belong to marketing audiences"},"inapp_messages":{"type":"boolean","description":"Consent for in-app messages"},"news_feed":{"type":"boolean","description":"Consent for news feed cards"},"link_tracking":{"type":"boolean","description":"Consent for link click tracking. When `false`, clicks on links that carry this customer's `customer_id` are not stored (the link still opens), and `/events/identify` does not link a `tracking_id` to this customer."}}},"vendors":{"type":"object","description":"Vendor consent mapping (vendor_id: boolean)","additionalProperties":{"type":"boolean"},"example":{"vendor_123":true,"vendor_456":false}},"consent_string":{"type":"string","description":"IAB TCF consent string in base64url format, starting with 'CO', minimum 20 characters, maximum 500 characters","example":"COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA","minLength":20,"maxLength":500,"pattern":"^CO[A-Za-z0-9_-]+$"}},"description":"The customer's consent preferences","uniqueKey":"data.customer.consent.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.customer.consent","typeLabel":"object | null"},"metrics":{"description":"The metrics of the customer","type":"object","uniqueKey":"data.customer.metrics","typeLabel":"object"},"metadata":{"description":"The metadata of the customer","type":"object","uniqueKey":"data.customer.metadata","typeLabel":"object"}},"uniqueKey":"data.customer","typeLabel":"object"},"wallet":{"type":"object","properties":{"id":{"type":"string","description":"The wallet internal unique identifier","format":"uuid","uniqueKey":"data.wallet.id","typeLabel":"string\u003cuuid>"},"owner_id":{"type":"string","description":"The customer internal unique identifier","format":"uuid","uniqueKey":"data.wallet.owner_id","typeLabel":"string\u003cuuid>"},"lines":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","description":"The amount of the line","uniqueKey":"data.wallet.lines.items.[INDEX].amount","typeLabel":"number"},"reward_id":{"type":"string","description":"The reward id of the line","format":"uuid","uniqueKey":"data.wallet.lines.items.[INDEX].reward_id","typeLabel":"string\u003cuuid>"},"campaign_id":{"oneOf":[{"type":"string","description":"The campaign id of the line","format":"uuid","uniqueKey":"data.wallet.lines.items.[INDEX].campaign_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"The campaign id of the line","format":"uuid","uniqueKey":"data.wallet.lines.items.[INDEX].campaign_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.wallet.lines.items.[INDEX].campaign_id","typeLabel":"string\u003cuuid> | null"},"brand_id":{"oneOf":[{"type":"string","description":"The id of the brand that originated the line","format":"uuid","uniqueKey":"data.wallet.lines.items.[INDEX].brand_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"The id of the brand that originated the line","format":"uuid","uniqueKey":"data.wallet.lines.items.[INDEX].brand_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.wallet.lines.items.[INDEX].brand_id","typeLabel":"string\u003cuuid> | null"},"issued_at":{"type":"string","description":"The date when the line was issued","format":"date-time","uniqueKey":"data.wallet.lines.items.[INDEX].issued_at","typeLabel":"string\u003cdate-time>"},"expiration_date":{"type":"string","description":"The expiration date of the line","format":"date-time","uniqueKey":"data.wallet.lines.items.[INDEX].expiration_date","typeLabel":"string\u003cdate-time>"},"reservation_expires_at":{"oneOf":[{"type":"string","description":"The reservation expiration date of the line","format":"date-time","uniqueKey":"data.wallet.lines.items.[INDEX].reservation_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The reservation expiration date of the line","format":"date-time","uniqueKey":"data.wallet.lines.items.[INDEX].reservation_expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.wallet.lines.items.[INDEX].reservation_expires_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"data.wallet.lines.items.[INDEX]","typeLabel":"object"},"description":"Each line represents a batch of a given reward_id that expires at the same time","uniqueKey":"data.wallet.lines","typeLabel":"object[]"},"totals":{"type":"array","description":"The wallet totals by reward","items":{"type":"object","properties":{"total":{"type":"number","description":"The total amount of the reward","example":127.6,"uniqueKey":"data.wallet.totals.items.[INDEX].total","typeLabel":"number"},"reward_id":{"type":"string","description":"The reward id of the total","format":"uuid","uniqueKey":"data.wallet.totals.items.[INDEX].reward_id","typeLabel":"string\u003cuuid>"},"expiration_date":{"type":"string","description":"The expiration date of the total","format":"date-time","uniqueKey":"data.wallet.totals.items.[INDEX].expiration_date","typeLabel":"string\u003cdate-time>"},"reward":{"type":"object","properties":{"id":{"type":"string","description":"The reward internal unique identifier","format":"uuid","uniqueKey":"data.wallet.totals.items.[INDEX].reward.id","typeLabel":"string\u003cuuid>"},"brand_id":{"oneOf":[{"type":"string","description":"The brand id of the reward, null if is a global reward","uniqueKey":"data.wallet.totals.items.[INDEX].reward.brand_id.oneOf.0","typeLabel":"string"},{"type":"null","description":"The brand id of the reward, null if is a global reward","uniqueKey":"data.wallet.totals.items.[INDEX].reward.brand_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.brand_id","typeLabel":"string | null"},"account_id":{"type":"string","description":"The account id that owns this reward.","format":"uuid","uniqueKey":"data.wallet.totals.items.[INDEX].reward.account_id","typeLabel":"string\u003cuuid>"},"status":{"type":"string","description":"The status of the reward.","enum":["ACTIVE","INACTIVE"],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.status","typeLabel":"enum\u003cstring>"},"team_ids":{"type":"array","description":"Team ids associated with this reward.","items":{"type":"string","uniqueKey":"data.wallet.totals.items.[INDEX].reward.team_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.team_ids","typeLabel":"string[]"},"template_id":{"oneOf":[{"type":"string","description":"CMS template id used to structure the reward content, or null when no template is selected.","format":"uuid","uniqueKey":"data.wallet.totals.items.[INDEX].reward.template_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"CMS template id used to structure the reward content, or null when no template is selected.","format":"uuid","uniqueKey":"data.wallet.totals.items.[INDEX].reward.template_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.template_id","typeLabel":"string\u003cuuid> | null"},"content":{"type":"object","description":"CMS content values for the reward.","additionalProperties":true,"uniqueKey":"data.wallet.totals.items.[INDEX].reward.content","typeLabel":"object"},"platforms":{"type":"array","description":"Platforms where this reward applies.","items":{"type":"string","uniqueKey":"data.wallet.totals.items.[INDEX].reward.platforms.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.platforms","typeLabel":"string[]"},"labels":{"type":"array","description":"Labels used to categorize this reward.","items":{"type":"string","uniqueKey":"data.wallet.totals.items.[INDEX].reward.labels.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.labels","typeLabel":"string[]"},"stores":{"oneOf":[{"type":"array","description":"Store ids this reward is restricted to. When creating or updating, null means no store restriction and a non-empty array restricts the reward to those stores.","items":{"type":"string","uniqueKey":"data.wallet.totals.items.[INDEX].reward.stores.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.stores.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Store ids this reward is restricted to. When creating or updating, null means no store restriction and a non-empty array restricts the reward to those stores.","items":{"type":"string"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.stores.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.stores","typeLabel":"string[] | null"},"channels":{"oneOf":[{"type":"array","description":"Channel ids this reward is restricted to. When creating or updating, null means no channel restriction and a non-empty array restricts the reward to those channels.","items":{"type":"string","uniqueKey":"data.wallet.totals.items.[INDEX].reward.channels.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.channels.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Channel ids this reward is restricted to. When creating or updating, null means no channel restriction and a non-empty array restricts the reward to those channels.","items":{"type":"string"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.channels.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.channels","typeLabel":"string[] | null"},"products":{"oneOf":[{"type":"array","description":"Product ids this reward is restricted to. When creating or updating, null means no product restriction and a non-empty array restricts the reward to those products.","items":{"type":"string","uniqueKey":"data.wallet.totals.items.[INDEX].reward.products.oneOf.0.items.[INDEX]","typeLabel":"string"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.products.oneOf.0","typeLabel":"string[]"},{"type":"null","description":"Product ids this reward is restricted to. When creating or updating, null means no product restriction and a non-empty array restricts the reward to those products.","items":{"type":"string"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.products.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.products","typeLabel":"string[] | null"},"tiers":{"oneOf":[{"type":"array","description":"Tier ids allowed to redeem this reward. When creating or updating, null or [] means no tier restriction; a non-empty array requires the customer's current tier to be included.","items":{"type":"string","format":"uuid","uniqueKey":"data.wallet.totals.items.[INDEX].reward.tiers.oneOf.0.items.[INDEX]","typeLabel":"string\u003cuuid>"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.tiers.oneOf.0","typeLabel":"string\u003cuuid>[]"},{"type":"null","description":"Tier ids allowed to redeem this reward. When creating or updating, null or [] means no tier restriction; a non-empty array requires the customer's current tier to be included.","items":{"type":"string","format":"uuid"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.tiers.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.tiers","typeLabel":"string\u003cuuid>[] | null"},"name":{"type":"string","description":"The name of the reward","uniqueKey":"data.wallet.totals.items.[INDEX].reward.name","typeLabel":"string"},"description":{"type":"string","description":"The description of the reward","uniqueKey":"data.wallet.totals.items.[INDEX].reward.description","typeLabel":"string"},"type":{"type":"string","description":"The type of the reward","enum":["POINTS","DISCOUNT","GIFT_CARD","PRODUCT","CUSTOM","COUNTER"],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.type","typeLabel":"enum\u003cstring>"},"conditions":{"type":"array","description":"OR conditions","items":{"type":"array","description":"AND conditions","items":{"type":"object","properties":{"type":{"type":"string","description":"The type of the condition","example":"Order Value","uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions.items.[INDEX].items.[INDEX].type","typeLabel":"string"},"operator":{"type":"string","description":"The operator to compare the attribute","example":"grater than","uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions.items.[INDEX].items.[INDEX].operator","typeLabel":"string"},"primitive":{"type":"string","description":"The primitive of the value to compare","enum":["string","number","currency","boolean","absolute date","relative date","recurring date"],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions.items.[INDEX].items.[INDEX].primitive","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"number","description":"The value to compare","example":9.95,"uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions.items.[INDEX].items.[INDEX].value.oneOf.0","typeLabel":"number"},{"type":"string","description":"The value to compare","uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions.items.[INDEX].items.[INDEX].value.oneOf.1","typeLabel":"string"},{"type":"boolean","description":"The value to compare","uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions.items.[INDEX].items.[INDEX].value.oneOf.2","typeLabel":"boolean"}],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions.items.[INDEX].items.[INDEX].value","typeLabel":"number | string | boolean"}},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions.items.[INDEX].items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions.items.[INDEX]","typeLabel":"object[]"},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.conditions","typeLabel":"object[][]"},"attributes":{"oneOf":[{"type":"object","description":"The attributes of the reward","properties":{"conversion_factor":{"type":"number","description":"How much 1 point is worth in your currency","example":0.1,"uniqueKey":"data.wallet.totals.items.[INDEX].reward.attributes.oneOf.0.conversion_factor","typeLabel":"number"}},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.attributes.oneOf.0","typeLabel":"object"},{"type":"object","description":"The attributes of the reward","additionalProperties":true,"uniqueKey":"data.wallet.totals.items.[INDEX].reward.attributes.oneOf.1","typeLabel":"object"},{"type":"object","description":"The attributes of the reward","properties":{"discount_value":{"type":"number","description":"The discount value","example":10,"uniqueKey":"data.wallet.totals.items.[INDEX].reward.attributes.oneOf.2.discount_value","typeLabel":"number"},"discount_type":{"type":"string","description":"The type of discount","enum":["fixed","percentage"],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.attributes.oneOf.2.discount_type","typeLabel":"enum\u003cstring>"},"type":{"type":"string","description":"The discount will be applied to","enum":["shipping","order","product"],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.attributes.oneOf.2.type","typeLabel":"enum\u003cstring>"}},"uniqueKey":"data.wallet.totals.items.[INDEX].reward.attributes.oneOf.2","typeLabel":"object"}],"uniqueKey":"data.wallet.totals.items.[INDEX].reward.attributes","typeLabel":"object"}},"uniqueKey":"data.wallet.totals.items.[INDEX].reward","typeLabel":"object"}},"uniqueKey":"data.wallet.totals.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.wallet.totals","typeLabel":"object[]"}},"uniqueKey":"data.wallet","typeLabel":"object"},"accumulations":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","description":"The amount of the line","uniqueKey":"data.accumulations.items.[INDEX].amount","typeLabel":"number"},"reward_id":{"type":"string","description":"The reward id of the line","format":"uuid","uniqueKey":"data.accumulations.items.[INDEX].reward_id","typeLabel":"string\u003cuuid>"},"campaign_id":{"oneOf":[{"type":"string","description":"The campaign id of the line","format":"uuid","uniqueKey":"data.accumulations.items.[INDEX].campaign_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"The campaign id of the line","format":"uuid","uniqueKey":"data.accumulations.items.[INDEX].campaign_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.accumulations.items.[INDEX].campaign_id","typeLabel":"string\u003cuuid> | null"},"brand_id":{"oneOf":[{"type":"string","description":"The id of the brand that originated the line","format":"uuid","uniqueKey":"data.accumulations.items.[INDEX].brand_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"The id of the brand that originated the line","format":"uuid","uniqueKey":"data.accumulations.items.[INDEX].brand_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.accumulations.items.[INDEX].brand_id","typeLabel":"string\u003cuuid> | null"},"issued_at":{"type":"string","description":"The date when the line was issued","format":"date-time","uniqueKey":"data.accumulations.items.[INDEX].issued_at","typeLabel":"string\u003cdate-time>"},"expiration_date":{"type":"string","description":"The expiration date of the line","format":"date-time","uniqueKey":"data.accumulations.items.[INDEX].expiration_date","typeLabel":"string\u003cdate-time>"},"reservation_expires_at":{"oneOf":[{"type":"string","description":"The reservation expiration date of the line","format":"date-time","uniqueKey":"data.accumulations.items.[INDEX].reservation_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The reservation expiration date of the line","format":"date-time","uniqueKey":"data.accumulations.items.[INDEX].reservation_expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.accumulations.items.[INDEX].reservation_expires_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"data.accumulations.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.accumulations","typeLabel":"object[]"},"redemptions":{"type":"array","items":{"type":"object","properties":{"amount":{"type":"number","description":"The amount of the line","uniqueKey":"data.redemptions.items.[INDEX].amount","typeLabel":"number"},"reward_id":{"type":"string","description":"The reward id of the line","format":"uuid","uniqueKey":"data.redemptions.items.[INDEX].reward_id","typeLabel":"string\u003cuuid>"},"campaign_id":{"oneOf":[{"type":"string","description":"The campaign id of the line","format":"uuid","uniqueKey":"data.redemptions.items.[INDEX].campaign_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"The campaign id of the line","format":"uuid","uniqueKey":"data.redemptions.items.[INDEX].campaign_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.redemptions.items.[INDEX].campaign_id","typeLabel":"string\u003cuuid> | null"},"brand_id":{"oneOf":[{"type":"string","description":"The id of the brand that originated the line","format":"uuid","uniqueKey":"data.redemptions.items.[INDEX].brand_id.oneOf.0","typeLabel":"string\u003cuuid>"},{"type":"null","description":"The id of the brand that originated the line","format":"uuid","uniqueKey":"data.redemptions.items.[INDEX].brand_id.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.redemptions.items.[INDEX].brand_id","typeLabel":"string\u003cuuid> | null"},"issued_at":{"type":"string","description":"The date when the line was issued","format":"date-time","uniqueKey":"data.redemptions.items.[INDEX].issued_at","typeLabel":"string\u003cdate-time>"},"expiration_date":{"type":"string","description":"The expiration date of the line","format":"date-time","uniqueKey":"data.redemptions.items.[INDEX].expiration_date","typeLabel":"string\u003cdate-time>"},"reservation_expires_at":{"oneOf":[{"type":"string","description":"The reservation expiration date of the line","format":"date-time","uniqueKey":"data.redemptions.items.[INDEX].reservation_expires_at.oneOf.0","typeLabel":"string\u003cdate-time>"},{"type":"null","description":"The reservation expiration date of the line","format":"date-time","uniqueKey":"data.redemptions.items.[INDEX].reservation_expires_at.oneOf.1","typeLabel":"null"}],"uniqueKey":"data.redemptions.items.[INDEX].reservation_expires_at","typeLabel":"string\u003cdate-time> | null"}},"uniqueKey":"data.redemptions.items.[INDEX]","typeLabel":"object"},"uniqueKey":"data.redemptions","typeLabel":"object[]"}},"description":"The updated customer and wallet after reversal","uniqueKey":"data","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"data":{"customer":{"id":"\u003cstring>","name":"John Smith","email":"jsmith@example.com","registration_date":"2023-11-07T05:31:56Z","status":"ACTIVE","is_anonymous":false,"gender":"MALE","dob":"2023-11-07T05:31:56Z","document_type":"\u003cstring>","document_number":"\u003cstring>","country":"\u003cstring>","phone":"+593 99 123 4567","phone_verified":false,"tier_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","tags":{},"consent":{"consent_string":"COvFyGBOvFyGBAbAAAENAPCAAOAAAAAAAAAAAEEUACCKAAA","version":"2.0","consent_timestamp":"2023-11-07T05:31:56Z","customer_id":"\u003cstring>","purposes":{"behavioral_campaigns":true,"coupon_campaigns":true,"punchcard_campaigns":true,"email_marketing":true,"push_notifications":true,"whatsapp_marketing":true,"audience_marketing":true,"inapp_messages":true,"news_feed":true,"link_tracking":true},"vendors":{"vendor_123":true,"vendor_456":false}},"metrics":{},"metadata":{}},"wallet":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","owner_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","lines":[{"amount":123,"reward_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","campaign_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","brand_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","issued_at":"2023-11-07T05:31:56Z","expiration_date":"2023-11-07T05:31:56Z","reservation_expires_at":"2023-11-07T05:31:56Z"}],"totals":[{"total":127.6,"reward_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","expiration_date":"2023-11-07T05:31:56Z","reward":{"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","brand_id":"\u003cstring>","account_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","status":"ACTIVE","team_ids":["\u003cstring>"],"template_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","content":{},"platforms":["\u003cstring>"],"labels":["\u003cstring>"],"stores":["\u003cstring>"],"channels":["\u003cstring>"],"products":["\u003cstring>"],"tiers":["3c90c3cc-0d44-4b50-8888-8dd25736052a"],"name":"\u003cstring>","description":"\u003cstring>","type":"POINTS","conditions":[[{"type":"Order Value","operator":"grater than","primitive":"string","value":9.95}]],"attributes":{"conversion_factor":0.1}}}]},"accumulations":[{"amount":123,"reward_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","campaign_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","brand_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","issued_at":"2023-11-07T05:31:56Z","expiration_date":"2023-11-07T05:31:56Z","reservation_expires_at":"2023-11-07T05:31:56Z"}],"redemptions":[{"amount":123,"reward_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","campaign_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","brand_id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","issued_at":"2023-11-07T05:31:56Z","expiration_date":"2023-11-07T05:31:56Z","reservation_expires_at":"2023-11-07T05:31:56Z"}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"1c5a584f-c443-438a-9554-5d844eca7380":{"description":"Customer not found","content":{"application/json":{"schema":{"required":["error","details"],"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"type":"string","isRequired":true,"uniqueKey":"details","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","details":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"2855dc08-5913-4a67-8355-c4c17ff1d949":{"description":"Invalid coupon","content":{"application/json":{"schema":{"required":["error","details"],"type":"object","properties":{"error":{"type":"string","isRequired":true,"uniqueKey":"error","typeLabel":"string"},"details":{"type":"string","isRequired":true,"uniqueKey":"details","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":"\u003cstring>","details":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"da9d8232-ebd9-4bac-b7ab-fd0880df2eb5":{"bearerAuth":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearerAuth"}}},"servers":{"e171325b-53ae-45cf-854f-c3588a3e764a":{"url":"https://app.masivo.ai/api/storefront/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","scopes":[],"schemeName":"bearerAuth"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication header of the form `Bearer \u003ctoken>`, where `\u003ctoken>` is your auth token.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"bearerAuth","name":"Authorization"}],"title":"bearerAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"trd","siteName":"Masivo","title":"Reverse coupon - Masivo","navMaps":{"firstHrefInVersion":{"v1":{"href":"/api-reference/coupons/reverse/post","matchLevel":0}},"firstHrefInLanguage":{}},"lastModified":"2025-10-27T15:11:55.524Z","originalFileLocation":"api-reference/coupons/reverse/post.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=\"Reverse a coupon redemption and remove rewards from customer\u0026#x27;s wallet\">\u003cmeta data-mint-head name=\"application-name\" content=\"Masivo\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/trd/IG0U6h8DpJ60Xnom/_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/trd/IG0U6h8DpJ60Xnom/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/trd/IG0U6h8DpJ60Xnom/_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/trd/IG0U6h8DpJ60Xnom/_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/trd/IG0U6h8DpJ60Xnom/_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/trd/IG0U6h8DpJ60Xnom/_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/trd/IG0U6h8DpJ60Xnom/_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/trd/IG0U6h8DpJ60Xnom/_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/trd/IG0U6h8DpJ60Xnom/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Reverse coupon - Masivo\">\u003cmeta data-mint-head property=\"og:description\" content=\"Reverse a coupon redemption and remove rewards from customer\u0026#x27;s wallet\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Masivo\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.masivo.ai/api-reference/coupons/reverse/post\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://trd.mintlify.app/_mintlify/api/og/v2?division=Coupons\u0026amp;title=Reverse+coupon\u0026amp;description=Reverse+a+coupon+redemption+and+remove+rewards+from+customer%27s+wallet\u0026amp;theme=8f8d98b752dbc21b97c2a726\u0026amp;signature=3996952df4d5f986e51cc0163b39a4107eb14513a5f75b3780f51edd137daa97\">\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=\"Reverse coupon - Masivo\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Reverse a coupon redemption and remove rewards from customer\u0026#x27;s wallet\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://trd.mintlify.app/_mintlify/api/og/v2?division=Coupons\u0026amp;title=Reverse+coupon\u0026amp;description=Reverse+a+coupon+redemption+and+remove+rewards+from+customer%27s+wallet\u0026amp;theme=8f8d98b752dbc21b97c2a726\u0026amp;signature=3996952df4d5f986e51cc0163b39a4107eb14513a5f75b3780f51edd137daa97\">\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/trd/IG0U6h8DpJ60Xnom/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Masivo\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#9333ea\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.masivo.ai/api-reference/coupons/reverse/post\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/coupons/reverse/post.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.masivo.ai/#organization\",\"name\":\"Masivo\",\"url\":\"https://docs.masivo.ai\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/trd/7W_vRQTxJHIpxqe2/logo/light.svg?fit=max\u0026auto=format\u0026n=7W_vRQTxJHIpxqe2\u0026q=85\u0026s=d6c63ec91328f53e2881c4b8c6463002\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.masivo.ai#website\",\"name\":\"Masivo\",\"url\":\"https://docs.masivo.ai\",\"publisher\":{\"@id\":\"https://docs.masivo.ai/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.masivo.ai/api-reference/coupons/reverse/post#webpage\",\"url\":\"https://docs.masivo.ai/api-reference/coupons/reverse/post\",\"name\":\"Reverse coupon\",\"description\":\"Reverse a coupon redemption and remove rewards from customer's wallet\",\"dateModified\":\"2025-10-27T15:11:55.524Z\",\"isPartOf\":{\"@id\":\"https://docs.masivo.ai#website\"},\"breadcrumb\":{\"@id\":\"https://docs.masivo.ai/api-reference/coupons/reverse/post#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.masivo.ai/api-reference/coupons/reverse/post#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Endpoints\",\"item\":\"https://docs.masivo.ai/api-reference/auth/authorize/get\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Campaigns\",\"item\":\"https://docs.masivo.ai/api-reference/behavior/events/post\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Coupons\",\"item\":\"https://docs.masivo.ai/api-reference/coupons/redeem/post\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Reverse coupon\",\"item\":\"https://docs.masivo.ai/api-reference/coupons/reverse/post\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.masivo.ai/api-reference/coupons/reverse/post#apireference\",\"headline\":\"Reverse coupon\",\"name\":\"Reverse coupon\",\"description\":\"Reverse a coupon redemption and remove rewards from customer's wallet\",\"url\":\"https://docs.masivo.ai/api-reference/coupons/reverse/post\",\"mainEntityOfPage\":{\"@id\":\"https://docs.masivo.ai/api-reference/coupons/reverse/post#webpage\"},\"dateModified\":\"2025-10-27T15:11:55.524Z\",\"publisher\":{\"@id\":\"https://docs.masivo.ai/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.masivo.ai#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Masivo\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Masivo","nav":{"global":{"anchors":[{"anchor":"Roadmap","icon":"map","href":"https://docs.masivo.ai/roadmap"},{"anchor":"Changelog","icon":"rocket","href":"https://docs.masivo.ai/changelog"},{"anchor":"Community","icon":"discord","href":"https://discord.gg/2DgqGUej"}]},"versions":[{"version":"v1","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/overview"}]},{"tab":"API Reference","groups":[{"group":"API Documentation","pages":[{"title":"Introduction","href":"/api-reference/introduction"}]},{"group":"Endpoints","pages":[{"group":"Auth","pages":[{"title":"Authorize","openapi":"GET /auth/authorize","href":"/api-reference/auth/authorize/get"},{"title":"Request TOTP","openapi":"POST /auth/totp","href":"/api-reference/auth/totp/post"},{"title":"Verify TOTP","openapi":"GET /auth/totp/verify","href":"/api-reference/auth/totp/verify/get"}]},{"group":"Brands","pages":[{"title":"Get brands","openapi":"GET /brands","href":"/api-reference/brands/get"}]},{"group":"Platforms","pages":[{"title":"Get platforms","openapi":"GET /platforms","href":"/api-reference/platforms/get"}]},{"group":"Tiers","pages":[{"title":"Get tiers","openapi":"GET /tiers","href":"/api-reference/tiers/get"}]},{"group":"Rewards","pages":[{"title":"Get rewards","openapi":"GET /rewards","href":"/api-reference/rewards/get"},{"title":"Get reward","openapi":"GET /rewards/{id}","href":"/api-reference/rewards/[id]/get"},{"group":"Gift cards","pages":[{"title":"Get customer gift cards","openapi":"GET /customers/{id}/rewards/gift-cards","href":"/api-reference/rewards/gift-cards/get"},{"title":"Redeem gift card","openapi":"Delete /rewards/gift-cards/redeem","href":"/api-reference/rewards/gift-cards/redeem/delete"}]}]},{"group":"Customers","pages":[{"title":"Register customer","openapi":"POST /customers","href":"/api-reference/customers/post"},{"title":"Get customer by document or phone","openapi":"GET /customers","href":"/api-reference/customers/get"},{"title":"Get customer","openapi":"GET /customers/{id}","href":"/api-reference/customers/[id]/get"},{"title":"Update customer","openapi":"PATCH /customers/{id}","href":"/api-reference/customers/[id]/patch"},{"title":"Unregister customer","openapi":"DELETE /customers/{id}","href":"/api-reference/customers/[id]/delete"},{"title":"Update customers in bulk","openapi":"PATCH /customers/bulk","href":"/api-reference/customers/bulk/patch"},{"title":"Get customer consent","openapi":"GET /customers/{id}/consent","href":"/api-reference/customers/[id]/consent/get"},{"title":"Update customer consent","openapi":"PATCH /customers/{id}/consent","href":"/api-reference/customers/[id]/consent/patch"},{"title":"Update customer tags","openapi":"PATCH /customers/{id}/tags","href":"/api-reference/customers/[id]/tags/patch"},{"title":"Delete customer tags","openapi":"DELETE /customers/{id}/tags","href":"/api-reference/customers/[id]/tags/delete"},{"title":"Get customer punch-cards","openapi":"GET /customers/{id}/punch-cards","href":"/api-reference/customers/[id]/punch-cards/get"},{"title":"Get customer score streaks","openapi":"GET /customers/{id}/score-streaks","href":"/api-reference/customers/[id]/score-streaks/get"},{"title":"List in-app messages","openapi":"GET /customers/{id}/inapp-messages","href":"/api-reference/customers/[id]/inapp-messages/get"},{"title":"Log in-app message event","openapi":"POST /customers/{id}/inapp-messages/{messageId}/events","href":"/api-reference/customers/[id]/inapp-messages/[messageId]/events/post"},{"title":"Get customer news feed cards","openapi":"GET /customers/{id}/news-feed","href":"/api-reference/customers/[id]/news-feed/get"},{"title":"Log a news feed card event","openapi":"POST /customers/{id}/news-feed/{templateId}/events","href":"/api-reference/customers/[id]/news-feed/[templateId]/events/post"},{"title":"Identify anonymous customers","openapi":"PATCH /customers/{id}/identify/anonymous","href":"/api-reference/customers/[id]/identify/anonymous/patch"}]},{"group":"Contacts","pages":[{"title":"Search contacts","openapi":"GET /contacts","href":"/api-reference/contacts/get"},{"title":"Create contact","openapi":"POST /contacts","href":"/api-reference/contacts/post"},{"title":"Update contact by ID","openapi":"PUT /contacts/{id}","href":"/api-reference/contacts/[id]/put"},{"title":"Delete contact by ID","openapi":"DELETE /contacts/{id}","href":"/api-reference/contacts/[id]/delete"},{"title":"Migrate contacts","openapi":"POST /contacts/migrate","href":"/api-reference/contacts/migrate/post"}]},{"group":"Campaigns","pages":[{"group":"Behavior","pages":[{"title":"Emit event","openapi":"POST /behavior/events","href":"/api-reference/behavior/events/post"},{"title":"Fulfill event","openapi":"PATCH /behavior/events/{eventId}/fulfill","href":"/api-reference/behavior/events/[eventId]/fulfill/patch"},{"title":"Reverse event","openapi":"POST /behavior/events/{eventId}/reverse","href":"/api-reference/behavior/events/[eventId]/reverse/delete"},{"title":"Preview order","openapi":"PUT /events/redeem/preview","href":"/api-reference/events/redeem/preview/put"},{"title":"Identify customer","openapi":"PATCH /events/identify","href":"/api-reference/events/identify/patch"}]},{"group":"Coupons","pages":[{"title":"Redeem coupon","openapi":"POST /coupons/redeem","description":"Redeem a coupon code. Store, channel, and product restrictions are evaluated against the request. Tier restrictions are evaluated against the customer's current tier; clients cannot override it in the request. null or an empty tiers array means no tier restriction. A tier mismatch returns: This campaign is not available for this tier.","href":"/api-reference/coupons/redeem/post"},{"title":"Reverse coupon","openapi":"POST /coupons/reverse","href":"/api-reference/coupons/reverse/post"}]},{"group":"Referrals","pages":[{"title":"Request referral code","openapi":"POST /customers/{id}/referrals/request-code","description":"Request a unique referral code for a customer. If the customer already has a code for this campaign, the existing code will be returned.","href":"/api-reference/customers/[id]/referrals/request-code/post"}]},{"title":"Get campaign","openapi":"GET /campaigns/{id}","href":"/api-reference/campaigns/[id]/get"},{"title":"Update campaign","openapi":"PUT /campaigns/{id}","href":"/api-reference/campaigns/[id]/put"},{"title":"Get campaigns","openapi":"GET /campaigns","href":"/api-reference/campaigns/get"},{"title":"Create a new campaign","openapi":"POST /campaigns","href":"/api-reference/campaigns/post"}]},{"group":"Review forms","pages":[{"title":"Get form","openapi":"GET /review-forms/{id}","href":"/api-reference/review-forms/[id]/get"},{"title":"Create review","openapi":"POST /review-forms/{id}/reviews","href":"/api-reference/review-forms/[id]/reviews/post"},{"title":"List reviews","openapi":"GET /reviews","href":"/api-reference/reviews/get"}]},{"group":"Tickets","pages":[{"title":"List ticket pipelines","openapi":"GET /ticket-pipelines","href":"/api-reference/ticket-pipelines/get"},{"title":"Create ticket","openapi":"POST /tickets","href":"/api-reference/tickets/post"},{"title":"Get ticket","openapi":"GET /tickets/{id}","href":"/api-reference/tickets/[id]/get"},{"title":"Update ticket","openapi":"PATCH /tickets/{id}","href":"/api-reference/tickets/[id]/patch"},{"title":"List ticket assignees","openapi":"GET /tickets/{id}/assignees","href":"/api-reference/tickets/[id]/assignees/get"},{"title":"Add ticket assignee","openapi":"POST /tickets/{id}/assignees","href":"/api-reference/tickets/[id]/assignees/post"},{"title":"Remove ticket assignee","openapi":"DELETE /tickets/{id}/assignees","href":"/api-reference/tickets/[id]/assignees/delete"},{"title":"List communication threads","openapi":"GET /communication/threads","href":"/api-reference/communication/threads/get"},{"title":"Create communication thread","openapi":"POST /communication/threads","href":"/api-reference/communication/threads/post"},{"title":"Get communication thread","openapi":"GET /communication/threads/{id}","href":"/api-reference/communication/threads/[id]/get"},{"title":"List communication messages","openapi":"GET /communication/threads/{id}/messages","href":"/api-reference/communication/threads/[id]/messages/get"},{"title":"Create communication message","openapi":"POST /communication/threads/{id}/messages","href":"/api-reference/communication/threads/[id]/messages/post"}]},{"group":"Transactions","pages":[{"title":"Customer transactions","openapi":"GET /customers/{id}/transactions","href":"/api-reference/customers/[id]/transactions/get"},{"title":"Account transactions","openapi":"GET /transactions","href":"/api-reference/transactions/get"}]},{"group":"Push","pages":[{"title":"Customer device token","openapi":"PATCH /customers/{id}/devices","href":"/api-reference/customers/[id]/devices/patch"},{"title":"Customer device token","openapi":"DELETE /customers/{id}/devices","href":"/api-reference/customers/[id]/devices/delete"},{"title":"Send customer push","openapi":"POST /push/customers/{id}/send","href":"/api-reference/push/customers/[id]/send/post"},{"title":"Schedule audience push","openapi":"POST /push/audiences/{id}/schedule","href":"/api-reference/push/audiences/[id]/schedule/post"}]},{"group":"In-app","pages":[{"title":"Get in-app capabilities","openapi":"GET /inapp/capabilities","href":"/api-reference/inapp/capabilities/get"}]},{"group":"Migrate","pages":[{"title":"Migrate customers","openapi":"POST /customers/migrate","href":"/api-reference/customers/migrate/post"},{"title":"Migrate devices tokens","openapi":"POST /customers/migrate/devices","href":"/api-reference/customers/migrate/devices/post"},{"title":"Migrate events","openapi":"POST /customers/migrate/events","href":"/api-reference/customers/migrate/events/post"},{"title":"Migrate transactions","openapi":"POST /customers/migrate/transactions","href":"/api-reference/customers/migrate/transactions/post"},{"title":"Revert migration","openapi":"DELETE /customers/migrate/revert","href":"/api-reference/customers/migrate/revert/delete"}]},{"group":"Maintenance","pages":[{"title":"Fulfill expired events","openapi":"POST /customers/fulfill_expired_events","href":"/api-reference/customers/fulfill_expired_events/post"}]}]},{"group":"Guides","pages":[{"title":"Integrate with Masivo","href":"/api-reference/guides/integrate-with-masivo"},{"title":"Register a customer","href":"/api-reference/guides/register-a-customer"},{"title":"Show customer data","href":"/api-reference/guides/show-customer-data"},{"title":"Validate rewards redemption","href":"/api-reference/guides/validate-rewards-redemption"},{"title":"Send an event","href":"/api-reference/guides/send-an-event"},{"title":"Submit reviews","href":"/api-reference/guides/submit-reviews"},{"title":"Redeem a coupon","href":"/api-reference/guides/redeem-a-coupon"},{"title":"Reverse a coupon","href":"/api-reference/guides/reverse-a-coupon"},{"title":"Modify customer balance arbitrarily","href":"/api-reference/guides/modify-customer-balance-arbitrarily"},{"title":"Migrate customers","href":"/api-reference/guides/migrate-customers"},{"title":"Setup webhooks","href":"/api-reference/guides/setup-webhooks"},{"title":"Integrate push notifications","href":"/api-reference/guides/integrate-push-notification"},{"title":"Integrate in-app messages","href":"/api-reference/guides/integrate-in-app-messages"},{"title":"Integrate deferred deep linking","href":"/api-reference/guides/integrate-deferred-deep-linking"},{"group":"Marketing automation","pages":[{"title":"FCM Token Management","href":"/api-reference/guides/fcm-token-management"},{"title":"Attribution Tracking","href":"/api-reference/guides/attribution-tracking"},{"title":"Customer Audience Enrollment","href":"/api-reference/guides/customer-audience-enrollment"},{"title":"Journey Triggers","href":"/api-reference/guides/journey-triggers"}]}]},{"group":"Resources","pages":[{"title":"Resource limits","href":"/api-reference/resources/resource-limits"}]}]}]}]},"title":"Reverse coupon - Masivo","buildId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","deploymentId":"dpl_DFJrtvUi8HS5F9nkooKuDJsuD5BM","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-rfhihCWU.js","utils-BmH1XFxk.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-BcNsxPKB.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-BAES3tkd.js","snippetPresets-DCMQBKLP.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","ApiExamples-D6l_bzE9.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-BOktbnNh.js","shallow-BCs8SgM7.js","getApiPlaygroundDisplay-DEmW5bJB.js","CodeSnippet-CpZOpB9C.js","CodeSnippets-BOBDqibl.js","Page-D5fEM6aW.js","getPastedJson-DH2JBvmr.js","icon-BBJH-kKh.js","MethodPill-D2Sd5NLC.js","DuplicateIcon-CGgfL2qN.js","createIcon-BKudBBzi.js","DynamicMarkdown-85clUA0i.js","SectionHeading-D0JiMgDx.js","axios-vUo_bRtp.js","Markdown-Cfiy0xZO.js","clsx-rL8ZCCw4.js","lib--scc4DXi.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-aeztFa9U.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BywkCr5C.js"]}