Get Transactions

Please use this (https://blkem.com/mobile_api/get_transactions) API for fetching user transactions


Get parameters

Field Value Remarks
session_id ​Access token ID E.g. de25cc16eb00960f076...
page_size ​Total records limit for each request Recommended: 20
offset Last record offset ID This is only needed when loading records of the pagination system.

Success response

{
    "code": 200,
    "message": "Fetched successfully",
    "total": 19,
    "data": [
        {
            "id": 23,
            "user_id": 6098,
            "time": "2023-05-02 22:19:25",
            "amount": 10,
            "transaction_interval": null,
            "status": 1,
            "payment_method": "stripe",
            "transaction_id": "pi_3N3MrMGJvQt8lxWx0NlPtnu1",
            "other_data": null,
            "email": "[email protected]",
            "username": "abiidars",
            "phone": "923462751899"
        },
        {
            "id": 22,
            "user_id": 6098,
            "time": "2023-05-02 22:10:32",
            "amount": 10,
            "transaction_interval": null,
            "status": 1,
            "payment_method": "paypal",
            "transaction_id": "I-FR930P7NTE80",
            "other_data": "{\n    \"paypal_links\": [\n        {\n            \"href\": \"https:\\/\\/www.paypal.com\\/webapps\\/billing\\/subscriptions?ba_token=BA-5RU44638MB521722C\",\n            \"rel\": \"approve\",\n            \"method\": \"GET\"\n        },\n        {\n            \"href\": \"https:\\/\\/api-m.paypal.com\\/v1\\/billing\\/subscriptions\\/I-FR930P7NTE80\",\n            \"rel\": \"edit\",\n            \"method\": \"PATCH\"\n        },\n        {\n            \"href\": \"https:\\/\\/api-m.paypal.com\\/v1\\/billing\\/subscriptions\\/I-FR930P7NTE80\",\n            \"rel\": \"self\",\n            \"method\": \"GET\"\n        }\n    ]\n}",
            "email": "[email protected]",
            "username": "abiidars",
            "phone": "923462751899"
        }
        ...
    ]
}

Error responses

{
        "code": 401,
        "data": [],
        "message": "Unauthorized Access"
    }

    {
        "code": 200,
        "total": 0,
        "message": "No data found",
        "data": []
    }