GHS Virtual Accounts

Learn how to create and manage a Ghanaian Virtual Account.

🚧

GHS virtual accounts are available to Ghanaian merchants by default. Merchants based outside Ghana can request access by contacting [email protected].

Virtual accounts are generated bank account details (account number and bank name) that allow you to receive GHS payments from customers via bank transfer.

You can create two types of virtual accounts:

  • Dynamic Virtual Accounts
  • Static Virtual Accounts

We recommend starting with the introduction to understand the fundamentals before proceeding.

Creating a Dynamic Virtual Account

To create a dynamic virtual account, send a request to the create virtual account endpoint with the currency set to GHS, an amount greater than zero, and the customer's email.

curl --request POST 'https://api.flutterwave.com/v3/virtual-account-numbers' \
  --header 'Authorization: Bearer YOUR_SECRET_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "email": "[email protected]",
    "amount": 2000,
    "tx_ref": "apex_tx-002201",
    "currency": "GHS",
    "narration": "Godwins Goods"
}'

By default, a dynamic virtual account expires one hour after creation. You can specify a different expiry duration using the expires parameter. See the API reference for the parameter details and supported range.

You'll get a response similar to this:

{
    "status": "success",
    "message": "Virtual account created",
    "data": {
        "response_code": "02",
        "response_message": "Transaction in progress",
        "flw_ref": "IYRN5957179371374009415159",
        "order_ref": "URF_1793713739105_470535",
        "account_number": "9990000297211",
        "bank_name": "First Bank Ghana",
        "created_at": "2026-11-03 14:49:01",
        "expiry_date": "2026-11-03 15:49:00",
        "note": "Please make a bank transfer to Godwins Goods FLW",
        "amount": "2000.00"
    }
}

A successful response returns a response_code of 02 and response_message of "Transaction in progress". The response includes the virtual account's bank name and account number. Provide these details to the customer to make the payment.

Customers should complete the payment before the account's expiry_date. After the payment is completed, Flutterwave sends a webhook with the transaction status.

Creating a Static Virtual Account

You can create a static virtual account using the same [create virtual account endpoint]. Provide the customer's email, and set is_permanent to true.

curl --request POST 'https://api.flutterwave.com/v3/virtual-account-numbers' \
  --header 'Authorization: Bearer YOUR_SECRET_KEY' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "email": "[email protected]",
    "tx_ref": "Gowdins-order",
    "currency":"GHS",
    "is_permanent": true,
    "narration":"Godwins Foundation"
}'

See the API reference for the available parameters.

On a successful request, you'll get a response similar to this:

{
    "status": "success",
    "message": "Virtual account created",
    "data": {
        "response_code": "02",
        "response_message": "Transaction in progress",
        "flw_ref": "YEWP7039179371394569214582",
        "order_ref": "URF_1793713944680_7584335",
        "account_number": "9990000297576",
        "bank_name": "First Bank Ghana",
        "created_at": "2026-11-03 14:52:26",
        "note": "Please make a bank transfer to Godwins Foundation FLW",
        "amount": "0.00"
    }
}

🚧

Handling Underpayments and Overpayments

If a customer pays less than the expected transaction amount to the virtual account, the transfer fails. If a customer pays more than the expected amount, the transfer fails as well. Ensure the customer pays the exact amount for the transfer to be successful

Virtual Account Webhooks

When a payment to a virtual account is completed, we'll send you a webhook that looks like this:

{
  "event": "charge.completed",
  "data": {
    "id": 2110749149,
    "tx_ref": "Gowdins-order",
    "flw_ref": "816004312526",
    "device_fingerprint": "N/A",
    "amount": 10,
    "currency": "GHS",
    "charged_amount": 10,
    "app_fee": 0.4,
    "merchant_fee": 0,
    "processor_response": "received successfully",
    "auth_model": "AUTH",
    "ip": "168.253.117.232",
    "narration": "Testing Purpose",
    "status": "successful",
    "payment_type": "bank_transfer",
    "created_at": "2026-10-26T11:41:56.000Z",
    "account_id": 96753,
    "customer": {
      "id": 1384272429,
      "name": "Godwin Duah",
      "phone_number": "08100000000",
      "email": "[email protected]",
      "created_at": "2026-10-22T14:11:44.000Z"
    }
  },
  "meta_data": {
    "virtualaccountnumber": "9990000131211",
    "originatorname": "N/A",
    "bankname": "FBNGHANA",
    "bankcode": "FBNGHANA",
    "originatoramount": "10.0",
    "originatoraccountnumber": "N/A"
  },
  "event.type": "BANK_TRANSFER_TRANSACTION"
}
📘

