Calculate an order

POST
/orders/{direction}/{orderID}/calculate

Roles

At least one of the roles below is required to access this endpoint

FullAccess
IntegrationEventAdmin
OrderAdmin
Shopper

Parameters

NameTypeDescriptionPossible Values
directionstringDirection of the order, from the current user's perspective. Possible values: incoming, outgoing, all.Incoming, Outgoing, All
orderIDstringID of the order.---

Response Body

PropertyTypeFormatMax LengthPossible Values
Orderobject---------
PropertyTypeFormatMax LengthPossible Values
IDstring---------
FromUser
Read Only
object---------

PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---------
Username
Read Only
string---100 characters---

Password
Read Only
stringpassword------
FirstName
Read Only
string---100 characters---
LastName
Read Only
string---100 characters---
Email
Read Only
string---200 characters---
Phone
Read Only
string---100 characters---
TermsAccepted
Read Only
stringdate-time------
Active
Read Only
boolean---------

xp
Read Only
object---------
AvailableRoles
Read Only
array---------

Locale
Read Only
object---------

PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---------
OwnerID
Read Only
string---------

Currency
Read Only
string---100 characters---

Language
Read Only
string---100 characters---

DateCreated
Read Only
stringdate-time------
PasswordLastSetDate
Read Only
stringdate-time------

FromCompanyIDstring---------

ToCompanyIDstring---------

FromUserIDstring---------

BillingAddressIDstring---------
BillingAddress
Read Only
object---------
PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---------
DateCreated
Read Only
stringdate-time------
CompanyName
Read Only
string---100 characters---
FirstName
Read Only
string---100 characters---
LastName
Read Only
string---100 characters---
Street1
Read Only
string---100 characters---
Street2
Read Only
string---100 characters---
City
Read Only
string---100 characters---
State
Read Only
string---100 characters---
Zip
Read Only
string---100 characters---
Country
Read Only
string---2 characters---
Phone
Read Only
string---100 characters---
AddressName
Read Only
string---100 characters---
xp
Read Only
object---------
ShippingAddressIDstring---------

Commentsstring---2000 characters---
LineItemCount
Read Only
integerint32------
Status
Read Only
string------Unsubmitted, AwaitingApproval, Declined, Open, Completed, Canceled
DateCreated
Read Only
stringdate-time------
DateSubmitted
Read Only
stringdate-time------

DateApproved
Read Only
stringdate-time------
DateDeclined
Read Only
stringdate-time------
DateCanceled
Read Only
stringdate-time------
DateCompleted
Read Only
stringdate-time------

LastUpdated
Read Only
stringdate-time------
Subtotal
Read Only
numberfloat------

ShippingCostnumberfloat------

TaxCostnumberfloat------

PromotionDiscount
Read Only
numberfloat------

Currency
Read Only
string---------

Total
Read Only
numberfloat------

IsSubmitted
Read Only
boolean---------

xpobject---------
LineItemsarray---------
PropertyTypeFormatMax LengthPossible Values
IDstring---------
ProductIDstring---------
Quantityintegerint32------
DateAdded
Read Only
stringdate-time------
QuantityShipped
Read Only
integerint32------

UnitPricenumberfloat------

PromotionDiscount
Read Only
numberfloat------

LineTotal
Read Only
numberfloat------

LineSubtotal
Read Only
numberfloat------

CostCenterstring---------

DateNeededstringdate-time------
ShippingAccountstring---------

ShippingAddressIDstring---------
ShipFromAddressIDstring---------

Product
Read Only
object---------
PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---------
Name
Read Only
string---------
Description
Read Only
string---------
QuantityMultiplier
Read Only
integerint32------
ShipWeight
Read Only
numberfloat------
ShipHeight
Read Only
numberfloat------
ShipWidth
Read Only
numberfloat------
ShipLength
Read Only
numberfloat------
xp
Read Only
object---------
Variant
Read Only
object---------
PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---------
Name
Read Only
string---------
Description
Read Only
string---------
ShipWeight
Read Only
numberfloat------
ShipHeight
Read Only
numberfloat------
ShipWidth
Read Only
numberfloat------
ShipLength
Read Only
numberfloat------
xp
Read Only
object---------
ShippingAddress
Read Only
object---------
PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---------
DateCreated
Read Only
stringdate-time------
CompanyName
Read Only
string---100 characters---
FirstName
Read Only
string---100 characters---
LastName
Read Only
string---100 characters---
Street1
Read Only
string---100 characters---
Street2
Read Only
string---100 characters---
City
Read Only
string---100 characters---
State
Read Only
string---100 characters---
Zip
Read Only
string---100 characters---
Country
Read Only
string---2 characters---
Phone
Read Only
string---100 characters---
AddressName
Read Only
string---100 characters---
xp
Read Only
object---------
ShipFromAddress
Read Only
object---------
PropertyTypeFormatMax LengthPossible Values
ID
Read Only
string---------
DateCreated
Read Only
stringdate-time------
CompanyName
Read Only
string---100 characters---
FirstName
Read Only
string---100 characters---
LastName
Read Only
string---100 characters---
Street1
Read Only
string---100 characters---
Street2
Read Only
string---100 characters---
City
Read Only
string---100 characters---
State
Read Only
string---100 characters---
Zip
Read Only
string---100 characters---
Country
Read Only
string---2 characters---
Phone
Read Only
string---100 characters---
AddressName
Read Only
string---100 characters---
xp
Read Only
object---------
SupplierID
Read Only
string---------
Specsarray---------
PropertyTypeFormatMax LengthPossible Values
SpecIDstring---------
Name
Read Only
string---------
OptionIDstring---------
Valuestring---2000 characters---
PriceMarkupTypestring------NoMarkup, AmountPerQuantity, AmountTotal, Percentage
PriceMarkupnumberfloat------
xpobject---------
ShipEstimateResponseobject---------
PropertyTypeFormatMax LengthPossible Values
ShipEstimatesarray---------
PropertyTypeFormatMax LengthPossible Values
IDstring---------
xpobject---------
SelectedShipMethodIDstring---------
ShipEstimateItemsarray---------
PropertyTypeFormatMax LengthPossible Values
LineItemIDstring---------
Quantityintegerint32------
ShipMethodsarray---------
PropertyTypeFormatMax LengthPossible Values
IDstring---------
Namestring---------
Costnumberfloat------
EstimatedTransitDaysintegerint32------
xpobject---------
HttpStatusCodeintegerint32------
UnhandledErrorBodystring---------
xpobject---------
OrderCalculateResponseobject---------
PropertyTypeFormatMax LengthPossible Values
LineItemOverridesarray---------
PropertyTypeFormatMax LengthPossible Values
LineItemIDstring---------
UnitPricenumberfloat------
PromotionOverridesarray---------
PropertyTypeFormatMax LengthPossible Values
PromotionIDstring---------
Amountnumberfloat------

ShippingTotalnumberfloat------
TaxTotalnumberfloat------
HttpStatusCodeintegerint32------
UnhandledErrorBodystring---------
xpobject---------
OrderSubmitResponseobject---------
PropertyTypeFormatMax LengthPossible Values
HttpStatusCodeintegerint32------
UnhandledErrorBodystring---------
xpobject---------
OrderSubmitForApprovalResponseobject---------
PropertyTypeFormatMax LengthPossible Values
HttpStatusCodeintegerint32------
UnhandledErrorBodystring---------
xpobject---------
OrderApprovedResponseobject---------
PropertyTypeFormatMax LengthPossible Values
HttpStatusCodeintegerint32------
UnhandledErrorBodystring---------
xpobject---------