Creditor Bank Account
Creditor Bank Accounts hold the bank details of a creditor. These are the bank accounts which your payouts will be sent to.
Note that creditor bank accounts must be unique, and so you will encounter a bank_account_exists error if you try to create a duplicate bank account. You may wish to handle this by updating the existing record instead, the ID of which will be provided as links[creditor_bank_account] in the error response.
Restricted: This API is not available for partner integrations.
Create a creditor bank account#
/creditor_bank_accountsCreates a new creditor bank account object.
Request Body
creditor_bank_accountsobject11 properties
account_numberstring
Bank account number - see local details for more information. Alternatively you can provide an iban.
bank_codestring
Bank code - see local details for more information. Alternatively you can provide an iban.
branch_codestring
Branch code - see local details for more information. Alternatively you can provide an iban.
ibanstring
International Bank Account Number. Alternatively you can provide local details. IBANs are not accepted for Swedish bank accounts denominated in SEK - you must supply local details.
country_codestring
ISO 3166-1 alpha-2 code. Defaults to the country code of the iban if supplied, otherwise is required.
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
account_holder_namestring
Name of the account holder, as known by the bank. Usually this is the same as the name stored with the linked creditor. This field will be transliterated, upcased and truncated to 18 characters.
account_typestring
Bank account type. Required for USD-denominated bank accounts. Must not be provided for bank accounts in other currencies. See local details for more information.
savingscheckingset_as_default_payout_accountboolean
Defaults to true. When this is set to true, it will cause this bank account to be set as the account that GoCardless will pay out to.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
1 properties
creditorstring
ID of the creditor that owns this bank account.
Response 201
Resource created successfully
creditor_bank_accountsobject12 properties
idstring
Unique identifier, beginning with "BA".
created_atstring
Fixed timestamp, recording when this resource was created.
account_holder_namestring
Name of the account holder, as known by the bank. Usually this is the same as the name stored with the linked creditor. This field will be transliterated, upcased and truncated to 18 characters.
account_number_endingstring
The last few digits of the account number. Currently 4 digits for NZD bank accounts and 2 digits for other currencies.
account_typestring
Bank account type. Required for USD-denominated bank accounts. Must not be provided for bank accounts in other currencies. See local details for more information.
savingscheckingcountry_codestring
ISO 3166-1 alpha-2 code. Defaults to the country code of the iban if supplied, otherwise is required.
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
bank_namestring
Name of bank, taken from the bank details.
enabledboolean
Boolean value showing whether the bank account is enabled or disabled.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
1 properties
creditorstring
ID of the creditor that owns this bank account.
verification_statusstring
Verification status of the Bank Account. Can be one of pending, in_review or successful
pendingin_reviewsuccessfulcould_not_verifyErrors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectList creditor bank accounts#
/creditor_bank_accountsReturns a cursor-paginated list of your creditor bank accounts.
Response 200
Successful response
creditor_bank_accountsarray12 properties
idstring
Unique identifier, beginning with "BA".
created_atstring
Fixed timestamp, recording when this resource was created.
account_holder_namestring
Name of the account holder, as known by the bank. Usually this is the same as the name stored with the linked creditor. This field will be transliterated, upcased and truncated to 18 characters.
account_number_endingstring
The last few digits of the account number. Currently 4 digits for NZD bank accounts and 2 digits for other currencies.
account_typestring
Bank account type. Required for USD-denominated bank accounts. Must not be provided for bank accounts in other currencies. See local details for more information.
savingscheckingcountry_codestring
ISO 3166-1 alpha-2 code. Defaults to the country code of the iban if supplied, otherwise is required.
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
bank_namestring
Name of bank, taken from the bank details.
enabledboolean
Boolean value showing whether the bank account is enabled or disabled.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
1 properties
creditorstring
ID of the creditor that owns this bank account.
verification_statusstring
Verification status of the Bank Account. Can be one of pending, in_review or successful
pendingin_reviewsuccessfulcould_not_verifymetaobject2 properties
limitintegercursorsobject
2 properties
beforestring
Cursor pointing to the end of the desired set.
afterstring
Cursor pointing to the start of the desired set.
Errors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectGet a single creditor bank account#
/creditor_bank_accounts/{creditor_bank_account_id}Retrieves the details of an existing creditor bank account.
Path Parameters
| Name | Type | Description |
|---|---|---|
creditor_bank_account_idrequired | string | The creditor bank account id |
Response 200
Successful response
creditor_bank_accountsobject12 properties
idstring
Unique identifier, beginning with "BA".
created_atstring
Fixed timestamp, recording when this resource was created.
account_holder_namestring
Name of the account holder, as known by the bank. Usually this is the same as the name stored with the linked creditor. This field will be transliterated, upcased and truncated to 18 characters.
account_number_endingstring
The last few digits of the account number. Currently 4 digits for NZD bank accounts and 2 digits for other currencies.
account_typestring
Bank account type. Required for USD-denominated bank accounts. Must not be provided for bank accounts in other currencies. See local details for more information.
savingscheckingcountry_codestring
ISO 3166-1 alpha-2 code. Defaults to the country code of the iban if supplied, otherwise is required.
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
bank_namestring
Name of bank, taken from the bank details.
enabledboolean
Boolean value showing whether the bank account is enabled or disabled.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
1 properties
creditorstring
ID of the creditor that owns this bank account.
verification_statusstring
Verification status of the Bank Account. Can be one of pending, in_review or successful
pendingin_reviewsuccessfulcould_not_verifyErrors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobjectDisable a creditor bank account#
/creditor_bank_accounts/{creditor_bank_account_id}/actions/disableImmediately disables the bank account, no money can be paid out to a disabled account.
This will return a disable_failed error if the bank account has already been disabled.
A disabled bank account can be re-enabled by creating a new bank account resource with the same details.
Path Parameters
| Name | Type | Description |
|---|---|---|
creditor_bank_account_idrequired | string | The creditor bank account id |
Response 200
Action completed successfully
creditor_bank_accountsobject12 properties
idstring
Unique identifier, beginning with "BA".
created_atstring
Fixed timestamp, recording when this resource was created.
account_holder_namestring
Name of the account holder, as known by the bank. Usually this is the same as the name stored with the linked creditor. This field will be transliterated, upcased and truncated to 18 characters.
account_number_endingstring
The last few digits of the account number. Currently 4 digits for NZD bank accounts and 2 digits for other currencies.
account_typestring
Bank account type. Required for USD-denominated bank accounts. Must not be provided for bank accounts in other currencies. See local details for more information.
savingscheckingcountry_codestring
ISO 3166-1 alpha-2 code. Defaults to the country code of the iban if supplied, otherwise is required.
currencystring
ISO 4217 currency code. Currently "AUD", "CAD", "DKK", "EUR", "GBP", "NZD", "SEK" and "USD" are supported.
bank_namestring
Name of bank, taken from the bank details.
enabledboolean
Boolean value showing whether the bank account is enabled or disabled.
metadataobject
Key-value store of custom data. Up to 3 keys are permitted, with key names up to 50 characters and values up to 500 characters.
linksobject
1 properties
creditorstring
ID of the creditor that owns this bank account.
verification_statusstring
Verification status of the Bank Account. Can be one of pending, in_review or successful
pendingin_reviewsuccessfulcould_not_verifyErrors 400401404422500
Bad Request
Unauthorised
Not found
Validation Error
Internal Error
Error Body
codeintegerdocumentation_urlstringerrorsarray2 properties
reasonstringmessagestringmessagestringrequest_idstringtypestringmetadataobjectlinksobject