Update Shipment Line Items

View as Markdown

Updates the line items for a specific shipment. The request body must include the complete list of line items as returned by the GET /{shipmentId}:getLineItems endpoint — partial updates are not supported. Retrieve the current line items first, modify the desired fields, and submit the full payload.

Authentication

AuthorizationBearer

Authentication using Personal Access Token (PAT) token or OAuth2

Path parameters

shipmentIdintegerRequired
Unique identifier of the shipment

Request

This endpoint expects an object.
itemslist of objectsRequired

Complete list of line items for the shipment. Must include all line items — partial updates are not supported

Response

OK
errorobject
Error details if the update was not successful
idlong
Unique identifier of the shipment
is_successboolean
Indicates whether the update was successful
shipment_line_itemslist of objects or null
List of line item changes applied to the shipment

Errors

400
Bad Request Error