Appearance
getLastNSampleOrderDates ​
Returns the last N order DATES for a given NI user and HCP
Request ​
http
GET /rest/sample/lastOrderDatesHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
| Parameter | Type | Required | Description |
|---|---|---|---|
contactId | - | No | contactId of a contact in SAM. Either contactId or contactUUID must be provided. |
contactUUID | - | No | The UUID of a contact created locally on client that is NOT in SAM. Either contactId or contactUUID must be provided. |
maxOrders | - | No | The 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 ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSSampleServiceException | See Error Definitions |
WSCacheServiceException | See Error Definitions |