ClearBank

FSCS protected deposits

FSCS protected deposits

FSCS-protected deposits are a part of our embedded banking proposition. An FSCS-protected deposit is a physical account held with ClearBank and is only available to our embedded banking customers for the purpose of sending and/or receiving payments. The balance of an FSCS-protected deposit is held by ClearBank and can be viewed via the ClearBank Portal and the API. Additionally, FSCS-protected deposits are reconciled for you by ClearBank.

Create a retail customer

post/v1/customers/retail

This endpoint is used to create a new retail customer.

Parameters

  • Authorization string, header, Required

    Your API Token, retrieved from the web portal.

  • DigitalSignature string, header, Required

    Signed hash of the body of the request. The hash is signed by your private key.

  • X-Request-Id string, header, Required

    A unique identifier for the request.

Request Payload (application/json)

  • firstName string, Required

    The first name of the retail customer.

    Maximum length
    255
  • middleName string

    The middle name of the retail customer.

    Maximum length
    255
  • surname string, Required

    The surname name of the retail customer.

    Maximum length
    255
  • dateOfBirth string, Required

    The date of birth of the retail customer.

  • email string, Required

    The primary email address used by the retail customer.

  • idCountryOfIssue string

    ISO Alpha3 representation of the country where the Id was issued.

    Maximum length
    3
    Enum array
    ABW, AFG, AGO, AIA, ALA, ALB, AND, ARE, ARG, ARM, ASM, ATA, ATF, ATG, AUS, AUT, AZE, BDI, BEL, BEN, BES, BFA, BGD, BGR, BHR, BHS, BIH, BLM, BLR, BLZ, BMU, BOL, BRA, BRB, BRN, BTN, BVT, BWA, CAF, CAN, CCK, CHE, CHL, CHN, CIV, CMR, COD, COG, COK, COL, COM, CPV, CRI, CUB, CUW, CXR, CYM, CYP, CZE, DEU, DJI, DMA, DNK, DOM, DZA, ECU, EGY, ERI, ESH, ESP, EST, ETH, FIN, FJI, FLK, FRA, FRO, FSM, GAB, GBR, GEO, GGY, GHA, GIB, GIN, GLP, GMB, GNB, GNQ, GRC, GRD, GRL, GTM, GUF, GUM, GUY, HKG, HMD, HND, HRV, HTI, HUN, IDN, IMN, IND, IOT, IRL, IRN, IRQ, ISL, ISR, ITA, JAM, JEY, JOR, JPN, KAZ, KEN, KGZ, KHM, KIR, KNA, KOR, KWT, LAO, LBN, LBR, LBY, LCA, LIE, LKA, LSO, LTU, LUX, LVA, MAC, MAF, MAR, MCO, MDA, MDG, MDV, MEX, MHL, MKD, MLI, MLT, MMR, MNE, MNG, MNP, MOZ, MRT, MSR, MTQ, MUS, MWI, MYS, MYT, NAM, NCL, NER, NFK, NGA, NIC, NIU, NLD, NOR, NPL, NRU, NZL, OMN, PAK, PAN, PCN, PER, PHL, PLW, PNG, POL, PRI, PRK, PRT, PRY, PSE, PYF, QAT, REU, ROU, RUS, RWA, SAU, SDN, SEN, SGP, SGS, SHN, SJM, SLB, SLE, SLV, SMR, SOM, SPM, SRB, SSD, STP, SUR, SVK, SVN, SWE, SWZ, SXM, SYC, SYR, TCA, TCD, TGO, THA, TJK, TKL, TKM, TLS, TON, TTO, TUN, TUR, TUV, TWN, TZA, UGA, UKR, UMI, URY, USA, UZB, VAT, VCT, VEN, VGB, VIR, VNM, VUT, WLF, WSM, YEM, ZAF, ZMB, ZWE
  • idType string

    The type of identification document provided by the retail customer for identification purposes. Valid options include: Passport, DrivingLicence, NationalInsurance, NationalId, SocialSecurity. Optional unless information for other ID fields such as idCountryOfIssue, idNumber and/or idExpiryDate is specified.

    Maximum length
    255
    Enum array
    Passport, DrivingLicence, NationalInsurance, NationalId, SocialSecurity
  • idNumber string

    The identification number on the identification document provided by the retail customer. Optional unless information for other ID fields such as idCountryOfIssue, idType, and/or idExpiryDate is specified.

    Maximum length
    255
  • idExpiryDate string

    The expiry date of the identification document provided by the retail customer. Optional unless information for other ID fields such as idCountryOfIssue, IdType and/or idNumber is specified.

  • currentAddress object, Required

    The previous address of the retail customer.

  • previousAddresses array

