Skip to Content

Orders management API overview

Retrieve, acknowledge, ship, deliver, cancel and refund Walmart Marketplace orders with the Orders API.

The Orders API lets you manage the full life of a Walmart Marketplace order, from the moment a customer places it to delivery, cancellation or refund. You use it to pull new orders into your order management system, confirm that you will fulfill them, send shipment and tracking details, and keep Walmart and the customer informed as each order line moves forward.

All paths in this section are relative to the server https://marketplace.walmart.com/seller/v1. Use https://sandbox.marketplace.walmart.com/seller/v1 to test.

Business use cases

  • Retrieve new orders so you can start fulfillment as soon as an order is placed.
  • Acknowledge orders to confirm that you received them and will fulfill them.
  • Ship order lines in one package or across several packages, with carrier and tracking details.
  • Report shipment milestones such as pickup, in transit and out for delivery, then mark lines as delivered.
  • Cancel order lines you can't fulfill, with a reason for each line.
  • Refund order lines for returns, cancellations or goodwill adjustments.
  • Handle regulated items that need age or identity verification at delivery.

How it works

  1. A customer places an order. Walmart creates a purchase order with the status Created.
  2. You retrieve new orders with Get orders, filtered by orderStatuses=Created, or fetch a single order with Get an order.
  3. You acknowledge the order lines you will fulfill with Acknowledge receipt of an order.
  4. If the order contains regulated items, you check the verification requirements with Get regulated information for an order.
  5. You ship the order lines with Ship order lines, or with Ship an order in multiple packages when the order spans several packages.
  6. Optionally, you report in-transit milestones with Update shipment status.
  7. You record delivery with Mark order lines as delivered. Recording delivery begins the associated invoicing and return windows.
  8. When needed, you cancel lines with Cancel order lines or refund them with Issue refunds for order lines.

Key concepts

Purchase order and order lines

Every order is identified by a purchaseOrderId, assigned by Walmart. You pass it as the {purchase-order-id} path parameter on every order-level operation. An order also carries a customer-facing customerOrderId.

Each order contains one or more order lines. A line is identified by its lineNumber within the purchase order and carries the sellerSku, walmartItemId, productName, quantity and itemPrice. Acknowledge, ship, cancel, refund and deliver requests all work on lines, so you can act on part of an order.

Quantities use the QuantityWithUnit object: a numeric amount and a unit of EA, EACH, CASE or CARTON. Money uses an amount string and a currencyCode, which defaults to USD.

Order and order line statuses

The order (orderStatus) and each order line (lineStatus) use the same set of statuses:

StatusMeaningRelated operation
CreatedThe customer placed the order and it is waiting for you.Get orders
AcknowledgedYou confirmed receipt of the order lines.Acknowledge receipt of an order
ShippedYou confirmed shipment with carrier and tracking details.Ship order lines, Ship an order in multiple packages
DeliveredDelivery of the order lines was recorded.Mark order lines as delivered
CancelledThe order lines were cancelled.Cancel order lines
RefundedA refund was issued for the order lines.Issue refunds for order lines

Because an order can be partly shipped, cancelled or refunded, always read lineStatus on each line rather than relying only on orderStatus.

Shipment milestones

Between shipment and delivery, you can record a shipmentStatus on order lines: READY_FOR_PICKUP, PICKED_UP, IN_TRANSIT or OUT_FOR_DELIVERY. These milestones don't replace the line status. Completed deliveries are recorded only through the deliver operation.

Fulfillment type and option

fulfillmentType is SellerFulfilled or WFS (Walmart Fulfillment Services). For WFS orders, each line carries a shipNode. Each line can also carry a fulfillmentOption of S2H, S2S or PICKUP_TODAY.

Errors

Failed requests return an RFC 9457 problem details object with an errors array. Each error has a machine-readable code, a message, and optional details and pointer members. The pointer is a JSON Pointer to the request-body member at fault, for example #/orderLines/0/quantity. Base your error handling on code, which is an open string, so be ready for new values.

API operations

OperationMethod & pathUse it to
Get ordersGET /v4/ordersList orders, filtered by status, with pagination
Get an orderGET /v4/orders/{purchase-order-id}Retrieve one order with its lines
Get order itemsGET /v4/orders/{purchase-order-id}/itemsRetrieve the order lines of an order
Get an order shipping addressGET /v4/orders/{purchase-order-id}/addressRetrieve the recipient name and address
Get order buyer informationGET /v4/orders/{purchase-order-id}/buyer-infoRetrieve buyer name, email and masked phone
Acknowledge receipt of an orderPOST /v4/orders/{purchase-order-id}/acknowledgeConfirm you will fulfill order lines
Ship order linesPOST /v4/orders/{purchase-order-id}/shippingConfirm shipment with tracking
Ship an order in multiple packagesPOST /v4/orders/{purchase-order-id}/multi-package-shippingConfirm shipment across several packages
Update shipment statusPOST /v4/orders/{purchase-order-id}/shipment-statusRecord pickup and in-transit milestones
Mark order lines as deliveredPOST /v4/orders/{purchase-order-id}/deliverRecord delivery of order lines
Cancel order linesPOST /v4/orders/{purchase-order-id}/cancelCancel lines with a reason
Issue refunds for order linesPOST /v4/orders/{purchase-order-id}/refundRefund lines for a return, cancellation or goodwill
Get regulated information for an orderGET /v4/orders/{purchase-order-id}/regulated-infoCheck age and ID verification requirements
Update order verification statusPATCH /v4/orders/{purchase-order-id}/regulated-infoRecord the verification outcome

Best practices

  • Request an access token with the orders:read scope to read orders and orders:write to acknowledge, ship and cancel them. See Authentication.
  • Poll for new orders with orderStatuses=Created and acknowledge them promptly.
  • Send only one value in orderStatuses. Several values return 400 with FILTER_NOT_SUPPORTED.
  • Act on individual order lines, and always send the lineNumber you received from Walmart.
  • Back off and retry when you receive 429. When an operation returns 503, wait for the number of seconds in the Retry-After header before you retry.
  • Treat shipping addresses and buyer details as personal data. Don't log response bodies that contain shipping addresses.

Next steps

On this page