List a page of batch where the ID is greater than the optionally supplied fromthisid parameter

GET /batch/list/{fromthisid}

List is limited to those batches the logged in user can see. Returned in ID order.

Path parameters

  • fromthisid integer Required

    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

Responses

  • 200 application/json

    List returned OK

    Hide response attributes Show response attributes object
    • id integer

      Minimum value is 1.

    • Use this to store the short version of a batch, generally around 20 chars max

      Maximum length is 255.

    • Longer description of the batch

      Maximum length is 255.

    • Optional but recommended. If supplied, must link to the BankAccount this batch is imported from.

    • If the user is a clustered login, then this must be supplied. Otherwise its optional but must link to a group the login has access to.

    • The CORE user id of the contact who created this. -1 means a system user. This is read-only. When adding, the logged in user is used.

    • When the item was created

    • When the batch was closed

    • Optional parts of a bank account code. Use as required by your bank account coding configurations. Free text

      Maximum length is 100.

    • Which 3 character code for this currency

      Maximum length is 20.

    • Optional. Describes the type of bank account

      Maximum length is 50.

    • name string

      Name of the bank account

      Maximum length is 255.

    • If this is a xero account code, its the ID in xero. Read only

      Maximum length is 100.

    • shows if the code is still available in xero. Blank if its not a xero account code. Read only

      Maximum length is 50. Values are OK or No longer in Xero.

  • 401 application/json

    Authentication unauthorised

    Hide response attribute Show response attribute object
  • 403 application/json

    Invalid permission

    Hide response attribute Show response attribute object
GET /batch/list/{fromthisid}
curl \
 -X GET https://YOURSITE.infoodle.com/apiv2/batch/list/4 \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "id": 123,
    "batch_code": "Imported-2025-05-01",
    "description": "Transactions imported during 1st May 2025 for event cash donations",
    "bank_account_id": 24,
    "for_group_id": 543,
    "created_by_user_id": [
      325231,
      -1
    ],
    "datetime_created_local": "2025-04-30 20:43:59",
    "datetime_closed_local": "2025-04-30 20:43:59",
    "bank_account_code": "12-309123-1390291123-10232",
    "currency_code": "NZD",
    "account_type": "checking",
    "name": "ASB Donations Account",
    "xero_account_id": "62f28bd8-3d47-4302-88a3-dc6ff53d8126",
    "xero_status": "OK"
  }
]
Response examples (401)
{
  "error": "Unauthorised"
}
Response examples (403)
{
  "error": "Invalid Permission"
}