Send Postback/S2S Callback to the Affiliate

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.

Affiliates > All Affiliates

Here, click on the affiliate's name.

Click on the affiliate's name

This will open up the affiliate's profile.

Affiliate Profile

Now, go to the Settings tab.

Settings tab

Here, go to the S2S Callback section.

S2S Callback

Now, click on Order created callback.

Click on Order created callback

This will open up the Setup order created callback window.

Order created callback

Now, select the HTTP method.

You can select either GET or POST.

Select the HTTP method

After this, enter the URL.

Enter the URL

Click on Submit.

Click on Submit

Finally, the newly set S2S callback will be saved.

S2S Callback saved

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

Formatting the Postback URL for Affiliate Tracking

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:

  1. Basic Postback URL (Send order number & amount)

https://yourpostback.com?number={{order.number}}&amount={{order.amount}}

  1. Include commission generated

https://yourdomain.com/postback?order={{order.number}}&amt={{order.amount}}&comm={{order.commission}}

  1. 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}}

  1. Using Sub ID tracking

https://track.me/postback?order={{order.number}}&subid={{link.sub_id}}

  1. 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.

Send S2S Callback to the Affiliate

Last updated

Was this helpful?