2 years ago
GL JournalTransactions API - [Message, The Company File version is not supported.]
I have a local install of AccountRight which I want to make calls on the API vuia a Python script.
My URL is made from:
endpoint = f"{MYOB_ENDPOINTS['general_ledger_journal_transaction']}/?$filter=DateOccurred ge datetime'{start}' and DateOccurred le datetime'{end}'"
When I call:
http://192.168.x.x:8080/accountright/<company ID>/GeneralLedger/JournalTransaction/?$filter=DateOccurred%20ge%20datetime'2022-01-01'%20and%20DateOccurred%20le%20datetime'2022-12-31'
In my code I get the error:
error: 404 Client Error: Not Found for url
If I browse to the URL I get the message:
[Message, The Company File version is not supported.]
I am requesting this accross a number of companies, some work but many do not. Is this a version thing or am I doing it all wrong? :)
Each company file has been opened and upgraded via the UI.
tia
W