Occurs whenever a discount code for a partner is deleted.
This event is also sent when a discount code is removed automatically — for
example when a partner is banned or deactivated, a linked referral link is
deleted, or a partner is moved to a group without an equivalent discount.If the discount uses the custom provider, listen to this webhook to
disable the corresponding promo code in your own system. For Stripe
and Shopify discounts, Dub disables the code in the connected provider
automatically.
Response body parameters
All webhook payloads follow a consistent top-level structure with event-specific data nested within the data object.
Event-specific data containing detailed information about the event. The data object for the discount_code.deleted event contains the following parameters:
Discount amount. For percentage discounts this is the
percent off (e.g. 10 = 10% off). For flat
discounts this is the amount in cents (e.g. 500 = $5.00).
{"docsConfig":{"theme":"aspen","$schema":"https://mintlify.com/docs.json","name":"Dub","colors":{"primary":"#155dfc","light":"#155dfc","dark":"#155dfc"},"logo":{"light":"https://mintcdn.com/dub/NXC-v7aRqVVKRt1Q/logos/wordmark.svg?fit=max\u0026auto=format\u0026n=NXC-v7aRqVVKRt1Q\u0026q=85\u0026s=0f477cb77c06e4d3090acd888b427326","dark":"https://mintcdn.com/dub/NXC-v7aRqVVKRt1Q/logos/wordmark-dark.svg?fit=max\u0026auto=format\u0026n=NXC-v7aRqVVKRt1Q\u0026q=85\u0026s=825bae25fa971c0a55ffaa851442def1","href":"https://dub.co/home"},"favicon":"https://mintcdn.com/dub/S5CJNHicyu5NWQ7r/logos/favicon.png?fit=max\u0026auto=format\u0026n=S5CJNHicyu5NWQ7r\u0026q=85\u0026s=4b3bd73e3bc71569770af330a0dd1f9c","api":{"openapi":"https://api.dub.co"},"navbar":{"links":[{"href":"https://dub.co/contact/support","label":"Contact support"}],"primary":{"type":"button","label":"Dashboard","href":"https://app.dub.co/register"}},"footer":{"socials":{"github":"https://github.com/dubinc/dub","linkedin":"https://www.linkedin.com/company/dubinc","twitter":"https://twitter.com/dubdotco","website":"https://dub.co"}},"fonts":{"heading":{"family":"Satoshi","weight":700,"source":"fonts/Satoshi-Variable.woff2","format":"woff2"}},"integrations":{"plausible":{"domain":"dub.co"}},"contextual":{"options":["copy","view","chatgpt","claude","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"dub","hasAudioNarration":false,"actualSubdomain":"dub","customDomains":["dub.co"],"gitSource":{"type":"github","owner":"dubinc","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"feedback":{"thumbs":true,"edits":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6af22e4d15a324bf59919b36","clientVersion":"0.0.4102","searchFilterCounts":[{"language":"default","tag":"Help Center","count":117},{"language":"default","tag":"API Reference","count":81},{"language":"default","tag":"Dub API","count":80},{"language":"default","tag":"MANAGING YOUR LINKS","count":54},{"language":"default","tag":"Developer Docs","count":37},{"language":"default","tag":"MANAGING A PROGRAM","count":36},{"language":"default","tag":"DUB PARTNERS API","count":32},{"language":"default","tag":"Links","count":26},{"language":"default","tag":"Webhooks","count":24},{"language":"default","tag":"CONCEPTS","count":23}]},"assistantConfig":{"deflection":{"enabled":false,"email":"support@dub.co","showHelpButton":false}},"basePath":"","hasChatPermissions":false,"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}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"docs/webhooks/events/discount-code-deleted","slug":"/docs/webhooks/events/discount-code-deleted","pageMetadata":{"title":"discount_code.deleted","icon":"ticket","description":null,"href":"/docs/webhooks/events/discount-code-deleted"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const WebhookResponseBodyParameters=({type,children})=>{const{Expandable,ParamField}=_provideComponents()||{};if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(`div`,{children:[_jsx(`h2`,{children:`Response body parameters`}),_jsxs(`p`,{children:[`All webhook payloads follow a consistent top-level structure with event-specific data nested within the `,_jsx(`code`,{children:`data`}),` object.`]}),_jsx(ParamField,{body:`id`,type:`string`,children:`The event ID.`}),_jsxs(ParamField,{body:`event`,type:`string`,children:[`The event type that triggered the webhook (e.g., `,_jsx(`code`,{children:type}),`).`]}),_jsx(ParamField,{body:`createdAt`,type:`string`,children:`ISO 8601 timestamp when the webhook event was created.`}),_jsxs(ParamField,{body:`data`,type:`object`,children:[`Event-specific data containing detailed information about the event. The data object for the `,_jsx(`code`,{children:type}),` event contains the following parameters:`,_jsx(Expandable,{defaultOpen:true,title:`object parameters`,children})]})]})};function _createMdxContent(props){const _components={a:`a`,p:`p`,strong:`strong`,..._provideComponents(),...props.components},{Expandable,ParamField,Tip,_MdxComponentBoundary}=_components;if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Occurs whenever a `,_jsx(_components.a,{href:`/docs/api-reference/discount-codes/delete`,children:`discount code`}),` for a partner is deleted.`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`This event is also sent when a discount code is removed automatically — for\nexample when a partner is banned or deactivated, a linked referral link is\ndeleted, or a partner is moved to a group without an equivalent discount.`}),_jsxs(_components.p,{children:[`If the discount uses the `,_jsx(_components.strong,{children:`custom`}),` provider, listen to this webhook to\ndisable the corresponding promo code in your own system. For Stripe\nand Shopify discounts, Dub disables the code in the connected provider\nautomatically.`]})]}),`\n`,_jsx(_MdxComponentBoundary,{name:`WebhookResponseBodyParameters`,children:_jsxs(WebhookResponseBodyParameters,{type:`discount_code.deleted`,children:[_jsx(ParamField,{body:`id`,type:`string`,id:`param-id`,children:_jsxs(_components.p,{children:[`Unique identifier for the discount code (e.g. `,_jsx(`code`,{children:`dcode_…`}),`).`]})}),_jsx(ParamField,{body:`code`,type:`string`,id:`param-code`,children:_jsx(_components.p,{children:`The alphanumeric discount code that was deleted.`})}),_jsx(ParamField,{body:`partnerId`,type:`string`,id:`param-partner-id`,children:_jsx(_components.p,{children:`ID of the partner this discount code was assigned to.`})}),_jsx(ParamField,{body:`linkId`,type:`string`,id:`param-link-id`,children:_jsx(_components.p,{children:`ID of the partner’s referral link this discount code was associated with.`})}),_jsx(ParamField,{body:`disabledAt`,type:`string | null`,id:`param-disabled-at`,children:_jsxs(_components.p,{children:[`ISO 8601 timestamp when the code was disabled. Set when a partner is banned\nor deactivated; otherwise `,_jsx(`code`,{children:`null`}),`.`]})}),_jsxs(ParamField,{body:`discount`,type:`object | null`,id:`param-discount`,children:[_jsx(_components.p,{children:`The discount this code belonged to.`}),_jsxs(Expandable,{title:`discount object`,children:[_jsx(ParamField,{body:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`Unique identifier for the discount.`})}),_jsx(ParamField,{body:`amount`,type:`number`,id:`param-amount`,children:_jsxs(_components.p,{children:[`Discount amount. For `,_jsx(`code`,{children:`percentage`}),` discounts this is the\npercent off (e.g. `,_jsx(`code`,{children:`10`}),` = 10% off). For `,_jsx(`code`,{children:`flat`}),`\ndiscounts this is the amount in cents (e.g. `,_jsx(`code`,{children:`500`}),` = $5.00).`]})}),_jsx(ParamField,{body:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[`Discount type: `,_jsx(`code`,{children:`percentage`}),` or `,_jsx(`code`,{children:`flat`}),`.`]})}),_jsx(ParamField,{body:`maxDuration`,type:`number | null`,id:`param-max-duration`,children:_jsxs(_components.p,{children:[`Maximum duration in months. `,_jsx(`code`,{children:`0`}),` is one-time,\n`,_jsx(`code`,{children:`null`}),` is lifetime.`]})}),_jsx(ParamField,{body:`provider`,type:`string`,id:`param-provider`,children:_jsxs(_components.p,{children:[`Discount provider: `,_jsx(`code`,{children:`stripe`}),`, `,_jsx(`code`,{children:`shopify`}),`, or\n`,_jsx(`code`,{children:`custom`}),`.`]})})]})]})]})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{WebhookResponseBodyParameters,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"discount_code.deleted","icon":"ticket","description":null,"href":"/docs/webhooks/events/discount-code-deleted"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const WebhookResponseBodyParameters=({type,children})=>{const{Expandable,ParamField}=_provideComponents()||{};if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);return _jsxs(`div`,{children:[_jsx(`h2`,{children:`Response body parameters`}),_jsxs(`p`,{children:[`All webhook payloads follow a consistent top-level structure with event-specific data nested within the `,_jsx(`code`,{children:`data`}),` object.`]}),_jsx(ParamField,{body:`id`,type:`string`,children:`The event ID.`}),_jsxs(ParamField,{body:`event`,type:`string`,children:[`The event type that triggered the webhook (e.g., `,_jsx(`code`,{children:type}),`).`]}),_jsx(ParamField,{body:`createdAt`,type:`string`,children:`ISO 8601 timestamp when the webhook event was created.`}),_jsxs(ParamField,{body:`data`,type:`object`,children:[`Event-specific data containing detailed information about the event. The data object for the `,_jsx(`code`,{children:type}),` event contains the following parameters:`,_jsx(Expandable,{defaultOpen:true,title:`object parameters`,children})]})]})};function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,..._provideComponents(),...props.components},{CodeBlock,Expandable,ParamField,ResponseExample,Tip,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!Tip)_missingMdxReference(`Tip`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Occurs whenever a `,_jsx(_components.a,{href:`/docs/api-reference/discount-codes/delete`,children:`discount code`}),` for a partner is deleted.`]}),`\n`,_jsxs(Tip,{children:[_jsx(_components.p,{children:`This event is also sent when a discount code is removed automatically — for\nexample when a partner is banned or deactivated, a linked referral link is\ndeleted, or a partner is moved to a group without an equivalent discount.`}),_jsxs(_components.p,{children:[`If the discount uses the `,_jsx(_components.strong,{children:`custom`}),` provider, listen to this webhook to\ndisable the corresponding promo code in your own system. For Stripe\nand Shopify discounts, Dub disables the code in the connected provider\nautomatically.`]})]}),`\n`,_jsx(_MdxComponentBoundary,{name:`WebhookResponseBodyParameters`,children:_jsxs(WebhookResponseBodyParameters,{type:`discount_code.deleted`,children:[_jsx(ParamField,{body:`id`,type:`string`,id:`param-id`,children:_jsxs(_components.p,{children:[`Unique identifier for the discount code (e.g. `,_jsx(`code`,{children:`dcode_…`}),`).`]})}),_jsx(ParamField,{body:`code`,type:`string`,id:`param-code`,children:_jsx(_components.p,{children:`The alphanumeric discount code that was deleted.`})}),_jsx(ParamField,{body:`partnerId`,type:`string`,id:`param-partner-id`,children:_jsx(_components.p,{children:`ID of the partner this discount code was assigned to.`})}),_jsx(ParamField,{body:`linkId`,type:`string`,id:`param-link-id`,children:_jsx(_components.p,{children:`ID of the partner’s referral link this discount code was associated with.`})}),_jsx(ParamField,{body:`disabledAt`,type:`string | null`,id:`param-disabled-at`,children:_jsxs(_components.p,{children:[`ISO 8601 timestamp when the code was disabled. Set when a partner is banned\nor deactivated; otherwise `,_jsx(`code`,{children:`null`}),`.`]})}),_jsxs(ParamField,{body:`discount`,type:`object | null`,id:`param-discount`,children:[_jsx(_components.p,{children:`The discount this code belonged to.`}),_jsxs(Expandable,{title:`discount object`,children:[_jsx(ParamField,{body:`id`,type:`string`,id:`param-id-1`,children:_jsx(_components.p,{children:`Unique identifier for the discount.`})}),_jsx(ParamField,{body:`amount`,type:`number`,id:`param-amount`,children:_jsxs(_components.p,{children:[`Discount amount. For `,_jsx(`code`,{children:`percentage`}),` discounts this is the\npercent off (e.g. `,_jsx(`code`,{children:`10`}),` = 10% off). For `,_jsx(`code`,{children:`flat`}),`\ndiscounts this is the amount in cents (e.g. `,_jsx(`code`,{children:`500`}),` = $5.00).`]})}),_jsx(ParamField,{body:`type`,type:`string`,id:`param-type`,children:_jsxs(_components.p,{children:[`Discount type: `,_jsx(`code`,{children:`percentage`}),` or `,_jsx(`code`,{children:`flat`}),`.`]})}),_jsx(ParamField,{body:`maxDuration`,type:`number | null`,id:`param-max-duration`,children:_jsxs(_components.p,{children:[`Maximum duration in months. `,_jsx(`code`,{children:`0`}),` is one-time,\n`,_jsx(`code`,{children:`null`}),` is lifetime.`]})}),_jsx(ParamField,{body:`provider`,type:`string`,id:`param-provider`,children:_jsxs(_components.p,{children:[`Discount provider: `,_jsx(`code`,{children:`stripe`}),`, `,_jsx(`code`,{children:`shopify`}),`, or\n`,_jsx(`code`,{children:`custom`}),`.`]})})]})]})]})}),`\n`,_jsx(ResponseExample,{children:_jsx(CodeBlock,{filename:`Response`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"evt_64dv6vxYVgltzJBKc9ujJ1ghL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"event\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"discount_code.deleted\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"createdAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-08-19T10:48:15.468Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dcode_1K39DGZG3MHY9RP4PD0AS2C5P\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"STEVEN10OFF\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"partnerId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"pn_1K9BZE1K285BSTX4W6MPKXJFZ\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"linkId\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"link_5myDHLqhIQvUmUPjchVygF9R\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"disabledAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`null`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"discount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"id\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"disc_1KEC01MXC5H50XQMSN83VCW65\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"amount\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`10`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"percentage\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"maxDuration\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`6`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"provider\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"custom\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{WebhookResponseBodyParameters,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"discount_code.deleted","icon":"ticket","description":null,"href":"/docs/webhooks/events/discount-code-deleted"}}}},"mdxExtracts":{"tableOfContents":[],"codeExamples":{"response":{"type":"ResponseExample","children":[{"filename":"Response","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"evt_64dv6vxYVgltzJBKc9ujJ1ghL\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"event\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"discount_code.deleted\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"createdAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-08-19T10:48:15.468Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"dcode_1K39DGZG3MHY9RP4PD0AS2C5P\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"STEVEN10OFF\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"partnerId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"pn_1K9BZE1K285BSTX4W6MPKXJFZ\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"linkId\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"link_5myDHLqhIQvUmUPjchVygF9R\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"disabledAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">null\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"discount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"id\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"disc_1KEC01MXC5H50XQMSN83VCW65\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"amount\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">10\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"percentage\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"maxDuration\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">6\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"provider\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"custom\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}}},"jsLinks":["/_mintlify/custom/dub/269f9b4976f6c2a3/dub-analytics.js","/_mintlify/custom/dub/1ffaeceafecf0293/dub-support.js"],"subdomain":"dub","siteName":"Dub","title":"discount_code.deleted - Dub","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T20:44:45.923Z","originalFileLocation":"docs/webhooks/events/discount-code-deleted.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Dub\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/dub/1aGPzlRe7hx45hfC/_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/dub/1aGPzlRe7hx45hfC/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/dub/1aGPzlRe7hx45hfC/_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/dub/1aGPzlRe7hx45hfC/_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/dub/1aGPzlRe7hx45hfC/_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/dub/1aGPzlRe7hx45hfC/_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/dub/1aGPzlRe7hx45hfC/_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/dub/1aGPzlRe7hx45hfC/_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/dub/1aGPzlRe7hx45hfC/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"discount_code.deleted - Dub\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Dub\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://dub.co/docs/webhooks/events/discount-code-deleted\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://dub.mintlify.site/_mintlify/api/og/v2?division=DUB+PARTNERS+WEBHOOKS\u0026amp;title=discount_code.deleted\u0026amp;theme=f39cdc5d19dec9d0cd82aba3\u0026amp;signature=84b488db5cfc1cbb464298fe3a0dd2b0cb55a30eaa4eb60c0c39e136f24429d3\">\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=\"discount_code.deleted - Dub\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://dub.mintlify.site/_mintlify/api/og/v2?division=DUB+PARTNERS+WEBHOOKS\u0026amp;title=discount_code.deleted\u0026amp;theme=f39cdc5d19dec9d0cd82aba3\u0026amp;signature=84b488db5cfc1cbb464298fe3a0dd2b0cb55a30eaa4eb60c0c39e136f24429d3\">\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/dub/1aGPzlRe7hx45hfC/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Dub\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#155dfc\">\u003clink data-mint-head rel=\"canonical\" href=\"https://dub.co/docs/webhooks/events/discount-code-deleted\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/docs/webhooks/events/discount-code-deleted.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://dub.co/#organization\",\"name\":\"Dub\",\"url\":\"https://dub.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/dub/NXC-v7aRqVVKRt1Q/logos/wordmark.svg?fit=max\u0026auto=format\u0026n=NXC-v7aRqVVKRt1Q\u0026q=85\u0026s=0f477cb77c06e4d3090acd888b427326\"}},{\"@type\":\"WebSite\",\"@id\":\"https://dub.co#website\",\"name\":\"Dub\",\"url\":\"https://dub.co\",\"publisher\":{\"@id\":\"https://dub.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://dub.co/docs/webhooks/events/discount-code-deleted#webpage\",\"url\":\"https://dub.co/docs/webhooks/events/discount-code-deleted\",\"name\":\"discount_code.deleted\",\"dateModified\":\"2026-10-30T20:44:45.923Z\",\"isPartOf\":{\"@id\":\"https://dub.co#website\"},\"breadcrumb\":{\"@id\":\"https://dub.co/docs/webhooks/events/discount-code-deleted#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://dub.co/docs/webhooks/events/discount-code-deleted#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"DUB PARTNERS WEBHOOKS\",\"item\":\"https://dub.co/docs/webhooks/events/program-application-created\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"discount_code.deleted\",\"item\":\"https://dub.co/docs/webhooks/events/discount-code-deleted\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://dub.co/docs/webhooks/events/discount-code-deleted#article\",\"headline\":\"discount_code.deleted\",\"name\":\"discount_code.deleted\",\"url\":\"https://dub.co/docs/webhooks/events/discount-code-deleted\",\"mainEntityOfPage\":{\"@id\":\"https://dub.co/docs/webhooks/events/discount-code-deleted#webpage\"},\"dateModified\":\"2026-10-30T20:44:45.923Z\",\"publisher\":{\"@id\":\"https://dub.co/#organization\"},\"isPartOf\":{\"@id\":\"https://dub.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Dub\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Dub\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/docs/webhooks/events/discount-code-deleted.md","siteName":"Dub","nav":{"global":null,"tabs":[{"tab":"Developer Docs","icon":"books","pages":[{"title":"Developer Docs","href":"/docs"}]},{"tab":"Help Center","icon":"life-ring","pages":[{"title":"Help Center","href":"/help"}]},{"tab":"API Reference","icon":"code","dropdowns":[{"dropdown":"Dub API","icon":"code","groups":[{"group":"DUB API","pages":[{"title":"Introduction","href":"/docs/api-reference/introduction"},{"title":"API Authentication","sidebarTitle":"Authentication","href":"/docs/api-reference/authentication"},{"title":"Rate limits","href":"/docs/api-reference/rate-limits"},{"title":"Dub MCP Server","sidebarTitle":"MCP Server","href":"/docs/mcp-server"}]},{"group":"SDKs","pages":[{"title":"Overview","href":"/docs/sdks/overview"},{"group":"Server-side SDKs","pages":[{"title":"TypeScript SDK","href":"/docs/sdks/typescript"},{"title":"Python SDK","href":"/docs/sdks/python"},{"title":"Ruby SDK","href":"/docs/sdks/ruby"},{"title":"PHP SDK","href":"/docs/sdks/php"},{"title":"Go SDK","href":"/docs/sdks/go"}]},{"group":"Client-side SDK (Web)","pages":[{"title":"Introduction","href":"/docs/sdks/client-side/introduction"},{"group":"Installation guides","pages":[{"title":"React","href":"/docs/sdks/client-side/installation-guides/react"},{"title":"Google Tag Manager","href":"/docs/sdks/client-side/installation-guides/google-tag-manager"},{"title":"Manual Installation","href":"/docs/sdks/client-side/installation-guides/manual"},{"title":"Webflow","href":"/docs/sdks/client-side/installation-guides/webflow"},{"title":"WordPress","href":"/docs/sdks/client-side/installation-guides/wordpress"},{"title":"Framer","href":"/docs/sdks/client-side/installation-guides/framer"},{"title":"Shopify","href":"/docs/sdks/client-side/installation-guides/shopify"}]},{"group":"Features","pages":[{"title":"Client-side click tracking","href":"/docs/sdks/client-side/features/click-tracking"},{"title":"Client-side conversion tracking","sidebarTitle":"Conversion tracking","href":"/docs/sdks/client-side/features/conversion-tracking"},{"title":"Cross-domain tracking","href":"/docs/sdks/client-side/features/cross-domain-tracking"},{"title":"Reverse-proxy support","href":"/docs/sdks/client-side/features/reverse-proxy-support"}]},{"title":"Script Variants","href":"/docs/sdks/client-side/variants"}]},{"group":"Client-side SDK (Mobile)","pages":[{"title":"Introduction","href":"/docs/sdks/client-side-mobile/introduction"},{"group":"Installation Guides","pages":[{"title":"Swift","tag":"Beta","href":"/docs/sdks/client-side-mobile/installation-guides/swift"},{"title":"React Native","tag":"Beta","href":"/docs/sdks/client-side-mobile/installation-guides/react-native"}]}]}]},{"group":"DUB PARTNERS API","pages":[{"group":"Partners","pages":[{"openapi":"post /partners","sidebarTitle":"Create partner","title":"Create or update a partner","href":"/docs/api-reference/partners/create"},{"openapi":"get /partners","sidebarTitle":"List partners","title":"List all partners","href":"/docs/api-reference/partners/list"},{"openapi":"post /partners/ban","sidebarTitle":"Ban partner","title":"Ban a partner","href":"/docs/api-reference/partners/ban"},{"openapi":"post /partners/deactivate","sidebarTitle":"Deactivate partner","title":"Deactivate a partner","href":"/docs/api-reference/partners/deactivate"},{"openapi":"post /partners/attribute-referring-partner","sidebarTitle":"Attribute referring partner","title":"Attribute a referring partner","href":"/docs/api-reference/partners/attribute-referring-partner"},{"openapi":"post /partners/links","sidebarTitle":"Create partner link","title":"Create a link for a partner","href":"/docs/api-reference/partners/create-link"},{"openapi":"put /partners/links/upsert","sidebarTitle":"Upsert partner link","title":"Upsert a link for a partner","href":"/docs/api-reference/partners/upsert-link"},{"openapi":"get /partners/links","sidebarTitle":"List partner links","title":"Retrieve a partner's links.","href":"/docs/api-reference/partners/retrieve-links"}]},{"group":"Program applications","pages":[{"openapi":"get /program-applications","sidebarTitle":"List program applications","title":"List all program applications","href":"/docs/api-reference/program-applications/list"},{"openapi":"post /program-applications/approve","sidebarTitle":"Approve program application","title":"Approve a partner application","href":"/docs/api-reference/program-applications/approve"},{"openapi":"post /program-applications/reject","sidebarTitle":"Reject program application","title":"Reject a partner application","href":"/docs/api-reference/program-applications/reject"}]},{"group":"Analytics \u0026 events","pages":[{"title":"Retrieve analytics","openapi":"get /analytics","href":"/docs/api-reference/analytics/retrieve"},{"openapi":"get /events","sidebarTitle":"List events","title":"List all events","href":"/docs/api-reference/events/list"}]},{"group":"Tracking","pages":[{"openapi":"post /track/lead","title":"Track a lead event","href":"/docs/api-reference/track/lead"},{"openapi":"post /track/sale","title":"Track a sale event","href":"/docs/api-reference/track/sale"},{"openapi":"post /track/open","title":"Track a deep link open event","href":"/docs/api-reference/track/open"}]},{"group":"Customers","pages":[{"openapi":"get /customers/{id}","sidebarTitle":"Retrieve customer","title":"Retrieve a customer","href":"/docs/api-reference/customers/retrieve"},{"openapi":"get /customers","sidebarTitle":"List customers","title":"List all customers","href":"/docs/api-reference/customers/list"},{"openapi":"patch /customers/{id}","sidebarTitle":"Update customer","title":"Update a customer","href":"/docs/api-reference/customers/update"},{"openapi":"delete /customers/{id}","sidebarTitle":"Delete customer","title":"Delete a customer","href":"/docs/api-reference/customers/delete"}]},{"group":"Bounty submissions","pages":[{"openapi":"get /bounties/{bountyId}/submissions","sidebarTitle":"List submissions","title":"List bounty submissions","href":"/docs/api-reference/bounties/list"},{"openapi":"post /bounties/{bountyId}/submissions/{submissionId}/approve","sidebarTitle":"Approve submission","title":"Approve a bounty submission","href":"/docs/api-reference/bounties/approve"},{"openapi":"post /bounties/{bountyId}/submissions/{submissionId}/reject","sidebarTitle":"Reject submission","title":"Reject a bounty submission","href":"/docs/api-reference/bounties/reject"}]},{"group":"Commissions","pages":[{"openapi":"get /commissions","sidebarTitle":"List commissions","title":"List all commissions","href":"/docs/api-reference/commissions/list"},{"openapi":"post /commissions","sidebarTitle":"Create commission","title":"Create commission","href":"/docs/api-reference/commissions/create"},{"openapi":"patch /commissions/{id}","sidebarTitle":"Update commission","title":"Update a commission","href":"/docs/api-reference/commissions/update"}]},{"group":"Payouts","pages":[{"openapi":"get /payouts","sidebarTitle":"List payouts","title":"List all payouts","href":"/docs/api-reference/payouts/list"}]},{"group":"Messages","pages":[{"openapi":"get /messages","sidebarTitle":"List messages","title":"List all messages","href":"/docs/api-reference/messages/list"},{"openapi":"post /messages","sidebarTitle":"Send a message","title":"Send a message to a partner","href":"/docs/api-reference/messages/create"}]},{"group":"Discount codes","pages":[{"openapi":"get /discount-codes","sidebarTitle":"List discount codes","title":"List discount codes","href":"/docs/api-reference/discount-codes/list"},{"openapi":"post /discount-codes","sidebarTitle":"Create discount code","title":"Create a discount code","href":"/docs/api-reference/discount-codes/create"},{"openapi":"delete /discount-codes/{idOrCode}","sidebarTitle":"Delete discount code","title":"Delete a discount code","href":"/docs/api-reference/discount-codes/delete"}]}]},{"group":"DUB LINKS API","pages":[{"group":"Links","pages":[{"openapi":"post /links","sidebarTitle":"Create link","title":"Create a link","href":"/docs/api-reference/links/create"},{"openapi":"patch /links/{linkId}","sidebarTitle":"Update link","title":"Update a link","href":"/docs/api-reference/links/update"},{"openapi":"put /links/upsert","sidebarTitle":"Upsert link","title":"Upsert a link","href":"/docs/api-reference/links/upsert"},{"openapi":"delete /links/{linkId}","sidebarTitle":"Delete link","title":"Delete a link","href":"/docs/api-reference/links/delete"},{"openapi":"get /links/info","sidebarTitle":"Retrieve link","title":"Retrieve a link","href":"/docs/api-reference/links/retrieve"},{"openapi":"get /links","sidebarTitle":"List links","title":"List all links","href":"/docs/api-reference/links/list"},{"openapi":"get /links/count","sidebarTitle":"Count links","title":"Retrieve links count","href":"/docs/api-reference/links/count"},{"openapi":"post /links/bulk","sidebarTitle":"Bulk create links","title":"Bulk create links","href":"/docs/api-reference/links/bulk-create"},{"openapi":"patch /links/bulk","sidebarTitle":"Bulk update links","title":"Bulk update links","href":"/docs/api-reference/links/bulk-update"},{"openapi":"delete /links/bulk","sidebarTitle":"Bulk delete links","title":"Bulk delete links","href":"/docs/api-reference/links/bulk-delete"}]},{"group":"Domains","pages":[{"openapi":"post /domains","sidebarTitle":"Create domain","title":"Create a domain","href":"/docs/api-reference/domains/create"},{"openapi":"patch /domains/{slug}","sidebarTitle":"Update domain","title":"Update a domain","href":"/docs/api-reference/domains/update"},{"openapi":"delete /domains/{slug}","sidebarTitle":"Delete domain","title":"Delete a domain","href":"/docs/api-reference/domains/delete"},{"openapi":"post /domains/register","sidebarTitle":"Register domain","title":"Register a domain","href":"/docs/api-reference/domains/register"},{"openapi":"get /domains/status","sidebarTitle":"Check domain availability","title":"Check the availability of one or more domains","href":"/docs/api-reference/domains/check-availability"}]},{"group":"Folders","pages":[{"openapi":"post /folders","sidebarTitle":"Create folder","title":"Create a folder","href":"/docs/api-reference/folders/create"},{"openapi":"patch /folders/{id}","sidebarTitle":"Update folder","title":"Update a folder","href":"/docs/api-reference/folders/update"},{"openapi":"delete /folders/{id}","sidebarTitle":"Delete folder","title":"Delete a folder","href":"/docs/api-reference/folders/delete"},{"openapi":"get /folders","sidebarTitle":"List folders","title":"List all folders","href":"/docs/api-reference/folders/list"}]},{"group":"Tags","pages":[{"openapi":"post /tags","sidebarTitle":"Create tag","title":"Create a tag","href":"/docs/api-reference/tags/create"},{"openapi":"get /tags","sidebarTitle":"List tags","title":"List all tags","href":"/docs/api-reference/tags/list"},{"openapi":"patch /tags/{id}","sidebarTitle":"Update tag","title":"Update a tag","href":"/docs/api-reference/tags/update"}]}]}]},{"dropdown":"Dub Partner API","icon":"chart-line","groups":[{"group":"DUB PARTNER API","pages":[{"title":"Introduction","href":"/docs/partner-api-reference/introduction"}]}]}]},{"tab":"Webhooks","icon":"webhook","dropdowns":[{"dropdown":"Dub Webhooks","icon":"webhook","groups":[{"group":"DUB WEBHOOKS","pages":[{"title":"Introduction","href":"/docs/webhooks/introduction"},{"title":"Event types","href":"/docs/webhooks/event-types"},{"title":"Verify webhook requests","href":"/docs/webhooks/verify-webhook-requests"}]},{"group":"DUB PARTNERS WEBHOOKS","pages":[{"title":"program_application.created","icon":"users","href":"/docs/webhooks/events/program-application-created"},{"title":"partner.enrolled","icon":"users","href":"/docs/webhooks/events/partner-enrolled"},{"title":"partner.merged","icon":"users","href":"/docs/webhooks/events/partner-merged"},{"title":"lead.created","icon":"user-crown","href":"/docs/webhooks/events/lead-created"},{"title":"sale.created","icon":"coins","href":"/docs/webhooks/events/sale-created"},{"title":"commission.created","icon":"money-bill","href":"/docs/webhooks/events/commission-created"},{"title":"bounty.created","icon":"trophy","href":"/docs/webhooks/events/bounty-created"},{"title":"bounty.updated","icon":"trophy","href":"/docs/webhooks/events/bounty-updated"},{"title":"discount_code.created","icon":"ticket","description":null,"href":"/docs/webhooks/events/discount-code-created"},{"title":"discount_code.deleted","icon":"ticket","href":"/docs/webhooks/events/discount-code-deleted"},{"title":"message.received","icon":"message","description":null,"href":"/docs/webhooks/events/message-received"}]},{"group":"DUB LINKS WEBHOOKS","pages":[{"title":"link.created","icon":"link","href":"/docs/webhooks/events/link-created"},{"title":"link.updated","icon":"link","href":"/docs/webhooks/events/link-updated"},{"title":"link.deleted","icon":"link","href":"/docs/webhooks/events/link-deleted"},{"title":"link.clicked","icon":"link","href":"/docs/webhooks/events/link-clicked"}]}]},{"dropdown":"Dub Postbacks","icon":"arrow-progress","groups":[{"group":"DUB POSTBACKS","pages":[{"title":"Introduction","href":"/docs/postbacks/introduction"},{"title":"Event types","href":"/docs/postbacks/event-types"},{"title":"Verify postback requests","href":"/docs/postbacks/verify-postback-requests"}]},{"group":"DUB POSTBACK EVENTS","pages":[{"title":"lead.created","icon":"user-crown","href":"/docs/postbacks/events/lead-created"},{"title":"sale.created","icon":"coins","href":"/docs/postbacks/events/sale-created"},{"title":"commission.created","icon":"money-bill","href":"/docs/postbacks/events/commission-created"}]}]}]}]},"basePath":"","title":"discount_code.deleted - Dub","buildId":"dpl_596ePT575z4qnAFksq1biRW97aLY","deploymentId":"dpl_596ePT575z4qnAFksq1biRW97aLY","dynamics":["2b790eda92"],"chunks":["ApiExamples-BQHO1lnV.js","utils-jWgu-6Qf.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","cloneDeep-izs3Hzxb.js","utils-DBD8f9qn.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-B6C8m-t_.js","shallow-BG4cT0fH.js","snippetPresets-Evy63nQB.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","getApiPlaygroundDisplay-CgEPrE-D.js","CodeSnippet-CU8JyZ9N.js","CodeSnippets-BnxHU32T.js"]}