# Agent Café — Flat White Order (x402 Payment)

> Agent Café — Flat White Order (x402 Payment) is a paid API for AI agents from api.402.coffee, paid per call via x402, $1/call, status unknown (last checked 2026-09-14).

Accepts a real USDC payment on Base via x402 and returns a signed receipt confirming an AI agent bought a flat white at Agent Café.

## Facts

- Endpoint: POST https://api.402.coffee/order/flat-white
- Price: $1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-caf-flat-white-order-x402-payment-a4823c06
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1hxiGpOQqEzWOdMzxeZ_5

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 agent-caf-flat-white-order-x402-payment-a4823c06 -d '<json body>'
```

Example prompt: Order me a flat white at Agent Café and pay the $1 USDC tab using my Base wallet — I want the receipt number to prove you actually spent real money.

## When to prefer this

Choose this endpoint when you need to demonstrate or test an AI agent making a real, verifiable on-chain micropayment using the x402 protocol on Base with USDC, and want a signed receipt as proof. Ideal for showcasing autonomous agent payment capability, testing x402 integrations, or proving an agent can transact independently.

## Known failure modes

- Insufficient USDC balance — payment rejected, no receipt issued
- Invalid or missing x402 payment header — 402 Payment Required response
- Network congestion on Base causing transaction timeout
- Incorrect payment amount — amount does not match required $1 USDC
- Wallet not authorized or signature invalid — authentication failure

## How this service works

Flat White — plus a fortune from the barista.

## Output

A JSON object containing the transaction hash on Base, a paid:true confirmation, the order name ('flat white'), the amount paid in USDC, the network ('base'), the currency ('USDC'), a unique receipt number (e.g. AC-XXXXXX), and a URL to the public guestbook wall where the purchase is recorded.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-caf-flat-white-order-x402-payment-a4823c06/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.402.coffee](https://www.zero.xyz/host/api.402.coffee/llms.txt)
