API documentation for the Influencer Hero platform.
Influencer Hero API (1.4.2)
Affiliate Tracking
[Advanced] Server-side endpoints for tracking affiliate actions and performance. For most use cases, the client-side tracking script will be sufficient.
Payload containing information about the updated custom link.
Details about the previous and new custom link.
The existing target URL for the old custom link.
- https://api.influencer-hero.com/update_custom_link
{ "webhook_timestamp": "1693427202", "custom_link_information": { "old_custom_link": "/the-old-link", "old_custom_link_target": "https://old.example.com", "new_custom_link": "/the-new-link", "new_custom_link_target": "https://new.example.com" }, "deal_info": { "deal_name": "therock", "is_active": true, "dealflow_funnel_step": 3, "dealflow_type": "outreach", "dealflow_name": "Spring Collection Promo", "picture_url": "https://imgp.sptds.icu/v2?mb0KwpL92uYofJiSjDn1%2F6peL1lBwv3s%2BUvShHERlDbrEEwrWumIvR20xZeZXa0LDeIrcniqZeG9S%2F1a5s2Rx3FZdXrWpY%2BmSBJp1l%2FmBGon3rcHA4EfuatZqMhVBzAT", "nr_followers": 60000, "full_name": "Dwayne Johnson", "platform": "instagram", "profile_url": "https://instagram.com/therock" }, "collab_id": "collab123", "deal_id": "deal321" }
Payload containing information about the updated commission percentage.
Details about the previous and new commission percentages.
- https://api.influencer-hero.com/update_commission
{ "webhook_timestamp": "1693427202", "commission_information": { "old_commission_perc": 10, "new_commission_perc": 15 }, "collab_id": "collab987", "deal_id": "xyz789", "deal_info": { "deal_name": "therock", "is_active": true, "dealflow_funnel_step": 3, "dealflow_type": "outreach", "dealflow_name": "Spring Collection Promo", "picture_url": "https://imgp.sptds.icu/v2?mb0KwpL92uYofJiSjDn1%2F6peL1lBwv3s%2BUvShHERlDbrEEwrWumIvR20xZeZXa0LDeIrcniqZeG9S%2F1a5s2Rx3FZdXrWpY%2BmSBJp1l%2FmBGon3rcHA4EfuatZqMhVBzAT", "nr_followers": 60000, "full_name": "Dwayne Johnson", "platform": "instagram", "profile_url": "https://instagram.com/therock" }, "is_ch_collab": false }
Request
This webhook is fired whenever a user sends a product to an influencer or contact. The request body contains core details of the shipped order (in a simplified form), along with minimal information about the related deal. Security / Verification - Each request includes a timestamp (X-InfluencerHero-Timestamp) and
an HMAC-SHA256 signature (X-InfluencerHero-Signature) in the headers.
- The payload can be used along with the secret key your system has stored (provided by Influencer Hero) to verify authenticity of the request.
Details about the product and recipient information being sent.
A lightweight summary of the influencers deal.
- https://api.influencer-hero.com/product_sent
{ "send_product_info": { "line_items": [ … ], "customer": { … }, "shipping_address": { … }, "phone": "555-555-5555" }, "deal_info": { "deal_name": "therock", "is_active": true, "dealflow_funnel_step": 3, "dealflow_type": "outreach", "dealflow_name": "Spring Collection Promo", "picture_url": "https://imgp.sptds.icu/v2?mb0KwpL92uYofJiSjDn1%2F6peL1lBwv3s%2BUvShHERlDbrEEwrWumIvR20xZeZXa0LDeIrcniqZeG9S%2F1a5s2Rx3FZdXrWpY%2BmSBJp1l%2FmBGon3rcHA4EfuatZqMhVBzAT", "nr_followers": 60000, "full_name": "Dwayne Johnson", "platform": "instagram", "profile_url": "https://instagram.com/therock" }, "deal_id": "DEAL-12345" }