Awin

App · 25 actions

Track Awin transactions and commission, manage programme partnerships, build tracking links and offers, and report conversions.

Actions

ActionWhat it does
Accept partnership invitationAccept an advertiser's invitation to join their programme, agreeing to its terms.
Approve or decline transactionApprove a pending transaction so the publisher is paid, or decline it with a reason.
Approve publisher applicationApprove a publisher's application to join your programme, with a message to them.
Create offerPublish a promotion or voucher code to your publishers in My Offers.
Create tracking linkCreate an Awin tracking link to an advertiser's page, optionally with a short link.
Decline partnership invitationDecline an advertiser's invitation to join their programme.
Get advertiser performance reportGet a publisher account's impressions, clicks, sales and commission for each advertiser over a period.
Get approval jobCheck whether Awin has finished approving or declining transactions, and which failed.
Get campaign performance reportGet a publisher account's clicks, sales and commission for each campaign value it put in its tracking links.
Get programme detailsGet a programme's description, commission range and performance figures, such as earnings per click and approval rate.
Get programme transactionsGet your advertiser account's transactions by their Awin IDs.
Get publisher performance reportGet your advertiser account's impressions, clicks, sales and commission for each publisher over a period.
Get transactionsGet a publisher account's transactions by their Awin IDs, to check their status.
List accountsList the publisher and advertiser accounts your Awin login can reach, with your role on each.
List advertiser partnershipsList the advertisers a publisher account has a partnership with, including invitations waiting for an answer.
List commission groupsList an advertiser's commission groups with the commission each pays you.
List offersList advertisers' promotions and voucher codes, as in My Offers in Awin.
List paymentsList the payments Awin made to a publisher account, newest first.
List programme transactionsList the sales and leads your advertiser account's publishers brought in a period of up to 31 days.
List programmesList the advertisers' programmes for a publisher account, by your relationship with them.
List publisher partnershipsList the publishers your advertiser account has a partnership with, including applications waiting for an answer.
List transaction queriesList the queries a publisher account raised about missing or wrong commission, in a period of up to 31 days.
List transactionsList a publisher account's sales and leads in a period of up to 31 days, with their commission and status.
Reject publisher applicationReject a publisher's application to join your programme.
Send conversionReport a sale or lead to Awin from your server (the Conversion API), so the publisher who referred it is credited.

Accept partnership invitation

Accept an advertiser's invitation to join their programme, agreeing to its terms.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Advertiseradvertiser_idtextRequired
The advertiser whose invitation to accept.
Accept the programme's termsaccept_termstrue/falseRequired
Turn on to accept the advertiser's programme terms. Awin refuses the invitation without it.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "advertiserId": "example",
    "joinedAt": "example",
    "publisherId": "example",
    "status": "example"
  }
}

Approve or decline transaction

Approve a pending transaction so the publisher is paid, or decline it with a reason. Awin applies it shortly after, as a job.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
Transaction IDtransaction_idtextRequired
The Awin ID of the transaction.
DecisiondecisiontextRequired
Approve or decline the transaction.One of: approve, decline.
Decline reasondecline_reasontext
Why it is declined, such as an order returned. Needed to decline.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "jobId": "example",
    "status": "example"
  }
}

Approve publisher application

Approve a publisher's application to join your programme, with a message to them.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
Publisherpublisher_idtextRequired
The publisher whose application to approve.
MessagemessagetextRequired
A message to the publisher, such as a welcome.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {}
}

Create offer

