Postback URL formatting - anujtenani/goaffpro GitHub Wiki
🧩 How to Format Your Postback URL for Affiliate Tracking
Postback URLs allow you to receive real-time notifications whenever an
order is tracked.
You can add dynamic variables to your URL so that each postback includes
useful order and click data.
Below are the supported variables and how to use them.
🔧 Supported Variables
Variable Description
{{order.number}} The order number
{{order.amount}} Total order amount
{{order.commission}} Commission generated for the order
{{link.query.param}} Query parameter from the referral link
(replace param with your chosen
parameter name)
{{link.hash}} Link hash parameter
{{link.path}} Link path parameter
{{link.sub_id}} Link sub_id parameter
📌 Example 1: Basic Postback URL
Send order number and amount:
https://yourpostback.com?number={{order.number}}&amount={{order.amount}}
📌 Example 2: Include Commission Generated
https://yourdomain.com/postback?order={{order.number}}&amt={{order.amount}}&comm={{order.commission}}
📌 Example 3: Send Custom Query Parameter From 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}}
📌 Example 4: Using Sub ID Tracking
https://track.me/postback?order={{order.number}}&subid={{link.sub_id}}
📌 Example 5: 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
- Make sure your URL is properly URL-encoded if you add special characters.
- Variables are automatically replaced with actual values before the postback is fired.