Multi-package shipping updates

Market availability: CA and MX

The Walmart Marketplace Multi-package shipping updates API lets sellers get shipping updates on orders fulfilled in multiple packages.


Endpoint

POST https://marketplace.walmartapis.com/v3/orders/\{purchaseOrderId\}/multiPackageShipping

Function

Use this API to:

  • Update the order-line status parameter to Shipped.
  • Associate multiple packages with a purchase order.
  • Provide carrier information, tracking numbers, and tracking URLs.
  • Specify shipping dates, package statuses, and shipment identifiers.
  • Identify shipped quantities and countries of origin.
  • Retrieve updated order and shipment information.

Request sample

curl --request POST \ --url https://marketplace.walmartapis.com/v3/orders/purchaseOrderId/multiPackageShipping \ --header 'WM_GLOBAL_VERSION: 3.1' \ --header 'WM_MARKET: us' \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data '
{ "orderShipment": { "orderLines": { "orderLine": [ { "lineNumber": "string", "shipFromCountry": "CA", "orderLineStatuses": { "orderLineStatus": [ { "status": "Shipped", "asn": { "packageASN": "string", "palletASN": "string" }, "statusQuantity": { "unitOfMeasurement": "EACH", "amount": "1" }, "shipmentPackages": { "shipmentPackage": [ { "shipDateTime": "2026-12-01T21:51:48.771Z", "carrierName": { "otherCarrier": "string", "carrier": "string" }, "methodCode": "string", "trackingNumber": "string", "trackingURL": "string", "packageStatus": "string", "shipmentNo": "string", "actualDeliveryDateTime": "2026-12-01T21:51:48.771Z" } ] } } ] } } ] }, "shipments": [ { "shipmentLines": [ { "primeLineNo": "string", "shipmentLineNo": "string", "quantity": { "unitOfMeasurement": "EACH", "amount": "1" }, "shipFromCountry": "MX" } ], "carrier": "string", "shipmentPackages": [ { "trackingNumber": "string", "trackingURL": "string" } ] } ] }
}
'

Modify your code

1. Replace the purchase order ID

Replace the purchaseOrderId parameter with the purchase order ID.

Example:

--url https://marketplace.walmartapis.com/v3/orders/309102365639368/multiPackageShipping

2. Specify the Walmart Marketplace

Example:

--header 'WM_MARKET: us'

3. Specify the order line

Replace:

"lineNumber": "string"

with the order line number of the items being shipped:

"lineNumber": "1"

4. Specify the shipping origin

Example:

"shipFromCountry": "CA"

5. Specify the order-line status and quantity

Update the statusQuantity object with the quantity being shipped.

Example:

"statusQuantity": {

"unitOfMeasurement": "EACH",

"amount": "1"

}

6. Provide package and pallet identifiers

Replace the placeholder values with the applicable identifiers, according to the API requirements.

7. Provide package-level shipping information

Update each shipmentPackage object with the appropriate package details.

  • shipDateTime: Date and time when the package was shipped
  • carrierName: Carrier responsible for transporting the package
  • otherCarrier: Alternate carrier
  • carrier: Carrier identifier or name supported by the API
  • methodCode: Shipping service or method associated with the package
  • trackingNumber: Tracking number assigned to the package
  • trackingURL: URL to track the package
  • packageStatus: Shipping status of the package
  • shipmentNo: Shipment identifier of the package
  • actualDeliveryDateTime: Actual delivery date and time.

8. Specify shipment information

Within the shipments array, update the shipment line numbers, quantities, carrier, and package information.

Example:

"quantity": {

"unitOfMeasurement": "EACH",

"amount": "1"

}


Response samples

200 - Sample 1-CA

