A new discount will be unavailable for purchases
until the discount is given to one or more customer.
Discount can be given to a customer by either adding
a automation to the discount that will grant the
discount to the customer from events received or by
adding customers to the discount.
Make the discount visible to the customer from
given date. Default behavior is to only return
discount to the customer where the current time
is between purchase_from and purchase_to
Make the discount visible to the customer from
given date. Default behavior is to only return
discount to the customer where the current time
is between purchase_from and purchase_to
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Dintero Documentation","colors":{"primary":"#0000FF","light":"#3578e5","dark":"#3578e5"},"logo":{"light":"https://mintcdn.com/dintero-c3a7bfec/D0VX9t09zInvinnk/mintlify-docs/images/light.svg?fit=max\u0026auto=format\u0026n=D0VX9t09zInvinnk\u0026q=85\u0026s=b4717f47bb69fef03f724e6356c03726","dark":"https://mintcdn.com/dintero-c3a7bfec/D0VX9t09zInvinnk/mintlify-docs/images/dark.svg?fit=max\u0026auto=format\u0026n=D0VX9t09zInvinnk\u0026q=85\u0026s=54190188f57c764d58061d5a470ad0a4"},"favicon":"https://mintcdn.com/dintero-c3a7bfec/D0VX9t09zInvinnk/mintlify-docs/images/favicon.png?fit=max\u0026auto=format\u0026n=D0VX9t09zInvinnk\u0026q=85\u0026s=25b7eac359342dc0dabf40fe08ea8cad","api":{"params":{"expanded":"closed"},"examples":{"defaults":"required","languages":["curl","python","javascript","go","java"]},"url":"full"},"appearance":{"default":"light"},"background":{"color":{"dark":"#171717"}},"navbar":{"links":[{"icon":"/mintlify-docs/assets/icons/external-link.svg","href":"https://checkout.demo.dintero.com/","label":"Demo Store"}],"primary":{"type":"button","label":"Get Started","href":"https://onboarding.dintero.com/"}},"seo":{"metatags":{"canonical":"https://docs.dintero.com"}},"integrations":{"cookies":{"key":"cookie_consent","value":"accepted"}},"metadata":{"timestamp":true},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dintero-c3a7bfec","hasAudioNarration":false,"actualSubdomain":"dintero-c3a7bfec","customDomains":["docs.dintero.com"],"gitSource":{"type":"github","owner":"dintero","repo":"api-spec","deployBranch":"master","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"REMOVE_BRANDING":{"status":"DISABLED"},"CONTEXTUAL_FEEDBACK":{"status":"DISABLED"},"CODE_SNIPPET_FEEDBACK":{"status":"DISABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af339d41661757f0de2e92a","clientVersion":"0.0.4094","searchFilterCounts":[{"language":"default","tag":"API Reference","count":242},{"language":"default","tag":"Payments","count":169},{"language":"default","tag":"Loyalty \u0026 Virtual Cards","count":113},{"language":"default","tag":"Documentation","count":105},{"language":"default","tag":"Partners","count":42},{"language":"default","tag":"Order Management","count":40},{"language":"default","tag":"Developer Resources","count":37},{"language":"default","tag":"Plugins \u0026 Integrations","count":32},{"language":"default","tag":"Support","count":22},{"language":"default","tag":"Payment Methods","count":19}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":true,"enableContextualStarterQuestions":true,"enableAskAiSearchBar":true,"deflection":{"enabled":true,"email":"support@dintero.com","showHelpButton":true}},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","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":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","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":"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":"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":"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":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","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":"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":"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":"turbopuffer-dual-write","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},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":false}},"googleFontsInlined":false},"customCss":[{"filePath":"mintlify-docs/styles.css","content":".dark #topbar-cta-button span{color:#fff}.method-pill~div .group{margin-left:0!important}@media (min-width: 1280px){#content-container:has(#api-playground-2-operation-page){display:grid!important;grid-template-columns:1fr 28rem!important;gap:0 3rem!important}#content-container:has(#api-playground-2-operation-page)>#content-area{display:contents!important}#api-playground-2-operation-page{display:contents!important}#api-playground-2-operation-page>.space-y-4{display:contents!important}#content-container:has(#api-playground-2-operation-page)>#content-area>*{grid-column:1!important}#content-container:has(#api-playground-2-operation-page)>#content-area>#header{grid-column:1 / -1!important;grid-row:1!important}#api-playground-2-operation-page .border-standard.rounded-2xl{grid-column:1 / -1!important;grid-row:2!important;margin-top:1.5rem!important}#api-playground-2-operation-page .max-h-\\[30rem\\]{display:none!important}#api-playground-2-operation-page>.mdx-content{grid-column:1!important;grid-row:3!important}#content-container:has(#api-playground-2-operation-page)>#content-side-layout{grid-column:2!important;grid-row:3!important;position:sticky!important;top:9.5rem!important;align-self:start!important;max-height:calc(100vh - 11rem)!important;height:auto!important;width:28rem!important;max-width:28rem!important;margin-top:2rem!important;gap:2rem!important}#content-container:has(#api-playground-2-operation-page) #pagination{grid-row:4!important}#content-container:has(#api-playground-2-operation-page) #footer{margin-top:3rem!important;grid-row:5!important}}#content-container:has(#api-playground-2-operation-page) #header p,#content-container:has(#api-playground-2-operation-page) #header a{margin-top:0!important;margin-bottom:12px!important;padding-top:0!important;padding-bottom:0!important;font-size:16px}#content-container:has(#api-playground-2-operation-page) #header ol,#content-container:has(#api-playground-2-operation-page) #header ul,#content-container:has(#api-playground-2-operation-page) #header li{margin-top:6px!important;margin-bottom:8px!important;padding-top:0!important;padding-bottom:0!important;font-size:16px}#content-container:has(#api-playground-2-operation-page) #header h2,#content-container:has(#api-playground-2-operation-page) #header h3,#content-container:has(#api-playground-2-operation-page) #header h4{margin-top:16px!important}#content-container:has(#api-playground-2-operation-page) #header hr{margin:20px 0!important}#content-container h2{margin-bottom:6px}.product-link span{color:var(--tw-prose-links);text-decoration:none;font-weight:600;border-bottom:1px solid rgb(var(--primary));word-wrap:break-word}.dark .product-link span{border-bottom-color:rgb(var(--primary-light))}.product-link:hover span{border-bottom-width:2px}.dark img[src*=\"/mintlify-docs/assets/icons/\"][src*=\".svg\"]{filter:brightness(0) invert(1)}"},{"filePath":"mintlify-docs/logo-display-builder.css","content":":root{--default-radius:8px;--text-paragraph-lg-line-height:28px;--text-paragraph-lg-font-size:18px;--text-paragraph-md-line-height:24px;--text-paragraph-md-font-size:16px;--text-paragraph-sm-line-height:20px;--text-paragraph-sm-font-size:14px;--text-paragraph-xs-line-height:20px;--text-paragraph-xs-font-size:12px;--text-overline-letter-spacing:1px;--text-overline-text-transform:uppercase;--text-overline-font-weight:600;--shadow-xs:0px 1px 2px 0px rgba(16, 24, 40, 0.1);--shadow-sm:0px 1px 3px 0px rgba(16, 24, 40, 0.1),\n\t\t0px 1px 2px 0px rgba(16, 24, 40, 0.06);--shadow-md:0px 4px 6px -1px rgba(16, 24, 40, 0.1),\n\t\t0px 2px 4px -1px rgba(16, 24, 40, 0.06);--shadow-lg:0px 10px 15px -3px rgba(16, 24, 40, 0.1),\n\t\t0px 4px 6px -2px rgba(16, 24, 40, 0.05);--shadow-xlg:0px 8px 10px -6px rgba(16, 24, 40, 0.1),\n\t\t0px 20px 25px -5px rgba(16, 24, 40, 0.1);--blur-none:none;--blur-sm:blur(4px);--blur-md:blur(8px);--blur-lg:blur(12px);--blur-xl:blur(20px);--spacing-xxs:4px;--spacing-xs:8px;--spacing-sm:16px;--spacing-md:24px;--spacing-lg:32px;--spacing-xlg:40px;--spacing-xxlg:48px;--spacing-xxxlg:56px;--spacing-xxxxlg:64px;--border-radius-sm:4px;--border-radius-md:8px;--border-radius-lg:12px;--border-radius-xlg:16px;--border-radius-xxlg:20px;--color-primary-50:#f2f6ff;--color-primary-100:#d9e4ff;--color-primary-200:#bfd1ff;--color-primary-300:#a6baff;--color-primary-400:#6889fe;--color-primary-500:#0000ff;--color-primary-600:#0000df;--color-primary-700:#0000bf;--color-primary-800:#000080;--color-primary-900:#000040;--color-neutral-50:#fafafa;--color-neutral-100:#f5f5f5;--color-neutral-200:#e5e5e5;--color-neutral-300:#d4d4d4;--color-neutral-400:#a3a3a3;--color-neutral-500:#737373;--color-neutral-600:#525252;--color-neutral-700:#404040;--color-neutral-800:#262626;--color-neutral-900:#171717;--color-destructive-50:#fef2f2;--color-destructive-100:#fee2e2;--color-destructive-200:#fecaca;--color-destructive-300:#fca5a5;--color-destructive-400:#f87171;--color-destructive-500:#ef4444;--color-destructive-600:#dc2626;--color-destructive-700:#b91c1c;--color-destructive-800:#991b1b;--color-destructive-900:#7f1d1d;--color-success-50:#f0fdf4;--color-success-100:#dcfce7;--color-success-200:#bbf7d0;--color-success-300:#86efac;--color-success-400:#4ade80;--color-success-500:#22c55e;--color-success-600:#16a34a;--color-success-700:#15803d;--color-success-800:#166534;--color-success-900:#14532d;--color-warning-50:#fffbeb;--color-warning-100:#fef3c7;--color-warning-200:#fde68a;--color-warning-300:#fcd34d;--color-warning-400:#fbbf24;--color-warning-500:#f59e0b;--color-warning-600:#d97706;--color-warning-700:#b45309;--color-warning-800:#92400e;--color-warning-900:#78350f;--color-surface:white;--color-code-surface:var(--color-neutral-900)}@media (prefers-color-scheme: dark){:root{--color-surface:#1f1f1f;--color-code-surface:#0a0a0a;--color-neutral-50:#171717;--color-neutral-100:#1f1f1f;--color-neutral-200:#292929;--color-neutral-300:#404040;--color-neutral-400:#737373;--color-neutral-500:#a3a3a3;--color-neutral-600:#d4d4d4;--color-neutral-700:#e5e5e5;--color-neutral-800:#f5f5f5;--color-neutral-900:#fafafa;--color-primary-50:#0d0d33;--color-primary-100:#1a1a5c;--color-success-50:#0a1a0f;--color-success-100:#0f2a15;--shadow-xs:0px 1px 2px 0px rgba(0, 0, 0, 0.4);--shadow-sm:0px 1px 3px 0px rgba(0, 0, 0, 0.4), 0px 1px 2px 0px rgba(0, 0, 0, 0.3);--shadow-md:0px 4px 6px -1px rgba(0, 0, 0, 0.4), 0px 2px 4px -1px rgba(0, 0, 0, 0.3);--shadow-lg:0px 10px 15px -3px rgba(0, 0, 0, 0.4), 0px 4px 6px -2px rgba(0, 0, 0, 0.2)}}"}],"page":{"pagePath":"api-reference/rules/aid_discounts_post","slug":"/api-reference/rules/aid_discounts_post","pageMetadata":{"title":"Create new discount","description":"Create a new discount for an account.\n\nA new discount will be **unavailable** for purchases\nuntil the discount is given to one or more customer.\n\nDiscount can be given to a customer by either adding\na automation to the discount that will grant the\ndiscount to the customer from events received or by\nadding customers to the discount.\n\nSee [Discount Examples](#section/Discount-Examples)\n\nscopes:\n- admin:discounts\n- write:discounts\n","deprecated":null,"version":null,"sidebarTitle":"Create new discount","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/rules","href":"/api-reference/rules/aid_discounts_post","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsx(_components.p, {\n children: \"Create a new discount for an account.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"A new discount will be \", _jsx(_components.strong, {\n children: \"unavailable\"\n }), \" for purchases\\nuntil the discount is given to one or more customer.\"]\n }), \"\\n\", _jsx(_components.p, {\n children: \"Discount can be given to a customer by either adding\\na automation to the discount that will grant the\\ndiscount to the customer from events received or by\\nadding customers to the discount.\"\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"See \", _jsx(_components.a, {\n href: \"#section/Discount-Examples\",\n children: \"Discount Examples\"\n })]\n }), \"\\n\", _jsx(_components.p, {\n children: \"scopes:\"\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: \"admin:discounts\"\n }), \"\\n\", _jsx(_components.li, {\n children: \"write:discounts\"\n }), \"\\n\"]\n })]\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":"Create new discount","description":"Create a new discount for an account.\n\nA new discount will be **unavailable** for purchases\nuntil the discount is given to one or more customer.\n\nDiscount can be given to a customer by either adding\na automation to the discount that will grant the\ndiscount to the customer from events received or by\nadding customers to the discount.\n\nSee [Discount Examples](#section/Discount-Examples)\n\nscopes:\n- admin:discounts\n- write:discounts\n","deprecated":null,"version":null,"sidebarTitle":"Create new discount","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/rules","href":"/api-reference/rules/aid_discounts_post","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/dintero-c3a7bfec/0c27980f89959f8a/scripts/extract-refs.js","/_mintlify/custom/dintero-c3a7bfec/9be648d34348ecd1/scripts/openapi3/convert-to-oa3.js","/_mintlify/custom/dintero-c3a7bfec/acc74eb2f1533c09/scripts/openapi3/convert-to-oa3.test.js","/_mintlify/custom/dintero-c3a7bfec/d1577eed3797a41e/mintlify-docs/cookie-script.js","/_mintlify/custom/dintero-c3a7bfec/ad1f40ff54bd5bfe/mintlify-docs/logo-display-builder.js","/_mintlify/custom/dintero-c3a7bfec/9b750c905d163779/scripts/openapi3/build-operation-map.js","/_mintlify/custom/dintero-c3a7bfec/92de388c069f1bef/scripts/check-broken-links.js","/_mintlify/custom/dintero-c3a7bfec/8ad753e6099cf1b7/scripts/openapi3/build-operation-map.test.js"],"openApiReferenceData":{"operation":{"operationId":"aid_discounts_post","summary":"aid_discounts_post","description":"Create a new discount for an account.\n\nA new discount will be **unavailable** for purchases\nuntil the discount is given to one or more customer.\n\nDiscount can be given to a customer by either adding\na automation to the discount that will grant the\ndiscount to the customer from events received or by\nadding customers to the discount.\n\nSee [Discount Examples](#section/Discount-Examples)\n\nscopes:\n- admin:discounts\n- write:discounts\n","tags":["rules"],"x-scopes":["admin:discounts","write:discounts"],"parameters":["92e1b908-8f72-41b0-9616-7257d063f6ba"],"requestBody":"5bfda7a4-b83e-492f-8ba9-27805ae06890","security":["bf2a973e-9284-4f35-8521-daf10b9b843f"],"responses":{"200":"5d47fef1-b18d-4583-b4b1-0e489b66b50d","400":"5f4d5827-9480-4cc6-ba0d-94c1c79e5a34","401":"8cfde0cb-7d1b-4524-bd1f-2f8b9ac0f293","403":"481a06ad-dd31-4aa5-9091-2166be699b75","404":"765ed7b2-46da-4468-8e8a-462439b044a0","500":"d55fac26-ec1d-4c80-a907-01ae05771c5d"},"x-mint":{"metadata":{"title":"Create new discount","sidebarTitle":"Create new discount"}},"method":"post","type":"path","servers":["6bc35048-63db-4af3-b3c2-2b6da9dd5299"],"path":"/accounts/{aid}/discounts/rules","baseUrlOptions":["https://api.dintero.com/v1"],"title":"aid_discounts_post","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go","java"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","urlDisplay":"full"},"dependencies":{"parameters":{"92e1b908-8f72-41b0-9616-7257d063f6ba":{"name":"aid","description":"An id that uniquely identifies the account.\n","in":"path","required":true,"schema":{"type":"string","format":"^[PT]{1}\\d{8}$","minLength":9,"maxLength":9,"isRequired":true,"description":"An id that uniquely identifies the account.\n","uniqueKey":"","typeLabel":"string\u003c^[PT]{1}\\d{8}$>"}}},"requestBody":{"content":{"application/json":{"schema":{"required":["requirement","reward"],"properties":{"requirement":{"type":"object","description":"Discount base requirement\n","required":["purchase_from","purchase_to"],"properties":{"purchase_from":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"requirement.purchase_from","typeLabel":"string\u003cdate-time>"},"purchase_to":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"requirement.purchase_to","typeLabel":"string\u003cdate-time>"},"customer":{"type":"object","properties":{"addresses":{"type":"array","description":"Require customer to have one or more addresses matching the properties. All properties defined must match a single address.","items":{"type":"object","minItems":1,"maxItems":5,"properties":{"country":{"type":"array","example":["NO"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].country.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].country","typeLabel":"string[]"},"postal_code":{"type":"array","example":["0349"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].postal_code.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].postal_code","typeLabel":"string[]"},"postal_place":{"type":"array","example":["Oslo"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].postal_place.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].postal_place","typeLabel":"string[]"},"custom_type":{"type":"array","example":["offsite"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].custom_type.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].custom_type","typeLabel":"string[]"},"type":{"type":"array","example":["custom"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].type.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].type","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.addresses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"requirement.customer.addresses","typeLabel":"object[]"},"company":{"type":"object","description":"Require customer to be a company matching all properties defined.\n","properties":{"bussiness_name":{"type":"array","example":["TKP tech AS"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.bussiness_name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.bussiness_name","typeLabel":"string[]"},"department":{"type":"array","example":["production","research"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.department.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.department","typeLabel":"string[]"},"industry":{"type":"array","example":["J62.0.1","J62.0.2"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.industry.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.industry","typeLabel":"string[]"},"number_of_employees":{"type":"array","example":["20"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.number_of_employees.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.number_of_employees","typeLabel":"string[]"},"organization_number":{"type":"array","example":["123456789MVA"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.organization_number.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.organization_number","typeLabel":"string[]"},"website":{"type":"array","example":["https://dintero.com"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.website.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.website","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.company","typeLabel":"object"},"date_of_birth":{"type":"array","example":["1990-09-20","1990-05-10"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.date_of_birth.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.date_of_birth","typeLabel":"string[]"},"enrolled_by":{"type":"object","properties":{"type":{"type":"array","example":["url"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.enrolled_by.type.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.enrolled_by.type","typeLabel":"string[]"},"value":{"type":"array","example":["https://mypage.example.dintero.com"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.enrolled_by.value.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.enrolled_by.value","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.enrolled_by","typeLabel":"object"},"favorite_store":{"type":"array","example":["sc029"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.favorite_store.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.favorite_store","typeLabel":"string[]"},"first_name":{"type":"array","example":["John"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.first_name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.first_name","typeLabel":"string[]"},"gender":{"type":"array","example":["male"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.gender.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.gender","typeLabel":"string[]"},"last_name":{"type":"array","example":["Doe"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.last_name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.last_name","typeLabel":"string[]"},"marketing_consent":{"type":"object","properties":{"email":{"type":"object","properties":{"consent":{"type":"array","example":["true"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.marketing_consent.email.consent.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.marketing_consent.email.consent","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.marketing_consent.email","typeLabel":"object"},"sms":{"type":"object","properties":{"consent":{"type":"array","example":["true"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.marketing_consent.sms.consent.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.marketing_consent.sms.consent","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.marketing_consent.sms","typeLabel":"object"}},"uniqueKey":"requirement.customer.marketing_consent","typeLabel":"object"},"status":{"type":"array","example":["vip"],"description":"limit discount to only receipt where customer status\nis included in the receipt and match one of the status\nvalues required by the discount\n","items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.status.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.status","typeLabel":"string[]"},"term":{"type":"object","properties":{"id":{"type":"array","items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.term.id.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.term.id","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.term","typeLabel":"object"},"type":{"type":"array","items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.type.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.type","typeLabel":"string[]"},"attributes":{"type":"object","description":"Limit discount to only receipt where customer attributes are included\nand match one of the values required by the discount\n","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"requirement.customer.attributes.additionalProperties.items.[INDEX]","typeLabel":"string"},"minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.attributes.additionalProperties","typeLabel":"string[]"},"uniqueKey":"requirement.customer.attributes","typeLabel":"object"}},"uniqueKey":"requirement.customer","typeLabel":"object"},"item":{"type":"object","properties":{"quantity":{"type":"number","description":"minimum number of items\n","default":0,"minimum":0,"uniqueKey":"requirement.item.quantity","typeLabel":"number"},"mixes":{"type":"array","minItems":1,"description":"Required mix items for the discount.\n\nA purchase must include `all` the items to fulfill the `item.mixes`\nrequirement.\n","items":{"type":"object","description":"Use mix in case where all items are required in one purchase.\n\nA reward will be eligible to all items in the mix that\nhas `mix.reward_eligible=true`\n","required":["items","quantity","reward_eligible"],"properties":{"items":{"description":"Acceptable items for the mix \"item\" (`any`). No wildcard `*` is\naccepted.\n","type":"array","example":[{"id":"b714118"},{"group_id":"g4"}],"items":{"type":"object","minItems":1,"properties":{"id":{"type":"string","example":"b714118","pattern":"^(\\*.+|(?!\\*).*)$","uniqueKey":"requirement.item.mixes.items.[INDEX].\\items.items.[INDEX].id","typeLabel":"string"},"group_id":{"type":"string","pattern":"^(\\*.+|(?!\\*).*)$","example":"g4","uniqueKey":"requirement.item.mixes.items.[INDEX].\\items.items.[INDEX].group_id","typeLabel":"string"}},"uniqueKey":"requirement.item.mixes.items.[INDEX].\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"requirement.item.mixes.items.[INDEX].\\items","typeLabel":"object[]"},"quantity":{"type":"number","description":"minimum quantity of given item (match by id or group) by the mix\n","minimum":0,"isRequired":true,"uniqueKey":"requirement.item.mixes.items.[INDEX].quantity","typeLabel":"number"},"reward_eligible":{"type":"boolean","description":"The item will be eligible for discount when calculating the reward\nExample: The value of `discount_item_new_price` reward will be the\ntotal price of all items in a mix that has the applicable set to `true`\n","isRequired":true,"uniqueKey":"requirement.item.mixes.items.[INDEX].reward_eligible","typeLabel":"boolean"}},"uniqueKey":"requirement.item.mixes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"requirement.item.mixes","typeLabel":"object[]"},"items":{"type":"array","description":"Required items for the discount\n\nA purchase can include `any` of the items to fulfill the `item.items`\nrequirement.\n\nThe values contols if the reward is given on the receipt (all items) or\nif they are limited to matching items\n\n**Receipt**\n- A rule with no items or items with only wildcard items\n\n**Item**\n- A rule with one or more items (except wildcard)\n- A rule with a single item `{\"id\": \"ANY_ITEM\"}` in items\n","items":{"type":"object","properties":{"id":{"type":"string","example":"b714118","uniqueKey":"requirement.item.\\items.items.[INDEX].id","typeLabel":"string"},"group_id":{"type":"string","example":"B1","uniqueKey":"requirement.item.\\items.items.[INDEX].group_id","typeLabel":"string"}},"uniqueKey":"requirement.item.\\items.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"requirement.item.\\items","typeLabel":"object[]"}},"uniqueKey":"requirement.item","typeLabel":"object"},"store_ids":{"type":"array","description":"`DEPRECATED`: [@since 2021-09-01](#section/Changelog/2021-09-01)\n","items":{"type":"string","example":"sc029","uniqueKey":"requirement.store_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store_ids","typeLabel":"string[]"},"gross_amount":{"type":"integer","description":"Minimum gross amount on purchase.\nMonetary amount in smallest unit for the currency\n","default":0,"uniqueKey":"requirement.gross_amount","typeLabel":"integer"},"net_amount":{"type":"integer","description":"Minimum net amount on purchase (amount after existing discounts).\nMonetary amount in smallest unit for the currency\n","default":0,"uniqueKey":"requirement.net_amount","typeLabel":"integer"},"currencies":{"description":"List of valid currencies, or `[{\"anything-but\": [\"NOK\"]}]` to exclude currencies.\nCurrency format is the three-character [ISO-4217 currency](https://en.wikipedia.org/wiki/ISO_4217).\n","type":"array","items":{"oneOf":[{"type":"object","properties":{"anything-but":{"type":"array","items":{"type":"string","example":"NOK","uniqueKey":"requirement.currencies.items.[INDEX].oneOf.0.anything-but.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.currencies.items.[INDEX].oneOf.0.anything-but","typeLabel":"string[]"}},"uniqueKey":"requirement.currencies.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","example":"NOK","uniqueKey":"requirement.currencies.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"requirement.currencies.items.[INDEX]","typeLabel":"object | string"},"uniqueKey":"requirement.currencies","typeLabel":"(object | string)[]"},"stamp":{"type":"integer","description":"Stamp count required for the reward\n","example":5,"uniqueKey":"requirement.stamp","typeLabel":"integer"},"discount_code":{"type":"string","description":"A code required for the reward. The purchase must include the\npromotion code in the `receipt.discount_code` property or as\nan `receipt.item` where the `item.id` is the promotion code.\n","example":"TACO","uniqueKey":"requirement.discount_code","typeLabel":"string"},"store":{"type":"object","properties":{"id":{"type":"array","items":{"type":"string","example":"sc029","uniqueKey":"requirement.store.id.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.id","typeLabel":"string[]"},"name":{"type":"array","description":"name of the store, aka trade name of the store\n","items":{"type":"string","example":"SC Oslo","uniqueKey":"requirement.store.name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.name","typeLabel":"string[]"},"business_name":{"type":"array","description":"Official name of the person or entity that owns the store.\n","items":{"type":"string","example":"SC Oslo AS","uniqueKey":"requirement.store.business_name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.business_name","typeLabel":"string[]"},"address":{"type":"object","description":"Require customer to have one or more addresses matching the properties. All properties defined must match a single address.","properties":{"country":{"type":"array","example":["NO"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.store.address.country.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.address.country","typeLabel":"string[]"},"postal_code":{"type":"array","example":["0349"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.store.address.postal_code.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.address.postal_code","typeLabel":"string[]"},"postal_place":{"type":"array","example":["Oslo"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.store.address.postal_place.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.address.postal_place","typeLabel":"string[]"}},"uniqueKey":"requirement.store.address","typeLabel":"object"},"chain":{"type":"array","items":{"type":"string","example":"SuperChain","uniqueKey":"requirement.store.chain.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.chain","typeLabel":"string[]"},"email":{"type":"array","items":{"type":"string","example":"contact@superchain.com","uniqueKey":"requirement.store.email.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.email","typeLabel":"string[]"},"gln":{"type":"array","items":{"type":"string","example":"5790001398644","uniqueKey":"requirement.store.gln.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.gln","typeLabel":"string[]"},"organization_number":{"type":"array","items":{"type":"string","example":"123456789MVA","uniqueKey":"requirement.store.organization_number.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.organization_number","typeLabel":"string[]"},"phone_number":{"type":"array","items":{"type":"string","example":"+4738260107","uniqueKey":"requirement.store.phone_number.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.phone_number","typeLabel":"string[]"},"mcc":{"type":"array","description":"A four-digit Merchant Category Code (MCC) for the store\n[ISO 18245:2003](https://www.iso.org/standard/33365.html)\n","items":{"type":"string","format":"iso-18245","example":5814,"uniqueKey":"requirement.store.mcc.items.[INDEX]","typeLabel":"string\u003ciso-18245>"},"uniqueKey":"requirement.store.mcc","typeLabel":"string\u003ciso-18245>[]"},"mcc_ranges":{"type":"array","description":"Ranges of MCC codes to accept the discount for.\nMultiple ranges are possible.\nPrefer `mcc` if not a range.\n","items":{"type":"object","required":["start","end"],"properties":{"start":{"type":"string","format":"iso-18245","example":5814,"minimum":4,"maximum":4,"pattern":"^\\d{4}$","isRequired":true,"uniqueKey":"requirement.store.mcc_ranges.items.[INDEX].start","typeLabel":"string\u003ciso-18245>"},"end":{"type":"string","format":"iso-18245","example":5815,"minimum":4,"maximum":4,"pattern":"^\\d{4}$","isRequired":true,"uniqueKey":"requirement.store.mcc_ranges.items.[INDEX].end","typeLabel":"string\u003ciso-18245>"}},"uniqueKey":"requirement.store.mcc_ranges.items.[INDEX]","typeLabel":"object"},"uniqueKey":"requirement.store.mcc_ranges","typeLabel":"object[]"},"bax":{"type":"array","description":"Merchant number associated with the stores\npayment terminal\n","items":{"type":"string","example":"102603","uniqueKey":"requirement.store.bax.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.bax","typeLabel":"string[]"},"terminal_id":{"type":"array","description":"Id to a specific point-of-sale (POS) terminal\nor workstation\n","items":{"type":"string","example":"T0292","uniqueKey":"requirement.store.terminal_id.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.terminal_id","typeLabel":"string[]"}},"uniqueKey":"requirement.store","typeLabel":"object"}},"isRequired":true,"uniqueKey":"requirement","typeLabel":"object"},"reward":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"\nReward Type:\n * `discount_amount` - value as discount\n * `discount_percent` - value percentage of gross amount\n as discount\n * `discount_item_new_price` - discount as old price subtracted with value\n * `discount_item_quantity` - number of items to get as discount (free)\n * `discount_item_percent` - percent discount of the cheapest item (stamp)\n as discount\n * `discount_debit` - value as discount, remaining amount after a\n purchase will be available in future purchases (if not limited by usage)\n * `discount_mix_new_price` - discount as old mix total value (reward_eligible=true)\n subtracted with value\n","enum":["discount_amount","discount_percent","discount_item_new_price","discount_item_quantity","discount_item_percent","discount_mix_new_price","discount_debit"],"isRequired":true,"uniqueKey":"reward.type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"integer","description":"The reward value, unit of the value is resolved\nfrom the reward type\n\nExamples:\n - Percent: 10.5\n - Amount: 10000 (amount in smallest unit for the currency)\n - Quantity: 1\n","minimum":0,"example":10000,"isRequired":true,"uniqueKey":"reward.value.oneOf.0","typeLabel":"integer"},{"type":"number","description":"The reward value, unit of the value is resolved\nfrom the reward type\n\nExamples:\n - Percent: 10.5\n - Amount: 10000 (amount in smallest unit for the currency)\n - Quantity: 1\n","minimum":0,"example":10000,"isRequired":true,"uniqueKey":"reward.value.oneOf.1","typeLabel":"number"}],"isRequired":true,"uniqueKey":"reward.value","typeLabel":"integer | number"},"values":{"description":"Reward values that is used to \"override\" the reward value for matching items.\nAdd support for having a single rule for multiple items that gives different\nreward value for each items\n\n> Only available for rules where `requirements.item.items` is non-empty.\n","type":"array","minItems":1,"items":{"type":"object","required":["items","value"],"properties":{"items":{"type":"array","minItems":1,"description":"`id` or `group_id` is required, if both are included both id and\ngroup id must match\n","items":{"type":"object","properties":{"id":{"type":"string","example":"b714118","uniqueKey":"reward.values.items.[INDEX].\\items.items.[INDEX].id","typeLabel":"string"},"group_id":{"type":"string","example":"B1","uniqueKey":"reward.values.items.[INDEX].\\items.items.[INDEX].group_id","typeLabel":"string"}},"uniqueKey":"reward.values.items.[INDEX].\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"reward.values.items.[INDEX].\\items","typeLabel":"object[]"},"value":{"type":"number","isRequired":true,"uniqueKey":"reward.values.items.[INDEX].value","typeLabel":"number"}},"uniqueKey":"reward.values.items.[INDEX]","typeLabel":"object"},"uniqueKey":"reward.values","typeLabel":"object[]"},"base":{"type":"string","description":"Let the discount reward be calculated from net or gross price.\nNot applicable for `discount_item_new_price`\n\n*Example*:\n item A à 100,- NOK with existing rebate of 20,-\n\n - 10% net reward is 10% of 80,- : 8,-\n - 10% gross reward is 10% of 100,- : 10,-\n\n * *net*: `gross - \"any existing discounts\"`\n * *gross*: `\"total expense amount, including taxes\"`\n","default":"gross","enum":["net","gross"],"uniqueKey":"reward.base","typeLabel":"enum\u003cstring>"},"effect":{"type":"string","description":"How the reward will be added to the receipt.\n- `discount`: the reward will be applied as a discount directly on the receipt\n- `bonus`: the reward will be accumulated as bonus on the customers discount balance\n","default":"discount","enum":["discount","bonus"],"uniqueKey":"reward.effect","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"reward","typeLabel":"object"},"campaign_id":{"type":"string","description":"The campaign the rule belongs to\n","uniqueKey":"campaign_id","typeLabel":"string"},"active":{"description":"the discount is active and can be available\nfor purchase (if given to any or all customers)\n","type":"boolean","default":true,"uniqueKey":"active","typeLabel":"boolean"},"private":{"description":"the discount will be excluded from public discount collection\n(GET /discounts/public/rules).\n","type":"boolean","default":false,"uniqueKey":"private","typeLabel":"boolean"},"name":{"type":"string","example":"Spar 100,-","uniqueKey":"name","typeLabel":"string"},"receipt_text":{"type":"string","description":"Text that should be used when displaying\nthe discount, e.g. on receipt\n","example":"Mai Salg","uniqueKey":"receipt_text","typeLabel":"string"},"visible_from":{"type":"string","format":"date-time","description":"Make the discount visible to the customer from\ngiven date. Default behavior is to only return\ndiscount to the customer where the current time\nis between purchase_from and purchase_to\n","uniqueKey":"visible_from","typeLabel":"string\u003cdate-time>"},"description":{"type":"string","example":"Gjør et Stablestol kupp!","uniqueKey":"description","typeLabel":"string"},"limitation":{"type":"object","properties":{"dynamic_purchase_to_days":{"type":"number","format":"int32","minimum":1,"description":"Limit the `purchase_to` to the time added to a customer + the days\n\nThe customer discount rule `purchase_to` will be set to the minimum\nof `requirement.purchase_to` and `now + limitation.dynamic_purchase_to_days`\n","uniqueKey":"limitation.dynamic_purchase_to_days","typeLabel":"number\u003cint32>"},"discount_activation":{"type":"array","description":"Dynamically control if the discount should be active.\n","items":{"minItems":1,"maxItems":1,"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"- `deactivate_if_discount_active`: The discount is deactivated if\n the value match the `id` of another active discount\n available for the purchase\n","enum":["deactivate_if_discount_active"],"isRequired":true,"uniqueKey":"limitation.discount_activation.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"Value given the type\n","isRequired":true,"uniqueKey":"limitation.discount_activation.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"limitation.discount_activation.items.[INDEX]","typeLabel":"object"},"uniqueKey":"limitation.discount_activation","typeLabel":"object[]"},"discount_hours":{"type":"object","description":"Limit the discount to hours of the day\n","required":["hours"],"properties":{"hours":{"description":"an array of periods, day and time when discount will be\navailable. Multiple periods for one day is accepted.\nAny hour of purchase is accepted if the array is empty.\n","type":"array","items":{"type":"object","required":["day","start","end"],"properties":{"day":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"isRequired":true,"uniqueKey":"limitation.discount_hours.hours.items.[INDEX].day","typeLabel":"enum\u003cstring>"},"start":{"type":"string","pattern":"^([01]?[0-9]|2[0-3]):[0-5][0-9]$","example":"10:00","isRequired":true,"uniqueKey":"limitation.discount_hours.hours.items.[INDEX].start","typeLabel":"string"},"end":{"type":"string","pattern":"^([01]?[0-9]|2[0-3]):[0-5][0-9]$","example":"20:00","isRequired":true,"uniqueKey":"limitation.discount_hours.hours.items.[INDEX].end","typeLabel":"string"}},"uniqueKey":"limitation.discount_hours.hours.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"limitation.discount_hours.hours","typeLabel":"object[]"},"timezone":{"description":"The timezone identifier for the hour start/end, see\nhttps://en.wikipedia.org/wiki/List_of_tz_database_time_zones\nfor examples. DST is handled when using a Timezone with DST.\n","default":"Europe/Oslo","type":"string","uniqueKey":"limitation.discount_hours.timezone","typeLabel":"string"}},"uniqueKey":"limitation.discount_hours","typeLabel":"object"},"discount_reward_usage":{"type":"integer","description":"Limit the number of rewards to be given in a purchase\nwhere multiple receipt items match the requirement\n","example":1,"default":-1,"uniqueKey":"limitation.discount_reward_usage","typeLabel":"integer"},"discount_combination":{"type":"integer","description":"Limit how many other discounts can be combined in a purchase\nwhere multiple discounts are applicable.\n","default":-1,"enum":[-1,0],"uniqueKey":"limitation.discount_combination","typeLabel":"enum\u003cinteger>"},"discount_eligible":{"type":"string","description":"Limit what items in the purchase is eligible for this discount\n","enum":["item_eligible_for_discount","item_eligible_for_discount_no_discount","receipt_no_discount"],"default":"item_eligible_for_discount","uniqueKey":"limitation.discount_eligible","typeLabel":"enum\u003cstring>"},"discount_repeat_usage":{"type":"integer","description":"Limit how many purchases the discount can be used\n","default":-1,"uniqueKey":"limitation.discount_repeat_usage","typeLabel":"integer"},"stamp_expire_days":{"type":"integer","description":"Number of days between first and last (exceeding count) stamp\nwhere reward will be given\n","example":100,"default":-1,"uniqueKey":"limitation.stamp_expire_days","typeLabel":"integer"},"blacklist":{"type":"array","description":"items not eligible for discount.\n","items":{"type":"object","properties":{"id":{"type":"string","example":"b714118","uniqueKey":"limitation.blacklist.items.[INDEX].id","typeLabel":"string"},"group_id":{"type":"string","example":"B1","uniqueKey":"limitation.blacklist.items.[INDEX].group_id","typeLabel":"string"}},"uniqueKey":"limitation.blacklist.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"limitation.blacklist","typeLabel":"object[]"}},"uniqueKey":"limitation","typeLabel":"object"},"metadata":{"type":"object","maxProperties":10,"description":"Additional metadata about the discount\n\nMetadata prefixed with `dintero:exclude:public:` will\nbe excluded when listing the rules from the public endpoint\n\n- [GET /v1/accounts/{aid}/discounts/public/rules](/discounts-api/rules/aid_discounts_public_get)\n\nand included in all other endpoints that returns discount rules\n","example":{"campaign_id":"V101","is_featured":true,"dintero:private_text:kind":"Gold"},"uniqueKey":"metadata","typeLabel":"object"},"links":{"description":"Links to resources related to the discount","type":"array","example":[{"href":"https://example.dintero.com/c/photos/2018/6_20_thumbnail_discount_image.png","rel":"thumbnail_discount_image"},{"href":"https://example.dintero.com/c/photos/2018/6_20_medium_discount_image.png","rel":"medium_discount_image"},{"href":"https://example.dintero.com/shop?utm_source=dintero\u0026utm_medium=email\u0026utm_campaign=spring-summer","rel":"webshoop"},{"href":"https://example.dintero.com/newsletter/2018.pdf","rel":"newletter","type":"application/pdf"}],"items":{"type":"object","maxItems":10,"required":["href"],"properties":{"href":{"description":"The URL of the link.","type":"string","format":"uri","isRequired":true,"uniqueKey":"links.items.[INDEX].href","typeLabel":"string\u003curi>"},"rel":{"description":"Specifies the relationship between the discount and the link\n\nFollowing `rel` values are reserved for specific usage\n\n - thumbnail_discount_image: link to discount image\n - medium_discount_image: link to discount image\n - large_discount_image: link to discount image\n - webshop: link to site where the discount may be used\n","type":"string","uniqueKey":"links.items.[INDEX].rel","typeLabel":"string"},"type":{"type":"string","description":"Specifies the media type of the link","uniqueKey":"links.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"links.items.[INDEX]","typeLabel":"object"},"uniqueKey":"links","typeLabel":"object[]"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requirement":{"purchase_from":"2023-11-07T05:31:56Z","purchase_to":"2023-11-07T05:31:56Z","customer":{"addresses":[{"country":["NO"],"postal_code":["0349"],"postal_place":["Oslo"],"custom_type":["offsite"],"type":["custom"]}],"company":{"bussiness_name":["TKP tech AS"],"department":["production","research"],"industry":["J62.0.1","J62.0.2"],"number_of_employees":["20"],"organization_number":["123456789MVA"],"website":["https://dintero.com"]},"date_of_birth":["1990-09-20","1990-05-10"],"enrolled_by":{"type":["url"],"value":["https://mypage.example.dintero.com"]},"favorite_store":["sc029"],"first_name":["John"],"gender":["male"],"last_name":["Doe"],"marketing_consent":{"email":{"consent":["true"]},"sms":{"consent":["true"]}},"status":["vip"],"term":{"id":["\u003cstring>"]},"type":["\u003cstring>"],"attributes":{}},"item":{"quantity":0,"mixes":[{"items":[{"id":"b714118"},{"group_id":"g4"}],"quantity":1,"reward_eligible":true}],"items":[{"id":"b714118","group_id":"B1"}]},"store_ids":["sc029"],"gross_amount":0,"net_amount":0,"currencies":[{"anything-but":["NOK"]}],"stamp":5,"discount_code":"TACO","store":{"id":["sc029"],"name":["SC Oslo"],"business_name":["SC Oslo AS"],"address":{"country":["NO"],"postal_code":["0349"],"postal_place":["Oslo"]},"chain":["SuperChain"],"email":["contact@superchain.com"],"gln":["5790001398644"],"organization_number":["123456789MVA"],"phone_number":["+4738260107"],"mcc":[5814],"mcc_ranges":[{"start":5814,"end":5815}],"bax":["102603"],"terminal_id":["T0292"]}},"reward":{"value":10000,"values":[{"items":[{"id":"b714118","group_id":"B1"}],"value":123}],"base":"gross","effect":"discount"},"campaign_id":"\u003cstring>","active":true,"private":false,"name":"Spar 100,-","receipt_text":"Mai Salg","visible_from":"2023-11-07T05:31:56Z","description":"Gjør et Stablestol kupp!","limitation":{"dynamic_purchase_to_days":2,"discount_activation":[{"type":"deactivate_if_discount_active","value":"\u003cstring>"}],"discount_reward_usage":1,"discount_combination":-1,"discount_eligible":"item_eligible_for_discount","discount_repeat_usage":-1,"stamp_expire_days":100,"blacklist":[{"id":"b714118","group_id":"B1"}]},"metadata":{"campaign_id":"V101","is_featured":true,"dintero:private_text:kind":"Gold"},"links":[{"href":"https://example.dintero.com/c/photos/2018/6_20_thumbnail_discount_image.png","rel":"thumbnail_discount_image"},{"href":"https://example.dintero.com/c/photos/2018/6_20_medium_discount_image.png","rel":"medium_discount_image"},{"href":"https://example.dintero.com/shop?utm_source=dintero\u0026utm_medium=email\u0026utm_campaign=spring-summer","rel":"webshoop"},{"href":"https://example.dintero.com/newsletter/2018.pdf","rel":"newletter","type":"application/pdf"}]}}},"exampleType":"generated"}},"description":"Discount to create","required":true,"exampleType":"generated"},"responses":{"5d47fef1-b18d-4583-b4b1-0e489b66b50d":{"description":"Discount created","content":{"application/json":{"schema":{"required":["requirement","reward"],"properties":{"requirement":{"type":"object","description":"Discount base requirement\n","required":["purchase_from","purchase_to"],"properties":{"purchase_from":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"requirement.purchase_from","typeLabel":"string\u003cdate-time>"},"purchase_to":{"type":"string","format":"date-time","isRequired":true,"uniqueKey":"requirement.purchase_to","typeLabel":"string\u003cdate-time>"},"customer":{"type":"object","properties":{"addresses":{"type":"array","description":"Require customer to have one or more addresses matching the properties. All properties defined must match a single address.","items":{"type":"object","minItems":1,"maxItems":5,"properties":{"country":{"type":"array","example":["NO"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].country.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].country","typeLabel":"string[]"},"postal_code":{"type":"array","example":["0349"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].postal_code.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].postal_code","typeLabel":"string[]"},"postal_place":{"type":"array","example":["Oslo"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].postal_place.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].postal_place","typeLabel":"string[]"},"custom_type":{"type":"array","example":["offsite"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].custom_type.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].custom_type","typeLabel":"string[]"},"type":{"type":"array","example":["custom"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.addresses.items.[INDEX].type.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.addresses.items.[INDEX].type","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.addresses.items.[INDEX]","typeLabel":"object"},"uniqueKey":"requirement.customer.addresses","typeLabel":"object[]"},"company":{"type":"object","description":"Require customer to be a company matching all properties defined.\n","properties":{"bussiness_name":{"type":"array","example":["TKP tech AS"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.bussiness_name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.bussiness_name","typeLabel":"string[]"},"department":{"type":"array","example":["production","research"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.department.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.department","typeLabel":"string[]"},"industry":{"type":"array","example":["J62.0.1","J62.0.2"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.industry.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.industry","typeLabel":"string[]"},"number_of_employees":{"type":"array","example":["20"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.number_of_employees.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.number_of_employees","typeLabel":"string[]"},"organization_number":{"type":"array","example":["123456789MVA"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.organization_number.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.organization_number","typeLabel":"string[]"},"website":{"type":"array","example":["https://dintero.com"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.company.website.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.company.website","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.company","typeLabel":"object"},"date_of_birth":{"type":"array","example":["1990-09-20","1990-05-10"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.date_of_birth.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.date_of_birth","typeLabel":"string[]"},"enrolled_by":{"type":"object","properties":{"type":{"type":"array","example":["url"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.enrolled_by.type.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.enrolled_by.type","typeLabel":"string[]"},"value":{"type":"array","example":["https://mypage.example.dintero.com"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.enrolled_by.value.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.enrolled_by.value","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.enrolled_by","typeLabel":"object"},"favorite_store":{"type":"array","example":["sc029"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.favorite_store.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.favorite_store","typeLabel":"string[]"},"first_name":{"type":"array","example":["John"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.first_name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.first_name","typeLabel":"string[]"},"gender":{"type":"array","example":["male"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.gender.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.gender","typeLabel":"string[]"},"last_name":{"type":"array","example":["Doe"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.last_name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.last_name","typeLabel":"string[]"},"marketing_consent":{"type":"object","properties":{"email":{"type":"object","properties":{"consent":{"type":"array","example":["true"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.marketing_consent.email.consent.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.marketing_consent.email.consent","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.marketing_consent.email","typeLabel":"object"},"sms":{"type":"object","properties":{"consent":{"type":"array","example":["true"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.marketing_consent.sms.consent.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.marketing_consent.sms.consent","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.marketing_consent.sms","typeLabel":"object"}},"uniqueKey":"requirement.customer.marketing_consent","typeLabel":"object"},"status":{"type":"array","example":["vip"],"description":"limit discount to only receipt where customer status\nis included in the receipt and match one of the status\nvalues required by the discount\n","items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.status.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.status","typeLabel":"string[]"},"term":{"type":"object","properties":{"id":{"type":"array","items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.term.id.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.term.id","typeLabel":"string[]"}},"uniqueKey":"requirement.customer.term","typeLabel":"object"},"type":{"type":"array","items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.type.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.customer.type","typeLabel":"string[]"},"attributes":{"type":"object","description":"Limit discount to only receipt where customer attributes are included\nand match one of the values required by the discount\n","additionalProperties":{"type":"array","items":{"type":"string","uniqueKey":"requirement.customer.attributes.additionalProperties.items.[INDEX]","typeLabel":"string"},"minItems":1,"maxItems":5,"uniqueKey":"requirement.customer.attributes.additionalProperties","typeLabel":"string[]"},"uniqueKey":"requirement.customer.attributes","typeLabel":"object"}},"uniqueKey":"requirement.customer","typeLabel":"object"},"item":{"type":"object","properties":{"quantity":{"type":"number","description":"minimum number of items\n","default":0,"minimum":0,"uniqueKey":"requirement.item.quantity","typeLabel":"number"},"mixes":{"type":"array","minItems":1,"description":"Required mix items for the discount.\n\nA purchase must include `all` the items to fulfill the `item.mixes`\nrequirement.\n","items":{"type":"object","description":"Use mix in case where all items are required in one purchase.\n\nA reward will be eligible to all items in the mix that\nhas `mix.reward_eligible=true`\n","required":["items","quantity","reward_eligible"],"properties":{"items":{"description":"Acceptable items for the mix \"item\" (`any`). No wildcard `*` is\naccepted.\n","type":"array","example":[{"id":"b714118"},{"group_id":"g4"}],"items":{"type":"object","minItems":1,"properties":{"id":{"type":"string","example":"b714118","pattern":"^(\\*.+|(?!\\*).*)$","uniqueKey":"requirement.item.mixes.items.[INDEX].\\items.items.[INDEX].id","typeLabel":"string"},"group_id":{"type":"string","pattern":"^(\\*.+|(?!\\*).*)$","example":"g4","uniqueKey":"requirement.item.mixes.items.[INDEX].\\items.items.[INDEX].group_id","typeLabel":"string"}},"uniqueKey":"requirement.item.mixes.items.[INDEX].\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"requirement.item.mixes.items.[INDEX].\\items","typeLabel":"object[]"},"quantity":{"type":"number","description":"minimum quantity of given item (match by id or group) by the mix\n","minimum":0,"isRequired":true,"uniqueKey":"requirement.item.mixes.items.[INDEX].quantity","typeLabel":"number"},"reward_eligible":{"type":"boolean","description":"The item will be eligible for discount when calculating the reward\nExample: The value of `discount_item_new_price` reward will be the\ntotal price of all items in a mix that has the applicable set to `true`\n","isRequired":true,"uniqueKey":"requirement.item.mixes.items.[INDEX].reward_eligible","typeLabel":"boolean"}},"uniqueKey":"requirement.item.mixes.items.[INDEX]","typeLabel":"object"},"uniqueKey":"requirement.item.mixes","typeLabel":"object[]"},"items":{"type":"array","description":"Required items for the discount\n\nA purchase can include `any` of the items to fulfill the `item.items`\nrequirement.\n\nThe values contols if the reward is given on the receipt (all items) or\nif they are limited to matching items\n\n**Receipt**\n- A rule with no items or items with only wildcard items\n\n**Item**\n- A rule with one or more items (except wildcard)\n- A rule with a single item `{\"id\": \"ANY_ITEM\"}` in items\n","items":{"type":"object","properties":{"id":{"type":"string","example":"b714118","uniqueKey":"requirement.item.\\items.items.[INDEX].id","typeLabel":"string"},"group_id":{"type":"string","example":"B1","uniqueKey":"requirement.item.\\items.items.[INDEX].group_id","typeLabel":"string"}},"uniqueKey":"requirement.item.\\items.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"requirement.item.\\items","typeLabel":"object[]"}},"uniqueKey":"requirement.item","typeLabel":"object"},"store_ids":{"type":"array","description":"`DEPRECATED`: [@since 2021-09-01](#section/Changelog/2021-09-01)\n","items":{"type":"string","example":"sc029","uniqueKey":"requirement.store_ids.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store_ids","typeLabel":"string[]"},"gross_amount":{"type":"integer","description":"Minimum gross amount on purchase.\nMonetary amount in smallest unit for the currency\n","default":0,"uniqueKey":"requirement.gross_amount","typeLabel":"integer"},"net_amount":{"type":"integer","description":"Minimum net amount on purchase (amount after existing discounts).\nMonetary amount in smallest unit for the currency\n","default":0,"uniqueKey":"requirement.net_amount","typeLabel":"integer"},"currencies":{"description":"List of valid currencies, or `[{\"anything-but\": [\"NOK\"]}]` to exclude currencies.\nCurrency format is the three-character [ISO-4217 currency](https://en.wikipedia.org/wiki/ISO_4217).\n","type":"array","items":{"oneOf":[{"type":"object","properties":{"anything-but":{"type":"array","items":{"type":"string","example":"NOK","uniqueKey":"requirement.currencies.items.[INDEX].oneOf.0.anything-but.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.currencies.items.[INDEX].oneOf.0.anything-but","typeLabel":"string[]"}},"uniqueKey":"requirement.currencies.items.[INDEX].oneOf.0","typeLabel":"object"},{"type":"string","example":"NOK","uniqueKey":"requirement.currencies.items.[INDEX].oneOf.1","typeLabel":"string"}],"uniqueKey":"requirement.currencies.items.[INDEX]","typeLabel":"object | string"},"uniqueKey":"requirement.currencies","typeLabel":"(object | string)[]"},"stamp":{"type":"integer","description":"Stamp count required for the reward\n","example":5,"uniqueKey":"requirement.stamp","typeLabel":"integer"},"discount_code":{"type":"string","description":"A code required for the reward. The purchase must include the\npromotion code in the `receipt.discount_code` property or as\nan `receipt.item` where the `item.id` is the promotion code.\n","example":"TACO","uniqueKey":"requirement.discount_code","typeLabel":"string"},"store":{"type":"object","properties":{"id":{"type":"array","items":{"type":"string","example":"sc029","uniqueKey":"requirement.store.id.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.id","typeLabel":"string[]"},"name":{"type":"array","description":"name of the store, aka trade name of the store\n","items":{"type":"string","example":"SC Oslo","uniqueKey":"requirement.store.name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.name","typeLabel":"string[]"},"business_name":{"type":"array","description":"Official name of the person or entity that owns the store.\n","items":{"type":"string","example":"SC Oslo AS","uniqueKey":"requirement.store.business_name.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.business_name","typeLabel":"string[]"},"address":{"type":"object","description":"Require customer to have one or more addresses matching the properties. All properties defined must match a single address.","properties":{"country":{"type":"array","example":["NO"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.store.address.country.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.address.country","typeLabel":"string[]"},"postal_code":{"type":"array","example":["0349"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.store.address.postal_code.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.address.postal_code","typeLabel":"string[]"},"postal_place":{"type":"array","example":["Oslo"],"items":{"type":"string","minItems":1,"maxItems":5,"uniqueKey":"requirement.store.address.postal_place.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.address.postal_place","typeLabel":"string[]"}},"uniqueKey":"requirement.store.address","typeLabel":"object"},"chain":{"type":"array","items":{"type":"string","example":"SuperChain","uniqueKey":"requirement.store.chain.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.chain","typeLabel":"string[]"},"email":{"type":"array","items":{"type":"string","example":"contact@superchain.com","uniqueKey":"requirement.store.email.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.email","typeLabel":"string[]"},"gln":{"type":"array","items":{"type":"string","example":"5790001398644","uniqueKey":"requirement.store.gln.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.gln","typeLabel":"string[]"},"organization_number":{"type":"array","items":{"type":"string","example":"123456789MVA","uniqueKey":"requirement.store.organization_number.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.organization_number","typeLabel":"string[]"},"phone_number":{"type":"array","items":{"type":"string","example":"+4738260107","uniqueKey":"requirement.store.phone_number.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.phone_number","typeLabel":"string[]"},"mcc":{"type":"array","description":"A four-digit Merchant Category Code (MCC) for the store\n[ISO 18245:2003](https://www.iso.org/standard/33365.html)\n","items":{"type":"string","format":"iso-18245","example":5814,"uniqueKey":"requirement.store.mcc.items.[INDEX]","typeLabel":"string\u003ciso-18245>"},"uniqueKey":"requirement.store.mcc","typeLabel":"string\u003ciso-18245>[]"},"mcc_ranges":{"type":"array","description":"Ranges of MCC codes to accept the discount for.\nMultiple ranges are possible.\nPrefer `mcc` if not a range.\n","items":{"type":"object","required":["start","end"],"properties":{"start":{"type":"string","format":"iso-18245","example":5814,"minimum":4,"maximum":4,"pattern":"^\\d{4}$","isRequired":true,"uniqueKey":"requirement.store.mcc_ranges.items.[INDEX].start","typeLabel":"string\u003ciso-18245>"},"end":{"type":"string","format":"iso-18245","example":5815,"minimum":4,"maximum":4,"pattern":"^\\d{4}$","isRequired":true,"uniqueKey":"requirement.store.mcc_ranges.items.[INDEX].end","typeLabel":"string\u003ciso-18245>"}},"uniqueKey":"requirement.store.mcc_ranges.items.[INDEX]","typeLabel":"object"},"uniqueKey":"requirement.store.mcc_ranges","typeLabel":"object[]"},"bax":{"type":"array","description":"Merchant number associated with the stores\npayment terminal\n","items":{"type":"string","example":"102603","uniqueKey":"requirement.store.bax.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.bax","typeLabel":"string[]"},"terminal_id":{"type":"array","description":"Id to a specific point-of-sale (POS) terminal\nor workstation\n","items":{"type":"string","example":"T0292","uniqueKey":"requirement.store.terminal_id.items.[INDEX]","typeLabel":"string"},"uniqueKey":"requirement.store.terminal_id","typeLabel":"string[]"}},"uniqueKey":"requirement.store","typeLabel":"object"}},"isRequired":true,"uniqueKey":"requirement","typeLabel":"object"},"reward":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"\nReward Type:\n * `discount_amount` - value as discount\n * `discount_percent` - value percentage of gross amount\n as discount\n * `discount_item_new_price` - discount as old price subtracted with value\n * `discount_item_quantity` - number of items to get as discount (free)\n * `discount_item_percent` - percent discount of the cheapest item (stamp)\n as discount\n * `discount_debit` - value as discount, remaining amount after a\n purchase will be available in future purchases (if not limited by usage)\n * `discount_mix_new_price` - discount as old mix total value (reward_eligible=true)\n subtracted with value\n","enum":["discount_amount","discount_percent","discount_item_new_price","discount_item_quantity","discount_item_percent","discount_mix_new_price","discount_debit"],"isRequired":true,"uniqueKey":"reward.type","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"integer","description":"The reward value, unit of the value is resolved\nfrom the reward type\n\nExamples:\n - Percent: 10.5\n - Amount: 10000 (amount in smallest unit for the currency)\n - Quantity: 1\n","minimum":0,"example":10000,"isRequired":true,"uniqueKey":"reward.value.oneOf.0","typeLabel":"integer"},{"type":"number","description":"The reward value, unit of the value is resolved\nfrom the reward type\n\nExamples:\n - Percent: 10.5\n - Amount: 10000 (amount in smallest unit for the currency)\n - Quantity: 1\n","minimum":0,"example":10000,"isRequired":true,"uniqueKey":"reward.value.oneOf.1","typeLabel":"number"}],"isRequired":true,"uniqueKey":"reward.value","typeLabel":"integer | number"},"values":{"description":"Reward values that is used to \"override\" the reward value for matching items.\nAdd support for having a single rule for multiple items that gives different\nreward value for each items\n\n> Only available for rules where `requirements.item.items` is non-empty.\n","type":"array","minItems":1,"items":{"type":"object","required":["items","value"],"properties":{"items":{"type":"array","minItems":1,"description":"`id` or `group_id` is required, if both are included both id and\ngroup id must match\n","items":{"type":"object","properties":{"id":{"type":"string","example":"b714118","uniqueKey":"reward.values.items.[INDEX].\\items.items.[INDEX].id","typeLabel":"string"},"group_id":{"type":"string","example":"B1","uniqueKey":"reward.values.items.[INDEX].\\items.items.[INDEX].group_id","typeLabel":"string"}},"uniqueKey":"reward.values.items.[INDEX].\\items.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"reward.values.items.[INDEX].\\items","typeLabel":"object[]"},"value":{"type":"number","isRequired":true,"uniqueKey":"reward.values.items.[INDEX].value","typeLabel":"number"}},"uniqueKey":"reward.values.items.[INDEX]","typeLabel":"object"},"uniqueKey":"reward.values","typeLabel":"object[]"},"base":{"type":"string","description":"Let the discount reward be calculated from net or gross price.\nNot applicable for `discount_item_new_price`\n\n*Example*:\n item A à 100,- NOK with existing rebate of 20,-\n\n - 10% net reward is 10% of 80,- : 8,-\n - 10% gross reward is 10% of 100,- : 10,-\n\n * *net*: `gross - \"any existing discounts\"`\n * *gross*: `\"total expense amount, including taxes\"`\n","default":"gross","enum":["net","gross"],"uniqueKey":"reward.base","typeLabel":"enum\u003cstring>"},"effect":{"type":"string","description":"How the reward will be added to the receipt.\n- `discount`: the reward will be applied as a discount directly on the receipt\n- `bonus`: the reward will be accumulated as bonus on the customers discount balance\n","default":"discount","enum":["discount","bonus"],"uniqueKey":"reward.effect","typeLabel":"enum\u003cstring>"}},"isRequired":true,"uniqueKey":"reward","typeLabel":"object"},"id":{"type":"string","format":"uuid","description":"An UUID that uniquely identifies the resource\n","readOnly":true,"uniqueKey":"id","typeLabel":"string\u003cuuid>"},"created_at":{"type":"string","format":"date-time","description":"The date-time when the resource was created\n","readOnly":true,"uniqueKey":"created_at","typeLabel":"string\u003cdate-time>"},"created_by":{"type":"string","example":"1c92f7e1-2897-4d46-bdcc-c127a914fb4e","description":"The ID of the user/client created the resource\n","readOnly":true,"uniqueKey":"created_by","typeLabel":"string"},"updated_at":{"type":"string","format":"date-time","description":"The date-time when the resource was last updated\n","readOnly":true,"uniqueKey":"updated_at","typeLabel":"string\u003cdate-time>"},"deleted_by":{"type":"string","example":"1c92f7e1-2897-4d46-bdcc-c127a914fb4e","description":"The ID of the user/client created the resource\n","readOnly":true,"uniqueKey":"deleted_by","typeLabel":"string"},"deleted_at":{"type":"string","format":"date-time","readOnly":true,"uniqueKey":"deleted_at","typeLabel":"string\u003cdate-time>"},"campaign_id":{"type":"string","description":"The campaign the rule belongs to\n","uniqueKey":"campaign_id","typeLabel":"string"},"active":{"description":"the discount is active and can be available\nfor purchase (if given to any or all customers)\n","type":"boolean","default":true,"uniqueKey":"active","typeLabel":"boolean"},"private":{"description":"the discount will be excluded from public discount collection\n(GET /discounts/public/rules).\n","type":"boolean","default":false,"uniqueKey":"private","typeLabel":"boolean"},"updated_by":{"type":"string","example":"3d1e4824-5474-48e7-a369-4f603fa4c5b8","description":"The ID of the user/client that last updated the resource\n","readOnly":true,"uniqueKey":"updated_by","typeLabel":"string"},"type":{"type":"string","description":"The discount base type * `receipt` discount is given on receipt * `item` discount is given to items","enum":["item","receipt"],"readOnly":true,"uniqueKey":"type","typeLabel":"enum\u003cstring>"},"name":{"type":"string","example":"Spar 100,-","uniqueKey":"name","typeLabel":"string"},"receipt_text":{"type":"string","description":"Text that should be used when displaying\nthe discount, e.g. on receipt\n","example":"Mai Salg","uniqueKey":"receipt_text","typeLabel":"string"},"visible_from":{"type":"string","format":"date-time","description":"Make the discount visible to the customer from\ngiven date. Default behavior is to only return\ndiscount to the customer where the current time\nis between purchase_from and purchase_to\n","uniqueKey":"visible_from","typeLabel":"string\u003cdate-time>"},"description":{"type":"string","example":"Gjør et Stablestol kupp!","uniqueKey":"description","typeLabel":"string"},"limitation":{"type":"object","properties":{"dynamic_purchase_to_days":{"type":"number","format":"int32","minimum":1,"description":"Limit the `purchase_to` to the time added to a customer + the days\n\nThe customer discount rule `purchase_to` will be set to the minimum\nof `requirement.purchase_to` and `now + limitation.dynamic_purchase_to_days`\n","uniqueKey":"limitation.dynamic_purchase_to_days","typeLabel":"number\u003cint32>"},"discount_activation":{"type":"array","description":"Dynamically control if the discount should be active.\n","items":{"minItems":1,"maxItems":1,"type":"object","required":["type","value"],"properties":{"type":{"type":"string","description":"- `deactivate_if_discount_active`: The discount is deactivated if\n the value match the `id` of another active discount\n available for the purchase\n","enum":["deactivate_if_discount_active"],"isRequired":true,"uniqueKey":"limitation.discount_activation.items.[INDEX].type","typeLabel":"enum\u003cstring>"},"value":{"type":"string","description":"Value given the type\n","isRequired":true,"uniqueKey":"limitation.discount_activation.items.[INDEX].value","typeLabel":"string"}},"uniqueKey":"limitation.discount_activation.items.[INDEX]","typeLabel":"object"},"uniqueKey":"limitation.discount_activation","typeLabel":"object[]"},"discount_hours":{"type":"object","description":"Limit the discount to hours of the day\n","required":["hours"],"properties":{"hours":{"description":"an array of periods, day and time when discount will be\navailable. Multiple periods for one day is accepted.\nAny hour of purchase is accepted if the array is empty.\n","type":"array","items":{"type":"object","required":["day","start","end"],"properties":{"day":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"],"isRequired":true,"uniqueKey":"limitation.discount_hours.hours.items.[INDEX].day","typeLabel":"enum\u003cstring>"},"start":{"type":"string","pattern":"^([01]?[0-9]|2[0-3]):[0-5][0-9]$","example":"10:00","isRequired":true,"uniqueKey":"limitation.discount_hours.hours.items.[INDEX].start","typeLabel":"string"},"end":{"type":"string","pattern":"^([01]?[0-9]|2[0-3]):[0-5][0-9]$","example":"20:00","isRequired":true,"uniqueKey":"limitation.discount_hours.hours.items.[INDEX].end","typeLabel":"string"}},"uniqueKey":"limitation.discount_hours.hours.items.[INDEX]","typeLabel":"object"},"isRequired":true,"uniqueKey":"limitation.discount_hours.hours","typeLabel":"object[]"},"timezone":{"description":"The timezone identifier for the hour start/end, see\nhttps://en.wikipedia.org/wiki/List_of_tz_database_time_zones\nfor examples. DST is handled when using a Timezone with DST.\n","default":"Europe/Oslo","type":"string","uniqueKey":"limitation.discount_hours.timezone","typeLabel":"string"}},"uniqueKey":"limitation.discount_hours","typeLabel":"object"},"discount_reward_usage":{"type":"integer","description":"Limit the number of rewards to be given in a purchase\nwhere multiple receipt items match the requirement\n","example":1,"default":-1,"uniqueKey":"limitation.discount_reward_usage","typeLabel":"integer"},"discount_combination":{"type":"integer","description":"Limit how many other discounts can be combined in a purchase\nwhere multiple discounts are applicable.\n","default":-1,"enum":[-1,0],"uniqueKey":"limitation.discount_combination","typeLabel":"enum\u003cinteger>"},"discount_eligible":{"type":"string","description":"Limit what items in the purchase is eligible for this discount\n","enum":["item_eligible_for_discount","item_eligible_for_discount_no_discount","receipt_no_discount"],"default":"item_eligible_for_discount","uniqueKey":"limitation.discount_eligible","typeLabel":"enum\u003cstring>"},"discount_repeat_usage":{"type":"integer","description":"Limit how many purchases the discount can be used\n","default":-1,"uniqueKey":"limitation.discount_repeat_usage","typeLabel":"integer"},"stamp_expire_days":{"type":"integer","description":"Number of days between first and last (exceeding count) stamp\nwhere reward will be given\n","example":100,"default":-1,"uniqueKey":"limitation.stamp_expire_days","typeLabel":"integer"},"blacklist":{"type":"array","description":"items not eligible for discount.\n","items":{"type":"object","properties":{"id":{"type":"string","example":"b714118","uniqueKey":"limitation.blacklist.items.[INDEX].id","typeLabel":"string"},"group_id":{"type":"string","example":"B1","uniqueKey":"limitation.blacklist.items.[INDEX].group_id","typeLabel":"string"}},"uniqueKey":"limitation.blacklist.items.[INDEX]","typeLabel":"object"},"minItems":1,"uniqueKey":"limitation.blacklist","typeLabel":"object[]"}},"uniqueKey":"limitation","typeLabel":"object"},"metadata":{"type":"object","maxProperties":10,"description":"Additional metadata about the discount\n\nMetadata prefixed with `dintero:exclude:public:` will\nbe excluded when listing the rules from the public endpoint\n\n- [GET /v1/accounts/{aid}/discounts/public/rules](/discounts-api/rules/aid_discounts_public_get)\n\nand included in all other endpoints that returns discount rules\n","example":{"campaign_id":"V101","is_featured":true,"dintero:private_text:kind":"Gold"},"uniqueKey":"metadata","typeLabel":"object"},"links":{"description":"Links to resources related to the discount","type":"array","example":[{"href":"https://example.dintero.com/c/photos/2018/6_20_thumbnail_discount_image.png","rel":"thumbnail_discount_image"},{"href":"https://example.dintero.com/c/photos/2018/6_20_medium_discount_image.png","rel":"medium_discount_image"},{"href":"https://example.dintero.com/shop?utm_source=dintero\u0026utm_medium=email\u0026utm_campaign=spring-summer","rel":"webshoop"},{"href":"https://example.dintero.com/newsletter/2018.pdf","rel":"newletter","type":"application/pdf"}],"items":{"type":"object","maxItems":10,"required":["href"],"properties":{"href":{"description":"The URL of the link.","type":"string","format":"uri","isRequired":true,"uniqueKey":"links.items.[INDEX].href","typeLabel":"string\u003curi>"},"rel":{"description":"Specifies the relationship between the discount and the link\n\nFollowing `rel` values are reserved for specific usage\n\n - thumbnail_discount_image: link to discount image\n - medium_discount_image: link to discount image\n - large_discount_image: link to discount image\n - webshop: link to site where the discount may be used\n","type":"string","uniqueKey":"links.items.[INDEX].rel","typeLabel":"string"},"type":{"type":"string","description":"Specifies the media type of the link","uniqueKey":"links.items.[INDEX].type","typeLabel":"string"}},"uniqueKey":"links.items.[INDEX]","typeLabel":"object"},"uniqueKey":"links","typeLabel":"object[]"}},"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"requirement":{"purchase_from":"2023-11-07T05:31:56Z","purchase_to":"2023-11-07T05:31:56Z","customer":{"addresses":[{"country":["NO"],"postal_code":["0349"],"postal_place":["Oslo"],"custom_type":["offsite"],"type":["custom"]}],"company":{"bussiness_name":["TKP tech AS"],"department":["production","research"],"industry":["J62.0.1","J62.0.2"],"number_of_employees":["20"],"organization_number":["123456789MVA"],"website":["https://dintero.com"]},"date_of_birth":["1990-09-20","1990-05-10"],"enrolled_by":{"type":["url"],"value":["https://mypage.example.dintero.com"]},"favorite_store":["sc029"],"first_name":["John"],"gender":["male"],"last_name":["Doe"],"marketing_consent":{"email":{"consent":["true"]},"sms":{"consent":["true"]}},"status":["vip"],"term":{"id":["\u003cstring>"]},"type":["\u003cstring>"],"attributes":{}},"item":{"quantity":0,"mixes":[{"items":[{"id":"b714118"},{"group_id":"g4"}],"quantity":1,"reward_eligible":true}],"items":[{"id":"b714118","group_id":"B1"}]},"store_ids":["sc029"],"gross_amount":0,"net_amount":0,"currencies":[{"anything-but":["NOK"]}],"stamp":5,"discount_code":"TACO","store":{"id":["sc029"],"name":["SC Oslo"],"business_name":["SC Oslo AS"],"address":{"country":["NO"],"postal_code":["0349"],"postal_place":["Oslo"]},"chain":["SuperChain"],"email":["contact@superchain.com"],"gln":["5790001398644"],"organization_number":["123456789MVA"],"phone_number":["+4738260107"],"mcc":[5814],"mcc_ranges":[{"start":5814,"end":5815}],"bax":["102603"],"terminal_id":["T0292"]}},"reward":{"type":"discount_amount","value":10000,"values":[{"items":[{"id":"b714118","group_id":"B1"}],"value":123}],"base":"gross","effect":"discount"},"id":"3c90c3cc-0d44-4b50-8888-8dd25736052a","created_at":"2023-11-07T05:31:56Z","created_by":"1c92f7e1-2897-4d46-bdcc-c127a914fb4e","updated_at":"2023-11-07T05:31:56Z","deleted_by":"1c92f7e1-2897-4d46-bdcc-c127a914fb4e","deleted_at":"2023-11-07T05:31:56Z","campaign_id":"\u003cstring>","active":true,"private":false,"updated_by":"3d1e4824-5474-48e7-a369-4f603fa4c5b8","type":"item","name":"Spar 100,-","receipt_text":"Mai Salg","visible_from":"2023-11-07T05:31:56Z","description":"Gjør et Stablestol kupp!","limitation":{"dynamic_purchase_to_days":2,"discount_activation":[{"type":"deactivate_if_discount_active","value":"\u003cstring>"}],"discount_hours":{"hours":[{"day":"mon","start":"10:00","end":"20:00"}],"timezone":"Europe/Oslo"},"discount_reward_usage":1,"discount_combination":-1,"discount_eligible":"item_eligible_for_discount","discount_repeat_usage":-1,"stamp_expire_days":100,"blacklist":[{"id":"b714118","group_id":"B1"}]},"metadata":{"campaign_id":"V101","is_featured":true,"dintero:private_text:kind":"Gold"},"links":[{"href":"https://example.dintero.com/c/photos/2018/6_20_thumbnail_discount_image.png","rel":"thumbnail_discount_image"},{"href":"https://example.dintero.com/c/photos/2018/6_20_medium_discount_image.png","rel":"medium_discount_image"},{"href":"https://example.dintero.com/shop?utm_source=dintero\u0026utm_medium=email\u0026utm_campaign=spring-summer","rel":"webshoop"},{"href":"https://example.dintero.com/newsletter/2018.pdf","rel":"newletter","type":"application/pdf"}]}}},"exampleType":"generated"}},"exampleType":"generated"},"5f4d5827-9480-4cc6-ba0d-94c1c79e5a34":{"description":"Bad / Invalid request","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The human readable description of the error/warning","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"The code used to identify the error/warning","uniqueKey":"error.code","typeLabel":"string"},"errors":{"type":"array","description":"The nested error(s) encountered during validation","items":{"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","code":"\u003cstring>","errors":[{}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"8cfde0cb-7d1b-4524-bd1f-2f8b9ac0f293":{"description":"Access forbidden, invalid JWT token was used","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The human readable description of the error/warning","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"The code used to identify the error/warning","uniqueKey":"error.code","typeLabel":"string"},"errors":{"type":"array","description":"The nested error(s) encountered during validation","items":{"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","code":"\u003cstring>","errors":[{}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"481a06ad-dd31-4aa5-9091-2166be699b75":{"description":"Forbidden","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The human readable description of the error/warning","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"The code used to identify the error/warning","uniqueKey":"error.code","typeLabel":"string"},"errors":{"type":"array","description":"The nested error(s) encountered during validation","items":{"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","code":"\u003cstring>","errors":[{}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"765ed7b2-46da-4468-8e8a-462439b044a0":{"description":"Resource was not found","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The human readable description of the error/warning","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"The code used to identify the error/warning","uniqueKey":"error.code","typeLabel":"string"},"errors":{"type":"array","description":"The nested error(s) encountered during validation","items":{"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","code":"\u003cstring>","errors":[{}]}}}},"exampleType":"generated"}},"exampleType":"generated"},"d55fac26-ec1d-4c80-a907-01ae05771c5d":{"description":"Unexpected Error","content":{"application/json":{"schema":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["message"],"properties":{"message":{"type":"string","description":"The human readable description of the error/warning","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"code":{"type":"string","description":"The code used to identify the error/warning","uniqueKey":"error.code","typeLabel":"string"},"errors":{"type":"array","description":"The nested error(s) encountered during validation","items":{"type":"object","uniqueKey":"error.errors.items.[INDEX]","typeLabel":"object"},"uniqueKey":"error.errors","typeLabel":"object[]"}},"isRequired":true,"uniqueKey":"error","typeLabel":"object"}},"uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"message":"\u003cstring>","code":"\u003cstring>","errors":[{}]}}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"bf2a973e-9284-4f35-8521-daf10b9b843f":{"JWT":{"type":"http","description":"Bearer authentication (token authentication) should be used for accessing the API.\n\nUse [Get Token](/api-reference/authenticate/aid_auths_oauth_token_post) to get an access token for client credentials.\nPass the token in the request header:\n\n Authorization: Bearer {access_token}\n\nwhere the **access_token** is JSON Web Tokens (JWT).\n","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"JWT"}}},"servers":{"6bc35048-63db-4af3-b3c2-2b6da9dd5299":{"url":"https://api.dintero.com/v1"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","description":"Bearer authentication (token authentication) should be used for accessing the API.\n\nUse [Get Token](/api-reference/authenticate/aid_auths_oauth_token_post) to get an access token for client credentials.\nPass the token in the request header:\n\n Authorization: Bearer {access_token}\n\nwhere the **access_token** is JSON Web Tokens (JWT).\n","scheme":"bearer","bearerFormat":"JWT","scopes":[],"schemeName":"JWT"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"Bearer authentication (token authentication) should be used for accessing the API.\n\nUse [Get Token](/api-reference/authenticate/aid_auths_oauth_token_post) to get an access token for client credentials.\nPass the token in the request header:\n\n Authorization: Bearer {access_token}\n\nwhere the **access_token** is JSON Web Tokens (JWT).\n","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"JWT","name":"Authorization"}],"title":"JWT"}]},"originalFileLocation":"mintlify-docs/openapi/spec-discounts.yaml"},"subdomain":"dintero-c3a7bfec","siteName":"Dintero Documentation","title":"Create new discount - Dintero Documentation","contextualStarterQuestions":[{"_id":"6aea1dbfd2b7d1adb9c24058","deploymentId":"69d66e893989d4678a7dfb08","questionText":"How do I create a discount?","status":"active","generatedBy":"contextual","path":"api-reference/rules/aid_discounts_post","createdAt":"2026-11-03T17:45:35.797Z","updatedAt":"2026-11-03T17:45:35.797Z","__v":0},{"_id":"6aea1dbfd2b7d1adb9c2405a","deploymentId":"69d66e893989d4678a7dfb08","questionText":"How do I assign discounts to customers?","status":"active","generatedBy":"contextual","path":"api-reference/rules/aid_discounts_post","createdAt":"2026-11-03T17:45:35.797Z","updatedAt":"2026-11-03T17:45:35.797Z","__v":0},{"_id":"6aea1dbfd2b7d1adb9c24059","deploymentId":"69d66e893989d4678a7dfb08","questionText":"What makes a discount available?","status":"active","generatedBy":"contextual","path":"api-reference/rules/aid_discounts_post","createdAt":"2026-11-03T17:45:35.797Z","updatedAt":"2026-11-03T17:45:35.797Z","__v":0}],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"originalFileLocation":"api-reference/rules/aid_discounts_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=\"light\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Create a new discount for an account. A new discount will be unavailable for purchases until the discount is given to one or more customer. Discount can be given to a customer by either adding a automation to the discount that will grant the discount to the customer from events received or by adding customers to the discount. See Discount Examples scopes: - admin:discounts - write:discounts\">\u003cmeta data-mint-head name=\"application-name\" content=\"Dintero Documentation\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_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/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dintero-c3a7bfec/NThyLjsK6njIMKyp/_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/dintero-c3a7bfec/NThyLjsK6njIMKyp/_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/dintero-c3a7bfec/NThyLjsK6njIMKyp/_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/dintero-c3a7bfec/NThyLjsK6njIMKyp/_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/dintero-c3a7bfec/NThyLjsK6njIMKyp/_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/dintero-c3a7bfec/NThyLjsK6njIMKyp/_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/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create new discount - Dintero Documentation\">\u003cmeta data-mint-head property=\"og:description\" content=\"Create a new discount for an account. A new discount will be unavailable for purchases until the discount is given to one or more customer. Discount can be given to a customer by either adding a automation to the discount that will grant the discount to the customer from events received or by adding customers to the discount. See Discount Examples scopes: - admin:discounts - write:discounts\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dintero Documentation\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.dintero.com/api-reference/rules/aid_discounts_post\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dintero-c3a7bfec.mintlify.site/_mintlify/api/og/v2?division=Discount+Rules\u0026amp;title=Create+new+discount\u0026amp;description=Create+a+new+discount+for+an+account.%0A%0AA+new+discount+will+be+**unavailable**+for+purchases%0Auntil+the+discount+is+given+to+one+or+more+customer.%0A%0ADiscount+can+b\u0026amp;theme=32b11d411eb265d03df273ed\u0026amp;signature=79a5b3bc951e1d634d477856cad4bcb77acd12d6a298207b774d6fe9cd154fed\">\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=\"Create new discount - Dintero Documentation\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Create a new discount for an account. A new discount will be unavailable for purchases until the discount is given to one or more customer. Discount can be given to a customer by either adding a automation to the discount that will grant the discount to the customer from events received or by adding customers to the discount. See Discount Examples scopes: - admin:discounts - write:discounts\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dintero-c3a7bfec.mintlify.site/_mintlify/api/og/v2?division=Discount+Rules\u0026amp;title=Create+new+discount\u0026amp;description=Create+a+new+discount+for+an+account.%0A%0AA+new+discount+will+be+**unavailable**+for+purchases%0Auntil+the+discount+is+given+to+one+or+more+customer.%0A%0ADiscount+can+b\u0026amp;theme=32b11d411eb265d03df273ed\u0026amp;signature=79a5b3bc951e1d634d477856cad4bcb77acd12d6a298207b774d6fe9cd154fed\">\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/dintero-c3a7bfec/NThyLjsK6njIMKyp/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dintero Documentation\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0000FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.dintero.com/api-reference/rules/aid_discounts_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/rules/aid_discounts_post.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.dintero.com/#organization\",\"name\":\"Dintero Documentation\",\"url\":\"https://docs.dintero.com\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dintero-c3a7bfec/D0VX9t09zInvinnk/mintlify-docs/images/light.svg?fit=max\u0026auto=format\u0026n=D0VX9t09zInvinnk\u0026q=85\u0026s=b4717f47bb69fef03f724e6356c03726\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.dintero.com#website\",\"name\":\"Dintero Documentation\",\"url\":\"https://docs.dintero.com\",\"publisher\":{\"@id\":\"https://docs.dintero.com/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.dintero.com/api-reference/rules/aid_discounts_post#webpage\",\"url\":\"https://docs.dintero.com/api-reference/rules/aid_discounts_post\",\"name\":\"Create new discount\",\"description\":\"Create a new discount for an account. A new discount will be unavailable for purchases until the discount is given to one or more customer. Discount can be given to a customer by either adding a automation to the discount that will grant the discount to the customer from events received or by adding customers to the discount. See Discount Examples scopes: - admin:discounts - write:discounts\",\"isPartOf\":{\"@id\":\"https://docs.dintero.com#website\"},\"breadcrumb\":{\"@id\":\"https://docs.dintero.com/api-reference/rules/aid_discounts_post#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.dintero.com/api-reference/rules/aid_discounts_post#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Discount Rules\",\"item\":\"https://docs.dintero.com/api-reference/rules/aid_discounts_get\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create new discount\",\"item\":\"https://docs.dintero.com/api-reference/rules/aid_discounts_post\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.dintero.com/api-reference/rules/aid_discounts_post#apireference\",\"headline\":\"Create new discount\",\"name\":\"Create new discount\",\"description\":\"Create a new discount for an account. A new discount will be unavailable for purchases until the discount is given to one or more customer. Discount can be given to a customer by either adding a automation to the discount that will grant the discount to the customer from events received or by adding customers to the discount. See Discount Examples scopes: - admin:discounts - write:discounts\",\"url\":\"https://docs.dintero.com/api-reference/rules/aid_discounts_post\",\"mainEntityOfPage\":{\"@id\":\"https://docs.dintero.com/api-reference/rules/aid_discounts_post#webpage\"},\"publisher\":{\"@id\":\"https://docs.dintero.com/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.dintero.com#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dintero Documentation\",\"creator\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","siteName":"Dintero Documentation","nav":{"global":null,"products":[{"product":"Payments","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/shopping-cart.svg","description":"Dintero Checkout and In-Person Payments","pages":[{"title":"Payments","href":"/docs"}]},{"product":"Loyalty \u0026 Virtual Cards","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/gift.svg","description":"Customer, discount, receipt, and gift card services","tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/docs/loyalty/getting-started"}]},{"tab":"API Reference","groups":[{"group":"API Clients","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/key.svg","pages":[{"title":"Clients collection","deprecated":null,"version":null,"sidebarTitle":"Clients collection","openapi":"/mintlify-docs/openapi/spec-management-auth.yaml get /accounts/{oid}/auth/clients","href":"/api-reference/clients/aid_auth_clients_get"},{"title":"Create Client","deprecated":null,"version":null,"sidebarTitle":"Create Client","openapi":"/mintlify-docs/openapi/spec-management-auth.yaml post /accounts/{oid}/auth/clients","href":"/api-reference/clients/aid_auth_clients_post"},{"title":"Get Client","deprecated":null,"version":null,"sidebarTitle":"Get Client","openapi":"/mintlify-docs/openapi/spec-management-auth.yaml get /accounts/{oid}/auth/clients/{id}","href":"/api-reference/clients/aid_auths_clients_id_get"},{"title":"Update Client","deprecated":null,"version":null,"sidebarTitle":"Update Client","openapi":"/mintlify-docs/openapi/spec-management-auth.yaml patch /accounts/{oid}/auth/clients/{id}","href":"/api-reference/clients/aid_auths_clients_id_patch"},{"title":"Delete Client","deprecated":null,"version":null,"sidebarTitle":"Delete Client","openapi":"/mintlify-docs/openapi/spec-management-auth.yaml delete /accounts/{oid}/auth/clients/{id}","href":"/api-reference/clients/aid_auths_clients_id_delete"},{"title":"Rotate a client secret.","deprecated":null,"version":null,"sidebarTitle":"Rotate a client secret.","openapi":"/mintlify-docs/openapi/spec-management-auth.yaml post /accounts/{oid}/auth/clients/{id}/rotate-secret","href":"/api-reference/clients/aid_auths_clients_id_rotate_post"}]},{"group":"Client Grants","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/lock-closed.svg","pages":[{"title":"Client grants collection","deprecated":null,"version":null,"sidebarTitle":"Client grants collection","openapi":"/mintlify-docs/openapi/spec-management-auth.yaml get /accounts/{oid}/auth/client-grants","href":"/api-reference/grants/aid_auths_client_grants_get"},{"title":"Create client grant","deprecated":null,"version":null,"sidebarTitle":"Create client grant","openapi":"/mintlify-docs/openapi/spec-management-auth.yaml post /accounts/{oid}/auth/client-grants","href":"/api-reference/grants/aid_auths_client_grants_post"},{"title":"Delete client grant","deprecated":null,"version":null,"sidebarTitle":"Delete client grant","openapi":"/mintlify-docs/openapi/spec-management-auth.yaml delete /accounts/{oid}/auth/client-grants/{id}","href":"/api-reference/grants/aid_auths_client_grants_id_delete"}]},{"group":"Customer Users","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/user.svg","pages":[{"title":"Customer collection","deprecated":null,"version":null,"sidebarTitle":"Customer collection","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/users","href":"/api-reference/users/aid_customers_get"},{"title":"Create new Customer","deprecated":null,"version":null,"sidebarTitle":"Create new Customer","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/users","href":"/api-reference/users/aid_customers_post"},{"title":"User exist","deprecated":null,"version":null,"sidebarTitle":"User exist","openapi":"/mintlify-docs/openapi/spec-customers.yaml head /accounts/{aid}/customers/users","href":"/api-reference/users/aid_customers_head"},{"title":"Customer details","deprecated":null,"version":null,"sidebarTitle":"Customer details","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/users/{customer_id}","href":"/api-reference/users/aid_customers_cid_get"},{"title":"Update Customer","deprecated":null,"version":null,"sidebarTitle":"Update Customer","openapi":"/mintlify-docs/openapi/spec-customers.yaml put /accounts/{aid}/customers/users/{customer_id}","href":"/api-reference/users/aid_customers_cid_put"},{"title":"Delete customer","deprecated":null,"version":null,"sidebarTitle":"Delete customer","openapi":"/mintlify-docs/openapi/spec-customers.yaml delete /accounts/{aid}/customers/users/{customer_id}","href":"/api-reference/users/aid_customers_cid_delete"},{"title":"Change customer_id","deprecated":null,"version":null,"sidebarTitle":"Change customer_id","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/users/{customer_id}/change_customer_id","href":"/api-reference/users/aid_customers_cid_change_customer_id_post"}]},{"group":"Customer Authentication","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/lock-closed.svg","pages":[{"title":"Login with email/password","deprecated":null,"version":null,"sidebarTitle":"Login with email/password","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/login","href":"/api-reference/password/aid_customers_login_post"},{"title":"Login with MFA","deprecated":null,"version":null,"sidebarTitle":"Login with MFA","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/mfa_login","href":"/api-reference/password/aid_customers_mfa_login_post"},{"title":"MFA recovery","deprecated":null,"version":null,"sidebarTitle":"MFA recovery","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/mfa_login_recovery","href":"/api-reference/password/aid_customers_mfa_login_initiate_recovery_post"},{"title":"Change password","deprecated":null,"version":null,"sidebarTitle":"Change password","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/change_password","href":"/api-reference/password/aid_customers_change_password"}]},{"group":"Customer Communication","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/mail.svg","pages":[{"title":"Customer email/phone_number Status","deprecated":null,"version":null,"sidebarTitle":"Customer email/phone_number Status","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/users/{customer_id}/communication","href":"/api-reference/communication/aid_customers_cid_verify_get"},{"title":"Verify Customer email/phone_number","deprecated":null,"version":null,"sidebarTitle":"Verify Customer email/phone_number","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/users/{customer_id}/communication/{operation}/{field}","href":"/api-reference/communication/aid_customers_cid_verify_post"}]},{"group":"Customer Tags","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/tag.svg","pages":[{"title":"Tags collection","deprecated":null,"version":null,"sidebarTitle":"Tags collection","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/tags","href":"/api-reference/tags/aid_customers_tags_get"},{"title":"Create new Tag","deprecated":null,"version":null,"sidebarTitle":"Create new Tag","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/tags","href":"/api-reference/tags/aid_customers_tags_post"},{"title":"Delete Tag","deprecated":null,"version":null,"sidebarTitle":"Delete Tag","openapi":"/mintlify-docs/openapi/spec-customers.yaml delete /accounts/{aid}/customers/tags/{tag_id}","href":"/api-reference/tags/aid_customers_tags_tid_delete"},{"title":"Tag collection","deprecated":null,"version":null,"sidebarTitle":"Tag collection","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/users/{customer_id}/tags","href":"/api-reference/tags/aid_customers_cid_tags_get"},{"title":"Update Customer Tags","deprecated":null,"version":null,"sidebarTitle":"Update Customer Tags","openapi":"/mintlify-docs/openapi/spec-customers.yaml put /accounts/{aid}/customers/users/{customer_id}/tags","href":"/api-reference/tags/aid_customers_cid_tags_put"}]},{"group":"Customer Tokens","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/ticket.svg","pages":[{"title":"Get token events","deprecated":null,"version":null,"sidebarTitle":"Get token events","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/tokens/events","href":"/api-reference/tokens/aid_customers_tokens_events_get"},{"title":"Find / Add token events","deprecated":null,"version":null,"sidebarTitle":"Find / Add token events","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/tokens/events","href":"/api-reference/tokens/aid_customers_tokens_events_post"},{"title":"Delete token events","deprecated":null,"version":null,"sidebarTitle":"Delete token events","openapi":"/mintlify-docs/openapi/spec-customers.yaml delete /accounts/{aid}/customers/tokens/events","href":"/api-reference/tokens/aid_customers_tokens_events_delete"},{"title":"Token collections","deprecated":null,"version":null,"sidebarTitle":"Token collections","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/users/{customer_id}/tokens","href":"/api-reference/tokens/aid_customers_cid_tokens_get"},{"title":"Create new Token","deprecated":null,"version":null,"sidebarTitle":"Create new Token","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/users/{customer_id}/tokens","href":"/api-reference/tokens/aid_customers_cid_tokens_post"},{"title":"Delete customer token","deprecated":null,"version":null,"sidebarTitle":"Delete customer token","openapi":"/mintlify-docs/openapi/spec-customers.yaml delete /accounts/{aid}/customers/users/{customer_id}/tokens/{tid}","href":"/api-reference/tokens/aid_customers_cid_tokens_tid_delete"}]},{"group":"Customer Terms","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/document-text.svg","pages":[{"title":"Terms collection","deprecated":null,"version":null,"sidebarTitle":"Terms collection","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/terms","href":"/api-reference/terms/aid_customers_terms_get"},{"title":"Create new Terms","deprecated":null,"version":null,"sidebarTitle":"Create new Terms","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/customers/terms","href":"/api-reference/terms/aid_customers_terms_post"},{"title":"Terms details","deprecated":null,"version":null,"sidebarTitle":"Terms details","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/terms/{tid}","href":"/api-reference/terms/aid_customers_terms_tid_post"},{"title":"Delete Term","deprecated":null,"version":null,"sidebarTitle":"Delete Term","openapi":"/mintlify-docs/openapi/spec-customers.yaml delete /accounts/{aid}/customers/terms/{tid}","href":"/api-reference/terms/aid_customers_terms_tid_delete"}]},{"group":"Customer Settings","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/cog.svg","pages":[{"title":"Customers settings","deprecated":null,"version":null,"sidebarTitle":"Customers settings","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/settings","href":"/api-reference/settings/aid_customers_atributes_get"},{"title":"Update settings","deprecated":null,"version":null,"sidebarTitle":"Update settings","openapi":"/mintlify-docs/openapi/spec-customers.yaml put /accounts/{aid}/customers/settings","href":"/api-reference/settings/aid_customers_atributes_put"}]},{"group":"Company","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/office-building.svg","pages":[{"title":"Get departments","deprecated":null,"version":null,"sidebarTitle":"Get departments","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/customers/company/departments","href":"/api-reference/company/aid_company_departments_get"}]},{"group":"Locations","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/location-marker.svg","pages":[{"title":"Locations collection","deprecated":null,"version":null,"sidebarTitle":"Locations collection","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/locations","href":"/api-reference/locations/aid_locations_get"},{"title":"Create new sales location","deprecated":null,"version":null,"sidebarTitle":"Create new sales location","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/locations","href":"/api-reference/locations/aid_location_post"},{"title":"Location details","deprecated":null,"version":null,"sidebarTitle":"Location details","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/locations/{lid}","href":"/api-reference/locations/aid_locations_lid_get"},{"title":"Update Sales location","deprecated":null,"version":null,"sidebarTitle":"Update Sales location","openapi":"/mintlify-docs/openapi/spec-customers.yaml put /accounts/{aid}/locations/{lid}","href":"/api-reference/locations/aid_location_lid_put"},{"title":"Delete location","deprecated":null,"version":null,"sidebarTitle":"Delete location","openapi":"/mintlify-docs/openapi/spec-customers.yaml delete /accounts/{aid}/locations/{lid}","href":"/api-reference/locations/aid_location_lid_delete"}]},{"group":"Address \u0026 Organization Lookup","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/search.svg","pages":[{"title":"Validate address","deprecated":null,"version":null,"sidebarTitle":"Validate address","openapi":"/mintlify-docs/openapi/spec-customers.yaml post /accounts/{aid}/search/external/address/{country}/validate","href":"/api-reference/addresses/aid_search_external_validate_address"},{"title":"Search external organization registry","deprecated":null,"version":null,"sidebarTitle":"Search external organization registry","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/search/external/organizations/{country}","href":"/api-reference/organizations/aid_search_external_organizations_country"},{"title":"Get addresses for organization number from external organization registry","deprecated":null,"version":null,"sidebarTitle":"Get addresses for organization number from external organization registry","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/search/external/organizations/{country}/{organization_number}","href":"/api-reference/organizations/aid_get_external_organizations"},{"title":"Get organization subunits","deprecated":null,"version":null,"sidebarTitle":"Get organization subunits","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/search/external/organizations/{country}/{organization_number}/subunits","href":"/api-reference/organizations/aid_get_external_organization_subunits"},{"title":"Search external postal place","deprecated":null,"version":null,"sidebarTitle":"Search external postal place","openapi":"/mintlify-docs/openapi/spec-customers.yaml get /accounts/{aid}/search/external/postal_place/{country}/{postal_code}","href":"/api-reference/addresses/aid_search_external_postal_place"}]},{"group":"Discount Rules","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/tag.svg","pages":[{"title":"Discount collection","description":"List discounts available for the account\nscopes:\n- admin:discounts\n- read:discounts\n","deprecated":null,"version":null,"sidebarTitle":"Discount collection","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/rules","href":"/api-reference/rules/aid_discounts_get"},{"title":"Create new discount","deprecated":null,"version":null,"sidebarTitle":"Create new discount","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/rules","href":"/api-reference/rules/aid_discounts_post"},{"title":"Discount details","description":"Get more details about a discount, includes statistics\nabout the discount\nscopes:\n- admin:discounts\n- read:discounts\n","deprecated":null,"version":null,"sidebarTitle":"Discount details","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/rules/{did}","href":"/api-reference/rules/aid_discounts_did_get"},{"title":"Update Discount","deprecated":null,"version":null,"sidebarTitle":"Update Discount","openapi":"/mintlify-docs/openapi/spec-discounts.yaml put /accounts/{aid}/discounts/rules/{did}","href":"/api-reference/rules/aid_discounts_did_put"},{"title":"Delete discount","deprecated":null,"version":null,"sidebarTitle":"Delete discount","openapi":"/mintlify-docs/openapi/spec-discounts.yaml delete /accounts/{aid}/discounts/rules/{did}","href":"/api-reference/rules/aid_discounts_did_delete"},{"title":"Public Discount collection","deprecated":null,"version":null,"sidebarTitle":"Public Discount collection","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/public/rules","href":"/api-reference/rules/aid_discounts_public_get"},{"title":"Search for discount rules","deprecated":null,"version":null,"sidebarTitle":"Search for discount rules","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/search/rules","href":"/api-reference/rules/aid_discounts_rules_search_post"}]},{"group":"Discount Usage","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/tag.svg","pages":[{"title":"Post receipt for discount","deprecated":null,"version":null,"sidebarTitle":"Post receipt for discount","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/available_for_receipt","href":"/api-reference/use-discounts/aid_discounts_available_for_receipt_post"},{"title":"Claim collections","deprecated":null,"version":null,"sidebarTitle":"Claim collections","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/available_for_receipt/claims","href":"/api-reference/use-discounts/aid_discounts_available_for_receipt_get_claims"},{"title":"Claim discounts","deprecated":null,"version":null,"sidebarTitle":"Claim discounts","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/available_for_receipt/claims","href":"/api-reference/use-discounts/aid_discounts_available_for_receipt_post_claim"},{"title":"Get claim","deprecated":null,"version":null,"sidebarTitle":"Get claim","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/available_for_receipt/claims/{claim_id}","href":"/api-reference/use-discounts/aid_discounts_available_for_receipt_get_claim"},{"title":"Delete claim","deprecated":null,"version":null,"sidebarTitle":"Delete claim","openapi":"/mintlify-docs/openapi/spec-discounts.yaml delete /accounts/{aid}/discounts/available_for_receipt/claims/{claim_id}","href":"/api-reference/use-discounts/aid_discounts_available_for_receipt_delete_claim"},{"title":"Post event","deprecated":null,"version":null,"sidebarTitle":"Post event","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/events","href":"/api-reference/use-discounts/aid_discounts_events_post"}]},{"group":"Discount Customers","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/identification.svg","pages":[{"title":"Customer discounts collection","deprecated":null,"version":null,"sidebarTitle":"Customer discounts collection","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/customers/{customer_id}/rules","href":"/api-reference/rules-customers/aid_discounts_customer_cid_get"},{"title":"Get customer discount ref","deprecated":null,"version":null,"sidebarTitle":"Get customer discount ref","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/customers/{customer_id}/refs/{ref_id}","href":"/api-reference/rules-customers/aid_discounts_customer_cid_get_ref_id"},{"title":"Update customer discount ref","deprecated":null,"version":null,"sidebarTitle":"Update customer discount ref","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/customers/{customer_id}/refs/{ref_id}","href":"/api-reference/rules-customers/aid_discounts_customer_cid_post_ref_id"},{"title":"Delete customer discount ref","deprecated":null,"version":null,"sidebarTitle":"Delete customer discount ref","openapi":"/mintlify-docs/openapi/spec-discounts.yaml delete /accounts/{aid}/discounts/customers/{customer_id}/refs/{ref_id}","href":"/api-reference/rules-customers/aid_discounts_customer_cid_delete_ref_id"},{"title":"Get discount customers (refs)","deprecated":null,"version":null,"sidebarTitle":"Get discount customers (refs)","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/rules/{did}/customers","href":"/api-reference/rules-customers/aid_discounts_did_customers_get"},{"title":"Add customers","deprecated":null,"version":null,"sidebarTitle":"Add customers","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/rules/{did}/customers","href":"/api-reference/rules-customers/aid_discounts_did_customers_post"},{"title":"Remove customers","deprecated":null,"version":null,"sidebarTitle":"Remove customers","openapi":"/mintlify-docs/openapi/spec-discounts.yaml delete /accounts/{aid}/discounts/rules/{did}/customers","href":"/api-reference/rules-customers/aid_discounts_did_customers_delete"},{"title":"Get discount ref usages","deprecated":null,"version":null,"sidebarTitle":"Get discount ref usages","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/rules/{did}/usages","href":"/api-reference/rules-customers/aid_discounts_did_usages_get"}]},{"group":"Campaigns","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/speakerphone.svg","pages":[{"title":"Campaigns collection","deprecated":null,"version":null,"sidebarTitle":"Campaigns collection","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/campaigns","href":"/api-reference/campaigns/aid_discounts_campaigns_get"},{"title":"Create new campaign","deprecated":null,"version":null,"sidebarTitle":"Create new campaign","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/discounts/campaigns","href":"/api-reference/campaigns/aid_discounts_campaigns_post"},{"title":"Campaign details","deprecated":null,"version":null,"sidebarTitle":"Campaign details","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/discounts/campaigns/{campaign_id}","href":"/api-reference/campaigns/aid_discounts_campaigns_campaign_id_get"},{"title":"Update Campaign","deprecated":null,"version":null,"sidebarTitle":"Update Campaign","openapi":"/mintlify-docs/openapi/spec-discounts.yaml put /accounts/{aid}/discounts/campaigns/{campaign_id}","href":"/api-reference/campaigns/aid_discounts_campaigns_campaign_id_put"},{"title":"Delete campagn","deprecated":null,"version":null,"sidebarTitle":"Delete campagn","openapi":"/mintlify-docs/openapi/spec-discounts.yaml delete /accounts/{aid}/discounts/campaigns/{campaign_id}","href":"/api-reference/campaigns/aid_discounts_campaigns_campaign_id_delete"}]},{"group":"Automations","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/chip.svg","pages":[{"title":"Automation collection","deprecated":null,"version":null,"sidebarTitle":"Automation collection","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/automations/rules","href":"/api-reference/rules-automations/aid_automations_rules_get"},{"title":"Create new automation","deprecated":null,"version":null,"sidebarTitle":"Create new automation","openapi":"/mintlify-docs/openapi/spec-discounts.yaml post /accounts/{aid}/automations/rules","href":"/api-reference/rules-automations/aid_automations_rules_post"},{"title":"Automation details","deprecated":null,"version":null,"sidebarTitle":"Automation details","openapi":"/mintlify-docs/openapi/spec-discounts.yaml get /accounts/{aid}/automations/rules/{arid}","href":"/api-reference/rules-automations/aid_automations_rules_rid_get"},{"title":"Delete automation","deprecated":null,"version":null,"sidebarTitle":"Delete automation","openapi":"/mintlify-docs/openapi/spec-discounts.yaml delete /accounts/{aid}/automations/rules/{arid}","href":"/api-reference/rules-automations/aid_automations_rules_rid_delete"}]},{"group":"Receipts","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/receipt-tax.svg","pages":[{"group":"receipts","pages":[{"title":"Create new Receipts","deprecated":null,"version":null,"sidebarTitle":"Create new Receipts","openapi":"/mintlify-docs/openapi/spec-receipts.yaml post /accounts/{aid}/receipts","href":"/api-reference/receipts/aid_receipts_post"},{"title":"Update receipt","deprecated":null,"version":null,"sidebarTitle":"Update receipt","openapi":"/mintlify-docs/openapi/spec-receipts.yaml put /accounts/{aid}/receipts/all/{receipt_id}","href":"/api-reference/receipts/aid_receipts_update_put"},{"title":"Get receipt by token","deprecated":null,"version":null,"sidebarTitle":"Get receipt by token","openapi":"/mintlify-docs/openapi/spec-receipts.yaml get /accounts/{aid}/receipts/receipt-token","href":"/api-reference/receipts/aid_receipts_receipt_token_get"},{"title":"Claim receipt by token","deprecated":null,"version":null,"sidebarTitle":"Claim receipt by token","openapi":"/mintlify-docs/openapi/spec-receipts.yaml post /accounts/{aid}/receipts/receipt-token","href":"/api-reference/receipts/aid_receipts_receipt_token_post"},{"title":"Receipt search","deprecated":null,"version":null,"sidebarTitle":"Receipt search","openapi":"/mintlify-docs/openapi/spec-receipts.yaml get /accounts/{aid}/receipts/search","href":"/api-reference/receipts/aid_receipts_rid_get"}]},{"group":"segment","pages":[{"title":"Customer segmentation","deprecated":null,"version":null,"sidebarTitle":"Customer segmentation","openapi":"/mintlify-docs/openapi/spec-receipts.yaml post /accounts/{aid}/receipts/customer_segment","href":"/api-reference/segment/aid_receipts_customer_segment_post"}]},{"group":"customer receipts","pages":[{"title":"Customer Receipts collection","deprecated":null,"version":null,"sidebarTitle":"Customer Receipts collection","openapi":"/mintlify-docs/openapi/spec-receipts.yaml get /accounts/{aid}/receipts/customers/{customer_id}","href":"/api-reference/customer-receipts/aid_receipts_customers_cid_get"},{"title":"Customer receipt details","deprecated":null,"version":null,"sidebarTitle":"Customer receipt details","openapi":"/mintlify-docs/openapi/spec-receipts.yaml get /accounts/{aid}/receipts/customers/{customer_id}/{receipt_id}","href":"/api-reference/customer-receipts/aid_receipts_customers_cid_rid_get"},{"title":"Change customer_id","deprecated":null,"version":null,"sidebarTitle":"Change customer_id","openapi":"/mintlify-docs/openapi/spec-receipts.yaml post /accounts/{aid}/receipts/customers/{customer_id}/{receipt_id}/change_customer_id","href":"/api-reference/customer-receipts/aid_receipts_customers_cid_rid_change_customer_id_post"}]}]},{"group":"Wallets","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/credit-card.svg","pages":[{"group":"cards","pages":[{"title":"Get cards","deprecated":null,"version":null,"sidebarTitle":"Get cards","openapi":"/mintlify-docs/openapi/spec-wallets.yaml get /accounts/{aid}/wallets/cards","href":"/api-reference/cards/aid_cards_get"},{"title":"Create a card","deprecated":null,"version":null,"sidebarTitle":"Create a card","openapi":"/mintlify-docs/openapi/spec-wallets.yaml post /accounts/{aid}/wallets/cards","href":"/api-reference/cards/aid_cards_post"},{"title":"Batch create cards","deprecated":null,"version":null,"sidebarTitle":"Batch create cards","openapi":"/mintlify-docs/openapi/spec-wallets.yaml post /accounts/{aid}/wallets/cards/batch","href":"/api-reference/cards/aid_cards_batch_post"},{"title":"Retrieve card by card ID","deprecated":null,"version":null,"sidebarTitle":"Retrieve card by card ID","openapi":"/mintlify-docs/openapi/spec-wallets.yaml get /accounts/{aid}/wallets/cards/{card_id}","href":"/api-reference/cards/aid_cards_cardid_get"},{"title":"Activate card","deprecated":null,"version":null,"sidebarTitle":"Activate card","openapi":"/mintlify-docs/openapi/spec-wallets.yaml post /accounts/{aid}/wallets/cards/{card_id}/activate","href":"/api-reference/cards/aid_cards_cardid_activate_post"},{"title":"Create a token for the card","deprecated":null,"version":null,"sidebarTitle":"Create a token for the card","openapi":"/mintlify-docs/openapi/spec-wallets.yaml post /accounts/{aid}/wallets/cards/{card_id}/tokens","href":"/api-reference/cards/aid_cards_cardid_token_post"},{"title":"Rotate Pin","deprecated":null,"version":null,"sidebarTitle":"Rotate Pin","openapi":"/mintlify-docs/openapi/spec-wallets.yaml post /accounts/{aid}/wallets/cards/{card_id}/rotate-pin","href":"/api-reference/cards/aid_cards_cardid_rotate_pin_post"},{"title":"Retrieve card by Token","deprecated":null,"version":null,"sidebarTitle":"Retrieve card by Token","openapi":"/mintlify-docs/openapi/spec-wallets.yaml post /accounts/{aid}/wallets/info","href":"/api-reference/cards/aid_cards_token_post"}]},{"group":"transactions","pages":[{"title":"List card transactions","deprecated":null,"version":null,"sidebarTitle":"List card transactions","openapi":"/mintlify-docs/openapi/spec-wallets.yaml get /accounts/{aid}/wallets/cards/{card_id}/transactions","href":"/api-reference/transactions/aid_cards_cardid_transactions_tid_get"},{"title":"Create transaction","deprecated":null,"version":null,"sidebarTitle":"Create transaction","openapi":"/mintlify-docs/openapi/spec-wallets.yaml post /accounts/{aid}/wallets/transactions","href":"/api-reference/transactions/aid_cards_transactions_post"},{"title":"Capture pending transaction","deprecated":null,"version":null,"sidebarTitle":"Capture pending transaction","openapi":"/mintlify-docs/openapi/spec-wallets.yaml post /accounts/{aid}/wallets/transactions/{transaction_id}/capture","href":"/api-reference/transactions/aid_cards_cardid_transactions_capture_post"},{"title":"Void pending transaction","deprecated":null,"version":null,"sidebarTitle":"Void pending transaction","openapi":"/mintlify-docs/openapi/spec-wallets.yaml post /accounts/{aid}/wallets/transactions/{transaction_id}/void","href":"/api-reference/transactions/aid_cards_cardid_transactions_void_post"}]},{"group":"customers","pages":[{"title":"List customer cards","deprecated":null,"version":null,"sidebarTitle":"List customer cards","openapi":"/mintlify-docs/openapi/spec-wallets.yaml get /accounts/{aid}/wallets/customers/{customer_id}/cards","href":"/api-reference/customers/aid_customers_cid_cards_get"},{"title":"Get customer card details","deprecated":null,"version":null,"sidebarTitle":"Get customer card details","openapi":"/mintlify-docs/openapi/spec-wallets.yaml get /accounts/{aid}/wallets/customers/{customer_id}/cards/{card_id}","href":"/api-reference/customers/aid_customers_cid_card_cid_get"}]}]}]}]},{"product":"Order Management","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/cube.svg","description":"Create and manage orders, captures, refunds, and draft orders","pages":[{"title":"Order Management","href":"/docs/order-management/overview"}]},{"product":"Partners","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/hand.svg","description":"Partner management and API access","pages":[{"title":"Partners","href":"/docs/partners/partners"}]},{"product":"Plugins \u0026 Integrations","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/puzzle.svg","description":"E-commerce plugins and POS integrations","pages":[{"title":"Plugins \u0026 Integrations","href":"/docs/integrations/plugins"}]},{"product":"API Specifications","icon":"https://mintlify.s3.us-west-1.amazonaws.com/dintero-c3a7bfec/mintlify-docs/assets/icons/code.svg","description":"All API Specifications","hidden":true,"pages":[{"title":"API Specifications","href":"/apps-directory-api/apps/api_apps_directory_app_id_type_sig_get"}]}]},"basePath":"","title":"Create new discount - Dintero Documentation","buildId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","deploymentId":"dpl_42LwxxU1kGN114H4XzwGYXa9ZDah","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-C-hEh3I2.js","utils-CnF4QiUD.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C7PVNbel.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-8ytevL2A.js","snippetPresets-BT1alx3v.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-BLXC0i_W.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-CyLIGI9_.js","shallow-DC0lGVIW.js","getApiPlaygroundDisplay-CgDQ85tN.js","CodeSnippet-6-I-Gpv9.js","CodeSnippets-BAk1kDdu.js","Page-C945cI-W.js","getPastedJson-B276RuWN.js","icon-BqP8etTm.js","MethodPill-DM6sbxG1.js","DuplicateIcon-PyJglOaE.js","createIcon-CMeOMAc_.js","DynamicMarkdown-BoyYAA8K.js","SectionHeading-DAYv3gvZ.js","axios-vUo_bRtp.js","Markdown-BhTTmazV.js","clsx-CR-RHrVC.js","lib-DuNMoZ05.js","lib-B8HbPgcC.js","html-void-elements-mCSPHezU.js","dist-CBUH0-zX.js","katex-YMM-FMeD.js","marked.esm-CZWythHk.js","AssistantPageLink-BmARFYNC.js"]}