Add/Update Multiple Products API

Using the POST Request method, the enclosed products will be created as Product items.  In the event that a SKU exists, then the SKU will be updated with the new Product information.

Base URL 

/v2/Product/{CampaignID}/campaignproduct

Parameters

Campaign ID - Required.  The ID for the campaign you want to add/update products for.

Example URL

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

NOTE: When uploading Payout or Revenue, it must be submitted with its type.

  • XML allowed parameters are Flat or Percent.
  • JSON allowed parameters are 0 (Flat) and 1 (Percent)

NOTE:  IF PRODUCT SKU ALREADY EXISTS, THIS WILL UPDATE THE PRODUCT.  IF PRODUCT SKU DOES NOT EXIST, THE NEW SKU WILL BE ADDED AND THE OTHER EXISTING SKU’S WILL BE REMOVED.

Example XML 

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

<Products>

<Product>

<AdditionalData1>data1</AdditionalData1>

<AdditionalData2>data2</AdditionalData2>

<AdditionalData3>data3</AdditionalData3>

<AlternateDestinationUrl>http://www.myelectronics.com</AlternateDestinationUrl>

<Brand>Sony</Brand>

<Category>Electronics</Category>

<Description>50in 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>50in 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>

</Products>

Example JSON
NOTE: Items are required as a set: Payout and PayoutType;  Revenue and RevenueType.
{
Product List: [
{
"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",
},
{
"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",
}
]
}

 

You can request a demo to see LinkTrust up close and experience how it can help you, or start your free 14-day trial now.


Need help with this feature or have questions? You can contact our support team at support@linktrust.com