{ "order": { "purchaseOrderId": "309102365639368", "customerOrderId": "701769067266140", "customerEmailId": "[email protected]", "orderDate": 1769067267141, "shippingInfo": { "phone": "6657555657", "estimatedDeliveryDate": 1769371200000, "estimatedShipDate": 1769151600000, "methodCode": "Express", "postalAddress": { "name": "geetha kunchepu", "address1": "Manitoba Public Insurance", "address2": null, "city": "Winnipeg", "state": "MB", "postalCode": "R2W 3T3", "country": "CA", "addressType": "RESIDENTIAL" }, "carrierMethodName": null }, "orderLines": { "orderLine": [ { "lineNumber": "1", "shipFromCountry": "CA", "item": { "productName": "ANIMALPEDIGREEtwo", "sku": "EDF07661449630550" }, "charges": { "charge": [ { "chargeType": "PRODUCT", "chargeName": "ItemPrice", "chargeAmount": { "currency": "CAD", "amount": 200 }, "tax": { "taxName": "PST", "taxAmount": { "currency": "CAD", "amount": 24 } }, "isDiscount": false, "discountType": null }, { "chargeType": "SHIPPING", "chargeName": "SHIPPING", "chargeAmount": { "currency": "CAD", "amount": 16 }, "tax": { "taxName": "PST", "taxAmount": { "currency": "CAD", "amount": 1.92 } }, "isDiscount": false, "discountType": null }, { "chargeType": "PRODUCT", "chargeName": "ITEM_PRICE_AFTER_DISCOUNT", "chargeAmount": { "currency": "CAD", "amount": 200 }, "tax": { "taxAmount": { "currency": "CAD", "amount": 0 } }, "isDiscount": null, "discountType": null }, { "chargeType": "TAX", "chargeName": "TAX", "chargeAmount": { "currency": "CAD", "amount": 25.92 }, "tax": { "taxAmount": { "currency": "CAD", "amount": 0 } }, "isDiscount": false, "discountType": null } ] }, "orderLineQuantity": { "unitOfMeasurement": "EACH", "amount": "1" }, "orderLineStatuses": { "orderLineStatus": [ { "status": "Shipped", "subSellerId": null, "statusQuantity": { "unitOfMeasurement": "EACH", "amount": "1" }, "cancellationReason": null, "trackingInfo": { "shipDateTime": 1769084719000, "carrierName": { "otherCarrier": null, "carrier": "FedEx" }, "methodCode": "Standard", "carrierMethodCode": null, "trackingNumber": "349773896742", "trackingURL": "https://example.com/track?number=794644792798", "packageStatus": "Shipped", "shipmentNo": "43a99a00-d903-43b9-91cd-fe7dcd9fa744", "actualDeliveryDateTime": 16725225600000 }, "returnCenterAddress": null, "sellerOrderId": null, "shipmentPackages": { "shipmentPackage": [ { "shipDateTime": 1769084719000, "carrierName": { "otherCarrier": null, "carrier": "FedEx" }, "methodCode": "Standard", "carrierMethodCode": null, "trackingNumber": "349773896742", "trackingURL": "https://example.com/track?number=794644792798", "packageStatus": "Shipped", "shipmentNo": "43a99a00-d903-43b9-91cd-fe7dcd9fa744", "actualDeliveryDateTime": null }, { "shipDateTime": 1769084719000, "carrierName": { "otherCarrier": null, "carrier": "FedEx" }, "methodCode": "Standard", "carrierMethodCode": null, "trackingNumber": "944223118435", "trackingURL": "https://example.com/track?number=794644792799", "packageStatus": "Shipped", "shipmentNo": "43a99a00-d903-43b9-91cd-fe7dcd9fa744", "actualDeliveryDateTime": null } ] } } ] }, "refund": null, "fulfillment": { "fulfillmentOption": "S2H", "shipMethod": "EXPEDITED", "storeId": null, "offerId": "46067EC8F029354ABC1668C9AFCCD106", "pickUpDateTime": null, "pickUpBy": null, "shippingProgramType": null, "predictedShipNodeId": "10011361291", "predictedShipNodeName": null } } ] } }
}

200 - Sample 2-MX