Publish a promotion or voucher code to your publishers in My Offers. Offers can't be removed through the API.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
TitletitletextRequired
The offer's title, such as Black Friday 30% off (up to 300 characters).
DescriptiondescriptiontextRequired
What the offer is (up to 500 characters).
TermstermstextRequired
The offer's terms and conditions.
Typetype_of_offertextRequired
A promotion, or a voucher code customers enter at checkout.One of: promotion, voucher (Voucher code).
Voucher codevoucher_codetext
The code customers enter. Needed for a voucher code.
Landing pageurltextRequired
The page on your site publishers should link to.
Startsstart_datedateRequired
The first day of the offer (from midnight UTC).
Endsend_datedateRequired
The last day of the offer (until 23:59:59 UTC).
CategoriescategorieslistRequired
The kinds of product the offer is for.One or more of: 4 (Electronics), 61 (Computers & Software), 97 (Clothing & Accessories), 99 (Health & Beauty), 173 (Gifts, Gadgets & Toys), 246 (Sports), 281 (Finance), 328 (Travel), 347 (Telephones & Faxes), 361 (Home Appliances), and 7 more.
Regionsoffer_regionslist
Where customers can use the offer. Leave empty for everywhere.One or more of: 1 (United Kingdom), 2 (Ireland), 3 (United States), 4 (Canada), 5 (France), 6 (Germany), 7 (Austria), 8 (Belgium), 9 (Netherlands), 10 (Spain), and 35 more.
Campaigncampaigntext
The campaign the offer is part of.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {}
}

Create an Awin tracking link to an advertiser's page, optionally with a short link.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Advertiseradvertiser_idtextRequired
The advertiser (programme) you work with.
Page to link todestination_urltext
The page on the advertiser's site to link to. Leave empty for their home page.
Campaigncampaigntext
A campaign name to report the link's clicks and sales under.
Click referenceclick_reftext
Your own reference, returned with each sale the link brings.
Make a short linkshortentrue/false
Also make a short link. Each uses part of your daily short-link allowance.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "shortUrl": "example",
    "url": "example"
  }
}

Decline partnership invitation

Decline an advertiser's invitation to join their programme. They can invite you again later.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Advertiseradvertiser_idtextRequired
The advertiser whose invitation to decline.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {}
}

Get advertiser performance report

Get a publisher account's impressions, clicks, sales and commission for each advertiser over a period.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Fromstart_datedateRequired
The first day of the report.
Toend_datedateRequired
The last day of the report.
RegionregiontextRequired
The region of the programmes to report on.One of: AT (Austria), AU (Australia), BE (Belgium), BR (Brazil (BRL)), BU (Brazil (USD)), CA (Canada), CH (Switzerland), DE (Germany), DK (Denmark), ES (Spain), and 10 more.
Count bydate_typetext
Count transactions by the date of the sale or of its approval. Leave empty for the sale.One of: transaction (Date of the sale), validation (Date it was approved or declined).
Time zonetimezonetext
The time zone the report's days are counted in. Leave empty for UTC.One of: UTC, Europe/London, Europe/Dublin, Europe/Paris, Europe/Berlin, Europe/Helsinki, US/Eastern, US/Central, US/Mountain, US/Pacific, and 6 more.

Outputs

datalist
The response from Awin.
Example output
{
  "data": [
    {
      "advertiserId": 1,
      "advertiserName": "example",
      "bonusComm": 1,
      "bonusNo": 1,
      "bonusValue": 1,
      "clicks": 1,
      "confirmedComm": 1,
      "confirmedNo": 1,
      "confirmedValue": 1,
      "currency": "example",
      "declinedComm": 1,
      "declinedNo": 1,
      "declinedValue": 1,
      "impressions": 1,
      "pendingComm": 1,
      "pendingNo": 1,
      "pendingValue": 1,
      "publisherId": 1,
      "publisherName": "example",
      "region": "example",
      "totalComm": 1,
      "totalNo": 1,
      "totalValue": 1
    }
  ]
}

Get approval job

Check whether Awin has finished approving or declining transactions, and which failed.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
Job IDjob_idtextRequired
The job ID from Approve or decline transaction.
Includeoutputtext
Also list the transactions that failed, or every transaction.One of: errors (Only the transactions that failed), all (Every transaction).

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "errors": 1,
    "failedTransactions": [
      {
        "code": "example",
        "description": "example",
        "orderRef": "example",
        "transactionId": 1
      }
    ],
    "jobId": "example",
    "status": "example",
    "transactions": 1
  }
}

Get campaign performance report

