# Demo Café Order Ahead

> Demo Café Order Ahead is a paid API for AI agents from agentpickup.app, paid per call via x402, $4.5/call, status unknown (last checked 2026-11-30).

Places a demo food order at Demo Café counter and returns a pickup pass with QR code, paid in USDC via x402

## Facts

- Endpoint: GET https://agentpickup.app/api/x402/order?utm_source=zero.xyz
- Price: $4.5/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/demo-caf-order-ahead-b69a409a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9LWlAA_PVyBcagjRIQAXQ

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability demo-caf-order-ahead-b69a409a
```

Example prompt: 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.

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

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.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "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"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "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
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/demo-caf-order-ahead-b69a409a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentpickup.app](https://www.zero.xyz/host/agentpickup.app/llms.txt)
