Appearance
submitSampleReconciliations ​
Reconciles samples for a given User
Request ​
http
POST /rest/sample/reconcileHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
An array of SampleReconciliationJSONs i,e,
json
[
{
"userId": 3,
"sampleId": 1,
"lastReconciliationDate": 1407116619554,
"reconciliationDate": 1409708619554,
"manuallyCountedQty": 25,
"stockReceived": 124,
"totalStockStartOfPeriod": 135,
"totalStockIssued": 95,
"totalStockEndOfPeriod": 224,
"quantityVariance": 20,
"reconciliationPercent": 90.2999999999999971578290569595992565155029296875,
"reconciliationComment": "Hello I did not reconcile",
"userReconSignature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAEs_SOMEHUGETEXTHERE"
},
{
"userId": 3,
"sampleId": 2,
"lastReconciliationDate": 1407116619554,
"reconciliationDate": 1409708619554,
"manuallyCountedQty": 16,
"stockReceived": 24,
"totalStockStartOfPeriod": 75,
"totalStockIssued": 45,
"totalStockEndOfPeriod": 124,
"quantityVariance": 0,
"reconciliationPercent": 100,
"userReconSignature": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAArwAAAEs_SOMEHUGETEXTHERE"
}
]Response ​
200 OK ​
Returns the number of records successfully saved to SAM. The above example would return 2 in the response body OTHERWISE an exception should be thrown
Errors ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSInvalidSampleDataException | See Error Definitions |
WSDuplicateSampleSubmittedException | See Error Definitions |
WSSampleServiceException | See Error Definitions |
WSCacheServiceException | See Error Definitions |