Get Virtualizor

List Transaction

Use the List Transaction API to list all the transaction information added by the admin. The API response contains the list of the transactions, which are listed according to their transaction ID. To filter or limit the size of the list, you can specify one or more query parameters.

HTTP Request



actGETtransactionsThe action will the list of all the transaction informationYes
pageGETIntIf not specified, then only first 50 records are returnedNo
reslenGETIntNumber of records to be returned, default is 50No
tridPOSTIntFilter the list using the transaction IDNo
invoidPOSTIntFilter the list using the invoice IDNo
uidPOSTIntFilter the list using the user ID of the user making the transactionNo
emailPosttextFilter the list using the user email of the user making the transactionNo
datePOSTtextFilter the list using the date on which the transaction was made, should be in the format YYYY/MM/DDNo
gatewayPOSTtextFilter the list using the name of the payment gateway used for the transactionNo
tokenPOSTtextFilter the list using the payment transaction tokenNo
amtPOSTIntFilter the list using the transaction amountNo
feesPOSTIntFilter the list using the Fees charged by the GatewayNo
netPOSTIntFilter the list using the net transaction amountNo

Sample Code



    $key =  'your_api_key';
    $pass = 'your_api_pass';
    $ip = 'your_server_ip';
    $admin = new Virtualizor_Admin_API($ip, $key, $pass);

    $page = 1;
    $reslen = 1;
    $post = array();
    $post['uid'] = 57; // use uid or email
    $post['email'] = '';
    $post['date'] = '2018/09/18'; //YYYY/MM/DD
    $post['gateway'] = 'New API two';
    $post['amt'] = 1000;
    $post['trid'] = '';
    $post['invoid'] = '';
    $post['token'] = '';
    $post['fees'] = '';
    $post['net'] = '';

    $output = $admin->listtransaction($page, $reslen, $post);



    "title": "Transactions",
    "transactions": {
        "10": {
            "trid": "10",
            "uid": "57",
            "date": "20180918",
            "unixtime": "1537281235",
            "invoid": "0",
            "gateway": "New API two",
            "token": "",
            "amt": "1000.00",
            "fees": "0.00",
            "net": "1000.00",
            "bal": "10000.00",
            "used": "0",
            "email": ""
    "timenow": 1537282856,
    "time_taken": "0.207"
    Was this page helpful?
    Newsletter Subscription
    Subscribing you to the mailing list