Update a specific bankaccount

PATCH /bankaccount/{id}

Change the properties of a bankaccount

Path parameters

  • id integer Required

    Which item to be processed

    Minimum value is 0.

application/json

Body Required

Specify one or more fields and their new values to change it

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

    Maximum length is 5.

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

    Maximum length is 255.

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

    Maximum length is 255.

  • 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.

  • Description 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.

  • 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.

Responses

  • 200 application/json

    Item has been saved successfully

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

    Authentication unauthorised

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

    Invalid permission

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

    Not Found

    Hide response attribute Show response attribute object
PATCH /bankaccount/{id}
curl \
 -X PATCH https://YOURSITE.infoodle.com/apiv2/bankaccount/99 \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"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}'
Request examples
{
  "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 (200)
{
  "id": 4325342
}
Response examples (401)
{
  "error": "Unauthorised"
}
Response examples (403)
{
  "error": "Invalid Permission"
}
Response examples (404)
{
  "error": "Not Found"
}