# Shop with an assistant

- Sentence the person signs: Pay 21.80 EUR for your basket
- Kind of approval: Pay and subscribe
- Who decides: A shopper
- Service: Pantry & Co, an online grocery
- Level: L2
- Capability: orders:checkout
- State: Live on the demo, with simulated identity

A shopper tells their assistant: "On shop.demo.allowedby.com, buy coffee beans and a mug, delivered to me." Today the assistant would need the shopper's account and card. Here it needs neither.

## What happens

1. The assistant reads the catalogue. Searching products is level 0, so nobody is asked anything.
2. It adds the items. Filling a basket is a reversible write at level 1. The shopper approves it once, and can allow it for longer than one request.
3. It calls checkout with the basket's total. Paying is irreversible, so the shop itself creates the approval, bound to this request and this amount.
4. The shopper opens the link, checks the four-character code, ticks the delivery details the shop needs, and signs with a passkey.
5. The assistant retries. The shop verifies the grant and places the order.

## What each side holds afterwards

| Side | Holds |
|---|---|
| Shopper | The approval in their wallet, with a receipt of the personal data shared |
| Assistant | The order number. It never sees the address, the card or a password |
| Shop | A signed record: who approved, which sentence, what amount, at what level |

## What cannot happen

- **The price changes after the yes.** The amount is in the signed grant. A different total is refused.
- **The order is placed twice.** The grant is single use, so a second attempt is refused as already consumed.
- **The assistant describes it differently.** The shop writes the sentence. The assistant supplies no text the shopper reads.

## Why level 2

This shop asks for a verified identity at checkout. It is the shop's choice, set on one route; another shop could take a passkey alone.

Source: https://allowedby.com/use-cases/shop-with-an-assistant
