PUT api/order/OnlineOrder/Reassociate?onlineOrderId={onlineOrderId}&repDID={repDID}&customerDID={customerDID}&country={country}&partyGuid={partyGuid}&shouldCalculateTax={shouldCalculateTax}&cartConfigurationID={cartConfigurationID}&ignoreRepValidation={ignoreRepValidation}
Allows for the re-association of an online order to be placed under a new Rep.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
onlineOrderId |
The ID of the you want to get |
integer |
Required |
repDID |
The RepDID of the user the order will be for (either a Rep or Customer) |
string |
Default value is |
customerDID |
The CustomerDID of the user the order will be for (only Customer) |
string |
Default value is |
country |
The country in which the user is shopping |
string |
Default value is |
partyGuid |
The PartyGUID of the party associated with the order |
string |
Default value is |
shouldCalculateTax |
Calculates Tax at the time of online order creation |
boolean |
Default value is True |
cartConfigurationID |
The CartConfigurations ID; defaults to 1 |
integer |
Default value is 1 |
ignoreRepValidation | boolean |
Default value is False |
Body Parameters
None.
Response Information
Resource Description
IOnlineOrderViewModelName | 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 /> <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 /> </IOnlineOrderDetailViewModel> </Items> <OnBehalfRepID /> <OnBehalfRepDID /> <OnBehalfRepDisplayName /> </OnlineOrderViewModel>
application/json, text/json
Sample:
{ "ID": 0, "TotalProductPrice": 0.0, "Items": [ { "OnlineOrderDetailId": 0, "InventoryID": 0, "Price": 0.0, "Quantity": 0, "IsAutoShipItem": false, "IsAutoShip": false } ] }