{"uid":"cap_gljaIpry0mSUPFqQ4s_qJ","slug":"oneshot-agent-commerce-buy-0a3f43a5","name":"OneShot Agent Commerce Buy","description":"Tools, payments, and compute orchestration for autonomous AI agents.\n\n## Authentication\n\n- **`x402Payment`** — paid tool endpoints use the [x402 payment protocol](https://x402.io).\n  First call returns `402 Payment Required` with a quote; sign and resend the request\n  with `Authorization: <signed payment header>` and `X-Quote-ID: <quote_id>`.\n- **`agentId`** — free read-only endpoints accept `X-Agent-ID: <wallet>` (0x… address).\n- **`soulKey`** — soul marketplace seller dashboard uses `Authorization: Bearer soul_…`\n  (issued by `POST /v1/soul/register`).\n- **`acpBearer`** — Stripe ACP checkout sessions use a separate bearer token plus the\n  `API-Version: 2026-01-30` header.\n\n## Async tools & polling\n\nMost tool endpoints return `202 Accepted` with `{ request_id, tool, status }`. Poll\n`GET /v1/requests/{id}` (with the same `X-Agent-ID`) to retrieve the final result.\nA WebSocket fallback is available at `wss://<host>/v1/requests/subscribe`.\n\n## Pricing\n\nSee [docs.oneshotagent.com/pricing](https://docs.oneshotagent.com/pricing) for the full\ntable. Per-call costs for this environment, rendered from the same config the routes bill from:\n\n| Tool | Cost |\n|---|---|\n| Web search | $0.001 |\n| Web read | $0.002 |\n| Research | $0.01 |\n| Person enrichment | $0.005 |\n| Email verification | $0.001 |\n| Deep research (person) | $0.05 |\n| Social profiles | $0.50 |\n| Local business search | $0.01 |\n| Commerce search | $0.002 |\n| LinkedIn history sync | $0.02 per bounded run |\n| LinkedIn reply | $0.02 per message |\n| LinkedIn profile view | $0.01 per view |\n| LinkedIn post reaction | $0.01 per reaction |\n| Email send | quote-based; service fee from $0.005 per send |\n| SMS send | $0.0035 per segment per recipient |\n| Voice call | $0.35/minute + $5.00 number registration on the first call |\n| Browser task | quote-based; minimum $0.005 |\n| Website build | quote-based; from $1.00 |\n| Compute goal | quote-based; minimum budget $1.00 + 20% platform fee |\n\n## Error format\n\n`{ \"error\": \"<machine_code>\", \"message\": \"<human readable>\", \"details\": <optional> }`.\nValidation errors include a `details` field with the failing field paths.","url":"https://win.oneshotagent.com/v1/tools/commerce/buy?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"quantity":{"type":"number"},"product_url":{"type":"string","format":"uri"}}},"responseSchema":{"type":"json","example":{"tool":"commerce","status":"processing","receipt_id":"rcpt_uuid","request_id":"uuid"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_lSmItFrTTzNCax5lfK24H","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Purchases a product from a URL on behalf of an AI agent, initiating a commerce transaction and returning a receipt","exampleAgentPrompt":"Go ahead and buy 2 units of this product for me: https://www.example-store.com/products/wireless-headphones — handle the purchase and give me the receipt ID when it's done.","exampleUseCases":[{"title":"Agent auto-reorders low inventory","prompt":"We're running low on office supplies — go buy 10 units of this stapler from https://officesupplystore.com/products/heavy-duty-stapler and send me the receipt."},{"title":"Gift purchase on behalf of user","prompt":"Buy 1 of these as a gift from https://giftshop.com/products/custom-mug — just one unit, and let me know the receipt ID once the order is placed."},{"title":"Automated dropship order fulfillment","prompt":"A customer just ordered, so please purchase 1 unit of https://supplier.com/products/bluetooth-speaker now to fulfill it — I need the receipt and request ID to track it."}],"resultDescription":"Returns a JSON object with the tool name ('commerce'), processing status, a unique receipt_id for the transaction, and a request_id for polling the async result via GET /v1/requests/{id}.","failureModes":["Invalid or unreachable product_url returns an error","Quantity of 0 or negative may be rejected","Payment 402 must be handled before the purchase proceeds — unsigned or missing payment header causes rejection","Product out of stock or unavailable at the target URL","Async job may fail after 202 acceptance — poll /v1/requests/{id} to detect final failure","Unsupported retailer or region may result in a failed fulfillment"],"whenToPreferThis":"Use this endpoint when an AI agent needs to autonomously purchase a product from an e-commerce URL without human checkout interaction. Prefer this over search-only or browse endpoints when you have a specific product URL and quantity ready. It is the right choice when you need a receipt and async tracking of a fulfilled order, and when you are prepared to handle x402 micropayment authentication.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-11T00:40:57.334Z","isFirstParty":false,"canonicalSlug":"oneshot-agent-commerce-buy-0a3f43a5"}