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
  1. Integrations
  2. Endpoints

Withdraw cNGN

Withdraw cNGN

POST /withdraw

This endpoint allows you to withdraw your cNGN to an external wallet address

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

amount

number

Amount of cNGN you wish to withdraw

address

string

Wallet address to withdraw your cNGN to

network

string

shouldSaveAddress

boolean

if you wish to save wallet address as a beneficiary

Response

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

Decrypted Response

{
    "status": 200, 
    "message": "Withdrawal was successfully", 
    "data": {
        "trxRef": "a8b2bc5c-f92c-4d9d-a523-93a0a1c0823b", 
        "address": "0xb68459978a9FBD3BB3e45ed5972479c0f7711fe5"
    }
}
PreviousRedeem AssetsNextVerify Withdrawal

Last updated 3 months ago

The Network you wish to withdaw to; see

Networks Enum