---
title: "POST /download-product-sale-report-compare-data-csv"
method: POST
path: "/download-product-sale-report-compare-data-csv"
tags: ["Reports"]
---

# POST /download-product-sale-report-compare-data-csv

`POST /download-product-sale-report-compare-data-csv`

## Request

- Base URL: `https://api.khaasfood.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.khaasfood.com/download-product-sale-report-compare-data-csv`
- Auth: OAuth 2
  - Authorization code: `https://api.khaasfood.com/connect/authorize`
  - Token URL: `https://api.khaasfood.com/connect/token`

## Request body

- KhaasFoodReportsDtosProductSaleReportInputDto
  - `maxResultCount` integer
  - `skipCount` integer
  - `sorting` string, nullable
  - `firstFromDate` string, date-time
  - `firstToDate` string, date-time
  - `secondFromDate` string, date-time
  - `secondToDate` string, date-time
  - `groupAs` integer, nullable
  - `value` integer
  - `view` integer
  - `productCategoryIds` string[], nullable
  - `searchText` string, nullable
  - `compareAs` integer, nullable
  - `warehouseId` string, uuid, nullable
  - `saleFrom` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14
  - `orderStatus` 1 | 2
  - `pageIndex` integer

## Response `200`

Success

- string

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `500`: Server Error
- `501`: Server Error

## Changes

> 11 revisions in range; 1 not diffed.

- **2026-09-06** `388b452fc6d7`: 4 info
  - added the new optional request property `orderStatus` (media type: application/json-patch+json)
  - added the new optional request property `orderStatus` (media type: application/json)
  - added the new optional request property `orderStatus` (media type: text/json)
  - added the new optional request property `orderStatus` (media type: application/*+json)

[Operation history](https://skmtc.dev/khaasfood/apis/khaasfood-api/changes/download-product-sale-report-compare-data-csv/post.md)

---

[API](https://skmtc.dev/khaasfood/apis/khaasfood-api.md) - [All operations](https://skmtc.dev/khaasfood/apis/khaasfood-api/llms.txt) - [OpenAPI document](https://skmtc.dev/khaasfood/apis/khaasfood-api/revisions/149b6034bea9?raw)
