Fund Deposit Account

Fund Deposit Account in Production Environment

To fund a deposit account in live or production environment, send money to the 10-digit virtual account number (i.e virtual nuban) that is linked to the deposit account and the deposit account will be credited. You can do this via USSD, mobile transfer or by walking into any bank and making a bank transfer.

When a virtual account number (virtual nuban) receives money, we send you two webhook events: payment.received and payment.settled.

payment.received event is sent when a virtual account number (virtual nuban) receives money. When the money is settled into the deposit account the virtual nuban is attached to, we send you payment.settled event.

Fund Deposit Account in Sandbox

You can fund an account in sandbox to help you simulate the flow of funds. In the sandbox environment, you can test/simulate funding a deposit account.

  1. Login to the Anchor dashboard.
  2. Go to the Accounts section, select Deposit Accounts then click on Simulate Transfer button.
  3. Fill the form, and select the virtual Nuban you want to fund the fund will reflect in the deposit account linked to the virtual Nuban. (Note that sender account name and number can be random values).

Sample payload to fund an account in sandbox and 200 OK response are given below:

curl --location 'https://api.sandbox.getanchor.co/api/v1/transaction-notification' \
--header 'Content-Type: application/json' \
--header 'x-anchor-key: <API Key>' \
--data '{
    "data": {
      "type": "Notification",
      "attributes": {
        "transactionAmount": 100000,
        "sourceAccount": {
          "accountName": "Bradan James",
          "accountNumber": "123456789"
        }
      },
      "relationships": {
        "destinationAccount": {
          "data": {
            "id": "169323862544733-anc_va",
            "type": "VirtualNuban"
          }
        }
      }
    }
}'
{
    "data": {
        "id": "17168491271003-anc_py",
        "type": "Payment",
        "attributes": {
            "createdAt": "2024-05-27T22:32:07.103806",
            "amount": 100000,
            "paymentReference": "98e00b4f-fc5e-4a69-859b-b953d4ebc6c2",
            "fee": 0,
            "narration": "Test transaction",
            "paidAt": "2024-05-27T22:32:07.096477",
            "counterParty": {
                "accountNumber": "123456789",
                "accountName": "Bradan James",
                "bank": {
                    "name": "STANBIC IBTC BANK"
                }
            },
            "currency": "NGN",
            "type": "BankTransfer"
        },
        "relationships": {
            "virtualNuban": {
                "data": {
                    "id": "169323862544733-anc_va",
                    "type": "VirtualNuban"
                }
            },
            "settlementAccount": {
                "data": {
                    "id": "16922123768364-anc_acc",
                    "type": "DepositAccount"
                }
            }
        }
    }
}