Add/Update A Single Product API

Using the PUT Request method, the enclosed product will be created as a new Product item.  In the event that the 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 a product 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)

Example XML

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

<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>

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