Skip to main content
You need a beta partner API key. This walkthrough uses MCP tool names; the same steps work on REST.

1. Connect

See Connect your agent. Confirm the host lists the agentmall tools.

2. Create a session

Keep the returned session_id for every later call. Sessions start as a signed-out guest browser. Catalog (default):
If results look empty or off-topic (common for groceries), retry with live merchant search:
Each item includes title, price, availability, product_id, and a url for the cart. Check titles before you use a result.

4. Add to cart

product_id is optional correlation only. Confirm with read_cart.

5. Place order — review

Guest checkout: pass an address and a card (or vault refs). Prefer vault_ref so PANs never sit in tool logs.
Response: status: "awaiting_confirmation" and a review with lines, totals, review_hash, and total / amount in minor units. Nothing is placed yet.

6. Place order — commit

Show the review to your user. Call again with the same address/payment inputs plus:
If the cart or total changed, you get review_changed / total_mismatch — get a fresh review and confirm again. If you get commit_unknown, call get_order and do not retry.

7. Track

Or open Sessions and Orders in the console with your key.

Next