Get a publisher account's clicks, sales and commission for each campaign value it put in its tracking links.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Fromstart_datedateRequired
The first day of the report.
Toend_datedateRequired
The last day of the report.
RegionregiontextRequired
The region of the programmes to report on.One of: AT (Austria), AU (Australia), BE (Belgium), BR (Brazil (BRL)), BU (Brazil (USD)), CA (Canada), CH (Switzerland), DE (Germany), DK (Denmark), ES (Spain), and 10 more.
Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Campaigncampaigntext
Only campaigns whose value starts with this (at least 3 characters).
Include traffic without a campaigninclude_without_campaigntrue/false
Also count clicks and sales whose link had no campaign value.
Split byintervaltext
Split the figures by day, month or year. Leave empty for one total per campaign.One of: day, month, year.
Time zonetimezonetext
The time zone the report's days are counted in. Leave empty for UTC.One of: UTC, Europe/London, Europe/Dublin, Europe/Paris, Europe/Berlin, Europe/Helsinki, US/Eastern, US/Central, US/Mountain, US/Pacific, and 6 more.

Outputs

datalist
The response from Awin.
Example output
{
  "data": [
    {
      "advertiserId": 1,
      "advertiserName": "example",
      "campaign": "example",
      "commissionAmount": {},
      "date": "example",
      "quantity": {},
      "saleAmount": {}
    }
  ]
}

Get programme details

Get a programme's description, commission range and performance figures, such as earnings per click and approval rate.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Advertiseradvertiser_idtextRequired
The advertiser (programme) you work with.
Relationshiprelationshiptext
Your relationship with the programme. Leave empty for joined.One of: joined, pending (Applied, waiting for approval), suspended, rejected, notjoined (Not joined), any.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "commissionRange": [
      {
        "max": 1,
        "min": 1,
        "type": "example"
      }
    ],
    "kpi": {
      "approvalPercentage": 1,
      "averagePaymentTime": "example",
      "awinIndex": 1,
      "conversionRate": 1,
      "epc": 1,
      "validationDays": 1
    },
    "programmeInfo": {
      "clickThroughUrl": "example",
      "currencyCode": "example",
      "deeplinkEnabled": true,
      "description": "example",
      "displayUrl": "example",
      "id": 1,
      "linkStatus": "example",
      "logoUrl": "example",
      "membershipStatus": "example",
      "name": "example",
      "primaryRegion": {
        "countryCode": "example",
        "name": "example"
      },
      "primarySector": "example",
      "trackingTransparency": [
        "example"
      ],
      "validDomains": [
        {
          "domain": "example"
        }
      ]
    }
  }
}

Get programme transactions

Get your advertiser account's transactions by their Awin IDs.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
Transaction IDstransaction_idslistRequired
The Awin IDs of the transactions.
Include basket productsshow_basket_productstrue/false
Also return the products in each order, where the advertiser shares them.

Outputs

datalist
The response from Awin.
Example output
{
  "data": [
    {
      "advertiserCountry": "example",
      "advertiserId": 1,
      "amendReason": "example",
      "amended": true,
      "clickDate": "example",
      "clickDevice": "example",
      "clickRefs": {
        "clickRef": "example"
      },
      "commissionAmount": {
        "amount": 1,
        "currency": "example"
      },
      "commissionStatus": "example",
      "customerCountry": "example",
      "declineReason": "example",
      "id": 1,
      "lapseTime": 1,
      "orderRef": "example",
      "paidToPublisher": true,
      "paymentId": 1,
      "publisherId": 1,
      "saleAmount": {
        "amount": 1,
        "currency": "example"
      },
      "siteName": "example",
      "transactionDate": "example",
      "transactionDevice": "example",
      "transactionParts": [
        {
          "amount": 1,
          "commissionAmount": 1,
          "commissionGroupCode": "example",
          "commissionGroupId": 1,
          "commissionGroupName": "example"
        }
      ],
      "type": "example",
      "url": "example",
      "validationDate": "example",
      "voucherCode": "example",
      "voucherCodeUsed": true
    }
  ]
}

Get publisher performance report

Get your advertiser account's impressions, clicks, sales and commission for each publisher over a period.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
Fromstart_datedateRequired
The first day of the report.
Toend_datedateRequired
The last day of the report.
Count bydate_typetext
Count transactions by the date of the sale or of its approval. Leave empty for the sale.One of: transaction (Date of the sale), validation (Date it was approved or declined).
Time zonetimezonetext
The time zone the report's days are counted in. Leave empty for UTC.One of: UTC, Europe/London, Europe/Dublin, Europe/Paris, Europe/Berlin, Europe/Helsinki, US/Eastern, US/Central, US/Mountain, US/Pacific, and 6 more.

