Skip to content

getLastNSampleOrderDates ​

Returns the last N order DATES for a given NI user and HCP

Request ​

http
GET /rest/sample/lastOrderDates

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Parameters ​

ParameterTypeRequiredDescription
contactId-NocontactId of a contact in SAM. Either contactId or contactUUID must be provided.
contactUUID-NoThe UUID of a contact created locally on client that is NOT in SAM. Either contactId or contactUUID must be provided.
maxOrders-NoThe maximum number of last order dates to return. Defaults to 100 if no value sent.

Response ​

200 OK ​

Returns an array of dates and their orderIds:

json
[
  {
    "sampleOrderId": 14,
    "sampleDateCreated": 1405377703526
  },
  {
    "sampleOrderId": 13,
    "sampleDateCreated": 1405377703453
  },
  {
    "sampleOrderId": 12,
    "sampleDateCreated": 1405340862911
  },
  {
    "sampleOrderId": 11,
    "sampleDateCreated": 1405340862847
  },
  {
    "sampleOrderId": 10,
    "sampleDateCreated": 1405340471066
  }
]

Errors ​

ExceptionDescription
WSInvalidParameterExceptionSee Error Definitions
WSInvalidAuthTokenExceptionSee Error Definitions
WSSampleServiceExceptionSee Error Definitions
WSCacheServiceExceptionSee Error Definitions