Create or update a cart.
PUT
/cart
200Description
If an object with the same ID already exists, it will be overwritten.
The recommended way to initiate a new cart is to add a line item. If there is a specific reason an order needs to exist prior to adding a line item, this method can be used to initiate a new cart.
Request Body
Property | Type | Format | Max Length | Possible Values | ||
---|---|---|---|---|---|---|
ID | string | --- | 100 characters | --- | ||
FromCompanyID | string | --- | --- | --- | ||
ToCompanyID | string | --- | --- | --- | ||
FromUserID | string | --- | --- | --- | ||
BillingAddressID | string | --- | --- | --- | ||
ShippingAddressID | string | --- | --- | --- | ||
Comments | string | --- | 2000 characters | --- | ||
ShippingCost | number | float | --- | --- | ||
TaxCost | number | float | --- | --- | ||
Gratuity | number | float | --- | --- | ||
xp | object | --- | --- | --- |
Response Body
Property | Type | Format | Max Length | Possible Values | ||
---|---|---|---|---|---|---|
ID | string | --- | 100 characters | --- | ||
FromUser | Read Only | object | --- | --- | --- | |
FromCompanyID | string | --- | --- | --- | ||
ToCompanyID | string | --- | --- | --- | ||
FromUserID | string | --- | --- | --- | ||
BillingAddressID | string | --- | --- | --- | ||
BillingAddress | Read Only | object | --- | --- | --- | |
ShippingAddressID | string | --- | --- | --- | ||
Comments | string | --- | 2000 characters | --- | ||
LineItemCount | Read Only | integer | int32 | --- | --- | |
Status | Read Only | string | --- | --- | Unsubmitted, AwaitingApproval, Declined, Open, Completed, Canceled | |
DateCreated | Read Only | string | date-time | --- | --- | |
DateSubmitted | Read Only | string | date-time | --- | --- | |
DateApproved | Read Only | string | date-time | --- | --- | |
DateDeclined | Read Only | string | date-time | --- | --- | |
DateCanceled | Read Only | string | date-time | --- | --- | |
DateCompleted | Read Only | string | date-time | --- | --- | |
LastUpdated | Read Only | string | date-time | --- | --- | |
Subtotal | Read Only | number | float | --- | --- | |
ShippingCost | number | float | --- | --- | ||
TaxCost | number | float | --- | --- | ||
Gratuity | number | float | --- | --- | ||
PromotionDiscount | Read Only | number | float | --- | --- | |
Currency | Read Only | string | --- | --- | --- | |
Total | Read Only | number | float | --- | --- | |
IsSubmitted | Read Only | boolean | --- | --- | --- | |
SubscriptionID | Read Only | string | --- | --- | --- | |
xp | object | --- | --- | --- |