Ship with Walmart API overview
Quote rates, buy shipping labels, print documents, track packages and manage delivery exceptions with the Shipping API.
Ship with Walmart lets you buy carrier shipping labels through Walmart for the orders you fulfill. With the Shipping API you compare rate quotes across carriers and services, buy a label, print it in the format your printer needs, track the package, and tell the carrier what to do when a delivery fails.
The Shipping API works for Walmart Marketplace orders, Walmart Fulfillment Services (WFS) orders and orders from external channels. All paths are relative to https://marketplace.walmart.com/seller/v1. Use https://sandbox.marketplace.walmart.com/seller/v1 to test.
Key capabilities
- Compare rates from several carriers and services for the same packages.
- Buy a label for the rate you choose, or quote and buy in one call when you already know the service.
- Print documents such as labels, receipts, customs forms and commercial invoices in PDF, PNG or ZPL.
- Track shipments with event history, a delivery summary and proof of delivery.
- Cancel labels you haven't used.
- Find access points for pickup and drop-off near a postal code.
- Resolve failed deliveries by telling the carrier to return, reattempt or redirect the package.
How it works
- Request rate quotes with Get shipping rate quotes. Send the ship-from and ship-to addresses, your packages and the sales channel. Store the
requestTokenfrom the response. - Choose a
rateId. If the carrier needs extra inputs, get their JSON Schema with Get the JSON Schema for additional carrier/service inputs. - Buy the label with Purchase a shipping label, passing the
requestToken,rateIdand the document format you want. Or skip steps 1 and 2 and use Quote and purchase a shipment in a single call. - Print the label from the response, or download it again later with Retrieve printable documents.
- Confirm shipment on the order with the carrier and tracking number. See Ship order lines.
- Track the package with Get tracking status.
- If delivery fails, send instructions with Submit non-delivery report feedback. If you no longer need an unused label, cancel it with Cancel a shipment.
Key concepts
Rate quote session
A rate quote returns a list of rates, a list of ineligibleRates with the reasons each service can't be used, and a requestToken. The requestToken identifies the quote session. Pass it back with the chosen rateId when you buy the label or fetch additional inputs. Each rate can carry an expirationTime.
Channel details
Every quote and one-call purchase needs channelDetails.channelType:
channelType | Use it for |
|---|---|
WALMART_MARKETPLACE | Seller-fulfilled Walmart Marketplace orders |
WFS | Walmart Fulfillment Services orders |
EXTERNAL | Orders from outside Walmart |
For Walmart orders, add marketplaceOrderDetails with the purchaseOrderId so the label is tied to the order.
Packages
Each package needs dimensions (in inches or centimeters), weight (in oz, g, lb or kg) and a packageClientReferenceId that is unique within the shipment. You use the packageClientReferenceId later to fetch documents for one package.
Documents
You choose the document format (PDF, PNG, ZPL203 or ZPL300), size and dpi (203 or 300) when you buy. Each package returns documents of type LABEL, RECEIPT, CUSTOMS_FORM or COMMERCIAL_INVOICE, with Base64-encoded contents.
Tracking status
The tracking summary status is one of PRE_TRANSIT, IN_TRANSIT, OUT_FOR_DELIVERY, DELIVERED, EXCEPTION, RETURNED or UNKNOWN.
API operations
| Operation | Method & path | Use it to |
|---|---|---|
| Get shipping rate quotes | POST /v4/fulfillment/shipping/shipment-rates | Compare rates for your packages |
| Get additional inputs | GET /v4/fulfillment/shipping/shipments/additional-input-schemas | Get the schema for carrier-specific inputs |
| Purchase a shipping label | POST /v4/fulfillment/shipping/shipments | Buy the label for a quoted rate |
| Quote and purchase in one call | POST /v4/fulfillment/shipping/shipments/oneClickShipment | Buy a label for a known service |
| Retrieve printable documents | GET /v4/fulfillment/shipping/shipments/{shipment-id}/documents | Download labels and other documents |
| Get tracking status | GET /v4/fulfillment/shipping/tracking-events | Track a package |
| Cancel a shipment | PUT /v4/fulfillment/shipping/shipments/{shipment-id}/cancel | Cancel a label that hasn't shipped |
| List access points | GET /v4/fulfillment/shipping/access-points | Find pickup and drop-off locations |
| Submit NDR feedback | POST /v4/fulfillment/shipping/ndr-feedback | Tell the carrier how to handle a failed delivery |
Best practices
- Request a token with
shipping:readto quote, track, and read documents and access points, and withshipping:writeto buy and cancel labels and submit NDR feedback. See Authentication. - Buy the label before the rate's
expirationTime. - Check
ineligibleRatesto understand why a carrier or service wasn't offered. - Validate carrier-specific inputs against the schema from getAdditionalInputs before you buy.
- Store the
shipmentId,trackingIdand eachpackageClientReferenceIdwith the order. - Addresses and documents contain personal data. Protect them in storage and logs.
- Back off and retry when you receive
429.
