---
title: "POST /api/CustomerQuery"
method: POST
path: "/api/CustomerQuery"
tags: ["CustomerQuery"]
---

# POST /api/CustomerQuery

`POST /api/CustomerQuery`

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

## Request body

- KhaasFoodCustomersDTOsCustomersCustomerFilterInputDto
  - `maxResultCount` integer
  - `skipCount` integer
  - `sorting` string, nullable
  - `keyword` string, nullable
  - `fromDate` string, date-time, nullable
  - `toDate` string, date-time, nullable
  - `warehouseId` string, uuid, nullable
  - `isGetAll` boolean
  - `getActiveCustomer` boolean

## Response `200`

Success

- VoloAbpApplicationDtosPagedResultDto1KhaasFoodCustomersDTOsCustomersCustomerDtoKhaasFoodApplicationContractsVersion1000CultureNeutralPublicKeyTokenNull
  - `items` KhaasFoodCustomersDTOsCustomersCustomerDto[], nullable
    - `id` string, uuid
    - `creationTime` string, date-time
    - `creatorId` string, uuid, nullable
    - `lastModificationTime` string, date-time, nullable
    - `lastModifierId` string, uuid, nullable
    - `otherAmount` number, double
    - `totalDiscount` number, double
    - `productAmount` number, double
    - `totalPaid` number, double
    - `totalDue` number, double
    - `ordersCount` integer
    - `totalAmount` number, double
    - `membershipCardNo` string, nullable
    - `name` string, nullable
    - `occupation` string, nullable
    - `university` string, nullable
    - `company` string, nullable
    - `district` string, nullable
    - `phone` string, nullable
    - `email` string, nullable
    - `nationalId` string, nullable
    - `imageUrl` string, nullable
    - `point` integer
    - `remarks` string, nullable
    - `isActive` boolean
    - `isRestrictRedeem` boolean
    - `isOverMaxOrderLimitPerMonth` boolean
    - `maxOrderLimitPerMonth` integer, nullable
    - `addresses` KhaasFoodAddressesDTOsAddressDto[], nullable
      - `id` string, uuid
      - `creationTime` string, date-time
      - `creatorId` string, uuid, nullable
      - `lastModificationTime` string, date-time, nullable
      - `lastModifierId` string, uuid, nullable
      - `customerId` string, uuid, nullable
      - `contactName` string, nullable
      - `contactPhone` string, nullable
      - `streetAddress` string, nullable
      - `area` string, nullable
      - `thana` string, nullable
      - `postCode` string, nullable
      - `district` string, nullable
      - `country` string, nullable
      - `specialNote` string, nullable
      - `addressName` string, nullable
      - `isHome` boolean
      - `isOffice` boolean
      - `isDefault` boolean
      - `isActive` boolean
      - `isShowOnMobile` boolean
    - `kamUserName` string, nullable
    - `referralCode` string, nullable
    - `coupons` string[], nullable
  - `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-11-01** `664d574d3e4d`: 6 info
  - added the optional property `items/items/addresses/items/isHome` to the response with the `200` status (media type: text/plain)
  - added the optional property `items/items/addresses/items/isHome` to the response with the `200` status (media type: application/json)
  - added the optional property `items/items/addresses/items/isHome` to the response with the `200` status (media type: text/json)
  - added the optional property `items/items/addresses/items/isOffice` to the response with the `200` status (media type: text/plain)
  - …2 more

[Operation history](https://skmtc.dev/khaasfood/apis/khaasfood-api/changes/api/CustomerQuery/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)
