POST api/order/OnlineOrder/CreateGuestCheckout?sponsorRepDID={sponsorRepDID}&country={country}&cartConfigurationID={cartConfigurationID}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
sponsorRepDID | string |
Required |
|
country | string |
None. |
|
cartConfigurationID | integer |
Default value is 1 |
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
<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
[ { "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
Response Information
Resource Description
OnlineOrderViewModelName | Description | Type | Additional information |
---|---|---|---|
ID |
The primary key of the Online Order. This would be used for adding and removing items as well as eventually turning the online order into a permanent order. |
integer |
None. |
Total |
The total of the online order (including tax, shipping, etc.) |
decimal number |
None. |
TotalProductPrice |
The total of the online order just based on included items (no tax, shipping, etc.) |
decimal number |
None. |
Country |
The Shipping Country for the Order |
string |
None. |
Party | IPartyInfoViewModel |
None. |
|
Items |
The items within the online order. (This is only returned when necessary.) |
Collection of IOnlineOrderDetailViewModel |
None. |
OnBehalfRepID |
RepID of the Rep the order is on behalf of |
integer |
None. |
OnBehalfRepDID |
RepDID of the Rep the order is on behalf of |
string |
None. |
OnBehalfRepDisplayName |
Display Name of the Rep the order is on behalf of |
string |
None. |
Response Formats
application/xml, text/xml, application/json, text/json
Sample not available.