# Get daily summary report

Returns the key figures of one day at the Location: clients, booked and completed amounts,
Product sales, money received and average workload. Call `/reports/day_report/{location_id}`
without a date for today.
The Business User needs the permission to manage the Location and access to basic
report metrics.

Endpoint: GET /reports/day_report/{location_id}/{date}
Version: 1.0.0
Security: BearerPartnerUser

## Security:

  - `BearerPartnerUser` (unknown)
    http bearer Bearer {PartnerToken}, User {UserToken}

## Path parameters:

  - `location_id` (integer, required)
    Location ID

  - `date` (string, required)
    Report date (YYYY-MM-DD). Omit the segment for today.

## Header parameters:

  - `Accept` (string, required)

  - `Content-Type` (string, required)

  - `Authorization` (string, required)
    Bearer {partner_token}, User {user_token}

## Response 200:

  - `200` (unknown)
    OK

## Response 200 fields (application/json):

  - `success` (boolean)

  - `data` (object)

  - `data.clients_count` (integer)
    Number of distinct clients with Appointments on the day

  - `data.record_sum` (number)
    Total cost of Services in the day's Appointments

  - `data.visit_sum` (number)
    Total cost of Services in Appointments with the client arrived, plus Product sales

  - `data.sale_sum` (number)
    Total of Product sales on the day

  - `data.transaction_sum` (number)
    Money received on the day

  - `data.discount` (number)
    Total discounts on Services and Products

  - `data.date_iso` (string)
    Start of the report day

  - `data.average_workload` (number)
    Average Team Member workload

  - `data.average_income` (number)
    Average check - income divided by the number of Visits and Product sale documents

  - `meta` (array)

## Response 401:

  - `401` (unknown)
    Unauthorized

## Response 401 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Authentication needed.

## Response 403:

  - `403` (unknown)
    Forbidden

## Response 403 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object)
    Additional response data.

  - `meta.message` (string)
    Error message.
    Example: Access denied.

## Response 404:

  - `404` (unknown)
    Not Found

## Response 404 fields (application/json):

  - `success` (boolean)
    Response status.
    Example: false

  - `data` (object | null)
    Response data.
    Example: null

  - `meta` (object | array)
    Additional response data (empty object or empty array)
    Example: {}

