# Search account codes **POST /accountcode/search/{fromthisid}** Limited to those the user can see. Filtered by the posted fields. Returned in ID order ## Servers - API Auto Mocking: https://YOURSITE.infoodle.com/apiv2 (API Auto Mocking) ## Authentication methods - O auth2 ## Parameters ### Path parameters - **fromthisid** (integer) The ID that is previous to the one to start from e.g. if IDs are 1,2,3 fromthisid as 1 will return 2,3 ### Body: application/json (object) 1 or more Search parameters - **search** (array[object]) ## Responses ### 200 List returned OK #### Body: application/json (array[object]) - **id** (integer) - **accountcode** (string) - **name** (string) - **incomeexpense** (integer) Whether this is an income (1) or expense account code (0) - **taxable** (integer) Referenced when defaulting reconciliation, or identifying transactions that can be used to reclaim gift aid. Its a taxable code when its 1, non taxable when 0 - **salestax** (integer) Referenced when showing tax (VAT, GST). Sales tax is included when its 1, no sales tax applies when its 0 - **sort_order** (integer) The order this code appears in the list - **xero_account_id** (string) If this is a xero account code, its the ID in xero. Read only - **xero_status** (string) shows if the code is still available in xero. Blank if its not a xero account code. Read only - **primary_for_duplicates** (integer) When the code is duplicated in infoodle (for different settings), this identifies which is the primary one for reports - **for_group_id** (integer) If this code is only to be referenced by a specific group. This is the group id that the user must have access to. ### 401 Authentication unauthorised #### Body: application/json (object) - **error** (string) ### 403 Invalid permission #### Body: application/json (object) - **error** (string) [Powered by Bump.sh](https://bump.sh)