{ "order": { "purchaseOrderId": "609003596174981", "customerOrderId": "900000026224072", "customerEmailId": "[email protected]", "kycDetails": { "kycIdType": "RFC", "kycIdValue": "VECJ880326XYZ" }, "orderDate": 1738553005432, "shippingInfo": { "phone": "5103295632", "estimatedDeliveryDate": 1738958400000, "estimatedShipDate": 1738948400000, "postalAddress": { "name": "random test", "address1": "Estela", "address2": "34", "address3": "GUADALUPE TEPEYAC", "address4": "GUSTAVO A MADERO", "city": "CIUDAD DE MEXICO", "state": "DISTRITO FEDERAL", "postalCode": "07840", "country": "MX", "addressType": null }, "carrierMethodName": null }, "totalLines": "1", "totalQuantity": "1", "orderLines": { "orderLine": [ { "primeLineNumber": "1", "coLineNumber": "1", "item": { "upc": "00726142941159", "offerId": "E5C45E64802A3B89B9A68B9A8B61641A", "productName": "ArtCraftE2E-07261429411591", "sku": "SKU-07261429411591", "condition": "New", "imageUrl": "https://example.com/images/mock-product-image.jpg", "unitPrice": { "currency": "MXN", "amount": 20 }, "unitPriceWithoutTax": { "currency": "MXN", "amount": 17.24 } }, "charges": { "charge": [ { "chargeType": "SHIPPING", "chargeAmount": { "currency": "MXN", "amount": 3.44 }, "tax": { "taxName": "SHIP_IVA_TAX", "taxAmount": { "currency": "MXN", "amount": 0.56 } }, "taxDetails": [ { "taxName": "SHIP_IVA_TAX", "taxAmount": { "currency": "MXN", "amount": 0.56 } } ], "isDiscount": null, "discountType": null }, { "chargeType": "PRODUCT", "chargeAmount": { "currency": "MXN", "amount": 51.72 }, "tax": { "taxName": "TOTAL_TAX", "taxAmount": { "currency": "MXN", "amount": 8.28 } }, "taxDetails": [ { "taxName": "TOTAL_TAX", "taxAmount": { "currency": "MXN", "amount": 8.28 } } ], "isDiscount": null, "discountType": null } ] }, "orderLineQuantity": { "unitOfMeasurement": "EACH", "amount": "1" }, "orderLineStatuses": { "orderLineStatus": [ { "status": "Shipped", "subSellerId": null, "statusQuantity": { "unitOfMeasurement": "EACH", "amount": "1" }, "cancellationReason": null, "trackingInfo": null, "returnCenterAddress": null, "sellerOrderId": null, "shipmentPackages": null } ] }, "refund": null, "shippingMethod": "STANDARD", "soPrimeLineSubLineNo": "900000026224072-1-1", "promiseDeliveryDate": "2025-02-07T20:00:00.000+0000", "isMSIEnabled": "N", "seller": { "id": "10011350122", "name": "gsemxoutbmx205 - 10011350122 - MP", "shipNodeType": "SellerFulfilled" }, "isWFSEnabled": "N", "fulfillmentType": "S2H" } ] }, "shipments": [ { "shipmentLines": [ { "primeLineNo": "1", "shipmentLineNo": "1", "quantity": { "unitOfMeasurement": "EACH", "amount": "1" }, "shipFromCountry": "MX" } ], "shipmentNo": "699002500_1", "status": "Shipped", "packageNo": "699002500_1", "isSellerOwnedShipment": "Y", "carrier": "Seller_Owned", "trackingNumber": "101341432184", "shipmentAdditionalDate": { "expectedShipmentShippedDate": "2025-02-05T21:00:00.000+0000" }, "shipmentPackages": [ { "trackingNumber": "101341432195", "status": "Shipped", "shipmentAdditionalDate": { "expectedShipmentShippedDate": "2026-06-08T10:00:00.000+0000" }, "trackingURL": "https://example.com/track?number=794644792798" }, { "trackingNumber": "101341432184", "status": "Shipped", "shipmentAdditionalDate": { "expectedShipmentShippedDate": "2026-06-08T10:00:00.000+0000" }, "trackingURL": "https://example.com/track?number=794644792798" } ], "trackingURL": "https://example.com/track?number=794644792798" } ], "orderTotal": { "currency": "MXN", "amount": 64 } }
}

400

{ "errors": [ { "code": "INVALID_REQUEST_CONTENT.GMP_ORDER_API", "description": "Invalid request content.", "info": "Request content is not valid.", "severity": "ERROR", "category": "DATA" } ]
}

401

{ "errors": [ { "code": "UNAUTHORIZED.GMP_ORDER_API", "description": "Unauthorized request.", "info": "Authentication failed. Verify your credentials.", "severity": "ERROR", "category": "APPLICATION" } ]
}

403

{ "errors": [ { "code": "FORBIDDEN.GMP_ORDER_API", "description": "Access denied.", "info": "You do not have permission to perform this action.", "severity": "ERROR", "category": "APPLICATION" } ]
}

404

{ "errors": [ { "code": "NOT_FOUND.GMP_ORDER_API", "description": "Resource not found.", "info": "The requested purchase order was not found.", "severity": "ERROR", "category": "DATA" } ]
}

429

{ "code": "REQUEST_THRESHOLD_VIOLATED", "description": "Too many requests in a given amount of time.", "info": "You have exceeded the rate limit for this API. Retry after the time indicated in the Retry-After header.", "severity": "ERROR", "category": "SYSTEM", "causes": [], "errorIdentifiers": {}, "field": "RateLimitExceeded"
}

500

{ "errors": [ { "code": "INTERNAL_SERVER_ERROR.GMP_ORDER_API", "description": "An internal server error occurred.", "info": "Retry the request. If the issue persists, contact support.", "severity": "ERROR", "category": "SYSTEM" } ]
}

Result


A successful request returns an HTTP 200 response code and updated order information, including shipping statuses and package-level tracking details.

Next steps


  • After successfully submitting a multi-package shipping update, review the returned order information to verify that the correct order lines have a Shipped status parameter.
  • Confirm each package contains the appropriate carrier information, tracking number, tracking URL, and shipment details. Update your order management system with the returned information to maintain accurate shipment records and support package-level tracking.
  • For unsuccessful requests, review the HTTP status code and error response, correct any invalid shipment or authentication information, and retry as appropriate. Before retrying after an uncertain server or network failure, verify whether the original shipping update was processed to avoid duplicate shipment records.

Did this page help you?