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.
{
"id": "evt_64dv6vxYVgltzJBKc9ujJ1ghL",
"event": "discount_code.deleted",
"createdAt": "2026-08-19T10:48:15.468Z",
"data": {
"id": "dcode_1K39DGZG3MHY9RP4PD0AS2C5P",
"code": "STEVEN10OFF",
"partnerId": "pn_1K9BZE1K285BSTX4W6MPKXJFZ",
"linkId": "link_5myDHLqhIQvUmUPjchVygF9R",
"disabledAt": null,
"discount": {
"id": "disc_1KEC01MXC5H50XQMSN83VCW65",
"amount": 10,
"type": "percentage",
"maxDuration": 6,
"provider": "custom"
}
}
}