Some "liabilities" categories cannot be used in a Journal

Having implemented a crude workaround for /v2/categories endpoint doesn’t list "liabilities" - #2 by Shaheed_Haque, I am able to upload journals with SOME liabilities categories. Here is an (abbreviated) journal that works:

data = {
    'journal_set': {
        'url': 'https://api.freeagent.com/v2/journal_sets/paiyroll_w1_2019-01-01',
        'dated_on': '2019-01-01',
        'description': 'Payrun.bpmn#8828.Franecki Group:w1:2019-01-01',
        'journal_entries': [{
...
            'debit_value': '7615.39'
        }, {
...
            'debit_value': '983.86'
        }, {
...
            'debit_value': '114.25'
        }, {
...
            'category': 'https://api.sandbox.freeagent.com/v2/categories/660',
...
            'debit_value': '-4320.91'
        }, {
...
            'category': 'https://api.sandbox.freeagent.com/v2/categories/731',
...
            'debit_value': '-2927.82'
        }, {
...
            'category': 'https://api.sandbox.freeagent.com/v2/categories/761',
...
            'debit_value': '-983.86'
        }, {
...
            'debit_value': '-252.41'
        }, {
...
            'debit_value': '-114.25'
        }, {
...
            'debit_value': '-114.25'
        }]
    }
}

As per the above, liabilities 660, 731 and 761 work just fine (and the journal balances). However, using liabilities 750 and 904 causes “resource not found” errors.

So, what is special about 750 and 904? Is it something specific to my sandbox or generic to FreeAgent? Any advice appreciated.

Thanks, Shaheed

Hi again Shaheed, I am Nikolas and I am one of the engineers here at FreeAgent.

Code 750 refers to bank accounts. We no longer support bank account journals, which is why your request does not succeed. Our API docs mention:

It is no longer possible to journal to/from bank accounts, so this is provided for historical data only

As for code 904, I think your request is unsuccessful because you are not providing the user the journal is for. Please refer to the “Additional attributes for user categories” section of the docs for the attribute that needs to be included.

Hope this helps.

Many thanks,
Nikolas

@Nikolas thanks for the information.

From your comment on 904, I think I now understand that I need to remove some of the codes I scraped from the Liabilities tab based on the Reporting Type.

Likewise, from your comment on 750, I see that it appears on the Current Assets tab, and so is also unavailable for use. Can I suggest that the help text in the dialog for adding user-defined rows to Liabilities be corrected, as it currently claims that the code

can be any unique value from 731 to 780

when it clearly cannot. (FWIW, the validation does in fact stop 750 being used).

Anyway, I think you have given me what I need; many thanks!