POST api/order/OnlineOrder/GetTotals
Gets totals for order information without persisting an online order to the system
Request Information
URI Parameters
None.
Body Parameters
The data for the online order that will be created if the user inputs payment information and we have successful payment.
OnlineOrderGetTotalsViewModelName | Description | Type | Additional information |
---|---|---|---|
RepDID |
The Rep # to get totals for. This can be left blank if a Customer # is provided |
string |
None. |
CustomerDID |
The Customer # to get totals for. This can be left blank if a Rep # is provided |
string |
None. |
ShipMethodID |
The Shipping Method used to ship the order. This will be used to complete shipping costs for the order. |
integer |
None. |
ShipState |
The state to ship the order, which will be used to calculate taxation for the order. |
string |
None. |
ShipCountry |
The country to ship the order, which will be used to calculate taxation for the order. |
string |
None. |
ShipCounty |
The county to ship the order, which will be used to calculate taxation for the order. |
string |
None. |
ShipCity |
The city to ship the order, which will be used to calculate taxation for the order. |
string |
None. |
ShipPostalCode |
The postal code to ship the order, which will be used to calculate taxation for the order. |
string |
None. |
Items |
The list of item #s/skus to ship with the order. |
Collection of OnlineOrderDetailProduct |
None. |
Request Formats
application/xml, text/xml
<OnlineOrderGetTotalsViewModel> <RepDID>sample string 1</RepDID> <CustomerDID>sample string 2</CustomerDID> <ShipMethodID>3</ShipMethodID> <ShipState>sample string 4</ShipState> <ShipCountry>sample string 5</ShipCountry> <ShipCounty>sample string 6</ShipCounty> <ShipCity>sample string 7</ShipCity> <ShipPostalCode>sample string 8</ShipPostalCode> <Items> <OnlineOrderDetailProduct> <ProductID>sample string 1</ProductID> <Quantity>2</Quantity> </OnlineOrderDetailProduct> <OnlineOrderDetailProduct> <ProductID>sample string 1</ProductID> <Quantity>2</Quantity> </OnlineOrderDetailProduct> </Items> </OnlineOrderGetTotalsViewModel>
application/json, text/json
{ "RepDID": "sample string 1", "CustomerDID": "sample string 2", "ShipMethodID": 3, "ShipState": "sample string 4", "ShipCountry": "sample string 5", "ShipCounty": "sample string 6", "ShipCity": "sample string 7", "ShipPostalCode": "sample string 8", "Items": [ { "ProductID": "sample string 1", "Quantity": 2 }, { "ProductID": "sample string 1", "Quantity": 2 } ] }
application/x-www-form-urlencoded
Response Information
Resource Description
IOnlineOrderTotalsWithItemsName | Description | Type | Additional information |
---|---|---|---|
Items | Collection of IOnlineOrderDetailProductWithPricing |
None. |
Response Formats
application/xml, text/xml
<OnlineOrderTotalsWithItems> <Items /> <ShippingTotal>0</ShippingTotal> <ShippingTax>0</ShippingTax> <TaxTotal>0</TaxTotal> <HandlingFee>0</HandlingFee> <HandlingTax>0</HandlingTax> <Total /> <CreditAmount>0</CreditAmount> <BalanceDue>0</BalanceDue> </OnlineOrderTotalsWithItems>
application/json, text/json
{ "ShippingTotal": 0.0, "ShippingTax": 0.0, "TaxTotal": 0.0, "HandlingFee": 0.0, "HandlingTax": 0.0, "CreditAmount": 0.0, "BalanceDue": 0.0 }