openapi: 3.2.0 info: title: ClearBank Customer V2 Retail API contact: name: API Support url: https://clear.bank email: fiapisupport@clear.bank version: 2.0-customers-retail tags: - name: Retail paths: /customers/v2/retail: post: tags: - Retail summary: Requests creation of retail customer. On a success, you will receive a customer ID which you can then use to create accounts for this customer. operationId: V2RetailPost parameters: - name: Authorization in: header description: Your API token, retrieved from the web portal. required: true schema: type: string - name: DigitalSignature in: header description: Signed hash of the body of the request. The hash is signed by your private key. required: true schema: type: string - name: X-Request-Id in: header description: A unique identifier for the request. required: true schema: type: string requestBody: description: Information required to create retail customer. content: application/json: schema: $ref: '#/components/schemas/CreateRetailRequest' responses: '201': description: Created content: application/json: schema: $ref: '#/components/schemas/CreatedResourceResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ValidationProblemDetails' application/problem+json: schema: $ref: '#/components/schemas/ValidationProblemDetails' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' '409': description: Conflict content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' '422': description: Unprocessable Content content: application/json: schema: $ref: '#/components/schemas/ValidationProblemDetails' application/problem+json: schema: $ref: '#/components/schemas/ValidationProblemDetails' '403': description: Forbidden /customers/v2/retail/{customerId}: patch: tags: - Retail summary: Requests update of retail customer. operationId: V2RetailPatch parameters: - name: Authorization in: header description: Your API token, retrieved from the web portal. required: true schema: type: string - name: DigitalSignature in: header description: Signed hash of the body of the request. The hash is signed by your private key. required: true schema: type: string - name: X-Request-Id in: header description: A unique identifier for the request. required: true schema: type: string - name: customerId in: path description: The ID of the customer. required: true schema: type: string format: uuid requestBody: description: Information required to update a retail customer. content: application/json: schema: $ref: '#/components/schemas/UpdateRetailRequest' responses: '200': description: OK content: application/json: schema: $ref: '#/components/schemas/RetailCustomerPatchResponse' '400': description: Bad Request content: application/json: schema: $ref: '#/components/schemas/ValidationProblemDetails' application/problem+json: schema: $ref: '#/components/schemas/ValidationProblemDetails' '404': description: Not Found content: application/json: schema: $ref: '#/components/schemas/ProblemDetails' '422': description: Unprocessable Content content: application/json: schema: $ref: '#/components/schemas/ValidationProblemDetails' application/problem+json: schema: $ref: '#/components/schemas/ValidationProblemDetails' '403': description: Forbidden components: schemas: KycAmlPatchModel: type: object properties: sanctions: type: - boolean - 'null' description: Updated sanctions flag (if changed). pep: $ref: '#/components/schemas/PepType' rca: $ref: '#/components/schemas/RcaType' craRating: $ref: '#/components/schemas/CraRating' additionalProperties: false description: Patch model containing KYC/AML fields that were updated. Only properties that changed are present. CurrentAddressRequest: required: - addressType - buildingNameNumber - streetName - city - country - postalCode type: object properties: addressType: $ref: '#/components/schemas/AddressType' buildingNameNumber: minLength: 1 maxLength: 100 pattern: '[^!$%^_=+>