Customers can use this endpoint to register a bank account that can be used for loan disbursements, repayments, and fund transfers.
[https://finlend.fincode.software/api/v1/services/user/create-bank-account](https://finlend.fincode.software/api/v1/services/user/create-bank-account)
The JWT Access Token obtained from the /login or /refresh-token endpoint.
Unique idempotency key for the request to prevent duplicate processing.
The date and time at which the request was initiated (ISO 8601 format).
x-fapi-customer-ip-address
The IP address of the customer making the request.
Unique identifier for the interaction/session.
Content-Type
string
default:"application/json"
required
Must be application/json.
Request Body
The unique identifier (UUID) of the customer adding the bank account.
Name of the account holder as it appears on the bank account.
Code identifying the bank.
Type of account (e.g., SAVINGS, CURRENT, CHECKING).
Whether this should be set as the default bank account.
Response
Returns confirmation of bank account creation with account details.
Overall status of the API request.
Bank account details.
Unique identifier for the bank account.
Identifier of the customer.
Bank account number (may be masked for security).
Whether this is the default account.
Whether the account has been verified.
Code Examples
curl --location --request POST 'https://finlend.fincode.software/api/v1/services/user/create-bank-account' \
--header 'X-Auth-Token: YOUR_JWT_ACCESS_TOKEN' \
--header 'x-idempotency-key: unique-key-12345' \
--header 'x-fapi-auth-date: 2024-01-15T10:30:00Z' \
--header 'x-fapi-customer-ip-address: 192.168.1.1' \
--header 'x-fapi-interaction-id: interaction-12345' \
--header 'Content-Type: application/json' \
--data '{
"customerId": "123e4567-e89b-12d3-a456-426614174000",
"accountNumber": "1234567890",
"accountName": "John Doe",
"bankCode": "058",
"bankName": "Guaranty Trust Bank",
"accountType": "SAVINGS",
"isDefault": true
}'