Walmart API & Amazon Ordering: 6-Step Automation Guide

Last Updated November 28, 2026 in Amazon Tools

Author: Nate McCallister
Online order being paid for at checkout, illustrating automated e-commerce purchasing

If you search for a Walmart API to buy products, you will find plenty of APIs. None of them place an order as a shopper.

Walmart and Amazon publish APIs for sellers, suppliers, affiliates, and advertisers. Purchasing teams need a buyer-side ordering API that checks out and returns tracking.

So most teams still buy restocks and gifts by hand. The fix is a price cap on every order and webhooks instead of polling.

In this guide, you’ll learn:

  • Which official Walmart and Amazon APIs exist, and why they cannot check out
  • How to place, cap, and tag orders through one ordering API
  • How to track shipments, cancellations, and returns automatically

Here is the workflow, step by step.

Step 1: Audit the official Walmart API portals

Start with what Walmart actually offers. The portals look like they should support buying, so this step saves wasted integration work.

Walmart runs two developer hubs: the Walmart Developer Portal (developer.walmart.com) and Walmart I/O (walmart.io). Each API is tied to one business relationship:

  • Marketplace API: for approved third-party sellers. It manages your own listings, prices, inventory, and orders over OAuth 2.0.
  • Content Provider API (Walmart I/O): the affiliate API. It returns product titles, images, and prices, and builds tracked links. It is read-only.
  • Commerce API (Walmart I/O): needs special approval and a reviewed business plan, and it runs through Walmart’s own checkout.
  • Real-time Pricing and Availability API: returns live price and stock for a storeId or zipCode. It is a data lookup.
  • Supplier, Advertising, GoLocal, and Luminate APIs: for 1P suppliers, Walmart Connect advertisers, delivery partners, and supplier analytics.

The pattern holds across all of them. There is no public endpoint that accepts a product, a shipping address, and a payment, then places a Walmart.com order for you. Zinc’s breakdown of the Walmart API portals walks through all six, with the access rules for each.

Action item: write down which of these you already use. If you sell on Walmart, keep the Marketplace API for your storefront. Purchasing is a separate integration.

Step 2: Check what Amazon’s ordering APIs allow

Amazon has the same split, with more names. Each API is locked to a role:

  • Selling Partner API (SP-API): replaced MWS. Sellers use it to manage their own catalog, inventory, and orders. It cannot buy from other sellers.
  • Product Advertising API 5.0: for Amazon Associates. It is read-only, new users start at 1 request per second, and access ends if the app makes no affiliate sales within 30 days.
  • Buy with Prime API: lets FBA sellers add Prime checkout to their own sites. It does not let you shop Amazon.com from code.
  • Amazon Business Ordering API: the closest to a true ordering API. It needs commercial approval and only places orders on your company’s own Amazon Business account, usually through Coupa, Ariba, or a custom procurement portal.

So if your team already has an approved Amazon Business account, the Business Ordering API can cover internal procurement. It will not cover consumer gifting, reward redemptions, or orders on Walmart and Target. Zinc’s guide to the Amazon ordering API options compares each one and shows what a single order request looks like.

Action item: list every use case that needs to ship to an address you do not control. Those are the orders no official API will place.

Step 3: Pick a buyer-side ordering API

Teams that hit this wall usually try one of two paths. They build browser automation with Puppeteer or Playwright, or they use a purchasing API.

Browser scripts break fast. Walmart uses bot protection from HUMAN Security (PerimeterX) and Akamai, and both retailers change their checkout flows often. Scraper APIs avoid the checkout entirely, which is why they cannot buy anything.

Here is how the main options compare for automated purchasing:

Option Built for Places orders? Tracking and returns Access
Zinc Apps, agents, and procurement teams that buy Yes, on Amazon, Walmart, Target, Best Buy, and more Webhooks, tracking numbers, return requests Self-serve API key, $1 fee per order
Walmart Marketplace API / Walmart I/O Sellers, affiliates, approved partners No public buying Your own seller orders only Seller or partner approval
Amazon SP-API Amazon sellers and vendors No Your own seller orders only Seller registration
Amazon Business Ordering API Approved Amazon Business buyers Yes, on your own business account only Amazon orders only Commercial approval
Scraper APIs (Apify, Rainforest API) Price and catalog monitoring No None Pay per request

Zinc sits in a different category from the rest. You send a product URL, an address, and a price cap, and Zinc completes checkout on the retailer’s site. Its homepage counter showed more than 22 million orders placed through the API when we checked.

You can let Zinc buy on accounts it runs, or pass your own retailer login with a retailer_credentials_id. The two models split the work differently:

  • Zinc’s accounts (default): no setup. Zinc pays the retailer, keeps the logins and verification codes working, and draws the item cost plus the fee from your prefunded wallet.
  • Your own account: save the login once, including the TOTP secret if the account uses 2FA. The retailer charges your saved card, your wallet pays only the fee, and you keep loyalty points, cashback, and negotiated business pricing.

The second model fits procurement teams with an existing Amazon Business account. The first fits gifting and rewards platforms that ship to many recipients.

Step 4: Place orders with a max_price cap

Every order is one POST request to https://api.zinc.com/orders. Prices are in cents, so 24900 means $249.00.

