Kawa Coffee API #
Order coffee ahead, pay for it, and get told when it is ready.
A sample API for a chain of coffee shops. Every request needs a bearer token from the developer console.
Base URL https://api.kawa-coffee.example/v2 · OpenAPI 3.1.0 · v2.3.0 · 12 operations · 9 models · 1 journey
Resources #
| Resources | List | Create | Read | Update | Delete | Other |
|---|---|---|---|---|---|---|
| MenuDrinks and the options each one takes. | GET/menu-items | — | GET/menu-items/{itemId} | — | — | — |
| OrdersAn order is what a customer asks one store to make. | GET/orders | POST/orders | GET/orders/{orderId} | PATCH/orders/{orderId} | — | POST/orders/{orderId}/cancel |
| PaymentsOne payment settles one order. | — | POST/payments | GET/payments/{paymentId} | — | — | — |
| StoresOpening hours and how busy each store is. | GET/stores | — | — | — | — | GET/stores/{storeId}/queueSince 2.3.0 |
| Webhooks | — | — | — | — | — | HOOKorder.paid |
Journeys #
- Order and pay — From picking a drink to hearing that the payment went through.
Models #
CreateOrderRequestLineItem— One drink of an order, with its options.MenuItem— A drink on the menu.Money— An amount in the smallest unit of a currency.OrderOrderStatus— Where an order is in its life.PaymentProblem— An RFC 9457 problem detail.Store


Comments