Documentation v1.0

View Transaction Timeline

View the timeline of a transaction

GET /transaction/timeline/:id_or_reference

Headers

Param Required Description
authorization
string
Yes Set value to Bearer SECRET_KEY

Path Param

Param Required Description
id_or_reference
string
Yes The ID or the reference of the transaction
{
    "status": true,
    "message": "Timeline retrieved",
    "data": {
        "time_spent": 9061,
        "attempts": 2,
        "authentication": null,
        "errors": 1,
        "success": false,
        "channel": "card",
        "history": [
            {
                "type": "open",
                "message": "Opened payment page",
                "time": 1
            },
            {
                "type": "input",
                "message": "Filled these fields: card number, card expiry, card cvc",
                "time": 39
            },
            {
                "type": "action",
                "message": "Attempted to pay",
                "time": 39
            },
            {
                "type": "error",
                "message": "Error: Declined",
                "time": 48
            },
            {
                "type": "input",
                "message": "Filled these fields: card expiry, card cvc",
                "time": 9061
            },
            {
                "type": "close",
                "message": "Page closed",
                "time": 9061
            }
        ]
    }
}
curl https://budpay.ng/api/v1/transaction/timeline/:id_or_reference
-H "Authorization: Bearer YOUR_SECRET_KEY"
-X GET