Enhanced Balance

Get a point in the time stamp of balance on each transaction line

Understand your customer's balance at each transaction made by running any account through our enhance balance route.

curl -X POST https://api.okra.ng/v2/transactions/balance/process
-H 'Content-Type: application/json' 
-H 'Authorisation: Bearer <secretKey>'
-d '{
    "account_id":  OKRA ACCOUNT ID, // Account ID of connected customer
}'
{
    "status": "success",
    "message": "Succesfully processed enhanced Transactions balance!",
    "data": {
        "data": [
            {
                "mae": 118114.60428571429,
                "transactions": [
                    {
                        "__v": 0,
                        "_id": "3faeae598829924cecc0cd57",
                        "account": "3faeae598829924cecc0cd57",
                        "actions": [],
                        "analyzed": [],
                        "balance": 76115,
                        "bank": "3faeae598829924cecc0cd57",
                        "bank_balance": 75141.42,
                        "checked": [],
                        "cleared_date": "2020-11-13T00:00:00.000Z",
                        "created_at": "2020-11-13T16:03:37.079Z",
                        "credit": null,
                        "customer": "3faeae598829924cecc0cd57",
                        "debit": 800,
                        "env": "production",
                        "fetched": [
                            "3faeae598829924cecc0cd57"
                        ],
                        "last_updated": "2020-12-28T03:49:06.128Z",
                        "location": null,
                        "manual": false,
                        "ner": null,
                        "ner_v": 0,
                        "notes": {
                            "actions": [],
                            "desc": "pos/web pmt web*bolt2_payu (nigeri lagos 00ng",
                            "people": [],
                            "places": [],
                            "prepositions": [],
                            "subjects": [
                                "pos web pmt web*bolt2_payu",
                                "lagos"
                            ],
                            "topics": []
                        },
                        "owner": [
                            "3faeae598829924cecc0cd57"
                        ],
                        "reconciled": false,
                        "record": [
                            "3faeae598829924cecc0cd57"
                        ],
                        "ref": "098wnvi203180u1o",
                        "trans_date": "2020-11-13T00:00:00.000Z",
                        "unformatted_cleared_date": "13/11/2020",
                        "unformatted_trans_date": "13/11/2020"
                    }
             ]
       }
}

Did this page help you?