Zinc
All Blogs
Guides

How to Buy Products Online with AI: APIs, Agents & MCP (2026)

Four ways to let AI buy physical products online: an agent skill, an MCP server, a purchasing API with tool calling, or pay-per-order over MPP. With code.

Short answer: AI can buy products online when it has an execution layer. ChatGPT Instant Checkout covers merchants that implemented ACP. For Amazon, Walmart, Target, and 20+ other retailers, give the agent Zinc through its API, its MCP server, or the Universal Checkout skill, and it can place the order and return tracking.

"Can AI buy things online for me?" is no longer a sci-fi question. It is an engineering one: which API places the order, who pays, and how do you get tracking back?

This is the developer version of that question. If you want the consumer answer (what ChatGPT can buy today), read Can AI Buy Things Online?. If you want a full agent build from scratch, read How to Build an AI Shopping Agent. This guide sits between them: the four ways to wire purchasing into an AI system, what each one costs you, and code for each.

Zinc
Zinc Agent
Give your AI agent commerce powers

Connect an agent to Zinc to search products, place orders, track shipments, and handle returns across top retailers.

What "buy with AI" actually means

People use "buy with AI" for three different products:

  1. Recommendation AI. "Here are five gift ideas." A human still goes and buys.
  2. Assisted checkout. The AI fills a cart and a human taps Buy. ChatGPT Instant Checkout works this way at merchants that implemented the Agentic Commerce Protocol.
  3. Agentic purchasing. Software places the order at a retailer, pays, and gets tracking back, with limits you set in code.

This guide is about the third. The reason it needs its own layer: none of the big retailers offer a public shopper checkout API. Amazon's SP-API and Walmart's Marketplace API are for sellers (Amazon and Walmart guides explain why), and Amazon, Walmart, and Target have not adopted ACP. So an agent that needs to buy at those stores needs a purchasing API underneath it. Zinc is that layer: one API that checks out at 20+ retailers and reports status and tracking back.

The four ways to let AI buy products

Every setup that works in production is one of these four, or a mix:

WayYou writeBest forSetup time
1. Agent skillA promptClaude Code, Cursor, OpenClaw users; internal toolsMinutes
2. MCP serverA config lineAny MCP client (Claude, ChatGPT connectors, Cursor)Minutes
3. API + tool callingTool schema + handlerYour own app or agent in productionHours to days
4. Pay per order (MPP / x402)A wallet-aware clientAutonomous agents with no account or prepaid balanceHours

All four end in the same place: a Zinc order with a price cap, a shipping address, and tracking. They differ in who owns the loop: an off-the-shelf agent, a tool protocol, or your code.

Way 1: install an agent skill

An agent skill is a packaged set of instructions and references the agent loads when it needs them. Zinc publishes the Universal Checkout skill, which teaches an agent how to search supported retailers, show the user a total, and place and track the order.

Install it in any agent that supports skills:

npx skills add zincio/skills --skill universal-checkout

Then ask in plain language:

Use the universal-checkout skill. Find a replacement HEPA filter for a
Levoit Core 300 under $40 on Amazon or Walmart, ship to Jordan Lee,
120 Market Street, Austin, TX 78701. Show me the product, retailer,
and total for approval before placing the order.

What you get: the fastest path from zero to a real order, with no code. The agent handles search, confirmation, and the API calls.

What you give up: control. Policy lives in a prompt, not your code, so this fits internal tools, prototypes, and power users better than a customer-facing product. See the agent skills docs.

Way 2: connect an MCP server

Model Context Protocol is how agents attach tools. An MCP server exposes a list of functions the model can call. Zinc's MCP server exposes search, ordering, and tracking, so any MCP client can buy through it.

In Claude Code, for example:

claude mcp add --transport http zinc https://mcp.zinc.com/mcp

Other clients (Cursor, Claude Desktop, ChatGPT connectors) take the same URL in their MCP settings. Authentication is covered in the MCP docs.

What you get: the same tools across every client your team uses, and no glue code.

What you give up: you still depend on the client's UX for confirmations and limits. For a multi-client comparison, see Best MCP Servers for Retail.

