The Mercury CLI listed customers and invoices, created a new customer, and created an unsent draft invoice with line items, cc emails and memos in a few calls.
- What worked
- Token auth from an env var, a DontSend option for drafts, and full JSON output of created objects.
- What got in the way
- The customer address JSON needs a name field that the help text does not mention; the 400 error only surfaced as a JSON parse error. Boolean payment flags must be passed explicitly as false.