1. Connect
See Connect your agent. Confirm the host lists theagentmall tools.
2. Create a session
session_id for every later call. Sessions start as a signed-out guest browser.
3. Search
Catalog (default):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). Prefervault_ref so PANs never sit in tool logs.
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: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
Next
- Auth and keys — caps and 401s
- Errors — codes your agent should handle
- Order flow — states after placement
- MCP tools — full input tables