request

{
"firstName": "string",
"middleName": "string",
"surname": "string",
"dateOfBirth": "2019-08-24",
"email": "user@example.com",
"idCountryOfIssue": "ABW",
"idType": "Passport",
"idNumber": "string",
"idExpiryDate": "2019-08-24T14:15:22Z",
"currentAddress": {
"addressType": "TradingAddress",
"validFrom": "2019-08-24T14:15:22Z",
"validTo": "2019-08-24T14:15:22Z",
"countryCode": "ABW",
"buildingNameNumber": "string",
"streetName": "string",
"city": "string",
"county": "string",
"postalCode": "string"
},
"previousAddresses": [
{
"addressType": "TradingAddress",
"validFrom": "2019-08-24T14:15:22Z",
"validTo": "2019-08-24T14:15:22Z",
"countryCode": "ABW",
"buildingNameNumber": "string",
"streetName": "string",
"city": "string",
"county": "string",
"postalCode": "string"
}
]
}
Code copied

Response (application/json)

  • 201 Created successfully.
  • 400 Invalid or incomplete customer details.
  • 403 Forbidden

Created successfully.

{
"id": "900b30fb-711c-4820-a910-07d31cfe06a5"
}
Code copied

Create an account

post/v4/Accounts

This endpoint is used to create a new FSCS-protected current account.

Currently, this endpoint only supports the creation of current accounts.

Parameters

  • Authorization string, header, Required

    Your API Token, retrieved from the web portal.

  • DigitalSignature string, header, Required

    Signed hash of the body of the request. The hash is signed by your private key.

  • X-Request-Id string, header, Required

    A unique identifier for the request.

Request Payload (application/json)

  • owner object

    Set of elements used to identify a person or an organisation.

  • sortCode string, Required

    The sort code that the current account should be created under.

    Pattern
    ^\d{6}$
  • productId string, Required

    The product identifier of the current account. It is used to determine the behaviour of the account.

  • customerId string, Required

    The unique identifier of the customer that holds the current account.

  • minimumBalance number

    The minimum allowable balance of the account (example: -£1000). Note that you must send a negative number to create an overdraft. This field can only be used if your organisation is an embedded banking client with an overdraft agreement in place; otherwise the request will be rejected.

request

{
"owner": {
"name": "string"
},
"sortCode": "string",
"productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
"customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
"minimumBalance": 0
}
Code copied

Response (application/json)

  • 201 Success
  • 400 Bad Request
  • 403 Forbidden
  • 409 Conflict
  • 500 Server Error
  • 503 Server Error

Success

{
"id": "string",
"name": "string",
"label": "string",
"type": "CACC",
"currency": [
"GBP"
],
"balances": [
{
"name": "string",
"amount": 0,
"currency": "GBP",
"status": "CLBD",
"lastCommittedTransaction": "string"
}
],
"productId": "dcd53ddb-8104-4e48-8cc0-5df1088c6113",
"customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac",
"minimumBalance": 0,
"iban": "string",
"bban": "string",
"upic": "string",
"cuid": "string"
}
Code copied

Bad Request

{
"errors": {
"property1": [
"string"
],
"property2": [
"string"
]
},
"type": "string",
"title": "string",
"status": 0,
"detail": "string",
"instance": "string"
}
Code copied

Associated Webhooks

Update an existing retail customer’s personal information

patch/v1/customers/retail/{customerId}

This endpoint is used to update the details of an existing retail customer.

Parameters

  • customerId string, path, Required

    The retail customer id that is being updated.

  • Authorization string, header, Required

    Your API Token, retrieved from the web portal.

  • DigitalSignature string, header, Required

    Signed hash of the body of the request. The hash is signed by your private key.

  • X-Request-Id string, header, Required

    A unique identifier for the request.