Outputs

datalist
The response from Awin.
Example output
{
  "data": [
    {
      "advertiserId": 1,
      "advertiserName": "example",
      "bonusComm": 1,
      "bonusNo": 1,
      "bonusValue": 1,
      "clicks": 1,
      "confirmedComm": 1,
      "confirmedNo": 1,
      "confirmedValue": 1,
      "currency": "example",
      "declinedComm": 1,
      "declinedNo": 1,
      "declinedValue": 1,
      "impressions": 1,
      "pendingComm": 1,
      "pendingNo": 1,
      "pendingValue": 1,
      "publisherId": 1,
      "publisherName": "example",
      "region": "example",
      "tags": [
        "example"
      ],
      "totalComm": 1,
      "totalNo": 1,
      "totalValue": 1
    }
  ]
}

Get transactions

Get a publisher account's transactions by their Awin IDs, to check their status.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Transaction IDstransaction_idslistRequired
The Awin IDs of the transactions.
Include basket productsshow_basket_productstrue/false
Also return the products in each order, where the advertiser shares them.

Outputs

datalist
The response from Awin.
Example output
{
  "data": [
    {
      "advertiserCountry": "example",
      "advertiserId": 1,
      "amendReason": "example",
      "amended": true,
      "clickDate": "example",
      "clickDevice": "example",
      "clickRefs": {
        "clickRef": "example"
      },
      "commissionAmount": {
        "amount": 1,
        "currency": "example"
      },
      "commissionStatus": "example",
      "customerCountry": "example",
      "declineReason": "example",
      "id": 1,
      "lapseTime": 1,
      "orderRef": "example",
      "paidToPublisher": true,
      "paymentId": 1,
      "publisherId": 1,
      "saleAmount": {
        "amount": 1,
        "currency": "example"
      },
      "siteName": "example",
      "transactionDate": "example",
      "transactionDevice": "example",
      "transactionParts": [
        {
          "amount": 1,
          "commissionAmount": 1,
          "commissionGroupCode": "example",
          "commissionGroupId": 1,
          "commissionGroupName": "example"
        }
      ],
      "type": "example",
      "url": "example",
      "validationDate": "example",
      "voucherCode": "example",
      "voucherCodeUsed": true
    }
  ]
}

List accounts

List the publisher and advertiser accounts your Awin login can reach, with your role on each.

Inputs

Account typetypetext
Only publisher or only advertiser accounts. Leave empty for both.One of: publisher, advertiser.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "accounts": [
      {
        "accountId": 1,
        "accountName": "example",
        "accountType": "example",
        "userRole": "example"
      }
    ],
    "userId": 1
  }
}

List advertiser partnerships

List the advertisers a publisher account has a partnership with, including invitations waiting for an answer.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Partnership statuspartnership_statuslist
Only partnerships in these statuses. Leave empty for all.One or more of: ACTIVE, INVITE_PENDING (Invited, waiting for an answer), INVITE_REJECTED (Invitation declined), APPLICATION_PENDING (Applied, waiting for an answer), APPLICATION_REJECTED (Application rejected), ADVERTISER_SUSPENDED (Suspended by the advertiser), PUBLISHER_LEFT (Publisher left).
Sort bysorttext
The order of the list. Leave empty for the most recently changed first.One of: -partnership.statusUpdatedAt (Most recently changed first), partnership.statusUpdatedAt (Least recently changed first), name.
Limitlimitnumber
How many to return, up to 1000. Leave empty for 10.From 1 to 1000.
Skipoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.From 0 to 10000.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "limit": 1,
    "offset": 1,
    "results": [
      {
        "id": "example",
        "logoUrl": "example",
        "name": "example",
        "partnership": {
          "status": "example",
          "statusUpdatedAt": "example"
        },
        "type": "example"
      }
    ],
    "total": 1
  }
}

List commission groups

