Skip to content

v0.2.0 — Attachments

Choose a tag to compare

@AsyncAlchemist AsyncAlchemist released this 01 Jul 14:57

Attachments for bills, invoices & payments (#3)

Upload, list, download, and remove file attachments entirely from the CLI.

  • --attachment <path> (repeatable) on create/update for bill, invoice, payment; --remove-attachment on update
  • akt <noun> attachments <id> to list; akt <noun> download-attachment <id> [--out DIR] [--media-id ID] to fetch
  • Multipart attachment[] uploads with POST + _method=PATCH spoofing; nested single-attachment route for document-linked payment updates
  • Fix: updating a document-linked payment now resolves to the nested documents/{doc}/transactions/{id} route (the flat route 400s on document_id)
  • Attachment download logs in a web session (bytes aren't served by /api); server-supplied filenames are sanitized against path traversal

Unit + live integration tests cover the full lifecycle on standalone and document-linked payments and document create.