POST api/order/OnlineOrder?repDID=(repDID)&customerDID=(customerDID)&country=(country)&shouldCalculateTax=(shouldCalculateTax)&partyGuid=(partyGuid)&cartConfigurationID=(cartConfigurationID)
This function is used to create a new OnlineOrder for an existing rep or customer. Typically, this would be shopping cart or online party order. You may also provide a list of items to immediately add to the OnlineOrder upon creation.
When using OAuth, you will only be able to create an order for the account the OAuth token is authenticated for.
It is important to note that there can be rules in place through Freedom settings that can be used to determine if a customer's order can be placed under a different rep than they are assigned to.
Verb/URI: POST /Client/api/order/OnlineOrder?repDID=(repDID)&customerDID=(customerDID)&country=(country)&shouldCalculateTax=(shouldCalculateTax)&partyGuid=(partyGuid)&cartConfigurationID=(cartConfigurationID)
POST /Client/api/order/OnlineOrder?repDID=1001&customerDID=8205&country=USA&shouldCalculateTax=False&partyGuid=00000000-0000-0000-0000-000000000000&cartConfigurationID=1
[
{
"ProductID": "HairBrush1",
"Quantity": 2,
"Price": 3.0,
"IsAutoShip": true,
"Misc": [
{
"Name": "CustomThing1",
"Value": "True"
},
{
"Name": "CustomThing2",
"Value": "17"
}
]
},
{
"ProductID": "ShakerBottleBlue",
"Quantity": 2,
"Price": 3.0,
"IsAutoShip": true,
"Misc": []
}
]
OnlineOrder Information
OnlineOrderDetail Information
**StatusCode: 200 (Ok) - **
{
}
**StatusCode: 400 (Bad Request) - **
{
"error": "400",
"error_description": "Bad Request"
}