Skerry/ Reference/ Payment runs, favourites and routines
Payment runs, favourites and routines15
Paying bills together, and everyday orders. A payment run pays several bills at once, each through the usual payout path, so a spend policy, the new-payee hold or an approval decides each bill on its own; dry_run totals it first. A favourite is a merchant, restaurant, cafe, supplier or shop the person likes, with their usual orders. A routine is a reminder, a suggestion or an order on a schedule, under limits the person sets (per order, per week, quiet days, time away); a limit that is not met lowers an order to a suggestion, and every run is a routine.ran event with a plain receipt. Only official routes are used to order: a payee under the key's spend policy, or a reminder with a deep link into the merchant's own app. Details in docs/routines.md and docs/payables.md.
- A customer's payment runs. `?customer_id=` requiredget/payment-runs
- Pay several bills togetherpost/payment-runs
- One payment run with the result of each billget/payment-runs/{id}
- A customer's favourites. `?customer_id=` requiredget/favourites
- Save a favourite with the person's usual orderspost/favourites
- One favouriteget/favourites/{id}
- Change a favourite's name, place, deep link or usual orderspatch/favourites/{id}
- Remove a favourite; its routines are pauseddelete/favourites/{id}
- A customer's routines. `?customer_id=` requiredget/routines
- A reminder, a suggestion or an order on a schedule, under limitspost/routines
- What routines did, each with a plain receipt. `?customer_id=` requiredget/routines/runs
- One routine with its last 20 runsget/routines/{id}
- Change a routine's schedule, limits, amount or name, or pause itpatch/routines/{id}
- Delete a routine and its runsdelete/routines/{id}
- Skip the next run, once; send again to undopost/routines/{id}/skip