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

# POST /get-product-sale-compare-data

`POST /get-product-sale-compare-data`

## 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/get-product-sale-compare-data`
- 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

- VoloAbpApplicationDtosPagedResultDto1KhaasFoodReportsDtosProductSaleReportCompareResultDtoKhaasFoodApplicationContractsVersion1000CultureNeutralPublicKeyTokenNull
  - `items` KhaasFoodReportsDtosProductSaleReportCompareResultDto[], nullable
    - `productName` string, nullable
    - `productDetailId` string, uuid
    - `compareResult` KhaasFoodReportsDtosProductSaleReportCompareResultSummary
      - `firstRangeQuantity` number, double
      - `secondRangeQuantity` number, double
      - `firstRangeAmount` number, double
      - `secondRangeAmount` number, double
      - `amountChangePercentage` number, double
      - `quantityChangePercentage` number, double
      - `productDetailId` string, uuid
  - `totalCount` integer

## 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/get-product-sale-compare-data/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)
