---
title: "GET /api/app/sales"
method: GET
path: "/api/app/sales"
tags: ["Sales"]
---

# GET /api/app/sales

`GET /api/app/sales`

## 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/api/app/sales`
- Auth: OAuth 2
  - Authorization code: `https://api.khaasfood.com/connect/authorize`
  - Token URL: `https://api.khaasfood.com/connect/token`

## Query parameters

- `WarehouseId` string, uuid
- `IsActive` boolean
- `OrderState` integer
- `SaleFrom` integer
- `SearchState` integer
- `StartTime` string, date-time
- `EndTime` string, date-time
- `IsDealerSale` boolean
- `IsEcomSale` boolean
- `IsDistributorSale` boolean
- `IsDemand` boolean
- `IsTagSale` boolean
- `TagKeyword` string
- `IsSearchByProduct` boolean
- `Keyword` string
- `IsDueOnly` boolean
- `IsOfficeSupplySale` boolean
- `IsReturn` boolean
- `Sorting` string
- `SkipCount` integer
- `MaxResultCount` integer

## Response `200`

Success

- KhaasFoodSalesDTOsSalesPagedResultWithSummaryDto
  - `result` VoloAbpApplicationDtosPagedResultDto1KhaasFoodSalesDTOsSaleDataDtoKhaasFoodApplicationContractsVersion1000CultureNeutralPublicKeyTokenNull
    - `items` KhaasFoodSalesDTOsSaleDataDto[], nullable
      - `id` string, uuid
      - `customerId` string, uuid, nullable
      - `deliveryDate` string, date-time
      - `creationTime` string, date-time
      - `lastModificationTime` string, date-time, nullable
      - `deliverymanId` string, nullable
      - `deliverymanName` string, nullable
      - `deliverymanPhone` string, nullable
      - `orderState` integer
      - `saleFrom` integer
      - `customerName` string, nullable
      - `customerPhone` string, nullable
      - `remarks` string, nullable
      - `orderNumber` string, nullable
      - `orderReferenceNumber` string, nullable
      - `payableTotalAmount` number, double
      - `dueAmount` number, double
      - `isDealerSale` boolean
      - `dealerId` string, uuid, nullable
      - `dealerName` string, nullable
      - `dealerPhone` string, nullable
      - `isDistributorrSale` boolean
      - `distributorId` string, uuid, nullable
      - `distributorName` string, nullable
      - `distributorPhone` string, nullable
      - `distributorCode` string, nullable
      - `distributorDistrict` string, nullable
      - `distributorThana` string, nullable
      - `searchDateTime` string, date-time
      - `hasGiftOrDamage` boolean
      - `wareHouseId` string, uuid
      - `isMainWarehouse` boolean
      - `isReturn` boolean
      - `returnNote` string, nullable
      - `returnReason` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
      - `originalSaleId` string, uuid, nullable
      - `originalSaleOrderNumber` string, nullable
      - `isReturned` boolean
      - `returnOrderState` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
    - `totalCount` integer
  - `summary` KhaasFoodSalesDTOsSaleSummaryDto
    - `totalPayableAmount` number, double
    - `totalDueAmount` number, double

## Other responses

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

---

[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)
