Ship order lines
Use the Ship order lines endpoint to ship an order by updating its shipping details. You must include the shipDateTime to record when the shipment occurred. This call updates the order's status to Shipped and triggers the customer charge.
Note: Orders must be acknowledged before shipping. Orders fulfilled by Walmart Fulfillment Services (WFS) cannot be shipped with this endpoint. Use the Create customer order for WFS item endpoint instead.
Endpoint
https://marketplace.walmartapis.com/v3/orders/{purchaseOrderId}/shippingSample request
curl -X 'POST' 'https://sandbox.walmartapis.com/v3/orders/3213/shipping' -H 'accept: application/json' -H 'WM_SEC.ACCESS_TOKEN: eyJraWQiOiIzZjVhYTFmNS1hYWE5LTQzM.....' -H 'WM_QOS.CORRELATION_ID: b3261d2d-028a-4ef7-8602-633c23200af6' -H 'WM_SVC.NAME: Walmart Service Name' -H 'Content-Type: application/xml' -d '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<orderShipment xmlns="http://walmart.com/mp/v3/orders">
<orderLines>
<orderLine>
<lineNumber>1</lineNumber>
<intentToCancelOverride>false</intentToCancelOverride>
<orderLineStatuses>
<orderLineStatus>
<status>Shipped</status>
<statusQuantity>
<unitOfMeasurement>Each</unitOfMeasurement>
<amount>1</amount>
</statusQuantity>
<trackingInfo>
<shipDateTime>2020-07-17T17:04:42</shipDateTime>
<carrierName>
<carrier>UPS</carrier>
</carrierName>
<methodCode>Standard</methodCode>
<trackingNumber>1Z97Y4430300463366</trackingNumber>
<trackingURL></trackingURL>
</trackingInfo>
</orderLineStatus>
</orderLineStatuses>
</orderLine>
</orderLines>
</orderShipment>'Modify your code
- Replace
{purchaseOrderId}in the endpoint URL with the actual order ID. - Use a unique
WM_QOS.CORRELATION_IDfor each request. - Replace
WM_SEC.ACCESS_TOKENwith your valid access token obtained through authentication. - Adjust the
orderLinespayload as needed for your specific order. - The
shipDateTimeshould be written in the UNIX Epoch format (for example, 1478347200000. This is the number of milliseconds that have elapsed since January 1, 1970, 00:00:00 UTC).shipDateTimeis also supported in the following ISO 8601 formats in XML (however, JSON is not supported):- 2025-09-16T06:25:00Z (UTC time)
- 2025-09-16T06:25:00:05:00 (Offset from UTC)
- 2025-09-16T06:25:00.000Z (With fractional seconds)
Update an order after it ships
If you need to update shipping information after the order has already been marked as shipped, use the optional processMode parameter. This allows post-shipment updates to tracking details as long as:
- The update is made within 24 hours of the original shipment submission, or
- The update is made before the carrier’s first touch scan is registered with Walmart, whichever comes first
This is helpful if tracking numbers or carrier details need to be corrected after the original shipment update.
processMode value | Description | Required |
|---|---|---|
PARTIAL_UPDATE | Allows tracking updates after initial shipment | Optional |
Note: If you do not include processMode, the request is treated as a regular shipment update.
Sample responses
application/json
200
{ "order": { "purchaseOrderId": "1234567891234", "customerOrderId": "9876543212345", "sellerOrderId": "13233454564657", "customerEmailId": "[email protected]", "orderType": "PREORDER", "orderDate": 1478284060000, "shippingInfo": { "phone": "6501234567", "estimatedDeliveryDate": 1479798000000, "estimatedShipDate": 1478674800000, "methodCode": "Value", "postalAddress": { "name": "Jane Doe", "address1": "123 Main street", "city": "Sunnyvale", "state": "CA", "postalCode": "94086", "country": "USA", "addressType": "OFFICE" } }, "orderLines": { "orderLine": [ { "lineNumber": "1", "item": { "productName": "Kenmore CF-1 or 20-86883 Canister Secondary Filter Generic 2 Pack", "sku": "wei-ASSET-675gku675" }, "charges": { "charge": [ { "chargeType": "PRODUCT", "chargeName": "ItemPrice", "chargeAmount": { "currency": "USD", "amount": 555 }, "tax": { "taxName": "Tax1", "taxAmount": { "currency": "USD", "amount": 48.56 } }, "taxAndOtherFees": { "taxName": "Tax1", "taxAmount": { "currency": "USD", "amount": 48.56 } } } ] }, "orderLineQuantity": { "unitOfMeasurement": "EACH", "amount": "1" }, "statusDate": 1478297929000, "orderLineStatuses": { "orderLineStatus": [ { "status": "Shipped", "statusQuantity": { "unitOfMeasurement": "EACH", "amount": "1" }, "trackingInfo": { "shipDateTime": 1438163400000, "carrierName": { "carrier": "FedEx" }, "methodCode": "Value", "trackingNumber": "911001572321619861", "trackingURL": "http://www.fedex.com/Tracking?action=track=english=us=x=911001572321619861" }, "returnCenterAddress": { "name": "ABC", "address1": "123 Bridge street", "city": "Huntsville", "state": "AL", "postalCode": "35805", "country": "USA", "dayPhone": "6501234567", "emailId": "[email protected]" } } ] } } ] } }
}400 - Generic bad request
{ "errors": [ { "code": "INVALID_REQUEST_CONTENT.GMP_ORDER_API", "description": "Invalid request content.", "info": "Request content is not valid.", "severity": "ERROR", "category": "DATA" } ]
}400 - Multiple line IDs are not allowed in a single MPS request
{ "errors": { "error": [ { "code": "INVALID_REQUEST_CONTENT.GMP_ORDER_API", "field": "lineNumber", "description": "Multiple lineId update is not allowed for MPS shipment. Please ensure only one lineId is updated and try again.", "info": "Request content is invalid.", "severity": "ERROR", "category": "DATA", "errorIdentifiers": { "entry": [] } } ] }
}400 - Duplicate tracking number in MPS shipment
{ "errors": { "error": [ { "code": "INVALID_REQUEST_CONTENT.GMP_ORDER_API", "field": "trackingNumber", "description": "Duplicate tracking numbers are not allowed for MPS shipment. Please ensure all tracking numbers are unique and try again.", "info": "Request content is invalid.", "severity": "ERROR", "category": "DATA", "errorIdentifiers": { "entry": [] } } ] }
}400 - Maximum package limit exceeded for MPS
{ "errors": { "error": [ { "code": "INVALID_REQUEST_CONTENT.GMP_ORDER_API", "field": "trackingPackages", "description": "Maximum packages allowed for MPS shipment exceeded. Please reduce the number of packages and try again.", "info": "Request content is invalid.", "severity": "ERROR", "category": "DATA", "errorIdentifiers": { "entry": [] } } ] }
}400 - Quantity greater than 1 not allowed for MPS
{ "errors": { "error": [ { "code": "INVALID_REQUEST_CONTENT.GMP_ORDER_API", "field": "statusQuantity", "description": "Quantity more than 1 is not allowed for MPS.", "info": "Request content is invalid.", "severity": "ERROR", "category": "DATA", "errorIdentifiers": { "entry": [] } } ] }
}400 - Multiple carriers not allowed in MPS shipment
{ "errors": { "error": [ { "code": "INVALID_REQUEST_CONTENT.GMP_ORDER_API", "field": "carrier", "description": "Different carriers are not allowed in one shipment, Use only one carrier", "info": "Request content is invalid.", "severity": "ERROR", "category": "DATA", "errorIdentifiers": { "entry": [] } } ] }
}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
{ "errors": [ { "code": "RATE_LIMIT_EXCEEDED.GMP_ORDER_API", "description": "Too many requests.", "info": "Rate limit exceeded. Retry after the specified time.", "severity": "ERROR", "category": "APPLICATION" } ]
}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" } ]
}application/xml
200
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<order xmlns:ns2="http://walmart.com/mp/orders" xmlns:ns3="http://walmart.com/mp/v3/orders" xmlns:ns4="http://walmart.com/"> <purchaseOrderId> 2575193093772 </purchaseOrderId> <customerOrderId> 4021603841173 </customerOrderId> <customerEmailId> [email protected] </customerEmailId> <orderType> PREORDER </orderType> <orderDate> 2016-05-11T22:55:28.000Z </orderDate> <shippingInfo> <phone> 6502248603 </phone> <estimatedDeliveryDate> 2016-05-20T17:00:00.000Z </estimatedDeliveryDate> <estimatedShipDate> 2016-05-16T17:00:00.000Z </estimatedShipDate> <methodCode> Standard </methodCode> <postalAddress> <name> Joe Doe PGOMS </name> <address1> 860 W Cal Ave </address1> <address2> Seat # 860C.2.176 </address2> <city> Sunnyvale </city> <state> CA </state> <postalCode> 94086 </postalCode> <country> USA </country> <addressType> RESIDENTIAL </addressType> </postalAddress> </shippingInfo> <orderLines> <orderLine> <lineNumber> 2 </lineNumber> <item> <productName> Garmin Refurbished nuvi 2595LMT 5 GPS w Lifetime Maps and Traffic </productName> <sku> GRMN100201 </sku> </item> <charges> <charge> <chargeType> PRODUCT </chargeType> <chargeName> ItemPrice </chargeName> <chargeAmount> <currency> USD </currency> <amount> 124.98 </amount> </chargeAmount> <tax> <taxName> Tax1 </taxName> <taxAmount> <currency> USD </currency> <amount> 10.93 </amount> </taxAmount> </tax> </charge> </charges> <orderLineQuantity> <unitOfMeasurement> EACH </unitOfMeasurement> <amount> 1 </amount> </orderLineQuantity> <statusDate> 2016-06-03T23:44:41.000Z </statusDate> <orderLineStatuses> <orderLineStatus> <status> Shipped </status> <statusQuantity> <unitOfMeasurement> EACH </unitOfMeasurement> <amount> 1 </amount> </statusQuantity> <trackingInfo> <shipDateTime> 2016-06-27T05:30:15.000Z </shipDateTime> <carrierName> <carrier> FedEx </carrier> </carrierName> <methodCode> Standard </methodCode> <trackingNumber> 12333634122 </trackingNumber> <trackingURL> http://www.fedex.com </trackingURL> </trackingInfo> </orderLineStatus> </orderLineStatuses> </orderLine> </orderLines>
</order>Result
If successful, the API returns an HTTP status: 200 OK along with a JSON object showing the updated order details. The specified order lines will now be in the Shipped status, confirming that the shipping details have been updated and the charge to the customer has been triggered.
Updated about 14 hours ago

