PUT api/order/OnlineOrder/UpdateForOnlineSignup?onlineSignupGuid={onlineSignupGuid}&sponsorRepDID={sponsorRepDID}&country={country}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
onlineSignupGuid | string |
Required |
|
sponsorRepDID | string |
Required |
|
country | string |
None. |
Body Parameters
Collection of NewOnlineOrderDetailViewModelName | Description | Type | Additional information |
---|---|---|---|
ProductID |
The Product ID of the item |
string |
None. |
SourceProgrammingKey |
Programming key of the 3rd party who added the item |
string |
None. |
Quantity |
The primary identifier of the order detail id |
integer |
None. |
Price | decimal number |
None. |
|
IsAutoShip | boolean |
None. |
|
Misc |
For any customizations, this holds the extra fields associated to customizations. |
Collection of MiscFieldViewModel |
None. |
Request Formats
application/xml, text/xml
Sample:
<ListOfNewOnlineOrderDetailViewModel> <NewOnlineOrderDetailViewModel> <ProductID>sample string 1</ProductID> <SourceProgrammingKey>sample string 2</SourceProgrammingKey> <Quantity>3</Quantity> <Price>4</Price> <IsAutoShip>True</IsAutoShip> <Misc> <MiscFieldViewModel> <Name>sample string 1</Name> <Value>sample string 2</Value> </MiscFieldViewModel> <MiscFieldViewModel> <Name>sample string 1</Name> <Value>sample string 2</Value> </MiscFieldViewModel> </Misc> </NewOnlineOrderDetailViewModel> <NewOnlineOrderDetailViewModel> <ProductID>sample string 1</ProductID> <SourceProgrammingKey>sample string 2</SourceProgrammingKey> <Quantity>3</Quantity> <Price>4</Price> <IsAutoShip>True</IsAutoShip> <Misc> <MiscFieldViewModel> <Name>sample string 1</Name> <Value>sample string 2</Value> </MiscFieldViewModel> <MiscFieldViewModel> <Name>sample string 1</Name> <Value>sample string 2</Value> </MiscFieldViewModel> </Misc> </NewOnlineOrderDetailViewModel> </ListOfNewOnlineOrderDetailViewModel>
application/json, text/json
Sample:
[ { "ProductID": "sample string 1", "SourceProgrammingKey": "sample string 2", "Quantity": 3, "Price": 4.0, "IsAutoShip": true, "Misc": [ { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" } ] }, { "ProductID": "sample string 1", "SourceProgrammingKey": "sample string 2", "Quantity": 3, "Price": 4.0, "IsAutoShip": true, "Misc": [ { "Name": "sample string 1", "Value": "sample string 2" }, { "Name": "sample string 1", "Value": "sample string 2" } ] } ]
application/x-www-form-urlencoded
Sample:
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 } ] }