Create an Inward Consignment Via JSON Request

Create inward consignment

POST https://{{workspace}}.myeshopbox.com/api/v1/createConsignmentApi

This endpoint allows you to create an inward consignment using the following JSON request

Headers

Request Body

{
 "id": "7633",
 "accountId": "28",
 "consignmentNumber": "CON/45/873",
 "consignmentType": "INWARD",
 "fromPartyID": "8",
 "toPartyID": "72",
 "itemsFileUrl": "https://storage.cloud.google.com/fileItems.appspot.com/items.pdf",
 "status": "CREATING",
 "totalBoxes": 0,
 "processedBoxes": 0,
 "pendingBoxes": 0
}
curl --location -g --request POST 'https://{{workspace}}.myeshopbox.com/api/v1/createConsignmentApi' \
--header 'ProxyHost: <<accountSlug>>' \
--header 'Authorization: Bearer XXXX' \
--header 'Content-Type: application/json' \
--data-raw '{
    "documentNumber": "abc123",
    "documentDate": "2022-12-18 00:00:00",
    "fromLocationCode": "XXLG",
    "toLocationCode": "ERAY",
    "productDetails": [
        {
            "productId": "testing5",
            "quantity": 3,
            "manufacturing_date": "",
            "expiry_date": "",
            "batch_code": ""
        },
        {
            "productId": "testing1",
            "quantity": 9,
            "manufacturing_date": "02-Jun-22",
            "expiry_date": "",
            "batch_code": ""
        },
        {
            "productId": "testing",
            "quantity": 9,
            "manufacturing_date": "",
            "expiry_date": "02-Jun-23",
            "batch_code": ""
        },
        {
            "productId": "testing2",
            "quantity": 9,
            "manufacturing_date": "",
            "expiry_date": "",
            "batch_code": "batch11"
        }
    ]
}'

Last updated