# Update Discount Code This webhook is triggered when a discount code is updated for a collaboration. The receiving endpoint can use X-InfluencerHero-Timestamp and X-InfluencerHero-Signature to verify authenticity via HMAC-SHA256. Endpoint: POST update_discount_code Version: 1.4.2 Security: ApiKeyAuth ## Header parameters: - `X-InfluencerHero-Timestamp` (string, required) Unix timestamp (in seconds) at which the webhook was sent. - `X-InfluencerHero-Signature` (string, required) HMAC-SHA256 signature computed using your webhook signing key and the request body. ## Request fields (application/json): - `webhook_timestamp` (string, required) Server-side timestamp included in the webhook body. - `code_information` (object, required) Details about the previous and new discount codes. - `code_information.old_discount_code` (string) The existing discount code before the update. - `code_information.old_discount_perc` (number) The existing discount percentage before the update. - `code_information.new_discount_code` (string) The new discount code, if changed. - `code_information.new_discount_perc` (number) The new discount percentage, if changed. - `collab_id` (string, required) Unique identifier of the collaboration receiving the discount code. - `deal_info` (object) A lightweight summary of the influencers deal. - `deal_info.deal_name` (string) Deal name / Influencer handle - `deal_info.is_active` (boolean) Indicates if the deal is still active. - `deal_info.dealflow_funnel_step` (integer) Funnel step of the deal in the respective dealflow (0-4) - `deal_info.dealflow_type` (string) Whether the dealflow is an outreach or relationship dealflow - `deal_info.dealflow_name` (string) Name of the dealflow - `deal_info.picture_url` (string) Influencer Profile Picture URL - `deal_info.nr_followers` (integer) Number of followers of the influencer - `deal_info.full_name` (string) Full name for the influencer, as indicated on his social media account - `deal_info.platform` (string) Indicates which social media platform is primarily used. - `deal_info.profile_url` (string) Link to the influencer's social media page - `deal_id` (string, required) Unique identifier of the deal associated with this discount code. ## Response 200 fields ## Response 4XX fields ## Response 5XX fields