A common mistake: assuming any "shopping MCP" can buy. Most retail MCP servers wrap product search or price data. Check that the server exposes an order tool and returns an order ID and tracking, not just links.

Way 3: call a purchasing API with tool calling

This is the production path. Your app owns the model call, the policy, and the user experience. Zinc owns retailer checkout.

Step 1: define a tool the model can call. Keep the schema narrow so the model cannot invent fields:

{
  "name": "place_order",
  "description": "Buy one product from a supported retailer and ship it. Only call after the user approved the product and total.",
  "input_schema": {
    "type": "object",
    "properties": {
      "product_url": { "type": "string", "description": "Retailer product URL" },
      "quantity": { "type": "integer", "minimum": 1, "maximum": 5 },
      "max_price_cents": { "type": "integer", "description": "Hard cap on the order total, in cents" }
    },
    "required": ["product_url", "quantity", "max_price_cents"]
  }
}

Notice what is not in the schema: the shipping address and the payment method. Those come from your database, not from the model. The model picks the product; your code decides where it ships and how much it may spend.

Step 2: turn the tool call into an order. Your handler adds the address and an idempotency key, then calls Zinc:

POST https://api.zinc.com/orders
{
  "products": [
    { "url": "https://www.amazon.com/dp/B08F7PTF53", "quantity": 1 }
  ],
  "shipping_address": {
    "first_name": "Jane",
    "last_name": "Doe",
    "address_line1": "123 Main St",
    "city": "San Francisco",
    "state": "CA",
    "postal_code": "94105",
    "country": "US",
    "phone_number": "5551234567"
  },
  "max_price": 39900,
  "idempotency_key": "user_482_filter_2026_09"
}

Two fields do the safety work:

  • max_price (in cents) caps the total. If the price moved above your cap by the time checkout runs, the order does not go through.
  • idempotency_key stops duplicate orders when a model retries a tool call or your worker crashes mid-request. Derive it from the user, the item, and the intent, not from a random value.

Step 3: return status to the model, and tracking to the user. Zinc sends order events by webhook, and the order object carries tracking_numbers[] once the retailer ships (shipment tracking guide). Feed a short summary back to the model ("order placed at Amazon, arriving Thursday") and show the full tracking in your UI.

Start in test mode: sandbox orders go through the same flow without buying anything.

Way 4: pay per order over MPP or x402

Ways 1 to 3 assume someone set up an account and a way to pay. Autonomous agents often have neither. They have a wallet.

MPP (Stripe and Tempo) and x402 (Coinbase) let an agent pay inside the HTTP request itself:

  1. The agent posts an order.
  2. Zinc answers with HTTP 402 Payment Required and the price.
  3. The agent pays with its wallet (stablecoins, or a Stripe Shared Payment Token over MPP) and retries the same request.
  4. Zinc places the order and returns the order ID.

What you get: no account setup, no prepaid balance, and a payment trail per order.

What you give up: you need a wallet-aware client, and spend policy has to live in the wallet or the agent. Pair it with a hard max_price on every request.

If you run a platform where your end customers pay, there is a fifth option that is not agent-specific: Stripe Connect. Zinc charges your customer's card per order and pays out your margin, so you never hold a balance.

Which way should you pick?

If you are...Use
Testing whether AI purchasing works for your use caseAgent skill (Way 1)
Giving a team of Claude or Cursor users buying powerMCP server (Way 2)
Shipping a product where customers ask an AI to buy thingsAPI + tool calling (Way 3)
Running an autonomous agent with its own walletMPP or x402 (Way 4)
Letting end customers pay per order in your appAPI + Stripe Connect

Most teams start with Way 1 to see real orders in a day, then move to Way 3 once the flow is worth building a product around. The API underneath does not change, so nothing you learn is wasted.

What the agent must decide before it buys

Checkout is the easy part once you have an API. The hard part is making sure the agent buys the right thing. Before any order call, your system should have a clear answer to five questions:

  1. Which exact product? A model that says "a HEPA filter" has not decided anything. Require a product URL or ID, and check the title against the request (brand, size, model number, pack count).
  2. At what total? Compare the total with shipping and tax against the user's budget, not just the item price. Pass that number as max_price.
  3. Shipped where? Use a saved, validated address. Never let the model type an address from memory.
  4. Who approved it? Show the product, retailer, total, and delivery estimate, and require a yes for anything above a threshold. For recurring or low-value orders (restocks, rewards), approve a policy once instead of each order.
  5. What if it is out of stock? Decide up front: pick the next-best match automatically, ask the user, or skip.

