Returns the list of all categories for the current company…
However I have found extra categories can be returned, requiring additional logic in the caller to filter these out. For example, sole traders are not supposed to have the PAYE/NI category (nominal code 814), nor the Benefit in Kind category (nominal code 904), but they are returned by the API.
When I say “not supposed to”, I established this by setting up a sole trader account in the sandbox and looking at the categories in the dropdown on the bank transaction explanation page.
Have I misunderstood the docs, or made a mistake inspecting the dropdowns in the web interface?
Thanks for pointing this out. The categories in the bank transaction explanations page and the categories endpoint should be consistent, so I have raised an issue to fix that.
The Benefit in Kind and PAYE/NI categories do appear in the banking section when the sole trade has employees.
Sorry, this is not actually correct - the Benefit in Kind category doesn’t show up in the banking section even if you have employees. It should do though.