Skip to content

Reports

sadhasivam edited this page Sep 10, 2024 · 1 revision

Delete Report

URL: /api/admin/reports/delete

Method: POST

Description: Deletes a specified report.

Parameters

Parameter Type Required/Optional Description
arr Array of Integers Required An array of report IDs to be deleted.
which_report String Required A string indicating which report type is being deleted.

Response

{
    "success": true,
    "message": "Deleted 3 monthly report(s).",
    "data": {
        "removed" : 3,
        "which" : [1,2,3],
    }
}

System Report

URL: /api/admin/reportSystem

Method: GET

Description: Retrieves the system report array.

Parameters

This endpoint does not require any parameters.

Response

{
    "success": true,
    "message": "All the Details of the system report's registered so far are displayed",
    "data": [
        {
                "report_id": 119497,
                "product_id": 0,
                "account_id": 0,
                "license_code": null,
                "report_date_time": "2024-09-10 05:26:22",
                "report_text": "Product version V3.1.23 updated.",
                "report_system": 1,
                "report_status": 1,
                "created_at": null,
                "updated_at": null,
                "user_formatted": "System",
                "user": null
            },
            {
                "report_id": 119496,
                "product_id": 0,
                "account_id": 0,
                "license_code": null,
                "report_date_time": "2024-09-10 05:26:10",
                "report_text": "Version could not be updated because of this reason: Invalid version expiration date.",
                "report_system": 1,
                "report_status": 0,
                "created_at": null,
                "updated_at": null,
                "user_formatted": "System",
                "user": null
            },
        ]
}

License Report

URL: /api/admin/reportLicense

Method: GET

Description: Retrieves the license report array.

Parameters

This endpoint does not require any parameters.

Response

{
    "success": true,
    "message": "All the Details of the license report's registered so far are displayed",
    "data": [
            {
                "report_id": 113338,
                "account_id": null,
                "report_text": "Report displayed here",
                "report_date_time": "2022-07-25 06:34:50",
                "report_status": 1,
                "client_email": null,
                "user": null,
                "license": {
                    "license_id": 18978,
                    "license_code": "HJDBDCJHBDHJDBKJC"
                }
            }
        ],
}

Cracking Report

URL: /api/admin/reportCracking

Method: GET

Description: Retrieves the cracking report array.

Parameters

This endpoint does not require any parameters.

Response

{
    "success": true,
     "message": "All the Details of the cracking report's registered so far are displayed",
     "data":  [
            {
                "report_id": 113338,
                "product_id": 8,
                "account_id": null,
                "license_code": null,
                "report_date_time": "2022-07-25 06:34:50",
                "report_text": "Cracking Report",
                "report_system": 0,
                "report_status": 1,
                "created_at": null,
                "updated_at": null,
                "product_product_title": null,
                "user" : null,
                "product": null
            },
            {
                "report_id": 113354,
                "product_id": 81,
                "account_id": null,
                "license_code": null,
                "report_date_time": "2022-07-25 07:40:50",
                "report_text": "Report Cracking",
                "report_system": 0,
                "report_status": 1,
                "created_at": null,
                "updated_at": null,
                "product_product_title": "Test Product Pro",
                "user" : null,
                "product": {
                    "product_id": 81,
                    "product_title": "Test Product Pro",
                    "product_description": "",
                    "product_sku": "TEST-Product",
                    "product_url_homepage": "",
                    "product_url_download": "",
                    "product_date": "2021-07-02",
                    "product_version": "",
                    "product_envato_id": null,
                    "product_status": 1,
                    "created_at": null,
                    "updated_at": null,
                    "deleted_at": null
                }
            },
    ]
}

Update Report

URL: /api/admin/reportUpdate

Method: GET

Description: Retrieves the update report array.

Parameters

This endpoint does not require any parameters.

Response

{
    "success": true,
    "message": "All the Details of the update report's registered so far are displayed",
    "data":  [
            {
                "report_id": 113338,
                "product_id": 8,
                "account_id": null,
                "license_code": null,
                "report_date_time": "2022-07-25 06:34:50",
                "report_text": "Test Product v4.10.3 upgrade archive at 193.249.38.229 (\/home\/public_html\/public) downloaded.",
                "report_system": 0,
                "report_status": 1,
                "created_at": null,
                "updated_at": null,
                "product_product_title": null,
                "product": null
            },
            {
                "report_id": 113354,
                "product_id": 81,
                "account_id": null,
                "license_code": null,
                "report_date_time": "2022-07-25 07:40:50",
                "report_text": "Test Product Pro v4.10.3 upgrade archive at 193.249.38.229 (\/home\/public_html\/public) downloaded.",
                "report_system": 0,
                "report_status": 1,
                "created_at": null,
                "updated_at": null,
                "product_product_title": "Test Product Pro",
                "product": {
                    "product_id": 81,
                    "product_title": "Test Product Pro",
                    "product_description": "",
                    "product_sku": "TEST-Product",
                    "product_url_homepage": "",
                    "product_url_download": "",
                    "product_date": "2021-07-02",
                    "product_version": "",
                    "product_envato_id": null,
                    "product_status": 1,
                    "created_at": null,
                    "updated_at": null,
                    "deleted_at": null
                }
            },
    ]
}

Clone this wiki locally