Source accounts
Update source account
The Update source account endpoint updates a single source account for a single data connection connected to a single company.
Tips and pitfalls
- This endpoint makes it possible to update the accountName, status, and balance fields.
- The status field can only be updated to 'disconnected'.
- The balance field can only be updated on accounts that are not 'connected'.
- Updates made here apply exclusively to source accounts and will not affect target accounts in the accounting software.
patch/companies/{companyId}/connections/{connectionId}/connectionInfo/bankFeedAccounts/{accountId}
Path parameters
companyIdstring uuid required
Unique identifier for your SMB in Codat.
Example:8a210b68-6988-11ed-a1eb-0242ac120002
Unique identifier for a company.
connectionIdstring uuid required
Unique identifier for a company's data connection.
Example:2e9d2c44-f675-40ba-8049-353bfcb5e171
Unique identifier for a connection.
accountIdstring required
Example:13d946f0-c5d5-42bc-b092-97ece17923ab
Unique identifier for an account.
Request body
Example request
{
"id": "acc-002",
"accountName": "account-081",
"sortCode": "123456",
"accountType": "Credit",
"accountNumber": "12345670",
"currency": "GBP",
"balance": 99.99,
"modifiedDate": "2023-01-09T14:14:14.1057478Z",
"status": "pending"
}Response
Success
Example response
{
"id": "acc-002",
"accountName": "account-081",
"sortCode": "123456",
"accountType": "Credit",
"accountNumber": "12345670",
"currency": "GBP",
"balance": 99.99,
"modifiedDate": "2023-01-09T14:14:14.1057478Z",
"status": "pending"
}