Search bank accounts
Filtered by the posted fields. Returned in ID order
Path parameters
-
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
POST
/bankaccount/search/{fromthisid}
curl \
-X POST https://YOURSITE.infoodle.com/apiv2/bankaccount/search/4 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"search":[{"by":"name","value":"Test Item"}]}'
Request examples
{
"search": [
{
"by": "name",
"value": "Test Item"
}
]
}
Response examples (200)
[
{
"id": 123,
"bank_code": 12,
"branch_code": 3122,
"bank_account_id": "029321-209",
"bank_account_code": "12-309123-1390291123-10232",
"currency_code": "NZD",
"account_type": "checking",
"name": "ASB Donations Account",
"description": "Used to manage all donations",
"xero_account_id": "62f28bd8-3d47-4302-88a3-dc6ff53d8126",
"xero_status": "OK",
"for_group_id": 543
}
]
Response examples (401)
{
"error": "Unauthorised"
}
Response examples (403)
{
"error": "Invalid Permission"
}