# Get customer bank details

## Retrieves bank transfer details for all accounts of a specified customer.

> Retrieves bank transfer details for all accounts of a specified customer.\
> \
> This endpoint fetches the bank transfer details for all accounts associated with a given\
> customer ID.\
> \
> It ensures that the requester has appropriate authorization before providing access to the\
> sensitive account information.\
> \
> Access to this endpoint requires a valid API key. The API key is sent in the \`x-api-key\` header on requests.\
> \
> The response includes an array of accounts with following properties:\
> \- account number, for GBP\
> \- BIC, for EUR\
> \- country\
> \- currency\
> \- IBAN, for EUR\
> \- ID\
> \- sort core, for GBP\
> \- status.

```json
{"openapi":"3.0.0","info":{"title":"x-gateway-external-api","version":"0.0.1"},"servers":[{"url":"https://api.xgateway.tech/api/v2"}],"security":[{"api_key":[]}],"components":{"securitySchemes":{"api_key":{"in":"header","name":"x-api-key","type":"apiKey"}},"schemas":{"AppSuccessResponse_BankTransferAccountResponse-Array_":{"description":"The AppSuccessResponse object contains general information about the success execution.","properties":{"success":{"type":"boolean","default":true},"data":{"items":{"$ref":"#/components/schemas/BankTransferAccountResponse"},"type":"array"}},"required":["success","data"],"type":"object","additionalProperties":false},"BankTransferAccountResponse":{"properties":{"accountNumber":{"type":"string"},"bic":{"type":"string"},"customerFirstName":{"type":"string"},"customerLastName":{"type":"string"},"country":{"type":"string","nullable":true},"currency":{"type":"string","nullable":true},"iban":{"type":"string"},"id":{"type":"string"},"sortCode":{"type":"string"},"status":{"$ref":"#/components/schemas/CustomerBankAccountStatus"}},"required":["country","currency","id","status"],"type":"object","additionalProperties":false},"CustomerBankAccountStatus":{"allOf":[{"$ref":"#/components/schemas/UnblockKycSubType"}],"nullable":true,"description":"Type alias for customer bank account KYC status.\nActs as a naming mask to avoid exposing \"Unblock\" provider name in OpenAPI specification.\nRepresents all possible KYC verification statuses for a bank transfer customer."},"UnblockKycSubType":{"description":"Represents possible customer verification statuses in Unblock system.","enum":["CREATED","FULL_USER","KYC_NEEDED","PENDING_KYC_DATA","KYC_PENDING","SOFT_KYC_FAILED","HARD_KYC_FAILED","SUSPENDED"],"type":"string"},"AppErrorResponse":{"description":"The AppErrorResponse object contains general information about the error message.","properties":{"success":{"type":"boolean","default":false},"errors":{"items":{"$ref":"#/components/schemas/IAppError"},"type":"array"}},"required":["success","errors"],"type":"object","additionalProperties":false},"IAppError":{"description":"The IAppError interface represents an application error message.","properties":{"code":{"anyOf":[{"$ref":"#/components/schemas/AppClientErrorResponseCode"},{"$ref":"#/components/schemas/AppServerErrorResponseCode"}]},"message":{"type":"string"}},"required":["code","message"],"type":"object","additionalProperties":false},"AppClientErrorResponseCode":{"type":"string","enum":["bad_request","db_violation","unauthorized","payment_required","forbidden","not_found","method_not_allowed","not_acceptable","proxy_authentication_required","request_timeout","conflict","db_unique_violation","gone","length_required","precondition_failed","payload_too_large","uri_too_long","unsupported_media_type","range_not_satisfiable","expectation_failed","misdirected_request","unprocessable_content","db_non_null_violation","locked","failed_dependency","upgrade_required","precondition_required","too_many_requests","request_header_fields_too_large","unavailable_for_legal_reasons"],"nullable":false,"description":"The AppClientErrorResponseCode object contains all client error response codes."},"AppServerErrorResponseCode":{"type":"string","enum":["internal_server_error","not_implemented","bad_gateway","service_unavailable","gateway_timeout","http_version_not_supported","variant_also_negotiates","insufficient_storage","loop_detected","not_extended","network_authentication_required"],"nullable":false,"description":"The AppServerErrorResponseCode object contains all server error response codes."},"AppAuthenticationErrorResponse":{"description":"The AppAuthenticationErrorResponse object contains general information about the authentication\nerror.","properties":{"success":{"type":"boolean","default":false},"errors":{"items":{"$ref":"#/components/schemas/IAppError"},"type":"array","default":[{"code":"unauthorized","message":"You do not have permission to access this resource."}]}},"required":["success","errors"],"type":"object","additionalProperties":false}}},"paths":{"/customer/{id}/bank-transfer":{"get":{"operationId":"GetBankTransferAccounts","responses":{"200":{"description":"Ok","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppSuccessResponse_BankTransferAccountResponse-Array_"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppAuthenticationErrorResponse"}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppErrorResponse"}}}}},"description":"Retrieves bank transfer details for all accounts of a specified customer.\n\nThis endpoint fetches the bank transfer details for all accounts associated with a given\ncustomer ID.\n\nIt ensures that the requester has appropriate authorization before providing access to the\nsensitive account information.\n\nAccess to this endpoint requires a valid API key. The API key is sent in the `x-api-key` header on requests.\n\nThe response includes an array of accounts with following properties:\n- account number, for GBP\n- BIC, for EUR\n- country\n- currency\n- IBAN, for EUR\n- ID\n- sort core, for GBP\n- status.","summary":"Retrieves bank transfer details for all accounts of a specified customer.","tags":["Customer"],"parameters":[{"description":"- The external ID of the customer whose bank transfer details are being\nrequested.","in":"path","name":"id","required":true,"schema":{"type":"string"}}]}}}}
```