{
  "products": [
    { "url": "https://www.walmart.com/ip/...", "quantity": 2 }
  ],
  "shipping_address": {
    "first_name": "Dana",
    "last_name": "Lee",
    "address_line1": "456 Market St",
    "city": "Austin",
    "state": "TX",
    "postal_code": "78701",
    "country": "US",
    "phone_number": "5559876543"
  },
  "max_price": 24900,
  "po_number": "PO-2026-0412",
  "is_gift": true,
  "gift_message": "Happy work anniversary!",
  "idempotency_key": "restock-0412"
}

Four fields do most of the work:

  • max_price: the ceiling for the whole order. If Walmart drops a Rollback price or a third-party seller raises theirs, the order fails cleanly instead of overcharging you. No other setting can relax it.
  • po_number: your internal purchase order number. It keeps finance reconciliation simple.
  • is_gift and gift_message: hide prices on the packing slip and add a note of up to 240 characters. If the retailer offers no gift option, the order fails with gift_option_unavailable, unless you set gift to best effort.
  • idempotency_key: makes retries safe. A network timeout will not create a second order.

Orders are strict by default. If one item is out of stock, nothing ships. Add "fulfillment": { "items": "best_effort" } when partial orders are fine, and use excluded_merchants or first_party_only to skip sellers you do not trust.

Action item: start in test mode with a zn_test_ key. The sandbox lets you trigger out-of-stock and price-exceeded failures before real money moves.

Step 5: Track every order with webhooks

Polling hundreds of open orders every hour wastes requests and still misses delays. Register a webhook URL instead, and let each status change come to you.

These are the order events Zinc sends:

Event When it fires
order.placed The retailer accepted the order
order.failed All retry attempts ran out
order.tracking_received Tracking numbers arrived from the retailer
order.shipped The first package started moving
order.delivered Every package was delivered
order.cancelled The retailer cancelled after placement

Each tracking entry includes the carrier, such as UPS, FedEx, USPS, or Amazon Logistics numbers that start with TBA. Zinc polls the carriers itself, so you get real checkpoints instead of a status that jumps from shipped to delivered.

On managed-account orders, order.delivered can also include a delivery_proof_url when the retailer provides a delivery photo. That photo answers a “where is my package” ticket in one reply.

Action item: map each event to one action in your system. For example, order.shipped sends the customer email, and order.failed opens a ticket for your ops team.

Step 6: Handle cancellations, returns, and AI agents

Cancellations depend on timing. While an order still sits in Zinc’s queue, you can cancel it and your wallet is refunded. Once the retailer has it, the practical path is a return after delivery. If the retailer cancels on its own, order.cancelled fires and the refund is automatic.

Returns are one request to POST /returns with the order ID, the line items, a quantity, and a reason such as damaged. Zinc reviews them asynchronously, and later reads show the status and any return labels.

The last piece is AI agents. Zinc runs a hosted MCP server at https://mcp.zinc.com/mcp. You can connect it to Claude, ChatGPT, or Cursor, and an agent can search products, review the total, and place and track the order from a chat. Searching is free.

Action item: decide where a human must approve a purchase. A simple rule: let the agent search and build the cart, and keep a person on the final checkout for orders above a set amount.

Common mistakes to avoid

A few problems show up in almost every first integration:

  • Using a seller API for buying. The Marketplace API and SP-API manage your own catalog. They will never check out.
  • Skipping max_price. Prices change between search and checkout. Without a cap, you absorb every increase.
  • Polling instead of webhooks. It costs more requests and still reports delays late.
  • Ignoring wallet balance. Zinc rejects an order with insufficient_funds when the balance cannot cover max_price plus the fee. Top up before large batches.
  • No idempotency key. One retry after a timeout can ship two of everything.

Frequently asked questions

Does Walmart have a public API to place orders?

No. Walmart’s public APIs cover sellers, suppliers, affiliates, advertisers, and logistics partners. The Commerce API needs special approval. To buy on Walmart.com from code, teams use a buyer-side purchasing API.

Can I place Amazon orders through the SP-API?

No. SP-API manages a seller’s own listings, inventory, and orders. The Amazon Business Ordering API can buy, but only on an approved company Amazon Business account.

How much does automated ordering cost with Zinc?

Zinc charges a $1 API fee per order by default, plus the item cost, tax, and shipping when it buys on its own accounts. With your own retailer account, your wallet pays only the fee.

Can an AI agent place Walmart orders?

Yes, through a purchasing API. An agent connected to Zinc’s MCP server can search Walmart, Amazon, and other retailers, show the total, and place the order after approval. Set a max_price so the agent can never spend more than the approved amount.

Which retailers does Zinc support?

Amazon, Walmart, Target, Best Buy, Costco, and more. For the current list, call GET https://api.zinc.com/retailers. It is free and needs no API key.

Next steps

Pick one recurring purchase your team still places by hand, such as office restocks or reward gifts. Run 10 of those orders through the sandbox with a max_price, a po_number, and a webhook endpoint. When failures and tracking events look right, switch the key to live and move the next workflow over.

The Situation You receive a certain type of email that requires the

The Situation You want to email a large number of people at

If you’ve ever wondered “What the f*ck is an RSS feed?” you’re

Affiliate Disclosure: Some of the products and services mentioned on this website pay affiliate commissions to the creators at no cost to you. Thank you for your support!