POST api/order/OnlineOrder?repDID={repDID}&customerDID={customerDID}&country={country}&shouldCalculateTax={shouldCalculateTax}&partyGuid={partyGuid}&cartConfigurationID={cartConfigurationID}
Allows for the creation of a new Online (non-permanent) Order
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| 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 (either a Rep or Customer) |
string |
Default value is |
| country |
Country shopping from |
string |
Default value is |
| shouldCalculateTax |
Calculates Tax at the time of online order creation |
boolean |
Default value is True |
| partyGuid | string |
Default value is |
|
| cartConfigurationID |
The CartConfigurations ID; defaults to 1 |
integer |
Default value is 1 |
Body Parameters
If you'd like to attempt to add products to the order, simply pass us the Product IDs and associated quantities for each item.
Collection of NewOnlineOrderDetailViewModel| Name | 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
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
<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
{
"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
}
]
}