Skip to content

getStockLevelsForReconciliation ​

Returns the necessary stock levels per Sample product since last reconciliation period including: -Total Stock Received -Total Stock Issued -Total Stock Recorded (for last recon period)

Request ​

http
GET /rest/sample/stockLevelsForReconciliation

Headers ​

HeaderRequiredDescription
x-nextinteract-authtokenYesAuth token returned from loginUser

Response ​

200 OK ​

Returns an array of last known recorded stock levels for each Sample. NOTE: if the User has never reconciled that sample product then the isFirstRecon flag will be true and the client app will need to collect this value from the user and enforce a comment.

json
[
  {
    "sampleId": 1,
    "sampleName": "ALPHAGAN P® 5mL",
    "lastReconDate": 1406988000000,
    "stockReceived": 168,
    "isFirstRecon": false,
    "stockRecorded": 25,
    "stockIssued": 420
  },
  {
    "sampleId": 2,
    "sampleName": "COMBIGAN® 5mL",
    "lastReconDate": 1406988000000,
    "stockReceived": 84,
    "isFirstRecon": false,
    "stockRecorded": 16,
    "stockIssued": 140
  },
  {
    "sampleId": 4,
    "sampleName": "GANFORT PF® 0.3/5 12x3mL",
    "lastReconDate": null,
    "stockReceived": 0,
    "isFirstRecon": true,
    "stockRecorded": null,
    "stockIssued": 0
  },
  {
    "sampleId": 3,
    "sampleName": "GANFORT® 0.3/5 3mL",
    "lastReconDate": null,
    "stockReceived": 0,
    "isFirstRecon": true,
    "stockRecorded": null,
    "stockIssued": 0
  },
  {
    "sampleId": 5,
    "sampleName": "LUMIGAN® 3mL",
    "lastReconDate": null,
    "stockReceived": 0,
    "isFirstRecon": true,
    "stockRecorded": null,
    "stockIssued": 0
  },
  {
    "sampleId": 6,
    "sampleName": "LUMIGAN® PF 12x3mL",
    "lastReconDate": null,
    "stockReceived": 0,
    "isFirstRecon": true,
    "stockRecorded": null,
    "stockIssued": 0
  },
  {
    "sampleId": 8,
    "sampleName": "OPTIVE ADVANCED® 3mL",
    "lastReconDate": null,
    "stockReceived": 0,
    "isFirstRecon": true,
    "stockRecorded": null,
    "stockIssued": 0
  },
  {
    "sampleId": 7,
    "sampleName": "OPTIVE® 3mL",
    "lastReconDate": null,
    "stockReceived": 0,
    "isFirstRecon": true,
    "stockRecorded": null,
    "stockIssued": 0
  },
  {
    "sampleId": 9,
    "sampleName": "OPTIVE® SENSITIVE™ 5x0.4mL",
    "lastReconDate": null,
    "stockReceived": 0,
    "isFirstRecon": true,
    "stockRecorded": null,
    "stockIssued": 0
  },
  {
    "sampleId": 10,
    "sampleName": "REFRESH LIQUIGEL® 12x3mL",
    "lastReconDate": null,
    "stockReceived": 0,
    "isFirstRecon": true,
    "stockRecorded": null,
    "stockIssued": 0
  },
  {
    "sampleId": 11,
    "sampleName": "REFRESH TEARS PLUS® 12x3mL",
    "lastReconDate": null,
    "stockReceived": 0,
    "isFirstRecon": true,
    "stockRecorded": null,
    "stockIssued": 0
  }
]

Errors ​

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