For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
DocumentationAPI Reference
DocumentationAPI Reference
  • API Reference
      • POSTCreate Order
      • GETGet Orders
      • GETGet Order
      • GETGet Shipment
      • GETGet Shipment Timeline
      • POSTBatch Cancel Shipments
      • POSTMark Tracking Uploaded
        • PUTUpdate Shipment Address
        • GETGet Shipment Line Items
        • POSTUpdate Shipment Line Items
        • PUTBulk Update Shipping Service
        • POSTCancel Order
        • POSTCancel Shipment
        • GETGet Shipping Methods
        • GETGet Shipment Status Timeline by Order ID and Shipment ID
        • GETGet All Shipments for Order
        • GETGet Shipment Logs by Order ID and Shipment ID
        • POSTCancel Shipment by Order ID and Shipment ID
        • GETGet Shipment Logs
        • GETGet Shipment by Order ID and Shipment ID
        • POSTEstimate Fulfillment Cost For Order
        • GETGet Order Store Data
    • OpenAPI spec
LogoLogo
API ReferenceOrdersAdditional

Update Shipment Line Items

||View as Markdown|
POST
/2026-01/shipment/:shipmentId:updateLineItems
POST
/2026-01/shipment/:shipmentId:updateLineItems
$curl -X POST https://api.shipbob.com/2026-01/shipment/1:updateLineItems \
> -H "Authorization: Bearer <token>" \
> -H "Content-Type: application/json" \
> -d '{
> "items": [
> {
> "inventory_id": 789012,
> "quantity": 2,
> "fulfillment_center_id": 8,
> "id": 123456,
> "is_manually_assigned_lot": false,
> "lot_date": "2024-06-01",
> "lot_number": "LOT-2024-001"
> }
> ]
>}'
1{
2 "error": {
3 "code": "INVALID_PARAMETER",
4 "message": "string"
5 },
6 "id": 123456,
7 "is_success": true,
8 "shipment_line_items": [
9 {
10 "action": "string",
11 "inventory_id": 789012,
12 "new_value": "string",
13 "previous_value": "string"
14 }
15 ]
16}

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.

Was this page helpful?
Previous

Get Shipment Line Items

Next

Bulk Update Shipping Service

Built with

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