Salesforce

How does the Transaction Queries tool work?

« Go Back
Information
How does the Transaction Queries tool work?
This article provides a comprehensive guide on using the Transaction Queries tool for publishers, including query types, upload methods, data specifications, and the approval process for addressing transaction discrepancies.
Publisher-Transaction-Queries
Details

How do I upload a transaction query?

What is a missed sale?

How does the transaction query tool work?

What is a TQ?

How do I use the Transaction Queries tool?

What are the types of queries I can submit through the Transaction Queries tool?

How can I schedule uploads for transaction queries?

Publishers with access to the Transaction Queries tool can use it to:

  • Address untracked sales
  • Contest incorrect commissions
  • Dispute declined transactions

The Transaction Queries tool is suitable for publishers processing high volumes of transaction queries and who have access to customer order information. If you meet these requirements and would like to learn more about the Transaction Queries tool, contact the Partner Success Team by clicking the 'Contact Support' button at the end of this article.

How to use the Transaction Queries tool

Query Types:

  • Reporting untracked transactions: For untracked sales, choose the "Untracked" query type.
  • Addressing incorrect commission: For commission discrepancies, choose "Incorrect".
  • Disputing declined transactions: For valid transactions incorrectly declined, select "Declined".

Upload types:

There are three ways to upload a transaction query:

  • Manual Upload - Single: Upload one query at a time.
  • Manual Upload - Batch: Upload multiple queries in a CSV.
  • Scheduled Upload (FTP): Use FTP to automate uploads of transaction queries on your schedule.

Uploading queries:

To upload a transaction query, follow these steps:

  1. Log in to the Awin platform
  2. Using the main menu, go to Support > Queries > Transaction Queries
  3. Select your upload type:
    • Single: For a single query, click Manual Upload and select "Single" as the upload method.
    • Batch: For multiple queries, click Manual Upload and select "Batch".
    • Scheduled: To schedule automatic uploads via FTP, contact the Partner Success team by clicking the 'Contact Support' button at the end of this article if you need a personal Awin FTP account.

How to schedule uploads

  1. Log in to your personal Awin FTP account. The server address is ftp.awin.com, port 21.
  2. Select daily or weekly processing (every Sunday).
  3. Set the file type and format, then enter your username and password.
  4. Connect to your FTP account and create a folder named transaction_queries in the uploads directory (/uploads/transaction_queries/).
  5. Upload your CSV or XML file, naming it data.csv or data.xml as shown below.

image

Note: To receive query notifications, add email addresses under 'Email Notifications.' Multiple addresses are supported.

Data file specifications

Field NameTypeDescriptionMandatory/OptionalExample
enquiry_idInteger (Max: 10 chars)Unique ID of the query in AwinMandatory123456371
typeTextCan be "declined", "incorrect", or "untracked"Mandatoryuntracked
click_refAlphanumeric (Max: 50 chars)Publisher reference for the conversionMandatoryclickref12345
merchant_idInteger (Max: 6 chars)Identifies the merchant/advertiser in Awin systemMandatory1234
dateDate time (format varies by region)Date/time of the orderMandatory01-12-2020 12:11:26
amountDecimal (7,2)Sale value without currency symbolMandatory5.00
commissionDecimal (7,2)Commission value without currency symbolMandatory1.00
referenceText (Max: 50 chars)Order reference, or data to uniquely identify transactionMandatoryABC123456789
customer_referenceText (Max: 20 chars)Data to help the merchant identify the customerOptionalcustomerRef-ABC_123
descriptionText (Max: 215 chars)Additional info regarding the transactionOptionalCommission received was 0.80GBP when it should have been 1.00GBP
currencyCurrency Code (ISO 4217)Currency of the transactionOptionalEUR
timezoneTextTimezone of the transactionOptionalEurope/Dublin

CSV format

  • Values must be enclosed in double quotes and separated by commas.
  • Rows must be separated by new lines.
  • The first line should contain field headings.

CSV example:

enquiry_id,merchant_id,type,click_ref,amount,commission,date,customer_reference,reference,description,currency,timezone
123456371,3727,untracked,clickref12345,5.00,1.00,2021-01-12 23:11:00,customerrefSD2343,orderref123447,sale untracked,EUR,Europe/Dublin

XML format

All XML files need to be correctly formatted. For more information, see XML format.

XML example:

<enquiries>
    <enquiry>
        <enquiry_id>101</enquiry_id>
        <type>declined</type>
        <click_ref>25</click_ref>
        <merchant_id>1001</merchant_id>
        <date>2008-03-20 23:40:09</date>
        <amount>4.50</amount>
        <commission>1.00</commission>
        <reference>7723123</reference>
        <customer_reference>UserID</customer_reference>
        <description>this purchase was declined, why?</description>
        <currency>EUR</currency>
        <timezone>Europe/Dublin</timezone>
    </enquiry>
</enquiries>

Transaction Query Report

The Transaction Query Report details the status of each uploaded query. Use the filter tool to search for specific details, or download the report as a CSV or Excel file.

Approval process

Ensure all required information is included for each transaction to increase the chance of advertiser approval. Advertisers have 75 days to review and amend transaction queries. New queries appear in reports only when approved.

Note: The transaction query window expires after 4 years.

If you have feedback on the Transaction Query tool, please complete our Product Feedback form.

For more information, see How can I report a missing sale?

Version Info
 
Validated
Published
Checked
English
Main Article Info
24/03/2021, 09:08
25/07/2025, 11:07
12,483
24/03/2021, 09:06
Translation Info
System info
Coen van der Zee
Ashley Hyun

Powered by