GET api/order/Order/RepItemOrderedSinceDate?repDID={repDID}&productID={productID}&startDate={startDate}
Determines if a rep has an official order containing an item since the specified date. If no official order is found, or the Rep or Product ID doesn’t exist, this method will return a Bad Request response, containing details of the failure in the message body.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
repDID |
Rep who placed the order containing the item and date specified. |
string |
Required |
productID |
This is the ProductID purchased by Customer |
string |
Required |
startDate |
Only returns orders whose Order Date is on or newer than the date specified. |
date |
Required |
Body Parameters
None.
Response Information
Resource Description
Returns a ItemOrderedSinceDateViewModel object containing the last official Order # since the Start Date that a Rep placed for the item specified
ItemOrderedSinceDateViewModelName | Description | Type | Additional information |
---|---|---|---|
OrderID |
This represents the last official Order # since the Start Date that a Customer placed for the item specified. |
integer |
None. |
Response Formats
application/xml, text/xml
<ItemOrderedSinceDateViewModel> <OrderID>1</OrderID> </ItemOrderedSinceDateViewModel>
application/json, text/json
{ "OrderID": 1 }