PUT api/order/OnlineOrder/ChangeCountry?onlineOrderId={onlineOrderId}&country={country}
Update the country on an Online Order
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| onlineOrderId |
The ID of the to update |
integer |
Required |
| country |
The name of the Country |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
The updated Online Order
IOnlineOrderViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Total | decimal number |
None. |
|
| TotalProductPrice | decimal number |
None. |
|
| Country | string |
None. |
|
| Party | IPartyInfoViewModel |
None. |
|
| Items | Collection of IOnlineOrderDetailViewModel |
None. |
|
| OnBehalfRepID | integer |
None. |
|
| OnBehalfRepDID | string |
None. |
|
| OnBehalfRepDisplayName | string |
None. |
Response Formats
application/xml, text/xml
Sample:
<OnlineOrderViewModel>
<ID>0</ID>
<Total />
<TotalProductPrice>0</TotalProductPrice>
<Country />
<Party>
<ID>0</ID>
<PartyGUID />
<HostCustomerName />
<RepDID />
<RepDisplayName />
<PartyDate />
<PartyInfo />
<IsClosed>False</IsClosed>
<IsVoided>False</IsVoided>
<IsPartyPersisted>False</IsPartyPersisted>
<ProjectedAutoCloseDate />
<DistributionTypeOptions />
</Party>
<Items>
<IOnlineOrderDetailViewModel>
<OnlineOrderDetailId>0</OnlineOrderDetailId>
<ProductID />
<InventoryID>0</InventoryID>
<DisplayName />
<Price>0</Price>
<Tax />
<Quantity>0</Quantity>
<SmallImage />
<ParentProductID />
<ChildDisplayName />
<QtyOptions />
<CurrencySymbol />
<Misc />
<AltText />
<SoftAllocationExpiration />
<AutoShipPrice />
<IsAutoShipItem>False</IsAutoShipItem>
<IsAutoShip>False</IsAutoShip>
<Volume />
<Volume2 />
<Volume3 />
<Volume4 />
<VolumeT />
<VolumeT2 />
<VolumeT3 />
<VolumeT4 />
<WholesalePrice />
<DateNextRun />
<SavedPrice />
<IsResourceServerImage>False</IsResourceServerImage>
</IOnlineOrderDetailViewModel>
</Items>
<OnBehalfRepID />
<OnBehalfRepDID />
<OnBehalfRepDisplayName />
</OnlineOrderViewModel>
application/json, text/json
Sample:
{
"ID": 0,
"TotalProductPrice": 0.0,
"Party": {
"ID": 0,
"IsClosed": false,
"IsVoided": false,
"IsPartyPersisted": false
},
"Items": [
{
"OnlineOrderDetailId": 0,
"InventoryID": 0,
"Price": 0.0,
"Quantity": 0,
"IsAutoShipItem": false,
"IsAutoShip": false,
"IsResourceServerImage": false
}
]
}