Skip to main content

updateBankAccount

Requires permission payments:bank-account:update.

Updates a bank account's details. The running balance cannot be set here; use adjustBankAccountBalance. Requires permission to update bank accounts.

Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.

Example:

mutation UpdateBankAccount($id: ID!, $input: UpdateBankAccountInput!) {
updateBankAccount(id: $id, input: $input) {
id
accountNumber
branchCode
currencyCode
swiftCode
accountName
}
}

Variables:

{
"id": "id",
"input": {}
}

Response:

{
"data": {
"updateBankAccount": {
"id": "id",
"accountNumber": "string",
"branchCode": "string",
"currencyCode": "string",
"swiftCode": "string",
"accountName": "string"
}
}
}
updateBankAccount(
id: ID!
input: UpdateBankAccountInput!
): BankAccount!

Arguments​

updateBankAccount.id ● ID! non-null scalar​

The ID of the bank account.

updateBankAccount.input ● UpdateBankAccountInput! non-null input​

The fields to change.

Type​

BankAccount object​

A bank account the organization receives money into or pays from, in one currency.