Beneficiary Management Flow
A comprehensive guide to managing beneficiaries for external transfers in the FinHub platform
Beneficiary Management Flow
This guide details the complete beneficiary management process in the FinHub platform. Beneficiaries are external accounts to which customers can send funds, and proper management of these entities is crucial for secure and efficient transfers.
Flow Overview
The following sequence diagram illustrates the beneficiary management process:
Detailed API Flow
Step 1: IBAN Validation
Before creating a beneficiary, the system validates the IBAN format based on country-specific rules.
Client-Side Validation:
The system performs initial validation on the client side to ensure the IBAN follows the correct format for the specified country:
- Each country has specific IBAN length requirements
- The IBAN must follow the correct structure (country code, check digits, bank code, account number)
- Basic checksum validation is performed
Implementation Notes:
- Client-side validation provides immediate feedback to users
- This is a preliminary check before server-side validation
- The validation rules are based on the ISO 13616 standard
- Different countries have different IBAN formats and lengths
Step 2: Create Beneficiary
After initial validation, the system creates a new beneficiary with the provided details.
API Request:
Request Body:
Response:
Implementation Notes:
- The system performs comprehensive server-side IBAN validation
- The beneficiary is created with an ACTIVE status by default
- The beneficiary ID is used for future transactions
- The system may have limits on the number of beneficiaries per customer
Step 3: Retrieve Beneficiaries
Customers can retrieve their list of beneficiaries at any time.
API Request:
Response:
Implementation Notes:
- The response includes all active beneficiaries
- Beneficiaries are sorted by creation date (newest first)
- The system may implement pagination for customers with many beneficiaries
- The response includes all details needed for displaying beneficiaries
Step 4: Update Beneficiary
Customers can update the details of an existing beneficiary.
API Request:
Request Body:
Response:
Implementation Notes:
- Certain fields may be immutable (e.g., IBAN, country)
- If the IBAN needs to be changed, a new beneficiary should be created
- The system maintains an audit trail of all updates
- The updated beneficiary maintains the same ID
Step 5: Delete Beneficiary
Customers can remove a beneficiary from their list.
API Request:
Response:
Implementation Notes:
- Deletion may be logical rather than physical (status changed to INACTIVE)
- The system maintains records for compliance and audit purposes
- Deleted beneficiaries cannot be used for new transactions
- The customer may need to confirm deletion for security purposes
Using Beneficiaries in Transactions
Once beneficiaries are created, they can be used in transaction flows:
SEPA Transfer to Beneficiary
API Request:
Request Body:
Response:
Implementation Notes:
- Using a beneficiary ID simplifies the transaction process
- The system retrieves all necessary beneficiary details automatically
- This approach reduces the risk of errors in transaction details
- The beneficiary information is validated again before processing the transaction
IBAN Validation Rules
The system implements comprehensive IBAN validation based on international standards:
-
Format Validation:
- Country-specific length (e.g., Germany: 22 characters, France: 27 characters)
- Correct structure (country code, check digits, bank code, account number)
- Valid characters (alphanumeric only)
-
Checksum Validation:
- MOD-97 operation as specified in the ISO 13616 standard
- Converts letters to numbers and performs mathematical validation
-
Bank Code Validation:
- Validates that the bank code portion of the IBAN exists
- Checks against a database of valid bank codes by country
-
Country-Specific Rules:
- Each country may have additional validation rules
- Special formatting requirements for specific countries
Error Handling
The beneficiary management process includes comprehensive error handling for various scenarios:
Error Scenario | Error Code | Description |
---|---|---|
Invalid IBAN format | INVALID_IBAN_FORMAT | The IBAN format does not match the country’s requirements |
Invalid IBAN checksum | INVALID_IBAN_CHECKSUM | The IBAN checksum validation failed |
Invalid bank code | INVALID_BANK_CODE | The bank code in the IBAN is not valid |
Duplicate beneficiary | DUPLICATE_BENEFICIARY | A beneficiary with the same IBAN already exists |
Beneficiary limit reached | BENEFICIARY_LIMIT_REACHED | The maximum number of beneficiaries has been reached |
Beneficiary not found | BENEFICIARY_NOT_FOUND | The specified beneficiary ID does not exist |
Unauthorized access | UNAUTHORIZED_ACCESS | The customer does not have permission to access this beneficiary |
Security Considerations
When implementing the beneficiary management flow, consider the following security measures:
- Verification Period: Implement a waiting period before allowing transactions to new beneficiaries
- Transaction Limits: Apply lower limits for transactions to new beneficiaries
- Notification System: Send notifications when beneficiaries are added, modified, or deleted
- Two-Factor Authentication: Require 2FA for adding or modifying beneficiaries
- Audit Trail: Maintain a comprehensive audit trail of all beneficiary-related actions
- Suspicious Activity Monitoring: Monitor for unusual patterns in beneficiary management
Next Steps
After implementing the beneficiary management flow, consider: