External Account Generation

Blnk supports automated account number generation through external sources. This feature allows Blnk to fetch new account numbers from a specified RESTful service whenever a new account is created.

Configuration for External Account Generation

To enable external account number generation, include the following configuration in your blnk.config file:

blnk.config
{
"account_number_generation": {
    "http_service": {
        "url": "https://example.com/generate_account_number",
        "method": "POST",
        "headers": {
            "Content-Type": "application/json",
            "Authorization": "Bearer some_auth_token"
        }
    }
}

Expected Response Format

The response from the external account generation service should follow this format:

response from external service
{
    "account_number": "<generated_account_number>",
    "bank_name": "<associated_bank_name>"
}

Benefits

  • Flexibility: Blnk’s agnostic approach to account number generation means it can integrate with various external services, providing flexibility in account management.
  • Ease of Use: The straightforward JSON structure for account creation and management simplifies the process, making it accessible for developers.
  • Seamless Integration: By tying accounts to balances, Blnk ensures seamless integration of transaction data, enhancing the financial management capabilities of your application.

Quick start

Was this page helpful?