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
  • Get Balance
  • Decrypted Resposne:
  1. Integrations
  2. Endpoints

Get Balance

Get Balance

GET /balance

This endpoint enables merchants to retrieve their wallet balance.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <apiKey>

Response

{
    "status": 200, 
    "message": "Balance fetched successfully", 
    "data": "<encrypted string>"
}
{
    "status": 400, 
    "message": "Invalid api key"
}

Decrypted Resposne:

{
    "status": 200, 
    "message": "Balance fetched successfully", 
    "data": [
        {
            "asset_type": "credit_alphanum4", 
            "asset_code": "CNGN", 
            "balance": "0"
        }
    ]
}
PreviousEndpointsNextGet Bank List

Last updated 3 months ago