cNGN documentation
  • Introduction
    • Overview
      • Use Cases
      • Definitions
      • Brand Assets
    • Going Live checklist
  • Getting Started
    • Security
      • Generating SSH keys
      • Generating API Keys
      • Encrypting / Decrypting Request
  • Integrations
    • Contract Address
    • Networks Enum
    • Authorization
    • Endpoints
      • Get Balance
      • Get Bank List
      • Transaction History
      • Virtual Account
      • Redeem Assets
      • Withdraw cNGN
      • Verify Withdrawal
      • Bridge cNGN
      • Whitelist Address
  • Libraries/SDKs
    • Backend Libraries
      • cNGN PHP Library
      • cNGN Python Library
      • cNGN Nodejs Library
      • cNGN Java Library
    • Frontend SDKs/Widget
Powered by GitBook
On this page
  • Generate Virtual Account
  • Providers:
  • Response
  • Decrypted Response:
  1. Integrations
  2. Endpoints

Virtual Account

Generate Virtual Account

POST /users

<Description of the endpoint>

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

provider

string

providers are financial institutions, default provider is korapay

Providers:

korapay

Response

{
  "status": 200,
  "message": "Deposit for redeem was successfully",
  "data": "<encrypted response>"
}
{
  "error": "Invalid request"
}

Decrypted Response:

{
  "status": 200,
  "message": "Virtual Account Generated successfully",
  "data": {
    "accountReference": "REF12345678",
    "accountNumber": "1234567890"
  }
}
PreviousTransaction HistoryNextRedeem Assets

Last updated 3 months ago