How to Integrate Account ID into the Instant Pay API

Integrating the Instant Pay API successfully involves meeting specific requirements for virtual account identification (ID). These requirements ensure that businesses comply with regulatory standards while avoiding errors during account creation. This guide provides a comprehensive explanation of the acceptable IDs, practical examples tailored to various business types, and sample code to streamline the integration process for developers.

When creating a virtual account, developers must include at least one valid form of identification based on the business type. The acceptable forms of identification are:

  1. BVN (Bank Verification Number): A unique identifier associated with a customer’s bank account, which is commonly required for financial transactions in Nigeria.
  2. NIN (National Identification Number): Issued by the National Identity Management Commission (NIMC), the NIN is widely used for identity verification.
  3. Phone Number or Email: Basic contact details that link the account to an individual or business entity.

Including the correct ID ensures that the virtual account is created successfully. Supplying invalid or incorrect IDs will result in errors, disrupting the integration process. Each business category has its own set of acceptable IDs. The detailed table outlining these requirements can be found on the documentation.

Practical Scenarios for Virtual Account Creation

Example 1: Setting Up an Agriculture Business Account

Scenario: A farming business requires a virtual account to receive payments for produce sales.

  • Required ID: BVN or NIN.

Request:

{ "accountLabel": "Farm Produce Payments", "bvn": "12345678901" }

Response:

{ "statusCode": "90000", "message": "success", "data": { "accountLabel": "Farm Produce Payments", "accountName": "HYDROGENCO - Farming Company-Farm Produce Payments", "account": "0423079123", "bankName": "Access Bank" } }

 

Example 2: Creating an Account for an Educational Institution

Scenario: A school needs to set up a virtual account for tracking tuition payments.

  • Required IDs: BVN, NIN, Phone Number, or Email.

Request:

{ "accountLabel": "Tuition Payments", "nin": "98765432101", "email": "payments@school.edu" }

Response:

{ "statusCode": "90000", "message": "success", "data": { "accountLabel": "Tuition Payments", "accountName": "HYDROGENCO - Education Centre-Tuition Payments", "account": "0156789012", "bankName": "Access Bank" } }

 

Example 3: Processing a Virtual Account for a Non-Profit Organisation

Scenario: A non-profit wants to receive donations through a virtual account.

  • Required IDs: NIN, Phone Number, or Email.

Request:

{ "accountLabel": "Donation Drive", "nin": "11223344556", "phoneNumber": "07012345678" }

Response:

{ "statusCode": "90000", "message": "success", "data": { "accountLabel": "Donation Drive", "accountName": "HYDROGENCO - Charity Organisation-Donation Drive", "account": "0379123456", "bankName": "Access Bank" } }

If invalid or incomplete IDs are submitted, the API will return an error response. Ensure that the correct IDs are provided based on the business type to avoid such issues.

Error Response Example:

{ "statusCode": null, "message": "Provide valid BVN or NIN to create virtual account", "data": null }

Final Recommendations

  • Always validate the IDs against the acceptable requirements for the business category before submitting the request.
  • Include the accountLabel to organise accounts effectively, especially when managing multiple accounts.
  • Regularly test your integrations to catch potential issues early.

With this guide, developers can confidently integrate virtual account creation into their systems using the Instant Pay API, ensuring compliance and efficient payment processing for businesses of all sizes.

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.

Articles in this section

Submit a Request
You can get support that’s tailored to you.