POST 3dCartWebAPI/v1/Cart
Adds a new cart to the system
Request Information
URI Parameters
None.
Body Parameters
A Json or XML object containing the new cart
CartReducedName | Description | Type | Additional information |
---|---|---|---|
CustomerId |
database reference = orders.ocustomerid |
integer |
None. |
BillingFirstName |
database reference = orders.ofirstname |
string |
String length: inclusive between 0 and 100 |
BillingLastName |
database reference = orders.olastname |
string |
String length: inclusive between 0 and 100 |
BillingCompany |
database reference = orders.ocompany |
string |
String length: inclusive between 0 and 255 |
BillingAddress |
database reference = orders.oaddress |
string |
String length: inclusive between 0 and 200 |
BillingAddress2 |
database reference = orders.oaddress2 |
string |
String length: inclusive between 0 and 50 |
BillingCity |
database reference = orders.ocity |
string |
String length: inclusive between 0 and 100 |
BillingState |
database reference = orders.ostate |
string |
String length: inclusive between 0 and 100 |
BillingZipCode |
database reference = orders.ozip |
string |
String length: inclusive between 0 and 20 |
BillingCountry |
database reference = orders.ocountry |
string |
String length: inclusive between 0 and 50 |
BillingPhoneNumber |
database reference = orders.ophone |
string |
String length: inclusive between 0 and 30 |
BillingEmail |
database reference = orders.oemail |
string |
String length: inclusive between 0 and 100 |
ShipmentFirstName |
database reference = orders.oshipfirstname |
string |
String length: inclusive between 0 and 100 |
ShipmentLastName |
database reference = orders.oshiplastname |
string |
String length: inclusive between 0 and 50 |
ShipmentCompany |
database reference = orders.oshipcompany |
string |
String length: inclusive between 0 and 200 |
ShipmentAddress |
database reference = orders.oshipaddress |
string |
String length: inclusive between 0 and 255 |
ShipmentAddress2 |
database reference = orders.oshipaddress2 |
string |
String length: inclusive between 0 and 50 |
ShipmentCity |
database reference = orders.oshipcity |
string |
String length: inclusive between 0 and 50 |
ShipmentState |
database reference = orders.oshipstate |
string |
String length: inclusive between 0 and 50 |
ShipmentZipCode |
database reference = orders.oshipzip |
string |
String length: inclusive between 0 and 20 |
ShipmentCountry |
database reference = orders.oshipcountry |
string |
String length: inclusive between 0 and 50 |
ShipmentPhone |
database reference = orders.oshipphone |
string |
String length: inclusive between 0 and 50 |
ShipmentEmail |
database reference = orders.oshipemail |
string |
String length: inclusive between 0 and 100 |
Request Formats
application/json, text/json
{ "CustomerId": 1, "BillingFirstName": "sample string 1", "BillingLastName": "sample string 2", "BillingCompany": "sample string 3", "BillingAddress": "sample string 4", "BillingAddress2": "sample string 5", "BillingCity": "sample string 6", "BillingState": "sample string 7", "BillingZipCode": "sample string 8", "BillingCountry": "sample string 9", "BillingPhoneNumber": "sample string 10", "BillingEmail": "sample string 11", "ShipmentFirstName": "sample string 12", "ShipmentLastName": "sample string 13", "ShipmentCompany": "sample string 14", "ShipmentAddress": "sample string 15", "ShipmentAddress2": "sample string 16", "ShipmentCity": "sample string 17", "ShipmentState": "sample string 18", "ShipmentZipCode": "sample string 19", "ShipmentCountry": "sample string 20", "ShipmentPhone": "sample string 21", "ShipmentEmail": "sample string 22" }
application/xml, text/xml
<CartReduced xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <CustomerId>1</CustomerId> <BillingFirstName>sample string 1</BillingFirstName> <BillingLastName>sample string 2</BillingLastName> <BillingCompany>sample string 3</BillingCompany> <BillingAddress>sample string 4</BillingAddress> <BillingAddress2>sample string 5</BillingAddress2> <BillingCity>sample string 6</BillingCity> <BillingState>sample string 7</BillingState> <BillingZipCode>sample string 8</BillingZipCode> <BillingCountry>sample string 9</BillingCountry> <BillingPhoneNumber>sample string 10</BillingPhoneNumber> <BillingEmail>sample string 11</BillingEmail> <ShipmentFirstName>sample string 12</ShipmentFirstName> <ShipmentLastName>sample string 13</ShipmentLastName> <ShipmentCompany>sample string 14</ShipmentCompany> <ShipmentAddress>sample string 15</ShipmentAddress> <ShipmentAddress2>sample string 16</ShipmentAddress2> <ShipmentCity>sample string 17</ShipmentCity> <ShipmentState>sample string 18</ShipmentState> <ShipmentZipCode>sample string 19</ShipmentZipCode> <ShipmentCountry>sample string 20</ShipmentCountry> <ShipmentPhone>sample string 21</ShipmentPhone> <ShipmentEmail>sample string 22</ShipmentEmail> </CartReduced>
Sample Request |
|
Response Information
application/json, text/json
[ { "Key":"OrderKey", "Value":"6F027F81ggx48to", "Status":"201", "Message":"Created successfully", } ]
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |