action beezup_get_store_report_by_day_per_store { label: "Get the report by day for a StoreId" description: "Get the report by day for a StoreId" provider: beezup method: POST path: "/v2/user/analytics/reports/byday" encoding: json input: { type: "object" required: ["beginPeriodUtcDate", "endPeriodUtcDate"] properties: { advancedFilters: { type: "object" required: ["linkClickToOrderType", "marginType", "onlyDirectSales", "onlyPaymentValidatedOrders", "performanceIndicatorFormula"] properties: { globalMarginPercent: { type: "integer" description: "If the margin type is 'Global', indicate the percentage of sale price." } linkClickToOrderMaxDay: { type: "integer" description: "If the linkOrderType is OnClickDate, indicate the max day to search the click from the order" } linkClickToOrderType: { type: "string" enum: ["OnPurchaseDate", "OnClickDate"] } marginType: { type: "string" enum: ["Tracker", "Global"] } onlyDirectSales: { type: "boolean" description: "If true, you will get only direct sales. Otherwise the indirect sales will be included." } onlyPaymentValidatedOrders: { type: "boolean" description: "If true, you will get the only the orders with payment validated. Otherwise, you will get all orders validated or not." } performanceIndicatorFormula: { type: "object" description: "The KPI formula" properties: { firstParameter: { type: "string" description: "Indicate on which indicator or value you want to make your formula" enum: ["Cost", "TotalSales", "Margin", "TotalSalesMinusCost", "MarginMinusCost", "OrderCount", "ClickCount", "SoldProductCount", "One"] } operatorName: { type: "string" enum: ["Multiply", "Divide"] } secondParameter: { type: "string" description: "Indicate on which indicator or value you want to make your formula" enum: ["Cost", "TotalSales", "Margin", "TotalSalesMinusCost", "MarginMinusCost", "OrderCount", "ClickCount", "SoldProductCount", "One"] } thirdParameter: { type: "integer" description: "Indicate the value of the third parameter of your formula" } } } } } beginPeriodUtcDate: { type: "string" format: "date" description: "The begin date of the period for the report" } catalogCategoryId: { type: "string" format: "guid" description: "The catalog category identifier" } channelIds: { type: "array" description: "Indicate the channel identifier list" items: { type: "string" format: "guid" description: "The channel identifier" } } endPeriodUtcDate: { type: "string" format: "date" description: "The end date of the period for the report" } productId: { type: "string" format: "guid" description: "The product identifier" } } } output: { type: "object" description: "The key is the StoreId." } }