The AddSubProductToCart method is designed to allow users to add a subproduct to their wish list.
The table below defines the AddSubProductToCart method:
Inputs |
Data Type |
Required |
---|---|---|
Token |
String |
Y |
BillMasterCustomerId |
String |
Y |
BillSubCustomerId |
Int |
Y |
ProductId |
Int |
Y |
SubProductId |
Int |
Y |
RelatedCartItemId |
Int |
Y |
Quantity |
Int |
Y |
ShipMasterCustomerId |
String |
Y |
ShipSubCustomerId |
Int |
Y |
RateStructure |
String |
Y |
RateCode |
String |
Y |
UserDefinedField1 |
String |
N |
UserDefinedField2 |
String |
N |
UserDefinedField3 |
String |
N |
MarketCode |
String |
Y |
Placeholders
(shown in blue)
need to be replaced with actual values.
POST /PersonifyWebService/PersonifyShoppingCart.asmx HTTP/1.1
Host: dd-ebusiness
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://personify.tmaresources.com/AddSubProductToCart"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AddSubProductToCart xmlns="http://personify.tmaresources.com/">
<Token>string</Token>
<BillMasterCustomerId>string</BillMasterCustomerId>
<BillSubCustomerId>int</BillSubCustomerId>
<ProductId>int</ProductId>
<SubProductId>int</SubProductId>
<RelatedCartItemId>int</RelatedCartItemId>
<Quantity>int</Quantity>
<ShipMasterCustomerId>string</ShipMasterCustomerId>
<ShipSubCustomerId>int</ShipSubCustomerId>
<RateStructure>string</RateStructure>
<RateCode>string</RateCode>
<UserDefinedField1>string</UserDefinedField1>
<UserDefinedField2>string</UserDefinedField2>
<UserDefinedField3>string</UserDefinedField3>
<MarketCode>string</MarketCode>
</AddSubProductToCart>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<AddSubProductToCartResponse xmlns=
"http://personify.tmaresources.com/">
<AddSubProductToCartResult>
<ItemId>int</ItemId>
<Message>string</Message>
</AddSubProductToCartResult>
</AddSubProductToCartResponse>
</soap:Body>
</soap:Envelope>
<s:element name="AddSubProductToCart">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Token" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="BillMasterCustomerId" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="BillSubCustomerId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="ProductId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="SubProductId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="RelatedCartItemId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="Quantity" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="ShipMasterCustomerId" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="ShipSubCustomerId" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="RateStructure" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="RateCode" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="UserDefinedField1" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="UserDefinedField2" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="UserDefinedField3" type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="MarketCode" type="s:string" />
</s:sequence>
</s:complexType>
</s:element>