Confirm Credit

This API is used to complete the transaction by crediting the amount to the beneficiary's account.

MANDATORY

Method: POST

API URL: BASE_URL/transaction/confirmCredit

INFO

This API can only be used by the beneficiary entity of the respective transaction.

WARNING

  • If the txn_nature in the Credit Amount Webhook is CASH call the Confirm Credit API with the status HOLD(1002) in realtime.

  • When the user deposits money to the entity's cash counter, call the Confirm Credit API realtime and confirm the status asSUCCESS.

  • The txn_reference must be the same for HOLD(1002) and SUCCESS/FAILED for the same transaction if the txn_nature is CASH.

  • If the transaction is not completed, it will expire and be marked as FAILED within a maximum of 12 hours.

MANDATORY

If the txn_nature in the Credit Amount Webhook is other than CASH call the Confirm Credit API with the status SUCCESS / FAILED in realtime.

Request

Parameters

ON FIRST REQUEST

  • Send request as SUCCESS if the txn_amount is credited to the beneficiary's account. Else status must beFAILED.

  • Use HOLD only if the txn_nature in the Credit Amount Webhook is CASH.

Request format

{
    "head": {
        "api": "confirmCredit",
        "apiVersion": "V1",
        "timeStamp": "2023-01-13 11:07:32 AM",
        "auth": {
            "API_ID": "6360b30096066b82e9697996",
            "API_KEY": "b54996b0-59a8-11ed-911b-87fca52fd2dc"
        }
    },
    "encrypted_data": {
        "cipher_text": "ENX8N/83Mzn9RLD5CASpjugitMklcGZajq51eZd9jpG2mDqDmM1OFSRjptBvGNox4QLJIqaQZE8EZed4reGf8md+Of+pJlTyOAxbFrj/awb4nJcL5mP0PBE4u32oPbo0MlM34ZoF55AcTArmbdC/VsyZn16TTppx0LsypelvpqNyGhWCTTOdwus/dtenydNtV2b113nDj1fPp9BnfKdTg3Z6NW867i4BJwyUp0NDlwUuFNhi11MSs6bIRElrF+I/nNJT6Gu3GFHzu6Vn+ZOxo89h3KevA/eL40wqyEa34nccdXXeVhPqKKp48kSRHdkYmpDeKX6rvUEwadv5M5Mq6QZ60fTrTrawk26B1QdBgpf9BtNmKyhStomM8gAXfCNrHe2IeVtervWQhHJcbVazkTCeyBDm39IZy8cosianTaM=",
        "iv": "0549b493a55165f1",
        "hash": "2b87ca9e967103d9db930b2ef3b2c1d1a0044613b5a81cf0befe736f0d0c039f"
    }
}

Result Code

Success

1001 - SUCCESS

Hold

1002 - HOLD

Failed

8898 - Account not found

8897 - Account is inactive / blocked / closed

8895 - Credit is not allowed

8894 - User declined

8893 - Time expired

8892 - Attempts to retry exceeded maximum

8891 - Settlement account not found

Response

Parameters

INFO The txn_reference may contain -H as a suffix if the txn_attempt_status in the response is HOLD.

Eg: "txn_reference": "625896169969166531181616306-H"

Response format

{
    "head": {
        "api": "confirmCredit",
        "apiVersion": "V1",
        "timeStamp": "2023-01-13 11:07:32 AM",
        "HTTP_CODE": 200
    },
    "encrypted_data": {
        "cipher_text": "97OPwxERYFSbItW/9jcBWOWnvAad6yPgDAPlxP6c4CJ6uH1GFsFXi0elBG3M/0rmyo/74Cgy0o8ZbFBd64/23gNIjF1a2mt/daEr4bgLwmYdy/EU17XWUIXJPk0ca///2k6050M0Iz6gxYZaJuT+su001QLPpaJYT0Y3BajjXYR6e1gWnBWXjV+A0kEzIIRQjKW7lzgSV3PqMqU23DfzpQUSQC9SRSBirh/azERy5R9I3LqDS4lRCaNBrVEZzOQzra27XRyW49Qadzp/KaQmm5WT6s899sA8dCFITESQKQHpCoA8mGJi6jYcSpkuyXslA5pJU/7Nks//wSAtsq8UOA62ZIuljwgMyJcnYagsddSvGRK5iyMe83E/LDsJcOYw8ip5gSnDrFXM5ptMTxCUFSWFmHWM4T6N+rt4iD+b5AinRSY40pYBXKUlpnYKajg30oEU9BTVzhaMdRrTPm9upkgQWOi4JJC0jfb7eDGEPfPXHRIqK38ofY7y8hiNJ1qOwyoDdoU+1Mu1YxlAf5nN9Q==",
        "iv": "f092814abf3e132d",
        "hash": "f93dc2480119bd09c0ff66ad110241b02134101327ae6b94492b6b5a6d6ff972"
    }
}

Result Code

See the listed common result codes

See the list of confirmCredit result codes

Last updated