List an advertiser's commission groups with the commission each pays you.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Advertiseradvertiser_idtextRequired
The advertiser (programme) you work with.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "advertiser": 1,
    "commissionGroups": [
      {
        "amount": 1,
        "currency": "example",
        "groupCode": "example",
        "groupId": 1,
        "groupName": "example",
        "percentage": 1,
        "ratesEnd": "example",
        "ratesStart": "example",
        "type": "example"
      }
    ],
    "publisher": 1
  }
}

List offers

List advertisers' promotions and voucher codes, as in My Offers in Awin.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Advertisersmembershiptext
Offers from advertisers you've joined, haven't joined, or both. Leave empty for both.One of: all (All advertisers), joined (Advertisers I've joined), notJoined (Advertisers I haven't joined).
Typeoffer_typetext
Promotions, voucher codes, or both. Leave empty for both.One of: all (Promotions and voucher codes), promotion (Promotions), voucher (Voucher codes).
Statusoffer_statustext
Offers running now, ending soon or not started. Leave empty for running now.One of: active (Running now), expiringSoon (Ending in the next 7 days), upcoming (Not started yet).
Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Regionsregionslist
Only offers valid in one of these regions.One or more of: AT (Austria), AU (Australia), BE (Belgium), BR (Brazil (BRL)), BU (Brazil (USD)), CA (Canada), CH (Switzerland), DE (Germany), DK (Denmark), ES (Spain), and 10 more.
Exclusive offers onlyexclusive_onlytrue/false
Only offers exclusive to your account.
Changed sinceupdated_sincedate
Only offers added or changed since this day.
Pagepagenumber
The page to read. Leave empty for the first.At least 1.
Offers per pagepage_sizenumber
How many offers per page, from 10 to 200. Leave empty for 200.From 10 to 200.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "data": [
      {
        "advertiser": {
          "id": 1,
          "joined": true,
          "name": "example"
        },
        "dateAdded": "example",
        "description": "example",
        "endDate": "example",
        "promotionId": 1,
        "regions": {
          "all": true,
          "list": [
            {
              "countryCode": "example",
              "name": "example"
            }
          ]
        },
        "startDate": "example",
        "terms": "example",
        "title": "example",
        "type": "example",
        "url": "example",
        "urlTracking": "example",
        "voucher": {
          "attributable": true,
          "code": "example",
          "exclusive": true
        }
      }
    ],
    "pagination": {
      "page": 1,
      "pageSize": 1,
      "total": 1
    }
  }
}

List payments

List the payments Awin made to a publisher account, newest first.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Limitlimitnumber
How many to return, up to 100. Leave empty for 25.From 1 to 100.
Skipoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.From 0 to 10000.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "limit": 1,
    "offset": 1,
    "results": [
      {
        "amount": {
          "amount": "example",
          "currency": "example"
        },
        "paymentId": "example",
        "paymentMethod": "example",
        "periodEnd": "example",
        "processingDate": "example"
      }
    ],
    "total": 1
  }
}

List programme transactions

List the sales and leads your advertiser account's publishers brought in a period of up to 31 days.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
Fromstart_datedate and timeRequired
The start of the period. The period can be at most 31 days long.
Toend_datedate and timeRequired
The end of the period.
Date to filter ondate_typetext
Which date the period applies to. Leave empty for the date of the sale.One of: transaction (Date of the sale), validation (Date it was approved or declined), amendment (Date it was amended).
Statusstatustext
Only transactions with this status. Leave empty for all.One of: pending, approved, declined, deleted.
Publisherspublisher_idslist
Only these publishers. Leave empty for all of them.
Include basket productsshow_basket_productstrue/false
Also return the products in each order, where the advertiser shares them.

Outputs

