ReportHistory


  • Modelo

  • Listar

  • Enlaces

  • name: Nombre único del reporte

  • download_link: contiene la ruta para descargar el reporte generado cuando status == available.

  • progress: indica el progreso actual del reporte que se está generando de 0.00 a 100.00 (inclusive). Una vez llega a 100, es posible que demore unos segundos antes de pasar a status = available mientras se sube el reporte al servidor de archivos.

Modelo ReportHistory

{
    "id": 3,
    "report_url": "api/v3/companies/116/reports/company-orders",
    "args": {
        "parameters": {
            "company_id": 116,
            "beg": "2025-04-21T04:00:00.000000Z",
            "end": "2025-04-24T03:59:59.000000Z",
            "tz": "-04:00"
        },
        "payload": []
    },
    "download_link": "https://dondemand-dev.sfo3.cdn.digitaloceanspaces.com/companies/69/reports/órdenes_general_1745431662.xlsx",
    "status": "available",
    "account_id": 175,
    "created_at": "2025-04-23 18:07:42",
    "updated_at": "2025-04-23 18:46:44",
    "progress": 100,
    "name": "company-orders",
    "author": {
        "id": 96,
        "name": "Pedro Parra",
        "display_name": "admin_175",
        "email": "pedrop@manzanares.com.ve",
        "phone": "584121198667",
        "avatar_url": "http://127.0.0.1:8000/storage/static/default/avatar_admin.png",
        "status": 0,
        "created_at": "2020-04-20 15:24:38",
        "updated_at": "2025-05-20 15:18:53",
        "deleted_at": null,
        "account_id": 175,
        "admin_type_id": null,
        "city_id": 17,
        "is_status_online": false,
        "settings": {
            "preferences": {
                "audible_notifications.branch_in_service": "on",
                "audible_notifications.order_new": "off",
                "audible_notifications.payment_new": "off",
                "audible_notifications.order_being_prepared": "on",
                "audible_notifications.order_accepted": "off",
                "audible_notifications.order_prepared": "on",
                "audible_notifications.liver_arrived": "on",
                "audible_notifications.liver_in_commerce": "on",
                "audible_notifications.liver_on_the_way": "on",
                "audible_notifications.order_arrived": "off",
                "audible_notifications.order_delivered": "off",
                "audible_notifications.order_canceled": "off"
            }
        }
    }
}
Atributo Tipo Descripción
id int -
report_url string -
args array -
download_link string -
status string -
account_id int -
created_at datetime\|null -
updated_at datetime\|null -
progress float -
name string -

Listar ReportHistory

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/report-histories Authorization

Enlaces de ReportHistory