Retail customers
Retail customers V2
Retail customers are individual consumers of financial services in a personal capacity. You can manage your retail customer data with ClearBank directly as an embedded banking partner. Creating a retail customer is necessary before you can create a bank account for them.
Retail customers V1 documentation can be found at the bottom of this page.
Compatible account types
Retail customers are compatible with several account types:
- Savings accounts - For earning interest on saved deposits.
- Flexible cash ISAs - For earning tax-free interest on saved deposits.
- Hub accounts - For specific innovative use cases.
Create and update retail customers
Know Your Customer (KYC) and Anti-Money Laundering (AML) fields
When you create a retail customer, you'll need to provide the outcomes of any KYC and AML checks you conduct on them. You can record these outcomes using the kycAml object. Guidance for each of the object's properties are listed below:
sanctions- If your KYC checks identify the customer as sanctioned, set totrue.pep- If your checks identify the customer as a Politically Exposed Person (PEP), set toYes_DomesticorYes_Internationalaccordingly - otherwise set toNo.rca- If your checks identify the customer as a Relative or Close Associate (RCA) of a PEP, set toYes_DomesticorYes_Internationalaccordingly - otherwise set toNo.craRating- Use this field to declare a Customer Risk Assessment rating for the customer. There are four tiers of risk:Low,Medium,High, andVery_High.
If you have new KYC or AML outcomes for a customer, you can update these using the PATCH /customers/v2/retail/{customerId} endpoint.
Addresses
When you create a retail customer, you'll also need to provide their current address in the addressHistory.currentAddress object. You can optionally record their previous address history using the addressHistory.previousAddresses array.
Create a retail customer
post/customers/v2/retailRequests creation of retail customer. On a success, you will receive a customer ID which you can then use to create accounts for this 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)
- personalDetails object, Required
Personal details for the customer.
- identityDocuments array
The customer's identity documents.
- addressHistory object, Required
The customer's address history.
- kycAml object, Required
KYC/AML information for the customer.
- taxDetails object, Required
Tax details for a retail customer.
- specialStatuses array
The customer's special statuses, if any. Possible values include: 'Vulnerability_Health_VisualImpairmentBraille', 'Vulnerability_Health_VisualImpairmentLargeText', 'Vulnerability_Health_AudioImpairment', 'Vulnerability_Health_Other', 'Vulnerability_LifeEvents', 'Vulnerability_Resilience', and 'Vulnerability_Capability'
request
{"personalDetails": {"firstName": "Kirsty","middleName": "Jane","surname": "Friar","dateOfBirth": "1985-12-22","email": "kristy.fr@mymail.com","telephone": "01234555666","countryOfResidence": "GBR","nationalIdentificationNumber": "PC223344D"},"identityDocuments": [{"idCountryOfIssue": "GBR","idType": "Passport","idNumber": "855865736946","idExpiryDate": "2028-05-18"}],"addressHistory": {"currentAddress": {"addressType": "ResidentialAddress","buildingNameNumber": "322","streetName": "Long Road","city": "Cyan City","county": "Greenshire","postalCode": "PG15 8AB","country": "GBR","validFrom": "2022-05-22"},"previousAddresses": [{"addressType": "ResidentialAddress","buildingNameNumber": "322","streetName": "Long Road","city": "Cyan City","county": "Greenshire","postalCode": "PG15 8AB","country": "GBR","validFrom": "2016-06-22","validTo": "2022-05-15"}]},"kycAml": {"sanctions": true,"pep": "No","rca": "No","craRating": "LowRisk"},"taxDetails": {"validSelfCertification": true,"usPerson": "NotAUSPerson","taxResidencies": [{"countryOfTaxResidence": "GBR","taxIdNumber": "PC335577B","noTaxIdReason": "CountryDoesNotIssue"}]},"specialStatuses": "Vulnerability_LifeEvents"}
Response (application/json)
- 201 Created
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 409 Conflict
- 422 Unprocessable Content
Created
{"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08"}
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Conflict
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Unprocessable Content
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Update a retail customer
patch/customers/v2/retail/{customerId}Requests update of 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.
- customerId string, path, Required
The ID of the customer.
Request Payload (application/json)
- personalDetails object
Personal Details update request. Null values are ignored.
- kycAml object
KYC AML update request. Null values are ignored.
- taxDetails object
Tax details for a retail customer.
- specialStatuses array
The customer's special statuses, if any. Null values are ignored. All existing special statuses will be replaced with the provided collection. Possible values include: 'Vulnerability_Health_VisualImpairmentBraille', 'Vulnerability_Health_VisualImpairmentLargeText', 'Vulnerability_Health_AudioImpairment', 'Vulnerability_Health_Other', 'Vulnerability_LifeEvents', 'Vulnerability_Resilience', and 'Vulnerability_Capability'
request
{"personalDetails": {"firstName": "Kristy","middleName": "Jade","surname": "Friar","dateOfBirth": "1985-12-22","email": "kristy.fr@mymail.com","telephone": "01234555666","countryOfResidence": "GBR","nationalIdentificationNumber": "PC223344D"},"kycAml": {"sanctions": true,"pep": "No","rca": "No","craRating": "LowRisk"},"taxDetails": {"validSelfCertification": true,"usPerson": "NotAUSPerson"},"specialStatuses": ["Vulnerability_LifeEvents"]}
Response (application/json)
- 200 OK
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 422 Unprocessable Content
OK
{"customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac","personalDetails": {"firstName": "Kristy","middleName": "Jade","surname": "Friar","dateOfBirth": "1985-12-23","countryOfResidence": "GBR","email": "kirsty.fr@mymail.com","telephone": "01234555777","nationalIdentificationNumber": "string"},"kycAml": {"sanctions": true,"pep": "No","rca": "No","craRating": "LowRisk"},"taxDetails": {"validSelfCertification": true,"usPerson": "NotAUSPerson"},"specialStatuses": ["Vulnerability_LifeEvents"]}
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Unprocessable Content
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Retrieve a retail customer
get/customers/v2/customers/{customerId}Retrieves a customer by their customer ID.
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.
- X-Request-Time string, header, Required
The current UNIX timestamp in seconds. This value will be rejected if it is more than 60 seconds late.
- customerId string, path, Required
The ID of the customer.
Response (application/json)
- 200 OK
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
OK
{"id": "0e7ce040-b157-44a4-ba29-ed5e9b259cd3","institutionId": "2500fbf8-787f-425d-b630-bde0d1c6ff58","status": "Active","type": "Retail","personalDetails": {"firstName": "Kirsty","middleName": "Jane","surname": "Friar","emailAddress": "kristy.fr@mymail.com","telephone": "01234555666","countryOfResidence": "GBR","dateOfBirth": "1985-12-22","nationalIdentificationNumber": "PC112233D"},"kycAml": {"sanctions": true,"pep": "No","rca": "No","craRating": "LowRisk"},"taxDetails": {"taxResidencies": [{"countryOfTaxResidence": "GBR","taxIdNumber": "DR123467L","noTaxIdReason": "CountryDoesNotIssue"}],"validSelfCertification": true,"usPerson": "NotAUSPerson"},"specialStatuses": ["Vulnerability_LifeEvents"],"identityDocuments": [{"idNumber": "PC335577B","expiryDate": "2019-08-24","countryOfIssue": "GBR","type": "Passport"}],"addresses": {"currentAddress": {"addressType": "ResidentialAddress","buildingNameNumber": "322","streetName": "Long Road","county": "Greenshire","city": "Cyan City","postalCode": "PG15 8AB","country": "GBR","validFrom": "2022-05-15","validTo": "2019-08-24","isCurrentAddress": true},"previousAddresses": [{"addressType": "ResidentialAddress","buildingNameNumber": "9","streetName": "Short Road","county": "Blueshire","city": "Lilac City","postalCode": "LB1 7CC","country": "GBR","validFrom": "2021-02-18","validTo": "2022-05-15","isCurrentAddress": false}]}}
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Retail customer addresses
You can update a customer's address using the POST /customers/v2/customers/{customerId}/addresses/current endpoint. When you do this, the customer's last address will be automatically moved to the previousAddresses array, and will have a validTo date set to the new address' validFrom date. If you do not specify a validFrom date for the new address, it will default to today's date.
It is not currently possible to delete a previous address.
Update a retail customer's address
post/customers/v2/customers/{customerId}/addresses/currentUpdates a customer's current address while maintaining their previous addresses history.
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.
- customerId string, path, Required
The ID of the customer.
Request Payload (application/json)
- addressType string, Required
Represents the type of the address
- Enum array
- ResidentialAddress
- buildingNameNumber string, Required
The building name or number of this address.
- Minimum length
- 1
- streetName string
This address' street name.
- Minimum length
- 1
- city string, Required
City of the customer's address.
- Minimum length
- 1
- county string
County of the customer's address.
- Minimum length
- 1
- postalCode string, Required
Postal code of the customer's address.
- Minimum length
- 1
- country string, Required
3-letter country codes as defined in ISO 3166-1
- Enum array
- AFG, ALB, ATA, DZA, ASM, AND, AGO, ATG, AZE, ARG, AUS, AUT, BHS, BHR, BGD, ARM, BRB, BEL, BMU, BTN, BOL, BIH, BWA, BVT, BRA, BLZ, IOT, SLB, VGB, BRN, BGR, MMR, BDI, BLR, KHM, CMR, CAN, CPV, CYM, CAF, LKA, TCD, CHL, CHN, TWN, CXR, CCK, COL, COM, MYT, COG, COD, COK, CRI, HRV, CUB, CYP, CZE, BEN, DNK, DMA, DOM, ECU, SLV, GNQ, ETH, ERI, EST, FRO, FLK, SGS, FJI, FIN, ALA, FRA, GUF, PYF, ATF, DJI, GAB, GEO, GMB, PSE, DEU, GHA, GIB, KIR, GRC, GRL, GRD, GLP, GUM, GTM, GIN, GUY, HTI, HMD, VAT, HND, HKG, HUN, ISL, IND, IDN, IRN, IRQ, IRL, ISR, ITA, CIV, JAM, JPN, KAZ, JOR, KEN, PRK, KOR, KWT, KGZ, LAO, LBN, LSO, LVA, LBR, LBY, LIE, LTU, LUX, MAC, MDG, MWI, MYS, MDV, MLI, MLT, MTQ, MRT, MUS, MEX, MCO, MNG, MDA, MNE, MSR, MAR, MOZ, OMN, NAM, NRU, NPL, NLD, CUW, ABW, SXM, BES, NCL, VUT, NZL, NIC, NER, NGA, NIU, NFK, NOR, MNP, UMI, FSM, MHL, PLW, PAK, PAN, PNG, PRY, PER, PHL, PCN, POL, PRT, GNB, TLS, PRI, QAT, REU, ROU, RUS, RWA, BLM, SHN, KNA, AIA, LCA, MAF, SPM, VCT, SMR, STP, SAU, SEN, SRB, SYC, SLE, SGP, SVK, VNM, SVN, SOM, ZAF, ZWE, ESP, SSD, SDN, ESH, SUR, SJM, SWZ, SWE, CHE, SYR, TJK, THA, TGO, TKL, TON, TTO, ARE, TUN, TUR, TKM, TCA, TUV, UGA, UKR, MKD, EGY, GBR, GGY, JEY, IMN, TZA, USA, VIR, BFA, URY, UZB, VEN, WLF, WSM, YEM, ZMB
- validFrom string
Date from which the address is valid. Defaults to today if unspecified.
request
{"addressType": "ResidentialAddress","buildingNameNumber": "322","streetName": "Long Road","city": "Cyan City","county": "Greenshire","postalCode": "PG15 8AB","country": "GBR","validFrom": "2022-05-22"}
Response (application/json)
- 201 Created
- 403 Forbidden
- 404 Not Found
- 422 Unprocessable Content
Created
{"customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac"}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Unprocessable Content
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Retail customer ID documents
You can optionally provide identity document information for your retail customers. For example, you can provide a customer's passport number idNumber and its date of expiry idExpiryDate in the identityDocuments array in the POST /customers/v2/retail endpoint.
If you provide customer identity information, you must always include its idCountryOfIssue, idType, idNumber, and idExpiryDate. The combination of idCountryOfIssue and idType uniquely identifies a customer's identity documents in our APIs. You can therefore only provide one idCountryOfIssue and idType combination per customer.
To update or delete an existing customer's identity information, use the PUT /customers/v2/customers/{customerId}/identity-documents/{idCountryOfIssue}-{idType} or DELETE /customers/v2/customers/{customerId}/identity-documents/{idCountryOfIssue}-{idType} endpoint accordingly.
There is no functionality to upload images or scans of customer ID.
Update a retail customer's ID document
put/customers/v2/customers/{customerId}/identity-documents/{idCountryOfIssue}-{idType}Adds or updates a customer's identity document. Returns 200 OK when updating an existing ID, or 201 Created when adding a new ID.
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.
- customerId string, path, Required
The ID of the customer.
- idCountryOfIssue string, path, Required
Country of issue.
- idType string, path, Required
Type of identity document.
Request Payload (application/json)
- idNumber string, Required
Identity document number.
- Minimum length
- 1
- idExpiryDate string, Required
Expiry date of the identity document.
request
{"idNumber": "684622049233","idExpiryDate": "2029-02-13"}
Response (application/json)
- 200 OK
- 201 Created
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 422 Unprocessable Content
Created
{"customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac"}
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Unprocessable Content
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Delete a retail customer's ID document
delete/customers/v2/customers/{customerId}/identity-documents/{idCountryOfIssue}-{idType}Removes a customer's identity document.
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.
- X-Request-Time string, header, Required
The current UNIX timestamp in seconds. This value will be rejected if it is more than 60 seconds late.
- customerId string, path, Required
The ID of the customer.
- idCountryOfIssue string, path, Required
Country of issue.
- idType string, path, Required
Type of identity document.
Response (application/json)
- 204 No Content
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 409 Conflict
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Conflict
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Tax residency endpoints
When you create a retail customer, you must specify at least one tax residency for them. A customer can have dual tax residency in certain situations, such as if they live in one country but earn income in another. You should specify all currently active tax residencies for a customer when you create them.
US citizens are generally considered to be US tax residents regardless of where they live.
To change a customer's tax residency from one country to another, follow the below steps:
- Add the new tax residency first. You can do this using the PUT /customers/v2/customers/{customerId}/tax-residencies/{countryOfTaxResidence} endpoint.
- Delete the old tax residency. You can do this using the DELETE /customers/v2/customers/{customerId}/tax-residencies/{countryOfTaxResidence} endpoint.
Update a retail customer's tax residency
put/customers/v2/customers/{customerId}/tax-residencies/{countryOfTaxResidence}Adds or updates a customer's tax residency entry for the specified country. Returns 200 OK when updating an existing tax residency, or 201 Created when adding a new tax residency.
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.
- customerId string, path, Required
The ID of the customer.
- countryOfTaxResidence string, path, Required
Country of tax residence.
Request Payload (application/json)
- taxIdNumber string
Tax identification number.
- Minimum length
- 1
- noTaxIdReason string
Supported reasons for not having a tax ID (required if no tax ID number provided).
- Enum array
- CountryDoesNotIssue, UnableToObtain, NotRequired
request
{"taxIdNumber": "PC335577B","noTaxIdReason": "CountryDoesNotIssue"}
Response (application/json)
- 200 OK
- 201 Created
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 422 Unprocessable Content
Created
{"customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac"}
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Unprocessable Content
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Delete a customer's tax residency
delete/customers/v2/customers/{customerId}/tax-residencies/{countryOfTaxResidence}Removes a customer's tax residency entry for the specified country.
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.
- X-Request-Time string, header, Required
The current UNIX timestamp in seconds. This value will be rejected if it is more than 60 seconds late.
- customerId string, path, Required
The ID of the customer.
- countryOfTaxResidence string, path, Required
Country of tax residence to remove.
Response (application/json)
- 204 No Content
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 422 Unprocessable Content
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Unprocessable Content
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Customer relation endpoints
The POST /customers/v2/customers/{customerId}/related-parties endpoint allows you to link two parties by providing their customerIds and specifying the nature of the relation.
Note: The arrangement of customerIds in the path parameter and the relatedCustomerId request field matters when creating a customer relation.
The customerId in the path refers to the primary customer, while the relatedCustomerId refers to the customer which will have the specified relation (relatedPartyType) toward the primary customer.
For example, when defining a UBO relationship, the customer referred to in the relatedCustomerId will become the Ultimate Beneficial Owner of the customerId specified in the path.
To retrieve all existing relations to a customer, you can call the GET /customers/v2/customers/{customerId}/related-parties.
To remove a relation between two parties, you can use the DELETE /customers/v2/customers/{customerId}/related-parties/{relatedCustomerId} using the customerId of each party.
Relate a retail customer and another customer
post/customers/v2/customers/{customerId}/related-partiesAdds a new related party to an existing 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.
- customerId string, path, Required
The ID of the original customer.
Request Payload (application/json)
- relatedCustomerId string, Required
The ID of the customer to be linked as a related party.
- relatedPartyType string, Required
Related party types.
- Enum array
- Director, UBO, ControllingPerson
- ownershipPercentage integer
The ownership percentage of the related party. Only allowed for UBO relationships.
request
{"relatedCustomerId": "7974cd26-1a75-4947-9970-8d320d03e9cf","relatedPartyType": "UBO","ownershipPercentage": 100}
Response (application/json)
- 201 Created
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 409 Conflict
- 422 Unprocessable Content
Created
{"customerId": "87d8e330-2878-4742-a86f-dbbb3bf522ac","relatedCustomerId": "7974cd26-1a75-4947-9970-8d320d03e9cf"}
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Conflict
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Unprocessable Content
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Get all relations of a retail customer
get/customers/v2/customers/{customerId}/related-partiesRetrieves the related party data of a customer by their customer ID.
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.
- X-Request-Time string, header, Required
The current UNIX timestamp in seconds. This value will be rejected if it is more than 60 seconds late.
- customerId string, path, Required
The ID of the original customer.
Response (application/json)
- 200 OK
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
OK
{"value": [{"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08","type": "UBO","ownershipPercentage": 100}]}
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Delete a relation between two customers
delete/customers/v2/customers/{customerId}/related-parties/{relatedCustomerId}/{relatedPartyType}Removes a related party link between two customers.
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.
- X-Request-Time string, header, Required
The current UNIX timestamp in seconds. This value will be rejected if it is more than 60 seconds late.
- customerId string, path, Required
The ID of the customer.
- relatedCustomerId string, path, Required
The ID of the related customer to unlink.
- relatedPartyType string, path, Required
The type of related party. Used to disambiguate where a party is related in more than one way.
Response (application/json)
- 204 No Content
- 400 Bad Request
- 403 Forbidden
- 404 Not Found
- 409 Conflict
- 422 Unprocessable Content
Bad Request
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Not Found
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Conflict
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string"}
Unprocessable Content
{"type": "string","title": "string","status": 0,"detail": "string","instance": "string","errors": {"property1": ["string"],"property2": ["string"]},"property1": null,"property2": null}
Retail customers V1
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 V1
post/v1/customers/retailThis endpoint is used to create a new retail customer.
Once you have created a retail customer, create a new FSCS-protected embedded banking account using the retail customer's unique ID.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 in date format.
- 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 in date-time format. Optional unless information for other ID fields such as idCountryOfIssue, IdType and/or idNumber is specified.
- countryOfResidence string
ISO alpha-3 country code. This field must be present if you want to make a cash ISA for the customer.
- 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
- currentAddress object, Required
- previousAddresses array
request
{"firstName": "John","middleName": "Henry","surname": "Smith","dateOfBirth": "2019-08-24","email": "user@example.com","idCountryOfIssue": "GBR","idType": "Passport","idNumber": 123456789,"idExpiryDate": "2019-08-24T14:15:22Z","countryOfResidence": "GBR","currentAddress": {},"previousAddresses": [{"addressType": "TradingAddress","validFrom": "2019-08-24T14:15:22Z","validTo": "2019-08-24T14:15:22Z","countryCode": "GBR","buildingNameNumber": "Judge House","streetName": "High St","city": "Northleach","county": "Gloucestershire","postalCode": "GL55 3NJ"}]}
Response (application/json)
- 201 Created successfully.
- 400 Invalid or incomplete customer details.
- 403 Forbidden
Created successfully.
{"id": "900b30fb-711c-4820-a910-07d31cfe06a5"}
Create an embedded banking account
post/v4/AccountsThis endpoint is used to create a new FSCS-protected embedded banking account.
If you want to create a cash ISA or savings account, use the POST /v1/isas or POST /v1/savings endpoints instead.
Parameters
- Authorization string, header, Required
Your API Token, obtained from the ClearBank 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; valid for 24 hours, max length 83.
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.
- Pattern
- ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$
- customerId string, Required
The unique identifier of the customer that holds the current account.
- Pattern
- ^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$
- 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": "John Smith"},"sortCode": "010203","productId": "01234567-89ab-cdef-0123-456789abcdef","customerId": "01234567-89ab-cdef-0123-456789abcdef","minimumBalance": 0}
Response (application/json)
- 201 Created
- 400 Bad Request
- 403 Forbidden
- 409 Conflict
Created
{"id": "01234567-89ab-cdef-0123-456789abcdef","name": "Current Account","label": "John Smith","type": "CACC","currency": "GBP","balances": [{"name": "Current Account","amount": 0,"currency": "GBP","status": "VALU"}],"productId": "01234567-89ab-cdef-0123-456789abcdef","customerId": "01234567-89ab-cdef-0123-456789abcdef","minimumBalance": 0,"iban": "GB12CLBK01020312345678","bban": "CLBK01020312345678","upic": "string","cuid": "string"}
Bad Request
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}
Associated Webhooks
Amend or update an embedded banking account
patch/v1/accounts/{accountId}This endpoint is used to amend the properties of an existing real account.
Parameters
- accountId string, path, Required
The unique identifier for the real account.
- Authorization string, header, Required
Your API Token, obtained from the ClearBank 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; valid for 24 hours, max length 83.
Request Payload (application/json)
- status string
Use this field to set the status of the account. If closing or suspending the account, you should provide a StatusReason. If you are not updating the account's status, either use 'NotProvided' or omit this field.
- Enum array
- NotProvided, Enabled, Closed, Suspended
- statusReason string
If the account Status is Closed or Suspended, use this field to provide a reason. Use 'Other' if no other options apply. Do not provide this field if you are updating the status to 'Enabled'.
- Enum array
- AccountHolderBankrupt, AccountHolderDeceased, AccountSwitched, CompanyNoLongerTrading, DissatisfiedCustomer, DuplicateSoleTraderAccount, FinancialCrime, FraudFirstParty, FraudThirdParty, FraudConfirmed, InternallyDormant, KYCRequired, LegallyDisputed, PotentialSanctionedIndividual, SanctionedIndividual, SuspectMoneyLaundering, TransactionDispute, Other
- ownerName string
The name used to identify the legal owner of the account.
- Minimum length
- 0
- Maximum length
- 70
- Pattern
- ^[^\|_\[\]<>^`~\\$]*$
- legalOwnerType string
Nature of funds held in the account. Valid options include: Personal, Business.
- Enum array
- Personal, Business
- relationshipType string
Operating nature of the account. Valid options include Single, Joint. If legalOwnerType is Business, then the relationshipType cannot be Joint.
- Enum array
- Single, Joint
- 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
{"status": "Closed","statusReason": "AccountHolderDeceased","ownerName": "John Smith","legalOwnerType": "Personal","relationshipType": "Single","minimumBalance": 0}
Response (application/json)
- 204 No content
- 400 Bad Request
- 403 Forbidden
- 409 Conflict
Bad Request
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}
Conflict
{"type": "../dictionary","title": "string","status": 100,"detail": "string","instance": "../dictionary","errors": {"property1": ["string"],"property2": ["string"]}}
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 in date format.
- email string
The primary email address used by the retail customer.
- idCountryOfIssue string
ISO alpha-3 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 in date-time format. Optional unless information for other ID fields such as idCountryOfIssue, IdType and/or idNumber is specified.
- countryOfResidence string
ISO alpha-3 country code. This field must be present if you want to make a cash ISA for the customer.
- 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
request
{"firstName": "string","middleName": "string","surname": "string","dateOfBirth": "2019-08-24","email": "user@example.com","idCountryOfIssue": "GBR","idType": "Passport","idNumber": "string","idExpiryDate": "2019-08-24T14:15:22Z","countryOfResidence": "GBR"}
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}/currentaddressThis 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 in date-time format.
- validTo string
The expiry date of the retail customer’s current address in date-time format. Leave this field blank if the current address is still valid.
- countryCode string, Required
ISO alpha-3 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"}
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.