datalist
The response from Awin.
Example output
{
  "data": [
    {
      "advertiserCountry": "example",
      "advertiserId": 1,
      "amendReason": "example",
      "amended": true,
      "clickDate": "example",
      "clickDevice": "example",
      "clickRefs": {
        "clickRef": "example"
      },
      "commissionAmount": {
        "amount": 1,
        "currency": "example"
      },
      "commissionStatus": "example",
      "customerCountry": "example",
      "declineReason": "example",
      "id": 1,
      "lapseTime": 1,
      "orderRef": "example",
      "paidToPublisher": true,
      "paymentId": 1,
      "publisherId": 1,
      "saleAmount": {
        "amount": 1,
        "currency": "example"
      },
      "siteName": "example",
      "transactionDate": "example",
      "transactionDevice": "example",
      "transactionParts": [
        {
          "amount": 1,
          "commissionAmount": 1,
          "commissionGroupCode": "example",
          "commissionGroupId": 1,
          "commissionGroupName": "example"
        }
      ],
      "type": "example",
      "url": "example",
      "validationDate": "example",
      "voucherCode": "example",
      "voucherCodeUsed": true
    }
  ]
}

List programmes

List the advertisers' programmes for a publisher account, by your relationship with them.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Relationshiprelationshiptext
Only programmes you have this relationship with. Leave empty for every programme.One of: joined, pending (Applied, waiting for approval), suspended, rejected, notjoined (Not joined).
Regioncountrytext
Only programmes in this region.One of: AT (Austria), AU (Australia), BE (Belgium), BR (Brazil (BRL)), BU (Brazil (USD)), CA (Canada), CH (Switzerland), DE (Germany), DK (Denmark), ES (Spain), and 10 more.

Outputs

datalist
The response from Awin.
Example output
{
  "data": [
    {
      "clickThroughUrl": "example",
      "currencyCode": "example",
      "description": "example",
      "displayUrl": "example",
      "id": 1,
      "linkStatus": "example",
      "logoUrl": "example",
      "name": "example",
      "primaryRegion": {
        "countryCode": "example",
        "name": "example"
      },
      "primarySector": "example",
      "status": "example",
      "validDomains": [
        {
          "domain": "example"
        }
      ]
    }
  ]
}

List publisher partnerships

List the publishers your advertiser account has a partnership with, including applications waiting for an answer.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
Partnership statuspartnership_statuslist
Only partnerships in these statuses. Leave empty for all.One or more of: ACTIVE, INVITE_PENDING (Invited, waiting for an answer), INVITE_REJECTED (Invitation declined), APPLICATION_PENDING (Applied, waiting for an answer), APPLICATION_REJECTED (Application rejected), ADVERTISER_SUSPENDED (Suspended by the advertiser), PUBLISHER_LEFT (Publisher left).
Sort bysorttext
The order of the list. Leave empty for the most recently changed first.One of: -partnership.statusUpdatedAt (Most recently changed first), partnership.statusUpdatedAt (Least recently changed first), name.
Limitlimitnumber
How many to return, up to 1000. Leave empty for 10.From 1 to 1000.
Skipoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.From 0 to 10000.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "limit": 1,
    "offset": 1,
    "results": [
      {
        "id": "example",
        "logoUrl": "example",
        "name": "example",
        "partnership": {
          "status": "example",
          "statusUpdatedAt": "example"
        },
        "type": "example"
      }
    ],
    "total": 1
  }
}

List transaction queries

List the queries a publisher account raised about missing or wrong commission, in a period of up to 31 days.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Fromstart_datedate and timeRequired
The start of the period. The period can be at most 31 days long.
Toend_datedate and timeRequired
The end of the period.
Date to filter ondate_typetext
Which date the period applies to. Leave empty for the date of the sale.One of: transactionDate (Date of the sale), enquiryDate (Date the query was raised), validationDate (Date the query was approved or declined).
Statusstatuseslist
Only queries in these statuses. Leave empty for all.One or more of: PENDING, APPROVED, DECLINED.
Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Sort bysorttext
The order of the list. Leave empty for Awin's default.One of: -transactionDate (Newest sale first), transactionDate (Oldest sale first), -enquiryDate (Newest query first), enquiryDate (Oldest query first).
Limitlimitnumber
How many to return, up to 100. Leave empty for 25.From 1 to 100.
Next page tokenpage_tokentext
The next page token from an earlier result, to read the next page.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "nextPageToken": "example",
    "results": [
      {
        "advertiserId": "example",
        "clickRef": "example",
        "commission": {
          "amount": "example",
          "currency": "example"
        },
        "declineReason": "example",
        "description": "example",
        "enquiryDate": "example",
        "enquiryId": "example",
        "id": "example",
        "orderRef": "example",
        "publisherId": "example",
        "saleAmount": {
          "amount": "example",
          "currency": "example"
        },
        "status": "example",
        "transactionDate": "example",
        "transactionId": "example",
        "type": "example",
        "validationDate": "example"
      }
    ]
  }
}

