Awin
App · 25 actions
Track Awin transactions and commission, manage programme partnerships, build tracking links and offers, and report conversions.
Actions
| Action | What it does |
|---|---|
| Accept partnership invitation | Accept an advertiser's invitation to join their programme, agreeing to its terms. |
| Approve or decline transaction | Approve a pending transaction so the publisher is paid, or decline it with a reason. |
| Approve publisher application | Approve a publisher's application to join your programme, with a message to them. |
| Create offer | Publish a promotion or voucher code to your publishers in My Offers. |
| Create tracking link | Create an Awin tracking link to an advertiser's page, optionally with a short link. |
| Decline partnership invitation | Decline an advertiser's invitation to join their programme. |
| Get advertiser performance report | Get a publisher account's impressions, clicks, sales and commission for each advertiser over a period. |
| Get approval job | Check whether Awin has finished approving or declining transactions, and which failed. |
| Get campaign performance report | Get a publisher account's clicks, sales and commission for each campaign value it put in its tracking links. |
| Get programme details | Get a programme's description, commission range and performance figures, such as earnings per click and approval rate. |
| Get programme transactions | Get your advertiser account's transactions by their Awin IDs. |
| Get publisher performance report | Get your advertiser account's impressions, clicks, sales and commission for each publisher over a period. |
| Get transactions | Get a publisher account's transactions by their Awin IDs, to check their status. |
| List accounts | List the publisher and advertiser accounts your Awin login can reach, with your role on each. |
| List advertiser partnerships | List the advertisers a publisher account has a partnership with, including invitations waiting for an answer. |
| List commission groups | List an advertiser's commission groups with the commission each pays you. |
| List offers | List advertisers' promotions and voucher codes, as in My Offers in Awin. |
| List payments | List the payments Awin made to a publisher account, newest first. |
| List programme transactions | List the sales and leads your advertiser account's publishers brought in a period of up to 31 days. |
| List programmes | List the advertisers' programmes for a publisher account, by your relationship with them. |
| List publisher partnerships | List the publishers your advertiser account has a partnership with, including applications waiting for an answer. |
| List transaction queries | List the queries a publisher account raised about missing or wrong commission, in a period of up to 31 days. |
| List transactions | List a publisher account's sales and leads in a period of up to 31 days, with their commission and status. |
| Reject publisher application | Reject a publisher's application to join your programme. |
| Send conversion | Report 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 account
publisher_account_idtextRequired - Your Awin publisher account.
- Advertiser
advertiser_idtextRequired - The advertiser whose invitation to accept.
- Accept the programme's terms
accept_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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- Transaction ID
transaction_idtextRequired - The Awin ID of the transaction.
- Decision
decisiontextRequired - Approve or decline the transaction.One of:
approve,decline. - Decline reason
decline_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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- Publisher
publisher_idtextRequired - The publisher whose application to approve.
- Message
messagetextRequired - 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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- Title
titletextRequired - The offer's title, such as Black Friday 30% off (up to 300 characters).
- Description
descriptiontextRequired - What the offer is (up to 500 characters).
- Terms
termstextRequired - The offer's terms and conditions.
- Type
type_of_offertextRequired - A promotion, or a voucher code customers enter at checkout.One of:
promotion,voucher(Voucher code). - Voucher code
voucher_codetext - The code customers enter. Needed for a voucher code.
- Landing page
urltextRequired - The page on your site publishers should link to.
- Starts
start_datedateRequired - The first day of the offer (from midnight UTC).
- Ends
end_datedateRequired - The last day of the offer (until 23:59:59 UTC).
- Categories
categorieslistRequired - 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. - Regions
offer_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. - Campaign
campaigntext - The campaign the offer is part of.
Outputs
dataobject- The response from Awin.
Example output
{
"data": {}
}Create tracking link
Create an Awin tracking link to an advertiser's page, optionally with a short link.
Inputs
- Publisher account
publisher_account_idtextRequired - Your Awin publisher account.
- Advertiser
advertiser_idtextRequired - The advertiser (programme) you work with.
- Page to link to
destination_urltext - The page on the advertiser's site to link to. Leave empty for their home page.
- Campaign
campaigntext - A campaign name to report the link's clicks and sales under.
- Click reference
click_reftext - Your own reference, returned with each sale the link brings.
- Make a short link
shortentrue/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 account
publisher_account_idtextRequired - Your Awin publisher account.
- Advertiser
advertiser_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 account
publisher_account_idtextRequired - Your Awin publisher account.
- From
start_datedateRequired - The first day of the report.
- To
end_datedateRequired - The last day of the report.
- Region
regiontextRequired - 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 by
date_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 zone
timezonetext - 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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- Job ID
job_idtextRequired - The job ID from Approve or decline transaction.
- Include
outputtext - 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 account
publisher_account_idtextRequired - Your Awin publisher account.
- From
start_datedateRequired - The first day of the report.
- To
end_datedateRequired - The last day of the report.
- Region
regiontextRequired - 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. - Advertisers
advertiser_idslist - Only these advertisers. Leave empty for all of them.
- Campaign
campaigntext - Only campaigns whose value starts with this (at least 3 characters).
- Include traffic without a campaign
include_without_campaigntrue/false - Also count clicks and sales whose link had no campaign value.
- Split by
intervaltext - Split the figures by day, month or year. Leave empty for one total per campaign.One of:
day,month,year. - Time zone
timezonetext - 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 account
publisher_account_idtextRequired - Your Awin publisher account.
- Advertiser
advertiser_idtextRequired - The advertiser (programme) you work with.
- Relationship
relationshiptext - 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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- Transaction IDs
transaction_idslistRequired - The Awin IDs of the transactions.
- Include basket products
show_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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- From
start_datedateRequired - The first day of the report.
- To
end_datedateRequired - The last day of the report.
- Count by
date_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 zone
timezonetext - 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 account
publisher_account_idtextRequired - Your Awin publisher account.
- Transaction IDs
transaction_idslistRequired - The Awin IDs of the transactions.
- Include basket products
show_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 type
typetext - 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 account
publisher_account_idtextRequired - Your Awin publisher account.
- Partnership status
partnership_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 by
sorttext - 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. - Limit
limitnumber - How many to return, up to 1000. Leave empty for 10.From 1 to 1000.
- Skip
offsetnumber - 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 account
publisher_account_idtextRequired - Your Awin publisher account.
- Advertiser
advertiser_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 account
publisher_account_idtextRequired - Your Awin publisher account.
- Advertisers
membershiptext - 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). - Type
offer_typetext - Promotions, voucher codes, or both. Leave empty for both.One of:
all(Promotions and voucher codes),promotion(Promotions),voucher(Voucher codes). - Status
offer_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). - Advertisers
advertiser_idslist - Only these advertisers. Leave empty for all of them.
- Regions
regionslist - 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 only
exclusive_onlytrue/false - Only offers exclusive to your account.
- Changed since
updated_sincedate - Only offers added or changed since this day.
- Page
pagenumber - The page to read. Leave empty for the first.At least 1.
- Offers per page
page_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 account
publisher_account_idtextRequired - Your Awin publisher account.
- Limit
limitnumber - How many to return, up to 100. Leave empty for 25.From 1 to 100.
- Skip
offsetnumber - 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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- From
start_datedate and timeRequired - The start of the period. The period can be at most 31 days long.
- To
end_datedate and timeRequired - The end of the period.
- Date to filter on
date_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). - Status
statustext - Only transactions with this status. Leave empty for all.One of:
pending,approved,declined,deleted. - Publishers
publisher_idslist - Only these publishers. Leave empty for all of them.
- Include basket products
show_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 account
publisher_account_idtextRequired - Your Awin publisher account.
- Relationship
relationshiptext - 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). - Region
countrytext - 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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- Partnership status
partnership_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 by
sorttext - 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. - Limit
limitnumber - How many to return, up to 1000. Leave empty for 10.From 1 to 1000.
- Skip
offsetnumber - 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 account
publisher_account_idtextRequired - Your Awin publisher account.
- From
start_datedate and timeRequired - The start of the period. The period can be at most 31 days long.
- To
end_datedate and timeRequired - The end of the period.
- Date to filter on
date_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). - Status
statuseslist - Only queries in these statuses. Leave empty for all.One or more of:
PENDING,APPROVED,DECLINED. - Advertisers
advertiser_idslist - Only these advertisers. Leave empty for all of them.
- Sort by
sorttext - 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). - Limit
limitnumber - How many to return, up to 100. Leave empty for 25.From 1 to 100.
- Next page token
page_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 account
publisher_account_idtextRequired - Your Awin publisher account.
- From
start_datedate and timeRequired - The start of the period. The period can be at most 31 days long.
- To
end_datedate and timeRequired - The end of the period.
- Date to filter on
date_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). - Status
statustext - Only transactions with this status. Leave empty for all.One of:
pending,approved,declined,deleted. - Advertisers
advertiser_idslist - Only these advertisers. Leave empty for all of them.
- Include basket products
show_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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- Publisher
publisher_idtextRequired - The publisher whose application to reject.
- Reason
reasontextRequired - 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 account
advertiser_account_idtextRequired - Your Awin advertiser account (your programme).
- Order reference
order_referencetextRequired - Your order or booking reference (up to 50 characters).
- Amount
amountnumberRequired - The order's value after discounts, before tax and delivery. For a lead, the number of leads.At least 0.
- Currency
currencytextRequired - 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 code
voucher_codetext - The voucher code used, to credit the publisher it belongs to.
- Publisher
publisher_idtext - The publisher who referred the order, when there's no click ID. Needs the click time.
- Click time
click_timedate and time - When the visitor clicked the publisher's link. Needed with the publisher.
- Commission group code
commission_grouptext - The commission group code the order belongs to. Leave empty for DEFAULT.
- Customer
customer_typetext - Whether the customer is new or returning.One of:
NEW(New customer),RETURNING(Returning customer). - Click reference
click_reftext - A click reference to record with the order.
- Test only
testtrue/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": [
{}
]
}
}