- 17 Apr 2025
- DarkLight
Transaction Notifications
- Updated on 17 Apr 2025
- DarkLight
Awin offers publishers a near real-time reporting feature that sends a notification to your system each time a transaction is recorded. This notification includes all relevant transaction details, enabling you to:
Receive immediate alerts for each transaction.
Store transactions in other platforms (e.g. Excel) as they happen
Link back transactions to users of your cashback platform
Set up Notifications using Callback method
Log into Awin and go to Toolbox > Transaction Notifications
Enabling Transaction Notifications
If you don't see the "Transaction Notifications" option in your navigation raise a support ticket here to request access.
Working with Callback URL’s might proof technically difficult to some. If you are unfamiliar try setting up notifications via Zapier. For detailed instructions see below.
There are four settings which need to be considered:
Call-back URL: Enter the URL where Awin will send transaction data. This could be a script on your server (e.g., PHP, Node.js). Ensure your server is set up to handle incoming requests on ports 80 or 443. Example:
https://www.yourdomain.com/awin/transaction-handler.php
Call-back method: Here you can choose if you want to get the data delivered as a GET or POST request.
Product Data: Tick this box if you wish for data about the actual products bought to be passed back. Data will be delivered for GET and POST method. This is dependent on the Advertiser implementing Product Level Tracking - and furthermore actively sharing this data with Publishers - which may not always be the case.
Click Source Data: Enable this to receive information about the initial click that led to the transaction.
After configuring these settings, click Submit. A confirmation message will indicate that your changes have been successfully saved.
Request Type
There are two types of requests possible. A GET request allows you to return the results as part of an URL whereas the POST method returns the results in a JSON format which then allows you to easily parse that data and store it in other places like Excel files for example.
GET Request
In a GET request, transaction data is sent as URL parameters. You can use placeholders (macros) in your URL, which Awin will replace with actual transaction values.
Example URL
http://www.publisher-domain.com/!!!merchantId!!!/pixel.php?clk=!!!clickRef!!!&cnv=!!!transactionId!!!&com=!!!commission!!!
Common Placeholders
Placeholder | Description | Example |
| The Publisher ID associated to the transaction | 45628 |
| The Creative ID linked to the converting click | 291555 |
| Click/View identifier/reference specified by the Publisher. See Publisher ClickRef | LINKCMP2013-06 |
| Click/View identifier/reference specified by the Publisher. See Publisher ClickRef | LINKCMP2013-06 |
| Click/View identifier/reference specified by the Publisher. See Publisher ClickRef | LINKCMP2013-06 |
| Click/View identifier/reference specified by the Publisher. See Publisher ClickRef | LINKCMP2013-06 |
| Click/View identifier/reference specified by the Publisher. See Publisher ClickRef | LINKCMP2013-06 |
| Click/View identifier/reference specified by the Publisher. See Publisher ClickRef | LINKCMP2013-06 |
| Click date in format | 2013-06-13 12:00:00 |
| Click date in format | 2013-06-13 12:00:00 |
| Commission amount awarded for the transaction | 1.64 |
| Commission group breakdown associated with the transaction (in JSON format) | See below under POST Request (JSON) / Example Data |
| The creative group ID linked to the converting click | 137726 |
| The Advertiser program ID that the transaction belongs to | 3661 |
| Search engine phrase. It is extracted from the referrer of the click. | Electronic music |
| Product breakdown associated with the transaction (in JSON format) | See below under POST Request (JSON) / Example Data |
| Search engine name. It is extracted from the referrer of the click. | MSN Live Search |
| Total sale amount in the currency of the Advertiser program (!!!transactionCurrency!!!) | 26.09 |
| Transaction date in format | 2013-06-13 12:05:00 |
| Our unique Transaction ID | 105956531 |
| Referring click URL | |
| The Advertiser's program currency. This is the currency of the affiliate transaction (!!!transactionAmount!!! and !!!commission!!!). This is the 3 digit uppercase currency code | GBP |
| The original currency in which the purchase was made. This is only available if it's a different currency compared to the Advertiser's program currency. This is the 3 digit uppercase currency code | EUR |
| The total sale amount in the original purchase currency (!!!trackedCurrency!!!) | 20.04 |
POST Request (JSON)
In a POST request, Awin sends a JSON payload to your specified URL. The content-type is application/x-www-form-urlencoded; charset=UTF-8
.
Returning the response
echo $_POST["AwinTransactionPush"];
Example Response
{
"transactionId": "105956531",
"transactionDate": "2013-06-13 12:05:00",
"transactionCurrency": "GBP",
"transactionAmount": "26.09",
"affiliateId": "45628",
"merchantId": "3661",
"groupId": "0",
"bannerId": "0",
"clickRef": "LINKCMP2013-06",
"clickThroughTime": "2013-06-13 12:00:00",
"ip": "127.0.0.1",
"commission": "1.64",
"clickTime": "2013-06-13 12:00:00",
"url": "http://www.publisher-domain.com/advertiser/product/",
"phrase": "Electronic music",
"searchEngine": "MSN Live Search",
"commissionGroups": [
{
"id": "47963",
"name": "CD",
"code": "CD",
"description": "CD"
},
{
"id": "47965",
"name": "DVD",
"code": "DVD",
"description": "DVD"
}
],
"products": [
{
"productName": "The Knife – Silent Shout",
"unitPrice": "5.55",
"skuType": "",
"skuCode": "B000EMSUQA",
"quantity": "2",
"category": "Electronic Music",
"cgId": "47963"
},
{
"productName": "Sigur Ros - Heima",
"unitPrice": "14.99",
"skuType": "",
"skuCode": "B000EMSUQA",
"quantity": "1",
"category": "Music DVD",
"cgId": "47965"
}
]
}
Receive notifications using Zapier
If you are not familiar working with callback URL’s here is an easy guide on how to utilize Zapier to receive notifications however you like in for example email, slack or any other tool that is connected with Zapier.
Follow the steps at the top of this page to Enable Transactions Notifications for your account.
Set Callback Method to POST and status to Enabled
Choose to include Product data or Click Source Data as needed
In Zapier, create a new Zap with Webhooks by Zapier as the trigger (dont have an account yet? Click here for more information) .
Select Catch Hook or Catch Raw Hook.
Catch Hook: Allows you to select specific data points for use in subsequent actions.
Catch Raw Hook: Captures the full JSON payload for advanced processing.
Zapier will provide a unique webhook URL. Copy this URL.
Paste the Zapier webhook URL into the Callback URL field in your Awin Transaction Notifications settings.
Return to Zapier and test the trigger to ensure it's receiving data.
Using dynamic Output fields
Usually Zapier allows you to use the Output from previous steps of your flow in following Actions. When working with webhooks Zapier doesn’t immediately know what the response will look like. This could limit your ability to dynamically fill the body of your next Action.
Either keep refreshing for test records until a real transaction is picked up by the webhook so it learns about the parameters present in the response or choose to Catch Raw Hook in the step before to collect the fully response and parse this in your Action step. You can then go back to Zapier later once you have a transaction to test with.
Configure subsequent actions in Zapier, such as sending an email or posting to a Slack channel, using the transaction data.
Complete the action step as you prefer. In this example we send a notification email to an email address containing some details of the transaction:
Test and publish your Zap!
Follow the steps at the top of this page to Enable Transactions Notifications for your account.
Set Callback Method to GET and status to Enabled
In Zapier, create a new Zap with Webhooks by Zapier as the trigger (dont have an account yet? Click here for more information) .
Select Catch Hook
Zapier will provide a unique webhook URL. Copy this URL.
Paste the Zapier webhook URL into the Callback URL field in your Awin Transaction Notifications settings.
Now specify exactly which datapoints you would like to capture from a transaction.
For reference have a look a the table with placeholders above.
For each variable add a name (e.g. amount, commission or id) and add the placeholder separated by &
For Example:
Go back to Zapier and Test your trigger. If any transactions have been tracked, since adding the Callback URL and enabling the Notifications, they should show up as possible test records. If this isn’t the case Zapier doesnt yet recognize the dynamic output fields and you can’t use them in further Actions of your flow. You might need to wait till a transaction has happened.
Complete your follow up Actions. In the example below we send an email for every transaction that is tracked.
Finally test your Zap and publish it. You will now receive notifications!