Salesforce

Publisher API: GET transactions (list)

« Go Back
Information
Publisher API: GET transactions (list)
All information about GET transactions (list) API call
Publisher-API-GET-transactions-list
Details
Do you offer an API call to pull transactions in a list?
"basketProducts": [
      {
        "productId": "12345678",
        "productName": "Product Name",
        "unitPrice": 10.10,
        "quantity": 1,
        "skuCode": "98F65K37",
        "commissionGroupCode": "DEFAULT",
        "category": "Category Name"
      }
    ]

 

GET transactions (list)

Publishers and advertisers can pull individual transactions, to check the status of the transactions, to create own reports, and to pull additional information that can be shared between publishers and advertisers via click ref (from publisher to advertiser) and orderRef and custom parameters (from advertiser to publisher).
 

Who can use it

Publishers and advertisers.
 

How to call it

https://api.awin.com/publishers/<yourPublisherId>/transactions/?
startDate=yyyy-MM-ddThh%3Amm%3Ass&endDate=yyyy-MM-ddThh%3Amm%3Ass&timezone=UTC&
dateType=transaction&status=pending&advertiserId=<advertiserIdForWhichToFilter>

Example:
https://api.awin.com/publishers/45628/transactions/?startDate=2017-02-20T00%3A00%3A00&endDate=2017-02-21T01%3A59%3A59&timezone=UTC (as a publisher)
Add the parameter 'accessToken' to provide your access key as described in API authentication and authorization.


Please note: the maximum date range between startDate and endDate currently supported is 31 days.
 
ParameterFormatMandatory/Optional
startDateyyyy-MM-ddThh:mm:ssmandatory
endDateyyyy-MM-ddThh:mm:ssmandatory
dateTypetransaction
validation
optional (falls back to "transaction" if not set)
timezoneEurope/Berlin
Europe/Paris
Europe/London
Europe/Dublin
Canada/Eastern
Canada/Central
Canada/Mountain
Canada/Pacific
US/Eastern
US/Central
US/Mountain
US/Pacific
UTC
mandatory
publisherId12345 or 12345,67890 for multiple onesoptional, available for advertisers
advertiserId12345 or 12345,67890 for multiple onesoptional, available for publishers
statuspending
approved
declined
deleted
optional
showBasketProductsJSON arrayoptional
 

How the response looks

(please see "Conditional datafields" below for restrictions that might apply)

[
  {
    "id": 259630312,
    "url": "http://www.publisher.com",
    "advertiserId": 7052,
    "publisherId": 189069,
    "commissionSharingPublisherId": 55555,
    "commissionSharingSelectedRatePublisherId": 189069,
    "campaign": "campaign name"
    "siteName": "Publisher",
    "commissionStatus": "pending",
    "commissionAmount": {
      "amount": 5.59,
      "currency": "GBP"
    },
    "saleAmount": {
      "amount": 55.96,
      "currency": "GBP"
    },
    "ipHash": "-66667778889991112223",
    "customerCountry": "GB",
    "clickRefs": {
      "clickRef": "12345",
      "clickRef2": "22222",
      "clickRef3": "33333",
      "clickRef4": "44444",
      "clickRef5": "55555",
      "clickRef6": "66666"
    },
    "clickDate": "2017-01-23T12:18:00",
    "transactionDate": "2017-02-20T22:04:00",
    "validationDate": null,
    "type": "Commission group transaction",
    "declineReason": null,
    "voucherCodeUsed": true,
    "voucherCode": "example123",
    "lapseTime": 2454307,
    "amended": false,
    "amendReason": null,
    "oldSaleAmount": null,
    "oldCommissionAmount": null,
    "clickDevice": "Windows",
    "transactionDevice": "Windows",
    "publisherUrl": "http://www.publisher.com/search?query=dvds",
    "advertiserCountry": "GB",
    "orderRef": "111222333444",
    "customParameters": [
      {
        "key": "1",
        "value": "555666"
      },
      {
        "key": "2",
        "value": "example entry"
      },
      {
        "key": "3",
        "value": "LLLMMMNNN"
      }
    ],
    "transactionParts": [
      {
        "commissionGroupId": 12345,
        "amount": 44.76,
        "commissionAmount": 4.50,
        "commissionGroupCode": "DEFAULT",
        "commissionGroupName": "Default Commission",
        "trackedParts": [
          {
            "code": "DEFAULT",
            "amount": 44.76,
            "currency": GBP
       }
      ]
     }
 
      {
 
        "commissionGroupId": 654321,
        "amount": 11.20,
        "commissionAmount": 1.50,
        "commissionGroupCode": "EXISTING",
        "commissionGroupName": "EXISTING",
        "trackedParts": [
          {
            "code": "EXISTING",
            "amount": 11.20,
            "currency": GBP
       }
      ] 
      }
 
 
    ],
    "paidToPublisher": false,
    "paymentId": 0,
    "transactionQueryId": 0,
    "originalSaleAmount": null
  },
    "basketProducts": null
},
 
(...)

Note that the field "lapseTime" is the conversion time in seconds
 

Basket Products

If &showBasketProducts=true then products sent via Product Level Tracking matched to the transaction can be viewed (please see "Conditional datafields" below for restrictions that might apply)
 

"basketProducts": [
      {
        "productId": "12345678",
        "productName": "Product Name",
        "unitPrice": 10.10,
        "quantity": 1,
        "skuCode": "98F65K37",
        "commissionGroupCode": "DEFAULT",
        "category": "Category Name"
      }
    ]


 

Conditional datafields

Some datafields are only available to either publishers or advertisers, or depend on additional settings.
 

DatafieldAvailable for advertisersAvailable for publishers
orderRefyesyes, if the publisher is activated to see it
clickRefyesyes
clickRef2 - clickRef6noyes
customParametersyesyes, if the advertiser shares them with his publishers
basketProductsyesyes, if the advertiser shares them with his publishers
Version Info
 
Needs Review
Published
Checked
English
Main Article Info
21/02/2022, 15:23
15/12/2022, 10:50
18,594
21/02/2022, 15:11
Translation Info
System info
Valentina Porro
Jesús Iglesias Berenguer

Powered by