# Filter total sales Retrieve the total number of transactions per payment method based on optional filters such as date range, status, or free sales. Endpoint: POST /easyflow/sales/total-sales Version: 1.0 Security: bearerAuth ## Header parameters: - `x-fingerprint-id` (string, required) Unique device or session fingerprint identifier used for security and fraud prevention. - `business-id` (string, required) Business Identifier ## Request fields (application/json): - `freeSales` (boolean) Include or exclude free sales. - `initialDate` (string) - `endDate` (string) - `status` (array) Enum: "pending", "paid", "partially-paid", "canceled", "reversed", "refunded", "charged-back" ## Response 200 fields (application/json): - `statusCode` (integer) - `data` (object) - `data.count` (integer) - `data.pix` (object) - `data.pix.percentage` (number) - `data.creditCard` (object) - `data.boleto` (object) - `data.free` (object) ## Response 400 fields (application/json): - `message` (string) Invalid param: [] Example: "Invalid param: []" - `error` (string) Bad Request Example: "Bad Request" - `statusCode` (integer) 400 Example: 400 ## Response 401 fields (application/json): - `message` (string) Invalid field Example: "Unauthorized" - `error` (string) Unauthorized Example: "Unauthorized" - `statusCode` (integer) 401 Example: 401 ## Response 403 fields (application/json): - `message` (string) Forbidden resource Example: "Forbidden resource" - `error` (string) Forbidden Example: "Forbidden" - `statusCode` (integer) 403 Example: 403 ## Response 500 fields (application/json): - `message` (string) Internal server error Example: "Internal server error" - `error` (string) Internal Server Error Example: "Internal Server Error" - `statusCode` (integer) 500 Example: 500