The below API is used to create new Shipment.
Request: POST
Signature: /api/mobile/CreateShipmentV2?Token={Login_Token}
Body:
{"AddToExisting":BOOLEAN_VARIABLE,"BLNum":"SHIPMENT_NUMBER","WFCode":"WORKFLOW_NAME/CODE","Customer":"CONTRACTUAL_CUSTOMER_NAME","WOCount":NUMBER_OF_WORK_ORDERS}Response:
{ "Code": 1, "Info": "", "RowsAffected": 0, "Scalar": "SHIPMENT_NUMBER", "Identity": 0, "RetInfo": [ WORK_ORDER_ID, WORK_ORDER_ID ]}Sample: /api/mobile/CreateShipmentV2?Token=VomYEMiECFFyAQ3==
CASE 1: When the user is trying to create a new Shipment and the Contractual Customer is REQUIRED as defined in the Header Fields.
Body:
{"AddToExisting":false,"BLNum":"TD1234","WFCode":"IMPORT","Customer":"Logistic Pvt. Ltd.","WOCount":1}Response:
{ "Code": 1, "Info": "", "RowsAffected": 0, "Scalar": "TD1234", "Identity": 0, "RetInfo": [ 12563 ]}CASE 2: When the user is trying to create a new Shipment and the Contractual Customer is NOT REQUIRED as defined in the Header Fields.Body: {"AddToExisting":false,"BLNum":"TD12345","WFCode":"IMPORT","WOCount":2}Response:{ "Code": 1, "Info": "", "RowsAffected": 0, "Scalar": "TD12345", "Identity": 0, "RetInfo": [ 12564, 12565 ]}CASE 3: When the user is trying to add work orders to an existing Shipment.Body: {"AddToExisting":true,"BLNum":"TD12345","WOCount":1}Response:{ "Code": 1, "Info": "", "RowsAffected": 0, "Scalar": "TD12345", "Identity": 0, "RetInfo": [ 12566 ]}Things to know about this API: