vendorSalesAnalytics

Sales for a window, with top products, a daily series and growth against the preceding window of equal length.

period is today, week, month or year, resolved in the vendor's own timezone. Any other value requires date (RFC-3339 or YYYY-MM-DD) and reports that single local day; without one it is rejected rather than silently widening to all time.

Arguments

    date
    String

    Single day to report (YYYY-MM-DD). Omit to use period instead.

    period
    String
    One of today, week, month or year. Defaults to month.

Returns

    VendorSalesAnalytics!
    Required

    Sales for a window, with top products, a daily series and growth against the preceding window of equal length.

    period is today, week, month or year, resolved in the vendor's own timezone. Any other value requires date (RFC-3339 or YYYY-MM-DD) and reports that single local day; without one it is rejected rather than silently widening to all time.

Built with