Ship order lines
Confirm shipment of order lines with carrier and tracking details, report shipment milestones, and record delivery.
After you acknowledge an order and hand the package to a carrier, confirm the shipment so that Walmart can share tracking details with the customer. You can ship all lines in one package, split lines across several packages, report milestones while the package is on its way, and record delivery when it arrives.
Before you begin
- Get an access token with the
orders:writescope. See Authentication. - Acknowledge the order lines. See Acknowledge orders.
- Have the carrier, tracking number and ship date for each package. To buy a label through Walmart, see Create a shipping label.
Step 1: Ship order lines in one package
Call Ship order lines. For each line, send its lineNumber and a trackingInfo object. You can also send shipQuantity to ship part of a line.
POST /v4/orders/1234567891234/shipping
Authorization: Bearer <access_token>
Content-Type: application/json{
"orderLines": [
{
"lineNumber": "1",
"shipQuantity": { "amount": 2, "unit": "EACH" },
"trackingInfo": {
"carrier": "UPS",
"trackingNumber": "1Z999AA10123456784",
"shippedDate": "2026-12-01T18:00:00Z",
"methodCode": "Standard"
}
}
]
}trackingInfo field | Required | Values |
|---|---|---|
carrier | Yes | UPS, USPS, FedEx, OnTrac, LaserShip, WALMART_GROUND, OTHER |
trackingNumber | Yes | Carrier tracking number |
shippedDate | Yes | ISO 8601 date and time |
methodCode | No | Standard, Express, SameDay, Freight |
The response confirms the time Walmart recorded the shipment.
{
"purchaseOrderId": "1234567891234",
"shippedAt": "2026-12-01T18:05:00Z"
}Step 2: Ship an order in multiple packages
When an order goes out in more than one package, call Ship an order in multiple packages instead. Send at least one entry in packages. Each package needs trackingInfo and at least one entry in lines. You can also send a packageId and the package dimensions.
POST /v4/orders/1234567891234/multi-package-shipping
Authorization: Bearer <access_token>
Content-Type: application/json{
"packages": [
{
"packageId": "PKG-1",
"trackingInfo": {
"carrier": "FedEx",
"trackingNumber": "794698765432",
"shippedDate": "2026-12-01T18:00:00Z",
"methodCode": "Express"
},
"dimensions": {
"length": 12, "width": 8, "height": 6, "dimensionUnit": "IN",
"weight": 3.5, "weightUnit": "LB"
},
"lines": [ { "lineNumber": "1", "shipQuantity": { "amount": 1, "unit": "EACH" } } ]
},
{
"packageId": "PKG-2",
"trackingInfo": {
"carrier": "FedEx",
"trackingNumber": "794698765433",
"shippedDate": "2026-12-01T18:00:00Z"
},
"lines": [ { "lineNumber": "2" } ]
}
]
}dimensionUnit is IN or CM and defaults to IN. weightUnit is LB, KG or OZ and defaults to LB. The response includes the number of packages accepted.
{
"purchaseOrderId": "1234567891234",
"shippedAt": "2026-12-01T18:05:00Z",
"packagesAccepted": 2
}Step 3: Report shipment milestones (optional)
Call Update shipment status to record a milestone for one or more lines. shipmentStatus is one of READY_FOR_PICKUP, PICKED_UP, IN_TRANSIT or OUT_FOR_DELIVERY. If you omit statusDate, Walmart uses the current time.
POST /v4/orders/1234567891234/shipment-status
Authorization: Bearer <access_token>
Content-Type: application/json{
"shipmentStatus": "IN_TRANSIT",
"statusDate": "2026-12-02T09:30:00Z",
"orderLines": [ { "lineNumber": "1", "statusQuantity": { "amount": 2, "unit": "EACH" } } ]
}{
"purchaseOrderId": "1234567891234",
"shipmentStatus": "IN_TRANSIT",
"updatedAt": "2026-12-02T09:30:05Z"
}Step 4: Mark order lines as delivered
When the carrier reports delivery, call Mark order lines as delivered. For each line you can send deliveredQuantity, trackingNumber, packageNumber and deliveredDate. Recording delivery begins the associated invoicing and return windows.
POST /v4/orders/1234567891234/deliver
Authorization: Bearer <access_token>
Content-Type: application/json{
"orderLines": [
{
"lineNumber": "1",
"deliveredQuantity": { "amount": 2, "unit": "EACH" },
"trackingNumber": "1Z999AA10123456784",
"deliveredDate": "2026-12-03T14:12:00Z"
}
]
}{
"purchaseOrderId": "1234567891234",
"deliveredAt": "2026-12-03T14:12:30Z"
}Delivery is separate from milestones
Update shipment status doesn't accept a delivered status. Always record completed deliveries with the deliver operation.
Errors and edge cases
400: a required field is missing or an enum value is unknown, for example acarrieroutside the listed values. UseOTHERfor carriers that aren't listed. Checkerrors[].pointerfor the field at fault.404: no order exists for the purchase order ID.429: you exceeded the rate limit. Back off and retry.503: multi-package shipping, shipment status and delivery can be temporarily unavailable. Retry after the number of seconds in theRetry-Afterheader.- The
trackingNumberyou send on delivery is optional and isn't validated against the tracking number you sent at shipment.
