Documentation v1.0

Verify Transaction

Confirm the status of a transaction

GET /transaction/verify/:reference

Headers

Param Required Description
authorization
string
Yes Set value to Bearer SECRET_KEY

Path Param

Param Required Description
reference Yes The transaction reference used to intiate the transaction
{
    "status": true,
    "message": "Verification successful",
    "data": {
        "amount": "20000",
        "currency": "NGN",
        "status": "pending",
        "transaction_date": null,
        "reference": "61e469c330c2bc",
        "domain": "test",
        "gateway_response": null,
        "channel": null,
        "ip_address": null,
        "log": {
            "time_spent": 0,
            "attempts": 0,
            "authentication": null,
            "errors": 0,
            "success": false,
            "channel": null,
            "history": [{
                "type": "input",
                "message": "Filled these fields: card number, card expiry, card cvv",
                "time": 7
                },
                {
                "type": "action",
                "message": "Attempted to pay",
                "time": 7
                },
                {
                "type": "success",
                "message": "Successfully paid",
                "time": 8
                },
                {
                "type": "close",
                "message": "Page closed",
                "time": 9
                }
            ]
        }
    },
    "fees": null,
    "customer": {
        "id": 4,
        "customer_code": "CUS_ig2yjfnhtphlgt0",
        "first_name": null,
        "last_name": null,
        "email": "customer1@budpay.com"
    },
    "plan": null,
    "requested_amount": "20000"
}
curl https://budpay.ng/api/v1/transaction/verify/:reference
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X GET