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:
internal reception (in) of finished good
internal reception (in) of supplementary inventory
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
Actions can be done:
list
create, update, delete
Internal Material Receipt (Master and Details)
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/full/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Available filter parameters:
Organization
DocumentNo
MovementDate
BPartner
Warehouse
Return: JSON object with next format:
{
"data": [
{
"Organization": "Organization A - HeadOffice",
"Created": "2013-05-29 11:20:18+0300",
"CreatedBy": "AdminTitular",
"Updated": "2013-05-29 11:22:25+0300",
"UpdatedBy": "AdminTitular",
"DocumentNo": "1000900",
"DocType": "Bon primire",
"WorkOrderReference": "WO 12345",
"Description": "Test Case - 400 (Material Delivery - No Invoice)",
"MovementDate": "2013-05-29 00:00:00+0300",
"PriceList": "Purchasing RON",
"BPartner": null,
"BPartnerName": null,
"Warehouse": "Warehouse-1 A0",
"TrxOrganization": "Organization A - HeadOffice",
"Activity": null,
"Project": "ABC",
"DocumentStatus": "Completed",
"DocumentAction": "Close",
"lines": [
{
"Organization": "Organization A - HeadOffice",
"Created": "2013-05-29 11:20:34+0300",
"CreatedBy": "AdminTitular",
"Updated": "2013-05-29 11:21:39+0300",
"UpdatedBy": "AdminTitular",
"Line": 10,
"Product": "T400-NA-FIFO-WH",
"Locator": "Standard",
"ProductName": "T400-NA-FIFO-WH",
"Price": 1.23,
"Description": null,
"QtyEntered": 3,
"UOM": "Each",
"Charge": "Diverse"
}
]
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/full/create/{version}?accessToken={access_token}
Method: POST
Return: document no for success or error message (start with "ERROR: ")
Data format:
{
"Organization": "Organization A - HeadOffice",
"DocumentNo": null,
"DocType": "Bon primire",
"WorkOrderReference": "WO 12345",
"Description": "Test Case - 400 (Material Delivery - No Invoice)",
"MovementDate": "2013-05-29 00:00:00+0300",
"PriceList": "Purchasing RON",
"BPartner": null,
"Warehouse": "Warehouse-1 A0",
"TrxOrganization": "Organization A - HeadOffice",
"Activity": null,
"Project": "ABC",
"DocumentAction": "Complete",
"lines": [
{
"Line": 10,
"Product": "T400-NA-FIFO-WH",
"Price": 1.23,
"Description": null,
"QtyEntered": 3,
"Charge": "Diverse"
}
]
}
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Available filter parameters:
Organization
DocumentNo
MovementDate
BPartner
Warehouse
Return: JSON object with next format:
{
"data": [
{
"Organization": "Organization A - HeadOffice",
"Created": "2013-05-29 11:20:18+0300",
"CreatedBy": "AdminTitular",
"Updated": "2013-05-29 11:22:25+0300",
"UpdatedBy": "AdminTitular",
"DocumentNo": "1000900",
"DocType": "Bon primire",
"WorkOrderReference": "WO 12345",
"Description": "Test Case - 400 (Material Delivery - No Invoice)",
"MovementDate": "2013-05-29 00:00:00+0300",
"PriceList": "Purchasing RON",
"BPartner": null,
"BPartnerName": null,
"Warehouse": "Warehouse-1 A0",
"TrxOrganization": "Organization A - HeadOffice",
"Activity": null,
"Project": "ABC",
"DocumentStatus": "Completed",
"DocumentAction": "Close"
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/create/{version}?accessToken={access_token}
Method: POST
Return: document no for success or error message (start with "ERROR: ")
Data format:
{
"Organization": "Organization A - HeadOffice",
"DocumentNo": null,
"DocType": "Bon primire",
"WorkOrderReference": "WO 12345",
"Description": "Test Case - 400 (Material Delivery - No Invoice)",
"MovementDate": "2013-05-29 00:00:00+0300",
"PriceList": "Purchasing RON",
"BPartner": null,
"Warehouse": "Warehouse-1 A0",
"TrxOrganization": "Organization A - HeadOffice",
"Activity": null,
"Project": "ABC",
"DocumentAction": "Complete"
}
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/update/{version}?accessToken={access_token}&DocumentNo={document_no}
Method: POST
Return: document no for success or error message (start with "ERROR: ")
Data format:
{
"Organization": "Organization A - HeadOffice",
"DocType": "Bon primire",
"WorkOrderReference": "WO 12345",
"Description": "Test Case - 400 (Material Delivery - No Invoice)",
"MovementDate": "2013-05-29 00:00:00+0300",
"PriceList": "Purchasing RON",
"BPartner": null,
"Warehouse": "Warehouse-1 A0",
"TrxOrganization": "Organization A - HeadOffice",
"Activity": null,
"Project": "ABC",
"DocumentAction": null
}
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/delete/{version}?accessToken={access_token}&DocumentNo={document_no}
Method: POST
Return: 'Deleted' for success or error message (start with "ERROR: ")
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/process/{version}?accessToken={access_token}&DocumentNo={document_no}&DocumentAction={document_action}
Method: POST
Return: Document status for success or error message (start with "ERROR: ")
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/line/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}&DocumentNo={document_no}
Method: GET
Available filter parameters:
Line
Product
Return: JSON object with next format:
{
"data": [
{
"Organization": "Organization A - HeadOffice",
"Created": "2013-05-29 11:20:34+0300",
"CreatedBy": "AdminTitular",
"Updated": "2013-05-29 11:21:39+0300",
"UpdatedBy": "AdminTitular",
"Line": 10,
"Product": "T400-NA-FIFO-WH",
"Locator": "Standard",
"ProductName": "T400-NA-FIFO-WH",
"Price": 1.23,
"Description": null,
"QtyEntered": 3,
"UOM": "Each",
"Charge": "Diverse"
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/line/create/{version}?accessToken={access_token}&DocumentNo={document_no}
Method: POST
Return: line no for success or error message (start with "ERROR: ")
Data format:
{
"Line": 10,
"Product": "T400-NA-FIFO-WH",
"Price": 1.23,
"Description": null,
"QtyEntered": 3,
"Charge": "Diverse"
}
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/line/update/{version}?accessToken={access_token}&DocumentNo={document_no}&Line={line_no}
Method: POST
Return: line no for success or error message (start with "ERROR: ")
Data format:
{
"Line": 10,
"Product": "T400-NA-FIFO-WH",
"Price": 1.23,
"Description": null,
"QtyEntered": 3,
"Charge": "Diverse"
}
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/line/delete/{version}?accessToken={access_token}&DocumentNo={document_no}&Line={line_no}
Method: POST
Return: 'Deleted' for success or error message (start with "ERROR: ")
URL: https://api.socratecloud.com/webapi/rest/internal_material_receipt/print/{version}?accessToken={access_token}&DocumentNo={document_no}
Method: GET
Return: PDF file