Skip to content

Sales Metrics Serializer

The SalesMetricsSerializer is used to serialize sales-related data for reporting and analytics.


Fields

Field Type Required Description
id Integer Yes Unique identifier for the sales record.
date Date Yes The date for the sales metrics.
filter_type String Yes Filter type (e.g., daily, weekly, monthly).
total_sales Float Yes Total sales amount for the given period.
total_quantity Integer Yes Total quantity of products sold.
new_customers Integer No Number of new customers acquired.
total_orders Integer Yes Total number of orders placed.
vendor Integer Yes ID of the vendor associated with the sales.
product Integer Yes ID of the product associated with the sales.
product_name String No Read-only field showing the product name.