PUT 3dCartWebAPI/v1/Cart/{orderkey}


This method is used to update a single cart record in the database. The {orderkey} parameter specifies which cart record to update.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
orderkey

Order Key

string

Required

Body Parameters

A Json or XML object containing the cart

CartReduced
NameDescriptionTypeAdditional 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

Sample:
{
  "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

Sample:
<CartReduced xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/_3dCartWebAPI.Models">
  <BillingAddress>sample string 4</BillingAddress>
  <BillingAddress2>sample string 5</BillingAddress2>
  <BillingCity>sample string 6</BillingCity>
  <BillingCompany>sample string 3</BillingCompany>
  <BillingCountry>sample string 9</BillingCountry>
  <BillingEmail>sample string 11</BillingEmail>
  <BillingFirstName>sample string 1</BillingFirstName>
  <BillingLastName>sample string 2</BillingLastName>
  <BillingPhoneNumber>sample string 10</BillingPhoneNumber>
  <BillingState>sample string 7</BillingState>
  <BillingZipCode>sample string 8</BillingZipCode>
  <CustomerId>1</CustomerId>
  <ShipmentAddress>sample string 15</ShipmentAddress>
  <ShipmentAddress2>sample string 16</ShipmentAddress2>
  <ShipmentCity>sample string 17</ShipmentCity>
  <ShipmentCompany>sample string 14</ShipmentCompany>
  <ShipmentCountry>sample string 20</ShipmentCountry>
  <ShipmentEmail>sample string 22</ShipmentEmail>
  <ShipmentFirstName>sample string 12</ShipmentFirstName>
  <ShipmentLastName>sample string 13</ShipmentLastName>
  <ShipmentPhone>sample string 21</ShipmentPhone>
  <ShipmentState>sample string 18</ShipmentState>
  <ShipmentZipCode>sample string 19</ShipmentZipCode>
</CartReduced>

Sample Request



Response Information

application/json, text/json

Sample:
[
  {
    "Key":"OrderKey",
    "Value":"6F027F81ggx48to",
    "Status":"200",
    "Message":"Updated successfully",
  }
]
							

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.