Request Payload (application/json)

  • firstName string

    The first name of the retail customer.

    Maximum length
    255
  • middleName string

    The middle name of the retail customer.

    Maximum length
    255
  • surname string

    The surname of the retail customer.

    Maximum length
    255
  • dateOfBirth string

    The date of birth of the retail customer.

  • email string

    The primary email address used by the retail customer.

  • idCountryOfIssue string

    ISO Alpha3 Country code.

    Maximum length
    3
    Enum array
    ABW, AFG, AGO, AIA, ALA, ALB, AND, ARE, ARG, ARM, ASM, ATA, ATF, ATG, AUS, AUT, AZE, BDI, BEL, BEN, BES, BFA, BGD, BGR, BHR, BHS, BIH, BLM, BLR, BLZ, BMU, BOL, BRA, BRB, BRN, BTN, BVT, BWA, CAF, CAN, CCK, CHE, CHL, CHN, CIV, CMR, COD, COG, COK, COL, COM, CPV, CRI, CUB, CUW, CXR, CYM, CYP, CZE, DEU, DJI, DMA, DNK, DOM, DZA, ECU, EGY, ERI, ESH, ESP, EST, ETH, FIN, FJI, FLK, FRA, FRO, FSM, GAB, GBR, GEO, GGY, GHA, GIB, GIN, GLP, GMB, GNB, GNQ, GRC, GRD, GRL, GTM, GUF, GUM, GUY, HKG, HMD, HND, HRV, HTI, HUN, IDN, IMN, IND, IOT, IRL, IRN, IRQ, ISL, ISR, ITA, JAM, JEY, JOR, JPN, KAZ, KEN, KGZ, KHM, KIR, KNA, KOR, KWT, LAO, LBN, LBR, LBY, LCA, LIE, LKA, LSO, LTU, LUX, LVA, MAC, MAF, MAR, MCO, MDA, MDG, MDV, MEX, MHL, MKD, MLI, MLT, MMR, MNE, MNG, MNP, MOZ, MRT, MSR, MTQ, MUS, MWI, MYS, MYT, NAM, NCL, NER, NFK, NGA, NIC, NIU, NLD, NOR, NPL, NRU, NZL, OMN, PAK, PAN, PCN, PER, PHL, PLW, PNG, POL, PRI, PRK, PRT, PRY, PSE, PYF, QAT, REU, ROU, RUS, RWA, SAU, SDN, SEN, SGP, SGS, SHN, SJM, SLB, SLE, SLV, SMR, SOM, SPM, SRB, SSD, STP, SUR, SVK, SVN, SWE, SWZ, SXM, SYC, SYR, TCA, TCD, TGO, THA, TJK, TKL, TKM, TLS, TON, TTO, TUN, TUR, TUV, TWN, TZA, UGA, UKR, UMI, URY, USA, UZB, VAT, VCT, VEN, VGB, VIR, VNM, VUT, WLF, WSM, YEM, ZAF, ZMB, ZWE
  • idType string

    The type of identification document provided by the retail customer for identification purposes. Valid options include: Passport, DrivingLicence, NationalInsurance, NationalId, SocialSecurity. Optional unless information for other ID fields such as idCountryOfIssue, idNumber and/or idExpiryDate is specified.

    Maximum length
    255
    Enum array
    Passport, DrivingLicence, NationalInsurance, NationalId, SocialSecurity
  • idNumber string

    The identification number on the identification document provided by the retail customer. Optional unless information for other ID fields such as idCountryOfIssue, idType, and/or idExpiryDate is specified.

    Maximum length
    255
  • idExpiryDate string

    The expiry date of the identification document provided by the retail customer. Optional unless information for other ID fields such as idCountryOfIssue, IdType and/or idNumber is specified.

request

{
"firstName": "string",
"middleName": "string",
"surname": "string",
"dateOfBirth": "2019-08-24",
"email": "user@example.com",
"idCountryOfIssue": "ABW",
"idType": "Passport",
"idNumber": "string",
"idExpiryDate": "2019-08-24T14:15:22Z"
}
Code copied

Response (application/json)

  • 204 Successfully updated the specified retail customer.
  • 400 Invalid value(s) provided in the update request.
  • 403 Forbidden.
  • 404 Retail customer with specified customerId does not exist.

Update an existing retail customer’s address

put/v1/customers/retail/{customerId}/currentaddress

This endpoint is used to update the address of an existing retail customer.

