Product Data Feed API

Overview

This API returns all the product information within a product data feed which is associated to a particular campaign.

Able to pull in XML or JSON by including the following in the headers.

  • Accept:application/xml for an xml response
  • Accept:application/json for a json response

Base URL 

/v2/CampaignProduct

Parameters
ParameterDescriptionData TypeRequiredFormatting NotesExamplesCampaignIdCampaign IDIntYMust be a valid Campaign ID"123456"Example URL
https://affiliateapi.linktrust.com/v2/CampaignProduct?campaignId={Valid campaign ID}
Example XML Response
<Products>
    <CampaignId>100000</CampaignId>
    <Product>
        <SKU>thesku1</SKU>
        <Name>theName</Name>
        <Description>theDescription</Description>
        <RetailPrice>52.3200</RetailPrice>
        <SalePrice xsi:nil="true" />
        <Discount>45% off</Discount>
        <PayoutType>Flat</PayoutType>
        <Payout>2.3200</Payout>
        <Category>theCategory</Category>
        <Brand>theBrand</Brand>
        <ImageUrl>http://theImageUrl.com</ImageUrl>
        <TrackingUrl>http://www.tracking.com/click.track?CID=123456&AFID=123456&ADID=123456&SID=&SKU=113234-1</TrackingUrl>
        <AdditionalData1>data1</AdditionalData1>
        <AdditionalData2>data2</AdditionalData2>
        <AdditionalData3>data3</AdditionalData3>
    </Product>
    <Product>
        <SKU>thesku2</SKU>
        <Name>theName</Name>
        <Description>theDescription</Description>
        <RetailPrice>52.3200</RetailPrice>
        <SalePrice>28.7800<SalePrice>
        <Discount>45% off</Discount>
        <PayoutType>Flat</PayoutType>
        <Payout>2.3200</Payout>
        <Category>theCategory</Category>
        <Brand>theBrand</Brand>
        <ImageUrl>http://theImageUrl.com</ImageUrl>
        <TrackingUrl>http://www.tracking.com/click.track?CID=123456&AFID=123456&ADID=123456&SID=&SKU=113234-1</TrackingUrl>
        <AdditionalData1>data1</AdditionalData1>
        <AdditionalData2>data2</AdditionalData2>
        <AdditionalData3>data3</AdditionalData3>
    </Product>
</Products>
Example JSON Response
{
"CampaignId":100031,
"ProductList":[
{
"SKU":"Sku1",
"Name":"Name",
"Description":"Description",
"RetailPrice":12.3000,
"SalePrice":11.3000,
"Discount":"two dollard off!",
"PayoutType":0,
"Payout":1000.0000,
"Category":"category",
"Brand":"brand",
"ImageUrl":"http://www.linktrust.com/wp-content/themes/linktrustnew/images/linktrust-home.png",
"TrackingUrl":"http://www.tracking.com/click.track?CID=123456&AFID=123456&ADID=123456&SID=&SKU=113234-1",
"AdditionalData1":"data1",
"AdditionalData2":"data2",
"AdditionalData3":" "
},{
"SKU":"Sku10",
"Name":"Name",
"Description":"Description",
"RetailPrice":12.3000,
"SalePrice":11.3000,
"Discount":"two dollard off!",
"PayoutType":0,
"Payout":1008.0000,
"Category":"category",
"Brand":"brand",
"ImageUrl":"http://www.linktrust.com/wp-content/themes/linktrustnew/images/linktrust-home.png",
"TrackingUrl":"http://www.tracking.com/click.track?CID=123456&AFID=123456&ADID=123456&SID=&SKU=113234-2",
"AdditionalData1":"data1",
"AdditionalData2":"data2",
"AdditionalData3":""
}
    ]
}