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

# Get the report by day for a StoreId

`POST /v2/user/analytics/reports/byday`

Get the report by day for a StoreId

## 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

- ReportByDayPerStoreResponse — The key is the StoreId.

## Other responses

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

---

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