It allows you:
to view and print your shipments - ordered descending by created date and document date
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
OrderNo
OrderReference
DocumentNo
BPartner
Date
DocumentStatus
LastModified (UTC time format ISO 8601: yyyy-MM-dd HH:mm:ss Z from M_InOut). The sign used for comparison is ”>” (exclusive). Use this filter to get all the shipments modified after the date/time value sent in this parameter.
eg: LastModified=2014-06-13 12:40:00 +0300 if you are in Romania or LastModified=2014-06-13%2012:40:00%20%2b0300
Actions can be done:
list
update
Customer Shipment fields (Master and Details)
URL: https://api.socratecloud.com/webapi/rest/shipment/full/list/{version}?startRow={0}&endRow={100}&accessToken={access_token}
Method: GET
Return: JSON object with next format:
{
"data": [
{
"Organization": "Demo SRL",
"Created": "2014-01-08 08:50:05+0200",
"CreatedBy": "SuperUser",
"Updated": "2014-01-08 08:50:37+0200",
"UpdatedBy": "SuperUser",
"DocumentNo": "500000",
"DocType": "Customer Shipment",
"OrderNo": "50201",
"OrderReference": null,
"Description": null,
"Date": "2014-01-08 00:00:00+0200",
"BPartner": "some_bp",
"BPartnerName": "some_bp",
"BPartnerLocation": "Brasov",
"Warehouse": "MP",
"SalesRep": "AdminTitular",
"ReturnTransaction": false,
"ReturnSourceShipmentNo": null,
"Weight": 1,
"DocumentStatus": "Reversed",
"TrackingNo": null,
"lines": [
{
"Organization": "Demo SRL",
"Created": "2014-01-08 08:50:09+0200",
"CreatedBy": "SuperUser",
"Updated": "2014-01-08 08:50:15+0200",
"UpdatedBy": "SuperUser",
"Line": 10,
"Product": "some_product",
"ProductName": "some_product",
"ProductCustomerCode": null,
"Description": null,
"QtyEntered": 1500,
"UOM": "Each"
}
],
"OrganizationDetails": {
"OrganizationName": "Demo SRL",
"Address": "Zambilelor 4",
"City": "Brasov",
"CityDistrict": null,
"Region": "Brasov",
"Country": "Romania",
"PostalCode": "500381",
"Phone": "0268-314446",
"Fax": "0268314447",
"Email": "office@bitsoftware.ro",
"DUNS": "J08/3982/9219",
"CUI": "RO 5037256321345"
},
"BPartnerDetails": {
"BPartnerName": "some_bp",
"Address": "Uranus 33",
"City": "Brasov",
"CityDistrict": null,
"Region": "Brasov",
"Country": "Romania",
"PostalCode": null,
"ContactName": "contact",
"ContactPhone": null,
"ContactFax": null,
"ContactEmail": "contact@gmail.com",
"DUNS": "J17/576/19291",
"CUI": "RO 1633331491"
}
}
],
"totalRows": 1
}
URL: https://api.socratecloud.com/webapi/rest/shipment/update/{version}?accessToken={access_token}&DocumentNo={document_no}
Method: POST
Return: document no for success or error message (start with "ERROR: ")
Data format:
{
"TrackingNo": "1027469"
}
URL: https://api.socratecloud.com/webapi/rest/shipment/print{version}?accessToken={access_token}&DocumentNo={document_no}
Method: GET
Return: PDF file