⬆️Update BankAccount Type

A Customers Bank Account Type may be updated if required.

Update BankAccount Type

PATCH {{baseUrl}}/bank-accounts/:bank_account_id

Path Parameters

Key
Value
Description

bank_account_id*

String

The UUID for a customers Bank Account that gets generated and returned in the POST Create New Bank Account response.

The Bank Account types include online, statement and USSD.

Status Codes

chevron-right200 - OK hashtag

Bank Account Type Updated

{
    "data": {
        "id": "{{bankAccountId}}",
        "customer_id": "{{customerId}}",
        "type": "statement",
        "bank": "absa",
        "num_transactions": 0,
        "last_updated": "2023-04-20T13:48:35.000000Z",
        "first_transaction": null,
        "last_transaction": null
    }
}
chevron-right404 - Not Found hashtag

Bank Account Not Found

{
    "errors": {
        "code": "entity_not_found",
        "message": "Record not found in module_bank_accounts"
    }
}
chevron-right422 - Unprocessable Contenthashtag

Bank Type can not be updated

{
    "errors": {
        "bank": [
            "Bank can not be updated."
        ]
    }
}

Example

Before: Available Bank Account Record

Patch: Updating the bank account type

After: Updated Bank Account Type

Last updated

Was this helpful?