On Sat, 6 Apr 2019 11:29:20 +0800 Christopher Lam <christopher....@gmail.com> wrote:
> I have it in my near todo.txt to add export-json from > income-gst-statement.scm which calculates net & VAT amounts. > > I will *not* be writing bridging software. Good, also interesting, in that I never considered exporting from the reports. I guess for self assessment the data could be exported from the same report ? But then I'm not good with scheme. I was becoming concerned that by the time this becomes compulsory (which it already is for VAT. Although the gov. have allowed a further breaking in time) no one would have written this for GnuCash, hence the Python bridge. I really did not want to buy another computer running Windows 10, plus an accounting package to submit my small self employed earnings. I could employ an tax agent every quarter to submit for me I suppose. I guess that applies to many GnuCash users. > > If anyone can find the exact json format expected for HMRC I'll get it done. For VAT there are examples at https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/vat-api/1.0#_submit-vat-return-for-period_post_accordion although I've not tested anything there yet. I've only tested the Self Assessment API at https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/self-assessment-api/2.0#selfemployment-business_get-a-selfemployment-periodic-update_get_accordion in the posted Python scripts. For creating a test user for VAT this looks like the page https://developer.service.hmrc.gov.uk/api-documentation/docs/api/service/api-platform-test-user/1.0#_create-a-test-user-which-is-an-individual_post_accordion I'll try that with some python later. Have you registered as a developer with HMRC? What's your solution to the client_secret problem? Mike E _______________________________________________ gnucash-devel mailing list gnucash-devel@gnucash.org https://lists.gnucash.org/mailman/listinfo/gnucash-devel