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

NameDescriptionTypeAdditional 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

ItemOrderedSinceDateViewModel
NameDescriptionTypeAdditional 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

Sample:
<ItemOrderedSinceDateViewModel>
  <OrderID>1</OrderID>
</ItemOrderedSinceDateViewModel>

application/json, text/json

Sample:
{
  "OrderID": 1
}