|
strXML - XML String, representing the Order record to be added, updated or deleted. To view the
validating XSD Schema, please click here. An example is provided
here or below:
<Order Order_ID="aeda4fb4a2ad4ccbb81f4898072f9b28">
<Shopper_ID>shopper@somesite.com</Shopper_ID>
<Basket />
<Shipping>
<First_Name>John</First_Name>
<Last_Name>Smith</Last_Name>
<Address_1>123 Somewhere St.</Address_1>
<City>Los Angeles</City>
<State>CA</State>
<Postal_Code>90210</Postal_Code>
<Country>USA</Country>
<Phone>800.555.1212</Phone>
<Fax>888.555.1212</Fax>
<Email>john.doe@somesite.com</Email>
</Shipping>
<Billing>
<First_Name>Suzan</First_Name>
<Middle_Name>A.</Middle_Name>
<Last_Name>Smith</Last_Name>
<Address_1>456 Somewhere Else St.</Address_1>
<Address_2>Apt. C</Address_2>
<City>Los Angeles</City>
<State>CA</State>
<Postal_Code>90210</Postal_Code>
<Country>USA</Country>
<Phone>888.555.1212</Phone>
<Fax>888.555.1212</Fax>
<Email>john.doe@somesite.com</Email>
</Billing>
<Credit_Card>
<Type>1</Type>
<Number>4111111111111111</Number>
<Expiration_Month>10</Expiration_Month>
<Expiration_Year>2006</Expiration_Year>
<Verification_Number>487</Verification_Number>
</Credit_Card>
<Receipt>
<Contents>Receipt contents would go here, please see our
Implementation Guides for more details</Contents>
<Total>42.95</Total>
</Receipt>
</Order>
To create a new Order record, please provide a new identifier (Global Unique Identifier, or GUID, is preferred) as the value
of the Order_ID attribute.
If an existing Order record's identifier is provided as the value of the
Order_ID attribute, an update of that record will be performed by the
system, as long as any of the child elements are also included in the XML string.
To delete an Order record from the system, the XML string must consist of only the root node and the
Order_ID attribute, with the identifier of the record to be deleted as the
attribute's value. Do not provide any of the root node's child elements. An example is provided
below:
<Order Order_ID="aeda4fb4a2ad4ccbb81f4898072f9b28" />
|