PUT api/order/OnlineOrderDetail?onlineOrderDetailId={onlineOrderDetailId}&shouldCalculateTax={shouldCalculateTax}
This method allows you to update an online order item. Optionally you can override some values.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
onlineOrderDetailId |
The online order Id. |
integer |
Required |
shouldCalculateTax |
Denotes whether or not tax should be re-calculated. |
boolean |
Default value is True |
Body Parameters
OnlineOrderDetailWithOverridesViewModelName | Description | Type | Additional information |
---|---|---|---|
Quantity |
The quantity of the product to be added. |
integer |
Required |
ProductID |
The product that should be added. |
string |
Required |
OverriddenFields |
Any fields that should be overwritten (Price, etc.). |
OnlineOrderDetailOverriddenFields |
None. |
Request Formats
application/xml, text/xml
Sample:
<OnlineOrderDetailWithOverridesViewModel> <Quantity>1</Quantity> <ProductID>sample string 2</ProductID> <OverriddenFields> <Price>1</Price> <Volume>1</Volume> <Volume2>1</Volume2> <Volume3>1</Volume3> <Volume4>1</Volume4> <OtherPrice>1</OtherPrice> <OtherPrice2>1</OtherPrice2> <OtherPrice3>1</OtherPrice3> <OtherPrice4>1</OtherPrice4> <TaxableAmount>1</TaxableAmount> <Tax>1</Tax> </OverriddenFields> </OnlineOrderDetailWithOverridesViewModel>
application/json, text/json
Sample:
{ "Quantity": 1, "ProductID": "sample string 2", "OverriddenFields": { "Price": 1.0, "Volume": 1.0, "Volume2": 1.0, "Volume3": 1.0, "Volume4": 1.0, "OtherPrice": 1.0, "OtherPrice2": 1.0, "OtherPrice3": 1.0, "OtherPrice4": 1.0, "TaxableAmount": 1.0, "Tax": 1.0 } }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/xml, text/xml, application/json, text/json
Sample:
Sample not available.