Parameters

  • customerId string, path, Required

    The retail customer id that is being updated.

  • Authorization string, header, Required

    Your API Token, retrieved from the web portal.

  • DigitalSignature string, header, Required

    Signed hash of the body of the request. The hash is signed by your private key.

  • X-Request-Id string, header, Required

    A unique identifier for the request.

Request Payload (application/json)

  • addressType string

    The type of address used by the retail customer. Valid options include: TradingAddress, RegisteredAddress, ResidentialAddress.

    Maximum length
    255
    Enum array
    TradingAddress, RegisteredAddress, ResidentialAddress
  • validFrom string

    The date from when the retail customer started using the current address.

  • validTo string

    The expiry date of the retail customer’s current address. Leave this field blank if the current address is still valid.

  • countryCode string, Required

    ISO Alpha3 Country code.

    Maximum length
    3
    Enum array
    ABW, AFG, AGO, AIA, ALA, ALB, AND, ARE, ARG, ARM, ASM, ATA, ATF, ATG, AUS, AUT, AZE, BDI, BEL, BEN, BES, BFA, BGD, BGR, BHR, BHS, BIH, BLM, BLR, BLZ, BMU, BOL, BRA, BRB, BRN, BTN, BVT, BWA, CAF, CAN, CCK, CHE, CHL, CHN, CIV, CMR, COD, COG, COK, COL, COM, CPV, CRI, CUB, CUW, CXR, CYM, CYP, CZE, DEU, DJI, DMA, DNK, DOM, DZA, ECU, EGY, ERI, ESH, ESP, EST, ETH, FIN, FJI, FLK, FRA, FRO, FSM, GAB, GBR, GEO, GGY, GHA, GIB, GIN, GLP, GMB, GNB, GNQ, GRC, GRD, GRL, GTM, GUF, GUM, GUY, HKG, HMD, HND, HRV, HTI, HUN, IDN, IMN, IND, IOT, IRL, IRN, IRQ, ISL, ISR, ITA, JAM, JEY, JOR, JPN, KAZ, KEN, KGZ, KHM, KIR, KNA, KOR, KWT, LAO, LBN, LBR, LBY, LCA, LIE, LKA, LSO, LTU, LUX, LVA, MAC, MAF, MAR, MCO, MDA, MDG, MDV, MEX, MHL, MKD, MLI, MLT, MMR, MNE, MNG, MNP, MOZ, MRT, MSR, MTQ, MUS, MWI, MYS, MYT, NAM, NCL, NER, NFK, NGA, NIC, NIU, NLD, NOR, NPL, NRU, NZL, OMN, PAK, PAN, PCN, PER, PHL, PLW, PNG, POL, PRI, PRK, PRT, PRY, PSE, PYF, QAT, REU, ROU, RUS, RWA, SAU, SDN, SEN, SGP, SGS, SHN, SJM, SLB, SLE, SLV, SMR, SOM, SPM, SRB, SSD, STP, SUR, SVK, SVN, SWE, SWZ, SXM, SYC, SYR, TCA, TCD, TGO, THA, TJK, TKL, TKM, TLS, TON, TTO, TUN, TUR, TUV, TWN, TZA, UGA, UKR, UMI, URY, USA, UZB, VAT, VCT, VEN, VGB, VIR, VNM, VUT, WLF, WSM, YEM, ZAF, ZMB, ZWE
  • buildingNameNumber string, Required

    The building name and/or number of the retail customer’s current address.

    Maximum length
    255
  • streetName string, Required

    The street name of the retail customer’s current address.

    Maximum length
    255
  • city string

    The city/town of the retail customer’s current address.

    Maximum length
    255
  • county string

    The county of the retail customer’s current address.

    Maximum length
    255
  • postalCode string, Required

    The post code of the retail customer’s current address.

    Maximum length
    255

request

{
"addressType": "TradingAddress",
"validFrom": "2019-08-24T14:15:22Z",
"validTo": "2019-08-24T14:15:22Z",
"countryCode": "ABW",
"buildingNameNumber": "string",
"streetName": "string",
"city": "string",
"county": "string",
"postalCode": "string"
}
Code copied

Response (application/json)

  • 201 Successfully set the current address for the specified retail customer.
  • 400 Invalid value(s) provided in the update request.
  • 403 Forbidden
  • 404 Retail customer with specified customerId does not exist.