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
- A customer places an order. Walmart creates a purchase order with the status
Created. - You retrieve new orders with Get orders, filtered by
orderStatuses=Created, or fetch a single order with Get an order. - You acknowledge the order lines you will fulfill with Acknowledge receipt of an order.
- If the order contains regulated items, you check the verification requirements with Get regulated information for an order.
- You ship the order lines with Ship order lines, or with Ship an order in multiple packages when the order spans several packages.
- Optionally, you report in-transit milestones with Update shipment status.
- You record delivery with Mark order lines as delivered. Recording delivery begins the associated invoicing and return windows.
- 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:
| Status | Meaning | Related operation |
|---|---|---|
Created | The customer placed the order and it is waiting for you. | Get orders |
Acknowledged | You confirmed receipt of the order lines. | Acknowledge receipt of an order |
Shipped | You confirmed shipment with carrier and tracking details. | Ship order lines, Ship an order in multiple packages |
Delivered | Delivery of the order lines was recorded. | Mark order lines as delivered |
Cancelled | The order lines were cancelled. | Cancel order lines |
Refunded | A 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
| Operation | Method & path | Use it to |
|---|---|---|
| Get orders | GET /v4/orders | List orders, filtered by status, with pagination |
| Get an order | GET /v4/orders/{purchase-order-id} | Retrieve one order with its lines |
| Get order items | GET /v4/orders/{purchase-order-id}/items | Retrieve the order lines of an order |
| Get an order shipping address | GET /v4/orders/{purchase-order-id}/address | Retrieve the recipient name and address |
| Get order buyer information | GET /v4/orders/{purchase-order-id}/buyer-info | Retrieve buyer name, email and masked phone |
| Acknowledge receipt of an order | POST /v4/orders/{purchase-order-id}/acknowledge | Confirm you will fulfill order lines |
| Ship order lines | POST /v4/orders/{purchase-order-id}/shipping | Confirm shipment with tracking |
| Ship an order in multiple packages | POST /v4/orders/{purchase-order-id}/multi-package-shipping | Confirm shipment across several packages |
| Update shipment status | POST /v4/orders/{purchase-order-id}/shipment-status | Record pickup and in-transit milestones |
| Mark order lines as delivered | POST /v4/orders/{purchase-order-id}/deliver | Record delivery of order lines |
| Cancel order lines | POST /v4/orders/{purchase-order-id}/cancel | Cancel lines with a reason |
| Issue refunds for order lines | POST /v4/orders/{purchase-order-id}/refund | Refund lines for a return, cancellation or goodwill |
| Get regulated information for an order | GET /v4/orders/{purchase-order-id}/regulated-info | Check age and ID verification requirements |
| Update order verification status | PATCH /v4/orders/{purchase-order-id}/regulated-info | Record the verification outcome |
Best practices
- Request an access token with the
orders:readscope to read orders andorders:writeto acknowledge, ship and cancel them. See Authentication. - Poll for new orders with
orderStatuses=Createdand acknowledge them promptly. - Send only one value in
orderStatuses. Several values return400withFILTER_NOT_SUPPORTED. - Act on individual order lines, and always send the
lineNumberyou received from Walmart. - Back off and retry when you receive
429. When an operation returns503, wait for the number of seconds in theRetry-Afterheader before you retry. - Treat shipping addresses and buyer details as personal data. Don't log response bodies that contain shipping addresses.
Next steps
Retrieve orders
List and page through orders, and fetch order details.
Acknowledge orders
Confirm that you will fulfill new orders.
Ship order lines
Send tracking, milestones and delivery details.
Cancel order lines
Cancel lines you can't fulfill.
Refund order lines
Refund returns, cancellations and goodwill adjustments.
Orders with regulated items
Handle age and identity verification at delivery.
