# Provider guide

An agent cannot ask you a question. What it sees is your 402, your error body, and whether you
answered GET.

## Rule 1 - the 402 names a working example

Every 402 carries `extensions.bazaar.info.input`; agents copy it verbatim. An invalid example,
a placeholder, or a container that cannot be expressed as a query string means every caller
following your own documentation fails.

Measured here: array/object examples advertised as raw JSON produced 400s for a week, because a
query string cannot carry a container. Advertise the string form and parse it.

## Rule 2 - answer GET as well as POST

Some clients cannot send a body.

## Rule 3 - fail loudly

- `ok:false` with `cause` when a sub-step fails. `ok:true` around a failed sub-step settles as
  delivered and the buyer pays for nothing.
- 4xx for caller mistakes, 5xx for yours.
- Never answer 200 for a request you did not process.

## Rule 4 - say what you mean in the description

The description travels into the payment payload. Too long and settlement is rejected silently,
with an error that never mentions length. Keep first-party descriptions under 480 characters.

## Per-category notes

- Data endpoints (price, gas, positions): the repeat-use category. Cache honestly, say how stale.
- One-shot utilities: expect one call per buyer; price accordingly.
- Third-party listings: paid directly to the address in your own 402.
