Get Virtual Card Transaction

This endpoint allows all the transactions the virtual card offers.

Request

{{baseUrl}}/virtual_card/transaction/:ref/

Headers

ParametersTypeDescriptionMandatory
AuthorizationStringpublic secret key e.g dc_test_1T1eSavlZxy02OT3OWlvbxK4GRequired

Body Parameters

ParametersTypeDescriptionMandatory
date_fromStringThis is where the client wants to start fromRequired
date_toStringThis is where the client needs to stop but cannot exceed current dateRequired

Response Sample

{
    "status": "success",
    "message": "Card transactions fetched successfully",
    "data": [
        {
            "id": 318635812,
            "amount": 500,
            "fee": 0,
            "product": "Card Transactions",
            "gateway_reference_details": "Card Withdrawal ",
            "reference": "CF-BARTER-20220627014320690886",
            "response_code": 5,
            "gateway_reference": "416046*******1254",
            "amount_confirmed": 0,
            "narration": "Card Withdrawal",
            "indicator": "D",
            "created_at": "2022-06-27T13:43:20.323Z",
            "status": "Successful",
            "response_message": "Transaction was Successful",
            "currency": "NGN"
        },
        {
            "id": 318631338,
            "amount": 500,
            "fee": 0,
            "product": "Card Funding",
            "gateway_reference_details": "19cb53ec-3c61-42fb-a7c1-f8f879ba102d",
            "reference": "CF-BARTER-20220627012433534058",
            "response_code": 5,
            "gateway_reference": "416046*******1254",
            "amount_confirmed": 0,
            "narration": null,
            "indicator": "C",
            "created_at": "2022-06-27T13:24:33.037Z",
            "status": "Successful",
            "response_message": "Transaction was Successful",
            "currency": "NGN"
        },
        {
            "id": 318627714,
            "amount": 1000,
            "fee": 0,
            "product": "Card Funding",
            "gateway_reference_details": "19cb53ec-3c61-42fb-a7c1-f8f879ba102d",
            "reference": "CF-BARTER-20220627011044148969",
            "response_code": 5,
            "gateway_reference": "416046*******1254",
            "amount_confirmed": 0,
            "narration": null,
            "indicator": "C",
            "created_at": "2022-06-27T13:10:44.373Z",
            "status": "Successful",
            "response_message": "Transaction was Successful",
            "currency": "NGN"
        }
    ]
}