Question

Line details are not adding in shipment using custom Endpoint

  • 28 March 2024
  • 3 replies
  • 40 views

Userlevel 6
Badge +3

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": [
        {
            "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


3 replies

Userlevel 7
Badge +5

@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’

Userlevel 6
Badge +3

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



 

Userlevel 7
Badge +5

@praveenpo please report a bug via support case

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved