Advanced: postback webhook

Affiliate notification postbacks

If you wish to set up tracking of affiliate registrations and sales on your side, you can use our postback feature.

To make this work, you need to create a script on your site that will receive all postbacks from Udimi and react to the received parameters.

This way, Udimi will send a notification via a GET request to your server's webhook URL.

There are three different variables Udimi will send you:

  • Sid – identifier you have provided to Udimi when you have sent this visitor to Udimi via ?sid=xxxxx variable. Learn more 

    Example postback to your site: 
    https://site.com/postback/?sid=banner_campaign
  • Profile_uid – user's profile ID. For example, if the profile ID is "il8f3", you can find the user on Udimi by following the link: https://udimi.com/p/il8f3

    Example postback to your site: 
    https://site.com/postback/?profile_uid=il8f3
  • Amount – your commission amount or a zero if it was a registration. 
    If you wish to track affiliate registrations, your script should react to a zero in this field as a marker for registration.

    If this amount is above zero, then it was a payment and represents your commission.

    Example postback to your site(registration): 
    https://site.com/postback/?amount=0

    Example postback to your site (sale): 
    https://site.com/postback/?amount=99.95

To test your setup, use the test button and Udimi will send a postback to the URL you've specified.