---
title: "Get the report by day for a StoreId"
method: POST
path: "/v2/user/analytics/{storeId}/reports/byday"
tags: ["Analytics - Statistics"]
---

# Get the report by day for a StoreId

`POST /v2/user/analytics/{storeId}/reports/byday`

Get the report by day for a StoreId

## Path parameters

- `storeId` string, guid, required

## Request body

- ReportByDayRequest
  - `channelIds` BeezUPCommonChannelId[] — Indicate the channel identifier list
  - `productId` string, guid — The product identifier
  - `catalogCategoryId` string, guid — The catalog category identifier
  - `beginPeriodUtcDate` string, date, required — The begin date of the period for the report
  - `endPeriodUtcDate` string, date, required — The end date of the period for the report
  - `advancedFilters` ReportAdvancedFilters
    - `marginType` 'Tracker' | 'Global', required
    - `globalMarginPercent` integer — If the margin type is 'Global', indicate the percentage of sale price.
    - `linkClickToOrderType` 'OnPurchaseDate' | 'OnClickDate', required
    - `linkClickToOrderMaxDay` integer — If the linkOrderType is OnClickDate, indicate the max day to search the click from the order
    - `onlyPaymentValidatedOrders` boolean, required — If true, you will get the only the orders with payment validated. Otherwise, you will get all orders validated or not.
    - `onlyDirectSales` boolean, required — If true, you will get only direct sales. Otherwise the indirect sales will be included.
    - `performanceIndicatorFormula` PerformanceIndicatorFormula, required — The KPI formula
      - `firstParameter` 'Cost' | 'TotalSales' | 'Margin' | 'TotalSalesMinusCost' | 'MarginMinusCost' | 'OrderCount' | 'ClickCount' | 'SoldProductCount' | 'One' — Indicate on which indicator or value you want to make your formula
      - `operatorName` 'Multiply' | 'Divide'
      - `secondParameter` 'Cost' | 'TotalSales' | 'Margin' | 'TotalSalesMinusCost' | 'MarginMinusCost' | 'OrderCount' | 'ClickCount' | 'SoldProductCount' | 'One' — Indicate on which indicator or value you want to make your formula
      - `thirdParameter` integer — Indicate the value of the third parameter of your formula

## Response `200`

Your reporting by day

- ReportByDayResponse
  - `currencyCode` string, required — The currency code <a href="https://en.wikipedia.org/wiki/ISO_4217">(ISO 4217)</a>
  - `globalPerformanceIndicators` ReportByDayGlobal, required
    - `allChannels` ReportByDayGlobalAllChannels, required
      - `performanceIndicator` number, required — Indicates the global performance indicator
    - `byChannels` ReportByDayGlobalByChannel[], required
      - `performanceIndicator` number, required — Indicates the global performance indicator
      - `channel` BeezUPCommonChannelBasicInfo, required — The basic info related to a channel
        - `channelId` string, guid, required — The channel identifier
        - `channelName` string, required — The channel name
        - `channelImageUrl` string, required — The URL <a href="https://en.wikipedia.org/wiki/URL">https://en.wikipedia.org/wiki/URL</a>
  - `days` ReportByDay[], required
    - `day` string, date, required
    - `allChannels` ReportByDayAllChannels, required
      - `clickCount` integer, required — The click count
      - `cost` number, required — The cost
      - `orderCount` integer, required — The order count
      - `roi` number, required — The Return On Investment
      - `margin` number, required — The margin
      - `performanceIndicator` number, required — The performance indicator based on the performance indicator formula indicated in the request
      - `totalSales` number, required — The total sales
      - `soldProductCount` integer, required — The product sold count count
    - `byChannels` ReportByDayByChannel[], required
      - `clickCount` integer, required — The click count
      - `cost` number, required — The cost
      - `orderCount` integer, required — The order count
      - `roi` number, required — The Return On Investment
      - `margin` number, required — The margin
      - `performanceIndicator` number, required — The performance indicator based on the performance indicator formula indicated in the request
      - `totalSales` number, required — The total sales
      - `soldProductCount` integer, required — The product sold count count
      - `channel` BeezUPCommonChannelBasicInfo, required — The basic info related to a channel
        - `channelId` string, guid, required — The channel identifier
        - `channelName` string, required — The channel name
        - `channelImageUrl` string, required — The URL <a href="https://en.wikipedia.org/wiki/URL">https://en.wikipedia.org/wiki/URL</a>

## Other responses

- `400` — Invalid request
- `404` — Store or resource not found
- `default` — Occurs when something goes wrong

---

[API](https://skmtc.dev/beezup/apis/beezup-merchant-api.md) · [All operations](https://skmtc.dev/beezup/apis/beezup-merchant-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/beezup/beezup-merchant-api/revisions/557b7feddf8a/schema)
