AddUpsellRelationship - Deprecated

Overview

As of Feb 13, 2018, this method has been deprecated. The documentation remains only for historical purposes.

Create upsell relationships between items.

Request

Field Name

Data Type

Description

accountID

string

A unique identifier representing the ChannelAdvisor account you wish to access.

upsellInfoList

InventoryUpsellInfoSubmit[]

Each element establishes upsell relationships between a single parent item and a list of child items.

Response

Field Name

Data Type

Description

AddUpsellRelationshipResult

APIResult<bool[][]>

This method returns a type named APIResultOfArrayOfArrayOfBoolean. See more information on APIResult. The success or failure of the creation of each relationship will be contained in the ResultData field, so there will be one boolean in the response for each InventoryUpsellChildInfo in the request.

Sample Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://api.channeladvisor.com/webservices/">
   <soapenv:Header>
      <web:APICredentials>
         <web:DeveloperKey>?</web:DeveloperKey>
         <web:Password>?</web:Password>
      </web:APICredentials>
   </soapenv:Header>
   <soapenv:Body>
      <web:AddUpsellRelationship>
         <web:accountID>?</web:accountID>
         <web:upsellInfoList>
            <web:InventoryUpsellInfoSubmit>
               <web:ParentSKU>psku01</web:ParentSKU>
               <web:ChildItemList>
                  <web:InventoryUpsellChildInfo>
                     <web:SKU>csku01</web:SKU>
                     <web:Quantity>3</web:Quantity>
                     <web:SalePrice>5.65</web:SalePrice>
                  </web:InventoryUpsellChildInfo>
                  <web:InventoryUpsellChildInfo>
                     <web:SKU>csku02</web:SKU>
                     <web:Quantity>4</web:Quantity>
                     <web:SalePrice>8.95</web:SalePrice>
                  </web:InventoryUpsellChildInfo>
               </web:ChildItemList>
            </web:InventoryUpsellInfoSubmit>
         </web:upsellInfoList>
      </web:AddUpsellRelationship>
   </soapenv:Body>
</soapenv:Envelope>

References