OrderDashboard


Estadísticas relacionadas con una Orden para una Company o Branch.

Modelo OrderDashboard

{
    "id": 1,
    "type": "day",
    "date": "2019-02-13 00:00:00",
    "time_zone": "-04:00",
    "version": 3,
    "payload": {
        "count": 1,
        "version": 3,
        "updated_at": "2021-03-05 12:46:05",
        "date": "2019-02-13 04:00:00",
        "day": 13,
        "month": 2,
        "year": 2019,
        "orders": {
            "ongoing": {
                "created": 1,
                "created_asap": 1,
                "created_scheduled": 0,
                "hanging": 0,
                "hanging_asap": 0,
                "hanging_scheduled": 0,
                "total": 1,
                "total_asap": 1,
                "total_scheduled": 0,
                "attended": 0,
                "attended_asap": 0,
                "attended_scheduled": 0,
                "attended_completed": 0,
                "attended_cancelled": 0,
                "unattended": 1,
                "unattended_asap": 1,
                "unattended_scheduled": 0,
                "payment_pending": 0,
                "payment_reported": 0,
                "payment_approved": 1,
                "payments": {
                    "received_count": 0,
                    "received_refunded_count": 0,
                    "received_reconciled_count": 0,
                    "received_uncompleted_count": 0,
                    "pending_count": 1,
                    "cancelled_count": 0,
                    "total_e2": 2350000,
                    "expected_total_e2": 2350000,
                    "registered_total_e2": 0,
                    "reconciled_total_e2": 0,
                    "uncompleted_total_e2": 0,
                    "refunded_total_e2": 0,
                    "pending_total_e2": 2350000,
                    "cancelled_total_e2": 0
                }
            },
            "current": {
                "total": 1,
                "total_asap": 1,
                "total_scheduled": 0,
                "attended": 0,
                "attended_asap": 0,
                "attended_scheduled": 0,
                "attended_completed": 0,
                "attended_cancelled": 0,
                "unattended": 1,
                "unattended_asap": 1,
                "unattended_scheduled": 0,
                "payment_pending": 0,
                "payment_reported": 0,
                "payment_approved": 1,
                "payments": {
                    "received_count": 0,
                    "received_refunded_count": 0,
                    "received_reconciled_count": 0,
                    "received_uncompleted_count": 0,
                    "pending_count": 1,
                    "cancelled_count": 0,
                    "total_e2": 2350000,
                    "expected_total_e2": 2350000,
                    "registered_total_e2": 0,
                    "reconciled_total_e2": 0,
                    "uncompleted_total_e2": 0,
                    "refunded_total_e2": 0,
                    "pending_total_e2": 2350000,
                    "cancelled_total_e2": 0
                }
            },
            "unattended": {
                "total": 0,
                "confirmed": 0,
                "confirmed_asap": 0,
                "confirmed_scheduled": 0,
                "unconfirmed": 0,
                "running": 0,
                "not_running": 0,
                "payment_pending": 0,
                "payment_reported": 0,
                "payment_approved": 0,
                "payments": {
                    "received_count": 0,
                    "received_refunded_count": 0,
                    "received_reconciled_count": 0,
                    "received_uncompleted_count": 0,
                    "pending_count": 0,
                    "cancelled_count": 0,
                    "total_e2": 0,
                    "expected_total_e2": 0,
                    "registered_total_e2": 0,
                    "reconciled_total_e2": 0,
                    "uncompleted_total_e2": 0,
                    "refunded_total_e2": 0,
                    "pending_total_e2": 0,
                    "cancelled_total_e2": 0
                }
            }
        },
        "stats": {
            "goods": {
                "2": {
                    "sales_count": 1,
                    "reconciled_total_e2": 450000
                },
                "3": {
                    "sales_count": 1,
                    "reconciled_total_e2": 600000
                },
                "4": {
                    "sales_count": 1,
                    "reconciled_total_e2": 650000
                },
                "1": {
                    "sales_count": 1,
                    "reconciled_total_e2": 650000
                }
            },
            "clients": {
                "1": {
                    "purchases_count": 1,
                    "reconciled_purchases_count": 1,
                    "refund_purchases_count": 0,
                    "aborted_purchases_count": 0,
                    "reconciled_total_e2": 2350000,
                    "refund_total_e2": 0,
                    "last_purchased_at": "2019-02-20 18:24:48"
                }
            },
            "providers": []
        },
        "goods": {
            "sales_ranking": [
                {
                    "sales_count": 1,
                    "reconciled_total_e2": 450000
                },
                {
                    "sales_count": 1,
                    "reconciled_total_e2": 600000
                },
                {
                    "sales_count": 1,
                    "reconciled_total_e2": 650000
                },
                {
                    "sales_count": 1,
                    "reconciled_total_e2": 650000
                }
            ],
            "income_e2_ranking": [
                {
                    "sales_count": 1,
                    "reconciled_total_e2": 650000
                },
                {
                    "sales_count": 1,
                    "reconciled_total_e2": 650000
                },
                {
                    "sales_count": 1,
                    "reconciled_total_e2": 600000
                },
                {
                    "sales_count": 1,
                    "reconciled_total_e2": 450000
                }
            ]
        },
        "clients": {
            "frequent_clients_ranking": [
                {
                    "purchases_count": 1,
                    "reconciled_purchases_count": 1,
                    "refund_purchases_count": 0,
                    "aborted_purchases_count": 0,
                    "reconciled_total_e2": 2350000,
                    "refund_total_e2": 0,
                    "last_purchased_at": "2019-02-20 18:24:48"
                }
            ],
            "reconciled_total_ranking": [
                {
                    "purchases_count": 1,
                    "reconciled_purchases_count": 1,
                    "refund_purchases_count": 0,
                    "aborted_purchases_count": 0,
                    "reconciled_total_e2": 2350000,
                    "refund_total_e2": 0,
                    "last_purchased_at": "2019-02-20 18:24:48"
                }
            ]
        }
    },
    "available": true,
    "created_at": "2021-03-05 12:46:05",
    "updated_at": "2021-03-05 12:46:05",
    "branch_id": 2
}

Listar OrderDashboard

Listar Day

{info} Soporta: Paginación

Método URI Cabeceras
GET /companies/{companyId}/order-dashboards/days Authorization
{
    "month": "required|integer|min:1|max:12",
    "year": "required|integer|min:2017"
}

Listar Month

{info} Soporta: Paginación

Método URI Cabeceras
GET /companies/{companyId}/order-dashboards/months Authorization
{
    "year": "required|integer|min:2017"
}

Listar Year

{info} Soporta: Paginación

Método URI Cabeceras
GET /companies/{companyId}/order-dashboards/years Authorization

Listar Branch Day

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

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/order-dashboards/days Authorization
{
    "month": "required|integer|min:1|max:12",
    "year": "required|integer|min:2017"
}

Listar Branch Month

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

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/order-dashboards/months Authorization
{
    "year": "required|integer|min:2017"
}

Listar Branch Year

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

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/order-dashboards/years Authorization

Mostrar OrderDashboard

Mostrar Today

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/order-dashboards/today Authorization

Mostrar OrderDashboard de Company

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/order-dashboards/{orderDashboardId} Authorization

Mostrar Branch Today

{info} Soporta: Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/order-dashboards/today Authorization

Enlaces de OrderDashboard