Skip to main content

Hi Team,

Line Details are not adding while creating shipment from REST API using custom endpoint.

Below is the JSON used.

Note: Tried same JSON using Default endpoint (22.200.001),line details are adding but ship via is not updating using the default endpoint.

{
    "Type": {
        "value": "Shipment"
    },
    "CustomerID": {
        "value": "ASHTEST"
    },
    "WarehouseID": {
        "value": "MAIN"
    },
    "Operation": {
        "value": "Issue"
    },
    "ShipmentDate": {
        "value": "02/28/2024"
    },
    "Details": i
        {
            "OrderNbr": {
                "value": "000041"
            },
            "OrderType": {
                "value": "SO"
            },
            "OrderLineNbr": {
                "value": 1
            },
            "InventoryID": {
                "value": "DV1221"
            },
            "ShippedQty": {
                "value": 1
            },
            "UOM": {
                "value": "EA"
            }
        }
    ],
    "Packages": <
        {
            "BoxID": {
                "value": "BOX"
            },
            "Description": {
                "value": "Single box created per order"
            },
            "TrackingNbr": {
                "value": "TestTrackingValue"
            },
            "Confirmed": {
                "value": "true"
            },
            "Weight": {
                "value": "5.2"
            }
        }
    ],
    "ShipVia": {
        "value": "FDX"
    }
}


Thanks in Advance

@praveenpo  in the default endpoint there is a special code that processes the shipment lines. In a custom endpoint that code is not triggered. 

The recommendation here is that your custom endpoint should be derived from the default one, using ‘extend endpoint’


@Dmitrii Naumov Tried with both Default and Default extended endpoint but with that ship via is not updating



 


@praveenpo please report a bug via support case


Reply