How to Retrieve the Session ID.

The session_id used to reconcile transactions is returned in webhooks as the flw_ref. Store this value in your database alongside your internal transaction records.


Your webhook handler can use the event to process the payment and credit the customer's wallet. For help setting up webhooks, see our webhooks guide.

Creating Bulk Virtual Accounts.

You can create multiple static or dynamic virtual accounts in a single request. This is useful when managing a large customer base or streamlining payment collections.

To create bulk virtual accounts, make a POST request to the bulk virtual account endpoint with:


  • batch_ref(optional): A unique reference to identify the batch.
  • narration (optional): Provides context or the reason for the request.
  • currency(required): Set to GHS.
  • bulk_data(required): A list containing virtual account details for each customer:
    • firstname: Customer's first name.
    • lastname: Customer's last name.
    • email: Customer's email address.
    • amount: The amount to collect, required for creating a dynamic virtual account.
    • is_permanent: Set to true to create a static virtual account or false to create a dynamic virtual account.
curl --request POST 'https://api.flutterwave.com/v3/bulk-virtual-account-numbers' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_KEY' \
  --data-raw '{
    "batch_ref": "Bulk-VA-RWIESDP1",
    "currency:  "GHS",
    "narration": "Subscription Accounts 2026-01-05",
    "bulk_data": [
      {
        "firstname": "Bourne",
        "lastname": "Jason",
        "email": "[email protected]",
        "is_permanent": true
      },
      {
        "bvn": "12345678912",
        "email": "[email protected]",
        "firstname": "John",
        "lastname": "Doe",
        "is_permanent": true
      }
    ]
  }'

On a successful request, the response includes:

  • batch_id: A unique identifier for the batch. Use this to retrieve the generated virtual accounts.
  • response_code: Indicates whether the request was acknowledged. This should return "02".
  • response_message: Confirms that the request will be processed.
{
  "status": "success",
  "message": "Bulk virtual accounts creation queued",
  "data": {
    "batch_id": "-RND_4651739890196713",
    "response_code": "02",
    "response_message": "Request added to Queue"
  }
}

Bulk virtual account creation is processed asynchronously. Wait about 1–2 minutes for the accounts to be generated before retrieving them.

To retrieve the newly created virtual accounts, pass the batch_id returned from the bulk request as a path parameter to the get bulk account endpoint.

curl --request GET 'https://api.flutterwave.com/v3/bulk-virtual-account-numbers/-RND_4651739890196713' \
  --header 'Authorization: Bearer YOUR_SECRET_KEY'

You'll get a response similar to this:

{
    "status": "success",
    "message": "Bulk virtual accounts fetched",
    "data": {
        "virtual_accounts": [
            {
                "response_code": "02",
                "response_message": "Transaction in progress",
                "flw_ref": "TBGK8074178939297295772517",
                "order_ref": "URF_1789392971945_6117435",
                "account_number": "9990000169370",
                "bank_name": "First Bank Ghana",
                "created_at": "2026-09-14 14:36:13",
                "note": "Please make a bank transfer to Bourne Jason FLW",
                "amount": "0.00"
            },
            {
                "response_code": "02",
                "response_message": "Transaction in progress",
                "flw_ref": "OXCA8617178939297409972517",
                "order_ref": "URF_1789392971964_4498735",
                "account_number": "9990000169929",
                "bank_name": "First Bank Ghana",
                "created_at": "2026-09-14 14:36:15",
                "expiry_date": "2026-09-14 15:36:14",
                "note": "Please make a bank transfer to John Doe FLW",
                "amount": "200.00"
            }
        ]
    }
}

Did this page help you?