Get All Products API

Using the GET Request method, the system will return all products in the data feed.

Base URL 

/v2/Product/{CampaignID}/campaignproduct

Parameters

Campaign ID - Required.  The ID for the campaign you want to view the products of.

Example URL

https://api.linktrust.com/v2/Product/123456/campaignproduct

Example XML Success Response

<Products>
    <Product>
        <AdditionalData1>data1</AdditionalData1>
        <AdditionalData2>data2</AdditionalData2>
        <AdditionalData3>data3</AdditionalData3>
        <AlternateDestinationUrl>http://www.myelectronics.com</AlternateDestinationUrl>
        <Brand>Sony</Brand>
        <Category>Electronics</Category>
        <Description>50 in TV</Description>
        <Discount>45% off</Discount>
        <ImageUrl>http://www.myImageUrl.com</ImageUrl>
        <Name>TV's</Name>
        <Payout>2.32</Payout>
        <PayoutType>Flat</PayoutType>
        <RetailPrice>52.32</RetailPrice>
        <Revenue>14.65</Revenue>
        <RevenueType>Flat</RevenueType>
        <SKU>sny12345</SKU>
        <SalePrice>21.16</SalePrice>
    </Product>
    <Product>
        <AdditionalData1>data1</AdditionalData1>
        <AdditionalData2>data2</AdditionalData2>
        <AdditionalData3>data3</AdditionalData3>
        <AlternateDestinationUrl>http://www.myelectronics.com</AlternateDestinationUrl>
        <Brand>Sony</Brand>
        <Category>Electronics</Category>
        <Description>50 in TV</Description>
        <Discount>45% off</Discount>
        <ImageUrl>http://www.myImageUrl.com</ImageUrl>
        <Name>TV's</Name>
        <Payout>2.32</Payout>
        <PayoutType>Flat</PayoutType>
        <RetailPrice>52.32</RetailPrice>
        <Revenue>14.65</Revenue>
        <RevenueType>Flat</RevenueType>
        <SKU>sny155</SKU>
        <SalePrice>20.00</SalePrice>
    </Product>
</Products>

Example JSON Success Response

NOTE: Items are required as a set: Payout and PayoutType;  Revenue and RevenueType.

{
CampaignId: 100257
ProductList:
[2]
0:
{
"SKU":"sny12345",
"Name":"TV's",
"Description":"50 in TV",
"RetailPrice":52.32,
"SalePrice":null,
"Discount":"45% off",
"RevenueType":0,
"Revenue":14.65,
"PayoutType":0,
"Payout":2.32,
"Category":"Electronics",
"Brand":"Sony",
"ImageUrl":"http://www.myImageUrl.com",
"AlternateDestinationUrl":"http://www.myelectronics.com",
"AdditionalData1":"data1",
"AdditionalData2":"data2",
"AdditionalData3":"data3",
}
1:
{
"SKU":"sny155",
"Name":"TV's",
"Description":"50 in TV",
"RetailPrice":52.32,
"SalePrice":null,
"Discount":"45% off",
"RevenueType":0,
"Revenue":14.65,
"PayoutType":0,
"Payout":2.32,
"Category":"Electronics",
"Brand":"Sony",
"ImageUrl":"http://www.myImageUrl.com",
"AlternateDestinationUrl":"http://www.myelectronics.com",
"AdditionalData1":"data1",
"AdditionalData2":"data2",
"AdditionalData3":"data3",
}
}
 
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.