The AddMainProductToCart method is designed to allow users to add a product to their shopping cart.
The table below defines the AddMainProductToCart method:
Inputs |
Data Type |
Required |
---|---|---|
Token |
String |
Y |
BillMasterCustomerId |
String |
Y |
BillSubCustomerId |
Int |
Y |
ProductId |
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/AddMainProductToCart"
<?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>
<AddMainProductToCart xmlns="http://personify.tmaresources.com/">
<Token>string</Token>
<BillMasterCustomerId>string</BillMasterCustomerId>
<BillSubCustomerId>int</BillSubCustomerId>
<ProductId>int</ProductId>
<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>
</AddMainProductToCart>
</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>
<AddMainProductToCartResponse xmlns=
"http://personify.tmaresources.com/">
<AddMainProductToCartResult>
<ItemId>int</ItemId>
<Message>string</Message>
</AddMainProductToCartResult>
</AddMainProductToCartResponse>
</soap:Body>
</soap:Envelope>
<s:element name="AddMainProductToCart">
<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="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>