Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: API for appending entries #1026

MisterY opened this issue May 14, 2019 · 2 comments


None yet
2 participants
Copy link

commented May 14, 2019

A simpler version of #1005. Related to #940.

Thanks for pointing me out to JSON API endpoints in hledger-web. This seems the perfect solution for the synchronization of Cashier (PWA application for quick transaction entry) and the main book.
While I would not go as far as to insert transaction Ids, and hledger is smart enough to figure out the date sorting for transactions, a simple appending would work for me.
The idea is to have Cashier connect (via ngrok?) to one's own instance of hledger-web and post the entered entries, get a positive response, and clear out the store.
(The /accounts command is useful for getting back the balance sheet)

I assume that some sort of append functionality already exist due to existence of hledger-add and other related entry tools. Hence it would be a matter of exposing it, unless it's already there but I've missed it?


This comment has been minimized.

Copy link

commented May 14, 2019

It's there in the API - #316 (comment) - but I see I forgot to add it to the manual. Will do.


This comment has been minimized.

Copy link

commented May 14, 2019

Simon, you are always two steps ahead! :D
Adding to my to-do list for Cashier.

@MisterY MisterY closed this May 14, 2019

@simonmichael simonmichael added the docs label May 14, 2019

simonmichael added a commit that referenced this issue May 14, 2019

simonmichael added a commit that referenced this issue May 14, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.