It allows you:
to insert new documents (master&details in one json file)
to view and print inventory documents (master&details in one json file)
This document is used for:
material movement confirmations
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
MovementDate
BPartner
Warehouse
DocumentStatus
Actions can be done:
list
create, update, delete
Material Movement Confirmation(Master and Lines)
material_movement_confirm\full\list
material_movement_confirm\list
Method: GET
Params: DocumentNo
Return: JSON object with next format:
{
"data": [
{
"Organization_ID": 1002889,
"Organization": "Rock Star Construct SRL",
"MovementConfirm_ID": 1004072,
"IsInTransit2": "N",
"Description": null,
"Movement_ID": 1008612,
"Movement": "618185",
"DocumentNo": "1010107",
"DocumentStatus": "Drafted",
"DocumentAction": "Complete",
"ApprovalAmt": null,
"IsApproved": "N",
"Created": "2018-08-02 15:02:46+0000",
"CreatedBy_ID": 100,
"CreatedBy": "SuperUser",
"Updated": "2018-08-02 15:02:46+0000",
"UpdatedBy_ID": 100,
"UpdatedBy": "SuperUser",
"RegisterDocument": null,
"lines": [
{
"Organization_ID": 1002889,
"Organization": "Rock Star Construct SRL",
"MovementConfirm_ID": 1004072,
"Line": 10,
"MovementLine_ID": 1007927,
"Product_ID": 1006178,
"Product": "Piatra de rau",
"ProductName": "Piatra de rau",
"ConfirmedQty": 1,
"DifferenceQty": 0,
"ScrappedQty": 0,
"Description": null,
"MovementLineConfirm_ID": 1004126,
"Created": "2018-08-02 15:02:46+0000",
"CreatedBy_ID": 100,
"CreatedBy": "SuperUser",
"Updated": "2018-08-06 15:12:01+0000",
"UpdatedBy_ID": 1008008,
"UpdatedBy": "API DEMO ROCKSTAR"
}
]
}
],
"totalRows": 1
}
Use this method only if necessary=if there are differences between quantity to deliver and Confirmed quantity.
Method: POST
Params:
MovementLineConfirm_ID
MovementConfirm_ID
Data forma (mandatory fields):
{
"ConfirmedQty": 4,
"DifferenceQty": 0,
"ScrappedQty": 0,
"UpdatedBy": "SuperUser"
}
Method: POST
Params: MovementConfirm_ID or DocumentNo
Data format:
{
"DocumentAction": "Complete"
}