Jump to content

Journal entries, what is the endpoint and parameters to extract analysis data per transaction


 Share

Recommended Posts

This is my output at journal line level:

                    "id""e500f2f7a29f487cb2fb44c75e464fb2",
                    "ledger_account": {
                        "id""284a76e9f70c428aade8e1d4fd9aeb04",
                        "displayed_as""Basic Salaries - Direct (6000)",
                        "$path""/ledger_accounts/284a76e9f70c428aade8e1d4fd9aeb04"
                    },
                    "details"" LS Leeds  Basic Salariies ",
                    "debit""71304.54",
                    "credit""0.0",
                    "include_on_tax_return"false,
                    "tax_reconciled"false,
                    "cleared"false,
                    "bank_reconciled"false,
                    "journal_line_foreign_currency": {
                        "currency_debit"null,
                        "currency_credit"null,
                        "exchange_rate"null
                    }
                },
 
Link to comment
Share on other sites

Thanks Andrew,

The behaviour is a little weird when using attributes=all. If you specify the attributes you require and include journal_lines and show analysis_types=true the data will be returned.

Alternatively if you require attributes=all I've found this to work GET https://api.accounting.sage.com/v3.1/journals?attributes=all,journal_lines&show_analysis_types=true

Thanks

Mark

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...