Virtual Account Services
  1. Transaction
Virtual Account Services
  • Introduction
  • Terminologies
  • Webhooks
  • Authentication
  • Account
    • Create Account
      POST
    • Rename Account
      POST
    • Balance Inquiry
      GET
    • Create Bulk Accounts
      POST
    • List Accounts
      GET
  • Transaction
    • Credit Account
      POST
    • Debit Account
      POST
    • Credit Account [Agency Banking]
      POST
    • Debit Account [Agency Banking]
      POST
    • Transaction Query
      GET
    • Transaction Details
      GET
    • Transaction History
      GET
  • Transfer
    • Get Institutions
      GET
    • Name Inquiry
      POST
    • Interbank Transfer
      POST
    • Interbank Transfer [Sync]
      POST
    • Transfer Query
      GET
    • Transfer Enquiry
      GET
    • Virtual Account Intrabank Transfer
      POST
    • Core Banking Intrabank Transfer
      POST
    • Collection Accounts Intrabank Transfer
      POST
  • Invoice
    • Create Invoice
      POST
    • Get Invoice Detail
      GET
    • List Merchant Invoices
      GET
  • Refunds
    • Initiate Refund
    • Get Refund Status
    • Get Refunds
  • Notifications
    • Notification
    • Send Notification
  • Merchant
    • Account
      • Get Account
      • Activate Sub Ledger For Merchant
      • Get SubLedger Callback Urls
      • Set SubLedger Callback Urls
      • Get Collection Accounts
    • Transfer
      • Get Transfer History
      • Get Subledger transfers
      • Get Transfer Details
      • Name Inquiry
    • Refund
      • Refund Details
  • Admin
    • Accounting
      • Get GL Accounts
      • Get Classification Codes
    • Dashboard
      • Dashboard Summary
      • Dashboard Transactions
      • Dashboard Transaction Details
    • Group Codes
      • Get Group Codes
      • Set Collection Account
      • Create Group Code
    • Reporting
      • Get Report Types
      • Get Report Parameters
      • Create Report
      • Get Reports
      • Get Reports Details
  1. Transaction

Debit Account

POST
/debit/uni
This API debits an virtual account. For this operation to be successful, a classificationCode must be entered. A classification code allows the accounting system understand which accouting ledger and payment type should be used for the transaction.

Request Body#

Field NameTypeRequiredDescription
accountIDstringTRUEUnique identifier for the account to be debited.
classificationCodestringTRUECode that classifies the type of debit operation.
amountdecimalTRUEThe amount to be debited from the account.
narrationstringTRUEA brief description or note regarding the transaction.
transactionReferencestringFALSEA unique reference assigned to the transaction.

Response Body#

Field NameTypeDescription
accountIDstringUnique identifier for the account that was debited.
classificationCodestringCode that classifies the type of debit operation.
amountdecimalThe amount that was debited from the account.
narrationstringA brief description or note regarding the transaction.
transactionReferencestringThe unique reference assigned to the transaction.
transactionTypestringThe type of transaction; for this operation, it will be 'DEBIT'.
successbooleanIndicates whether the debit operation was successful.
traceIDstringA system-generated trace ID used for tracking the transaction.
transactionTimestringThe timestamp when the transaction was processed.

Request

Body Params application/json

Example
{
    "accountID":"0000000238",
    "classificationCode":"SUBLEDGER001_CREDIT",
    "amount":1,
    "narration":"Transactional Test",
    "transactionReference":"UniqueRef244"
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/debit/uni' \
--header 'Content-Type: application/json' \
--data-raw '{
    "accountID":"0000000238",
    "classificationCode":"SUBLEDGER001_CREDIT",
    "amount":1,
    "narration":"Transactional Test",
    "transactionReference":"UniqueRef244"
}'

Responses

🟢200Debit Account
application/json
Body

Example
{
    "transactionType": "DEBIT",
    "amount": 7,
    "narration": "Transactional Test",
    "classificationCode": "SUBLEDGER001_CREDIT",
    "success": true,
    "traceID": "04c46c69-1e56-4a4e-8158-bc908ccbab2d",
    "transactionReference": "NG-0004",
    "accountID": "0000000238",
    "transactionTime": "2023-03-22T12:28:40.034+00:00"
}
Modified at 2025-03-17 22:14:01
Previous
Credit Account
Next
Credit Account [Agency Banking]
Built with