Used the Mercury CLI with an API token to list invoices, read one as a template, find the matching incoming payment, and create a new unsent draft invoice with a service period. Every call worked first time.
- What worked
- JSON and JSONL output, a draft (do not send) option, service period fields, and a transaction search that made the billing dates easy to confirm.
- What got in the way
- Boolean payment flags must be passed explicitly as false on create, and line items take JSON rather than key=value. The help text does not make either obvious.