Run in Apidog
This operation credits a 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 Name Type Required Description accountID string true The unique identifier of the account initiating the transaction. classificationCode string true A code used to categorize the type of transaction. amount decimal true The transaction amount to be processed. narration string true A brief description or reason for the transaction. transactionReference string false A unique identifier assigned to the transaction for tracking.
Response Body# Field Name Type Description transactionType string The type of transaction (e.g., credit, debit). amount decimal The amount associated with the transaction. narration string A brief description or reason for the transaction. classificationCode string A code used to categorize the transaction. success boolean Indicates whether the transaction was successful (true
) or not (false
). traceID string A unique identifier used for tracking and debugging purposes. transactionReference string A unique identifier assigned to the transaction. accountID string The unique identifier of the account involved in the transaction. transactionTime string The date and time when the transaction was processed.
Request Body Params application/json
{
"accountID" : "0000000238" ,
"classificationCode" : "SUBLEDGER001_CREDIT" ,
"amount" : 7 ,
"narration" : "Transactional Test" ,
"transactionReference" : "NG-0003"
}
Request samples curl --location --request POST '/credit/uni' \
--header 'Content-Type: application/json' \
--data-raw '{
"accountID":"0000000238",
"classificationCode":"SUBLEDGER001_CREDIT",
"amount":7,
"narration":"Transactional Test",
"transactionReference":"NG-0003"
}'
Responses application/json Generate Code
{
"transactionType" : "CREDIT" ,
"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-15 06:14:25