List transactions

List a publisher account's sales and leads in a period of up to 31 days, with their commission and status.

Inputs

Publisher accountpublisher_account_idtextRequired
Your Awin publisher account.
Fromstart_datedate and timeRequired
The start of the period. The period can be at most 31 days long.
Toend_datedate and timeRequired
The end of the period.
Date to filter ondate_typetext
Which date the period applies to. Leave empty for the date of the sale.One of: transaction (Date of the sale), validation (Date it was approved or declined), amendment (Date it was amended).
Statusstatustext
Only transactions with this status. Leave empty for all.One of: pending, approved, declined, deleted.
Advertisersadvertiser_idslist
Only these advertisers. Leave empty for all of them.
Include basket productsshow_basket_productstrue/false
Also return the products in each order, where the advertiser shares them.

Outputs

datalist
The response from Awin.
Example output
{
  "data": [
    {
      "advertiserCountry": "example",
      "advertiserId": 1,
      "amendReason": "example",
      "amended": true,
      "clickDate": "example",
      "clickDevice": "example",
      "clickRefs": {
        "clickRef": "example"
      },
      "commissionAmount": {
        "amount": 1,
        "currency": "example"
      },
      "commissionStatus": "example",
      "customerCountry": "example",
      "declineReason": "example",
      "id": 1,
      "lapseTime": 1,
      "orderRef": "example",
      "paidToPublisher": true,
      "paymentId": 1,
      "publisherId": 1,
      "saleAmount": {
        "amount": 1,
        "currency": "example"
      },
      "siteName": "example",
      "transactionDate": "example",
      "transactionDevice": "example",
      "transactionParts": [
        {
          "amount": 1,
          "commissionAmount": 1,
          "commissionGroupCode": "example",
          "commissionGroupId": 1,
          "commissionGroupName": "example"
        }
      ],
      "type": "example",
      "url": "example",
      "validationDate": "example",
      "voucherCode": "example",
      "voucherCodeUsed": true
    }
  ]
}

Reject publisher application

Reject a publisher's application to join your programme. Awin emails them your reason.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
Publisherpublisher_idtextRequired
The publisher whose application to reject.
ReasonreasontextRequired
Why the application is rejected, in your own words.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {}
}

Send conversion

Report a sale or lead to Awin from your server (the Conversion API), so the publisher who referred it is credited.

Inputs

Advertiser accountadvertiser_account_idtextRequired
Your Awin advertiser account (your programme).
Order referenceorder_referencetextRequired
Your order or booking reference (up to 50 characters).
AmountamountnumberRequired
The order's value after discounts, before tax and delivery. For a lead, the number of leads.At least 0.
CurrencycurrencytextRequired
The order's currency.One of: GBP, EUR, USD, AUD, BRL, CAD, CHF, CNY, DKK, JPY, and 6 more.
Awin click ID (awc)awctext
The Awin click ID (the awc value Awin adds to your landing page's address).
Voucher codevoucher_codetext
The voucher code used, to credit the publisher it belongs to.
Publisherpublisher_idtext
The publisher who referred the order, when there's no click ID. Needs the click time.
Click timeclick_timedate and time
When the visitor clicked the publisher's link. Needed with the publisher.
Commission group codecommission_grouptext
The commission group code the order belongs to. Leave empty for DEFAULT.
Customercustomer_typetext
Whether the customer is new or returning.One of: NEW (New customer), RETURNING (Returning customer).
Click referenceclick_reftext
A click reference to record with the order.
Test onlytesttrue/false
Send as a test: Awin checks the order but doesn't track it.

Outputs

dataobject
The response from Awin.
Example output
{
  "data": {
    "batchId": "example",
    "failedOrders": [
      {}
    ],
    "message": "example",
    "successfulOrders": [
      {}
    ]
  }
}

On this page