Skip to main content
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.

string
The event ID.
string
The event type that triggered the webhook (e.g., discount_code.deleted).
string
ISO 8601 timestamp when the webhook event was created.
object
Event-specific data containing detailed information about the event. The data object for the discount_code.deleted event contains the following parameters: