> For the complete documentation index, see [llms.txt](https://docs.goaffpro.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.goaffpro.com/program-management/manage-affiliates/affiliate-profile-settings/send-s2s-callback.md).

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

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FyJNq6sNhkQzFfEdX7XWp%2Fimage.png?alt=media&amp;token=22bf756c-5194-41f3-bdc0-32c7282eef39" alt=""><figcaption><p>Affiliates > All Affiliates</p></figcaption></figure>

Here, click on the **affiliate's name.**

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FOpG3qdxZoLDSmCTvoD1w%2FScreenshot%202026-09-03%20001148.png?alt=media&amp;token=133880dd-83d8-4a12-b61d-dcc88fad92b3" alt=""><figcaption><p>Click on the affiliate's name</p></figcaption></figure>

This will open the affiliate's profile.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FunwD1O6Wy8D1X2CDFTHK%2Fimage.png?alt=media&amp;token=7b639256-3481-4028-9454-21593d527317" alt=""><figcaption><p>Affiliate Profile</p></figcaption></figure>

Now, go to the **Settings** tab.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FIepOGskfx57SFJEoOJ5o%2FScreenshot%202026-09-03%20001157.png?alt=media&amp;token=6db5456b-7147-46e9-a48a-c5fdf411e8a0" alt=""><figcaption><p>Settings tab</p></figcaption></figure>

Here, go to the S2S Callback (Postbacks) section.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FoqhgOkYMt8zObBmYjKun%2Fimage.png?alt=media&amp;token=a4a5f308-f2b7-4c44-a9f8-f7064898a3ab" alt=""><figcaption><p>S2S Callback (Postbacks)</p></figcaption></figure>

Now, click on the **callback**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2F6nA8seZajd4Xby41goGo%2FScreenshot%202026-09-03%20013618.png?alt=media&amp;token=33672251-5c6e-4073-a42a-196bd9a3647c" alt=""><figcaption><p>Click on the callback</p></figcaption></figure>

This will open the setup callback window.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FBpTIXmZTYSEuQzRodshq%2Fimage.png?alt=media&amp;token=f1d26e86-72c9-4d59-ab74-bee26c1c0077" alt=""><figcaption><p>Setup callback window</p></figcaption></figure>

After this, select the HTTP method and enter the URL.&#x20;

{% hint style="info" %}
You can select either GET or POST.
{% endhint %}

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2Fet3GafP8xcz5ZwKmY3e5%2FScreenshot%202026-09-03%2001363242.png?alt=media&amp;token=698d64e2-f5a8-4ad0-a55e-6a94d4597a4a" alt=""><figcaption><p>Select the HTTP method > Enter the URL</p></figcaption></figure>

Finally, click on **Submit**.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FhpwJzQNfwgQLcNX2Bab9%2FScreenshot%202026-09-03%20013647.png?alt=media&amp;token=7f7cd477-caa1-4714-8d38-b580793e4f42" alt=""><figcaption><p>Click on Submit</p></figcaption></figure>

The newly set S2S callback will be saved.

<figure><img src="https://1200686697-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LdPzLtyP46oY7cyXnkw%2Fuploads%2FwClky7xPNlXJKXYal0ON%2Fimage.png?alt=media&amp;token=aeb3c255-fdc1-4518-801e-7f3364c13062" alt=""><figcaption><p>S2S Callback saved</p></figcaption></figure>

<details>

<summary>Formatting the Postback URL for Affiliate Tracking</summary>

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}}&#x20;

Total order amount: {{order.amount}}&#x20;

Commission generated for the order: {{order.commission}}&#x20;

Query parameter from the referral link (replace "param" with your chosen parameter name): {{link.query.param}}

Link hash parameter: {{link.hash}}&#x20;

Link path parameter: {{link.path}}&#x20;

Link sub\_id parameter: {{link.sub\_id}}&#x20;

**Examples:**

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

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

2. **Include commission generated**

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

3. **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\\}}>

4. **Using Sub ID tracking**

<https://track.me/postback?order=\\{{order.number\\}}\\&subid=\\{{link.sub\\_id\\}}>

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:**

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

</details>

{% embed url="<https://www.youtube.com/watch?v=DC0tPa4POBY>" %}
Send S2S Callback to the Affiliate
{% endembed %}
