It allows you:
to view your internal user inventory confirmation
Prerequisites:
In order to use this API Method for PUT there must be accomplished the following requirements in SocrateCloud:
to have an Organization active
to have an Role active
Columns that can be used as filters:
Organization
DocumentNo
InternalUseInventoryNo
Warehouse_ID
Warehouse
DocumentStatus
Actions can be done:
list
update
Internal Use Inventory fields (Master and Details)
URL: https://api.socratecloud.com/webapi/rest/internal_use_inventory/confirmation/full/list/{version}?accessToken={access_token}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "Demo SRL",
"Created": "2018-09-05 13:16:06+0300",
"CreatedBy": "Ionut Ursuleanu",
"Updated": "2018-09-07 11:56:01+0300",
"UpdatedBy": "Ionut Ursuleanu",
"DocumentNo": "1000017",
"Description": "Ionut Ursuleanu: Aprobat - 2018-09-07 11:55:48.027",
"InternalUseInventoryNo": "1035902",
"Warehouse_ID": 1000001,
"Warehouse": "Standard",
"IsApproved": true,
"ApprovalAmt": null,
"DocumentStatus": "Completed",
"DocumentAction": "Close",
"lines": [
{
"Organization": "Demo SRL",
"Created": "2018-09-05 13:16:07+0300",
"CreatedBy": "Ionut Ursuleanu",
"Updated": "2018-09-07 11:55:53+0300",
"UpdatedBy": "Ionut Ursuleanu",
"InternalUseInventoryLine_ID": 1019671,
"Line": 10,
"Product": "9195+",
"ProductName": "9195",
"Description": null,
"TargetQty": 10,
"ConfirmedQty": 10,
"DifferenceQty": 0,
"ScrappedQty": 0
}
]
}],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/internal_use_inventory/confirmation/full/update/{version}?accessToken={access_token}&DocumentNo={document_no}
Method: POST
Return: document no for success or error message (start with "ERROR: ")
Data format:
{
"Description":"test description",
"DocumentAction":"Complete",
"lines":[
{
"Line":10,
"ConfirmedQty":12,
"ScrappedQty":0,
"Description": "line Description"
}
]
}
URL: https://api.socratecloud.com/webapi/rest/internal_use_inventory/confirmation/process/{version}?accessToken={access_token}&DocumentNo={document_no}&DocumentAction={document_action}
Method: POST
Return: Document status for success or error message (start with "ERROR: ")