Skip to main content
Question

Line details are not adding in shipment using custom Endpoint

  • March 28, 2024
  • 3 replies
  • 84 views

praveenpo
Semi-Pro III
Forum|alt.badge.img+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

Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • March 28, 2024

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


praveenpo
Semi-Pro III
Forum|alt.badge.img+3
  • Author
  • Semi-Pro III
  • March 28, 2024

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



 


Dmitrii Naumov
Acumatica Moderator
Forum|alt.badge.img+7
  • Acumatica Moderator
  • March 28, 2024

@praveenpo please report a bug via support case