The pattern that works: the model proposes, your code disposes. Let the model search, compare, and explain. Let deterministic code enforce the budget, the address, the approval, and the retry rules.

What goes wrong after checkout

A purchasing agent is not done when the order is placed. Plan for these from day one:

  • Price changes at checkout. Prices move between search and purchase. max_price turns a surprise charge into a failed order you can retry or report.
  • Split shipments. One order can ship in several boxes with several tracking numbers. Show all of them.
  • Cancellations by the retailer. Retailers cancel orders for stock or fraud reasons. Listen for failure webhooks and tell the user in plain language.
  • Returns. If the item is wrong or broken, you need a way to send it back without a support ticket. See Programmatic Returns API.
  • Duplicate orders. Models retry. Idempotency keys make retries safe.

Production checklist

Before you let an agent spend money:

  • Price ceiling on every order (max_price in cents)
  • Idempotency key derived from user + item + intent
  • Sandbox first with Zinc test mode
  • Webhooks for placed, failed, shipped, and delivered events (webhooks guide)
  • Saved, validated addresses only. The model never writes the address.
  • Human approval above a threshold (Slack, email, or in-app)
  • Allowlisted categories or SKUs for corporate and procurement flows
  • Returns path documented for support
  • Audit log of prompt, product chosen, total, and approver for every order

Example prompts to try

With the Universal Checkout skill or the Zinc MCP server connected:

  • "Find a cast iron skillet under $50 on Amazon or Walmart and order it to my saved office address."
  • "Buy a $40 gift for a coworker who likes hiking. Pick one product, show me first, then ship it."
  • "Restock 3 packs of AA batteries for the office. Keep the total under $30."
  • "When this product drops below $120, buy one and ship it to our warehouse." (see Amazon price tracker that auto-buys)

The same patterns power corporate gifting, new hire welcome gifts, and employee rewards.

FAQ

Can ChatGPT buy products for me?

Only through tools. Instant Checkout buys from merchants that implemented ACP. For Amazon, Walmart, Target, and other retailers, ChatGPT needs a connected tool, such as an MCP server backed by a purchasing API like Zinc.

What is the easiest API to let my app buy physical products?

For buying at US retailers, Zinc: one Create Order call with a product URL, address, and max_price, and it returns the order ID and tracking. Start at the docs or pricing.

How do MCP servers buy products?

They call a purchasing API on the agent's behalf. The MCP server is the adapter the model talks to; the purchasing API (Zinc, for example) is what checks out at the retailer. See Best MCP Servers for Retail.

Can an AI agent buy without a credit card on file?

Yes. Over MPP or x402, the agent pays per order from its own wallet when Zinc returns HTTP 402. With Stripe Connect, your end customer's card is charged per order instead.

How do I stop an AI agent from buying the wrong thing?

Keep the model out of the risky fields. Let it pick the product, but have your code set the address, the price cap (max_price), and the approval step. Check the chosen product's title against the request before calling the order endpoint.

Is it legal to let AI buy things for me?

Buying through an agent is still you buying, with your payment method and your address. What matters is that you authorized the purchase and the agent stayed within the limits you set. For business use, keep an audit log of who approved each order.

Do I need to build my own agent?

No. An agent skill or MCP server gives an existing agent (Claude, Cursor, OpenClaw) buying power in minutes. Build your own when purchasing is part of a product you ship to customers.

Next steps

  1. Install the Universal Checkout skill: npx skills add zincio/skills --skill universal-checkout
  2. Or connect the Zinc MCP server in your client
  3. Place a sandbox order in test mode, then wire up webhooks
  4. Read agentic commerce for the wider protocol landscape
Zinc
Zinc Agent
Give your AI agent commerce powers

Connect an agent to Zinc to search products, place orders, track shipments, and handle returns across top retailers.