{"uid":"cap_9LWlAA_PVyBcagjRIQAXQ","slug":"demo-caf-order-ahead-b69a409a","name":"Demo Café Order Ahead","description":"agentPickup lets AI agents order and pay at real shops, and people collect with a signed QR: retail, cafés, deliveries, anything handed over in person. Venues connect their Square in minutes and keep their POS. Customers pay by card, Apple Pay or Google Pay through the shop's own Square, or agents pay USDC over x402, straight to the shop.","url":"https://agentpickup.app/api/x402/order?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"name":{"type":"string","description":"Name on the order, shown to staff"},"items":{"type":"string","description":"Items as id:qty pairs, comma-separated. Defaults to one of the first menu item."}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"order":{"id":"ord_7HkQ2mXc9aRt","items":[{"id":"flat-white","qty":1,"name":"Demo Café"}],"status":"paid","currency":"usd"},"passUrl":"https://agentpickup.app/p/Ya7qVHjkKI7bn4gU","emailedTo":null}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"4.5","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":"$4.5/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"4.5","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"4.5","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Uo-cB6N-Z30KDxq79wuXW","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"4.5","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Places a demo food order at Demo Café counter and returns a pickup pass with QR code, paid in USDC via x402","exampleAgentPrompt":"Order a latte from Demo Café ahead of time under the name 'Alex' so I can pick it up at the counter — I want one of the first item on the menu.","exampleUseCases":[{"title":"Demo x402 payment flow","prompt":"Place a test order at Demo Café for 'Jordan' — just one of whatever the first menu item is — so I can see how the x402 USDC payment and QR pickup pass work end to end."},{"title":"Order ahead for quick pickup","prompt":"Put in an order at Demo Café counter under the name 'Sam' for two of item 'latte' and one of 'muffin' so I can grab them without waiting in line."},{"title":"Agent-driven café ordering demo","prompt":"Have my AI agent order from Demo Café — name it 'TestBot', grab one of the default menu item — and show me the QR code pickup pass it gets back."}],"resultDescription":"Returns a pickup pass containing a QR code and order details that the customer presents at the Demo Café counter to collect their order. The response includes order confirmation and a scannable QR code for staff verification.","failureModes":["Missing required 'name' or 'items' parameters may result in a default or malformed order","Invalid item ID format in the 'items' query param (must be id:qty pairs comma-separated) returns an error","Payment failure or insufficient USDC balance blocks the order from being placed","Service may return a demo/placeholder response since the shop explicitly states nothing is real"],"whenToPreferThis":"Use this endpoint when you want to demonstrate or test x402 USDC micropayment-gated API flows in a café ordering context, or when building agents that need to simulate order-ahead and pickup-pass generation. It is a demo environment, so prefer it for prototyping and testing rather than real commerce.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-30T12:31:38.571Z","isFirstParty":false,"canonicalSlug":"demo-caf-order-ahead-b69a409a"}