Send Postback/S2S Callback to the Affiliate












Last updated
Was this helpful?
GoAffPro provides you with the option to send Postback/S2S callback to the affiliate when they get a new order.
To send Postback/S2S callback to the affiliate, go to the All Affiliates section in the Affiliates tab of the GoAffPro admin panel.

Here, click on the affiliate's name.

This will open up the affiliate's profile.

Now, go to the Settings tab.

Here, go to the S2S Callback section.

Now, click on Order created callback.

This will open up the Setup order created callback window.

Now, select the HTTP method.
You can select either GET or POST.

After this, enter the URL.

Click on Submit.

Finally, the newly set S2S callback will be saved.

The same process can be followed to set the Order updated callback.

Postback URLs enable you to receive real-time notifications whenever an order is tracked. You can add dynamic variables to your URL, ensuring that each postback contains valuable order and click data. Below are the supported variables and examples on how to use them:
Supported Variables:
The order number: {{order.number}}
Total order amount: {{order.amount}}
Commission generated for the order: {{order.commission}}
Query parameter from the referral link (replace "param" with your chosen parameter name): {{link.query.param}}
Link hash parameter: {{link.hash}}
Link path parameter: {{link.path}}
Link sub_id parameter: {{link.sub_id}}
Examples:
Basic Postback URL (Send order number & amount)
https://yourpostback.com?number={{order.number}}&amount={{order.amount}}
Include commission generated
https://yourdomain.com/postback?order={{order.number}}&amt={{order.amount}}&comm={{order.commission}}
Send a custom query parameter from the referral link
If your affiliate link looks like: https://yourstore.com/?campaign=summer
You can capture it using:
https://yourpostback.com/?order={{order.number}}&campaign={{link.query.campaign}}
Using Sub ID tracking
https://track.me/postback?order={{order.number}}&subid={{link.sub_id}}
Send all available data
https://yourpostback.com? order={{order.number}} &amount={{order.amount}} &commission={{order.commission}} &subid={{link.sub_id}} &hash={{link.hash}} &path={{link.path}}
Notes:
Ensure that your URL is properly URL-encoded if you include any special characters.
Variables are automatically replaced with actual values before the postback is fired.
Last updated
Was this helpful?
Was this helpful?