Hub Accounts
Hub Accounts overview
Hub Accounts are FSCS protected bank accounts held with ClearBank that enable innovative financial products. Use cases for Hub Accounts typically involve making payments to and from a defined set of associated accounts.
To ensure regulatory compliance, Hub Accounts may be subject to one or more of the following constraints:
- Payments may only be made for specific purposes.
- Payments may only be made to and from certain designated bank accounts.
- Payment frequency may be restricted.
Exact details will be agreed with your institution directly.
Hub Accounts are available by prior agreement with ClearBank; if you're interested in using these, please speak with your Client Director.
Creating Hub Accounts
Hub Accounts can be created using the POST /accounts/sterling/v1/hub-accounts endpoint. Before creating a Hub Account, you'll need the following information:
- The account-holding customer's details.
- Your sort code, provided to you by ClearBank.
- A
productId, also provided to you by ClearBank. - Optionally, if your Hub Accounts are interest bearing, an
interestConfigurationId.
Account holding customer
Each Hub Account must be held by a retail customer or business customer. The holder of a Hub Account is entitled to its funds. Refer to our retail customers page, or contact your Client Director for guidance on creating business customers.
Once you've created a retail or business customer, take note of their customerId and legal name - you'll need these to associate the customer with their new Hub Account.
Sort code
A sort code will have been assigned to you as part of your onboarding process.
Product identity
The productId you should use will be provided to you as part of onboarding. This ID determines how your Hub Account behaves.
Interest payments (optional)
If your Hub Accounts are configured to accrue interest, you can subscribe to the Interest Paid webhook to be notified when interest is paid into the account.
Interest configuration (optional)
Hub Accounts may be interest bearing. This will have been agreed between your institution and ClearBank. If your Hub Accounts are interest bearing, you can set up their interest configuration profile. Once created, the profile's interestConfigurationId may be reused across subsequent Hub Accounts to refer to the same configuration profile.
Associated and nominated accounts
Other bank accounts can be linked to a Hub Account as an associated account or a nominated account. Funds can only transferred between a Hub Account and its associated or nominated accounts.
Nominated account
A nominated account is a single account designated for funding and defunding a Hub Account.
- Nominated accounts do not need to be ClearBank provided: they can be from another external provider.
- The account holder for the nominated account and the Hub Account must be the same.
- When a Hub Account is closed, any unpaid interest is redirected to its nominated account.
To set or replace the nominated account for a Hub Account, you can use the POST /v1/accounts/{accountId}/related-accounts (preferred), or the PUT /v1/accounts/{accountId}/nominated-account endpoint.
You can make payments from a Hub Account to its nominated account via Faster Payments or CHAPS; to receive updates about FPS transactions for a Hub Account, you can subscribe to the Transaction Settled webhook.
Associated accounts
Associated accounts are one or several accounts defined to fulfil a specific role in relation to a Hub Account. The function of an associated account will vary depending on your specific use case:
- An associated account does not need to be ClearBank provided: they can be from another external provider.
- The number of associated accounts you may link to a Hub Account is limited, and will depend on your arrangement with ClearBank.
- Hub Account funding to and from an associated account may or may not be allowed. This depends on your arrangement with ClearBank.
Associated accounts can be added to a Hub Account using the POST /v1/accounts/{accountId}/related-accounts endpoint; removed using the DELETE /v1/accounts/{accountId}/related-accounts/{iban} endpoint; and retrieved using the GET /v1/accounts/{accountId}/related-accounts endpoint.
If you need to update the account holder of an associated account, you can use the PATCH /v1/accounts/{accountId}/related-accounts/{iban} endpoint.
Example use case
Hub Accounts could be used to temporarily hold funds between a customer and a vendor.
For example, a Hub Account can be funded from a customer's nominated external account. Funds may then be held in the Hub Account for a defined period before being released to a third‑party vendor for the delivery of services.
Manage associated or nominated accounts
Manage nominated accounts
Retrieve and update Hub Account information
You can retrieve information on all Hub Accounts by using the GET /v3/accounts endpoint and filtering for Hub Accounts.
To retrieve information about a specific Hub Account, you can use the GET /v3/Accounts/{accountId} endpoint.
To make any updates to an existing Hub Account, you can use the PATCH /v1/accounts/{accountId} endpoint.
You can use the endpoint below to update the details of a Hub Account.
Hub Account closure
Before attempting to close a Hub Account, you should ensure you are subscribed to both the Account Closure Completed and Account Closure Failed webhooks.
To close a Hub Account, follow these steps:
- Withdraw all funds from the account.
- Use the POST /v1/accounts/{id}/closure endpoint to request closure.
Note: If the Hub Account is interest bearing, it must have a nominated account before it can be closed. If there is no interest to be paid, then you can close the account without defining a nominated account.
- OPTIONAL You can check the closure status of a Hub Account using the GET /v1/accounts/{id}/closure endpoint.
- You'll receive an Account Closure Completed webhook once the account has closed.
Account closure may fail due to the nominated account details being incorrect. If this happens, you'll be notified via the ClosureFailureReason field in the Account Closure Failed webhook.
If account closure fails and isn't resolved before the end of the month, then any accrued interest will be paid into the account. You'll need to fully withdraw these funds from the account again before reattempting closure.
You can receive the following combinations of accountStatus and closureStatus from the GET /v1/accounts/{accountId}/closure endpoint:
| accountStatus | closureStatus | Description |
|---|---|---|
| Enabled | None | No closure request submitted |
| Enabled | Pending | Closure requested, interest being calculated |
| Enabled | Failed | Closure request failed, see closureFailureReasons field for details |
| Suspended | Pending | Closure requested for suspended account, interest being calculated |
| Closed | Complete | Closure completed successfully |