---
title: "POST /api/app/purchase-query/search"
method: POST
path: "/api/app/purchase-query/search"
tags: ["PurchaseQuery"]
---

# POST /api/app/purchase-query/search

`POST /api/app/purchase-query/search`

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

## Request body

- KhaasFoodPurchasesDtosPurchaseFilterInputDto
  - `maxResultCount` integer
  - `skipCount` integer
  - `sorting` string, nullable
  - `filter` string, nullable
  - `warehouseId` string, uuid, nullable
  - `supplierId` string, uuid, nullable
  - `fromDate` string, date-time, nullable
  - `toDate` string, date-time, nullable
  - `isPending` boolean
  - `isGetAll` boolean

## Response `200`

Success

- VoloAbpApplicationDtosPagedResultDto1KhaasFoodPurchasesDtosPurchaseDtoKhaasFoodApplicationContractsVersion1000CultureNeutralPublicKeyTokenNull
  - `items` KhaasFoodPurchasesDtosPurchaseDto[], nullable
    - `id` string, uuid
    - `creationTime` string, date-time
    - `creatorId` string, uuid, nullable
    - `lastModificationTime` string, date-time, nullable
    - `lastModifierId` string, uuid, nullable
    - `isDeleted` boolean
    - `deleterId` string, uuid, nullable
    - `deletionTime` string, date-time, nullable
    - `isReturnOrder` boolean
    - `orderNumber` string, nullable
    - `orderReferenceNumber` string, nullable
    - `shippingAmount` number, double
    - `productAmount` number, double
    - `otherAmount` number, double
    - `discountAmount` number, double
    - `totalAmount` number, double
    - `paidAmount` number, double
    - `dueAmount` number, double
    - `state` string, nullable
    - `shippingProvider` string, nullable
    - `shipmentTrackingNo` string, nullable
    - `supplierId` string, uuid, nullable
    - `supplierName` string, nullable
    - `remarks` string, nullable
    - `orderDate` string, date-time
    - `warehouseId` string, uuid, nullable
    - `sourceWarehouseId` string, uuid, nullable
    - `warehouse` KhaasFoodWarehousesDtosWarehousesWarehouseDto
      - `name` string, nullable
      - `streetAddress` string, nullable
      - `area` string, nullable
      - `district` string, nullable
      - `isMain` boolean
      - `isActive` boolean
      - `warehouseType` 0 | 1 | 2 | 3 | 4 | 5 | 6
      - `syncOnAccounting` boolean
      - `id` string, uuid
      - `isUseInOnlineSale` boolean
      - `isUseInPosSale` boolean
      - `isUseInEComSale` boolean
      - `isUseInDealerSale` boolean
    - `supplier` KhaasFoodSuppliersDtosSupplierDto
      - `id` string, uuid
      - `name` string, nullable
      - `address` string, nullable
      - `phone` string, nullable
      - `remarks` string, nullable
      - `contactPersonName` string, nullable
      - `country` string, nullable
      - `termsAndConditions` string, nullable
    - `purchaseDetails` KhaasFoodPurchasesDtosPurchaseDetailDto[], nullable
      - `id` string, uuid
      - `creationTime` string, date-time
      - `creatorId` string, uuid, nullable
      - `lastModificationTime` string, date-time, nullable
      - `lastModifierId` string, uuid, nullable
      - `isDeleted` boolean
      - `deleterId` string, uuid, nullable
      - `deletionTime` string, date-time, nullable
      - `productDetailId` string, uuid
      - `productDetail` KhaasFoodProductsDTOsProductDetailsProductDetailDto
        - `id` string, uuid
        - `creationTime` string, date-time
        - `creatorId` string, uuid, nullable
        - `lastModificationTime` string, date-time, nullable
        - `lastModifierId` string, uuid, nullable
        - `isDeleted` boolean
        - `deleterId` string, uuid, nullable
        - `deletionTime` string, date-time, nullable
        - `wcId` integer
        - `wcSku` string, nullable
        - `wcCategoryId` integer
        - `wcType` string, nullable
        - `wcVariationId` integer
        - `wcVariationOption` string, nullable
        - `wcVariationPermalink` string, nullable
        - `shopId` string, nullable
        - `name` string, nullable
        - `parentName` string, nullable
        - `variationName` string, nullable
        - `model` string, nullable
        - `year` string, nullable
        - `barcode` string, nullable
        - `slug` string, nullable
        - `productCode` string, nullable
        - `hasUniqueSerial` boolean
        - `hasWarrenty` boolean
        - `salePrice` number, double
        - `dealerPrice` number, double
        - `nationalDistributionPrice` number, double
        - `costPrice` number, double
        - `dealerCashPrice` number, double
        - `dealerDuePrice` number, double
        - `franchisePrice` number, double
        - `partnershipPrice` number, double
        - `type` string, nullable
        - `color` string, nullable
        - `processingQty` number, double
        - `pendingQty` number, double
        - `minimumStockToNotify` integer
        - `startingInventory` integer
        - `purchased` number, double
        - `sold` number, double
        - `onHand` number, double
        - `homeDeliveryCharge` number, double
        - `courierCharge` number, double
        - `displayOrder` integer
        - `stockIn` number, double
        - `stockOut` number, double
        - `productCategoryId` string, nullable
        - `productName` string, nullable
        - `brandId` string, uuid
        - `brandName` string, nullable
        - `tags` string, nullable
        - `relatedProductNames` string[], nullable
        - `description` string, nullable
        - `shortDescription` string, nullable
        - `additionalDetails` string, nullable
        - `isRawProduct` boolean
        - `damage` number, double
        - `gift` number, double
        - `return` number, double
        - `discountPercent` number, double, nullable
        - `webDiscountPercent` number, double, nullable
        - `bizBookDiscountPercent` number, double, nullable
        - `isStockOut` boolean
        - `isDirectSupply` boolean
        - `isPackagingMaterial` boolean
        - `isShowPackagingProductOnOrder` boolean
        - `isPackagingMaterialExcludedFromBom` boolean
        - `isExcludedFromRequisition` boolean
        - `applyDiscount` boolean
        - `webApplyDiscount` boolean
        - `bizBookApplyDiscount` boolean
        - `isDiscountOnlyForApp` boolean
        - `isShowDiscountAmount` boolean
        - `webIsShowDiscountAmount` boolean
        - `bizBookIsShowDiscountAmount` boolean
        - `discountAmount` number, double
        - `sendToVoucherInventory` boolean
        - `unitOfMeasurementId` string, nullable
        - `unitOfMeasurementName` string, nullable
        - `isActive` boolean
        - `isNationalDistributionSaleProduct` boolean
        - `isRegularSaleProduct` boolean
        - `salePricePerUnitBeforeDiscount` number, double
        - `isBundleProduct` boolean
        - `isPriceEditable` boolean
        - `isPreOrderProduct` boolean
        - `isPreOrderAllowWithRegularProduct` boolean
        - `isShowOnApp` boolean
        - `isShowOnWeb` boolean
        - `isDeliveryChargeMultipliedByQuantity` boolean
        - `isOfficeSupply` boolean
        - `hasSeparateDeliveryCharge` boolean
        - `preOrderDeliveryDate` string, date-time, nullable
        - `estimatedDeliveryFrom` string, date-time, nullable
        - `estimatedDeliveryTo` string, date-time, nullable
        - `productImages` KhaasFoodProductsDTOsProductDetailsProductImageCreateUpdateInputDto[], nullable
          - `id` string, uuid, nullable
          - `image` KhaasFoodProductsDTOsImageDto
            - `url` string, nullable
            - `alt` string, nullable
            - `title` string, nullable
            - `caption` string, nullable
            - `description` string, nullable
          - `name` string, nullable
          - `isPrimary` boolean
          - `displayOrder` integer
        - `packageProductInfos` KhaasFoodProductsDTOsPackageProductInfosPackageProductInfoDto[], nullable
          - `id` string, uuid
          - `packageProductId` string, uuid
          - `productDetailId` string, uuid
          - `quantity` number, double
          - `mrp` number, double
        - `productMappings` KhaasFoodProductsDTOsProductDetailsProductMappingDto[], nullable
          - `id` string, uuid
          - `creationTime` string, date-time
          - `creatorId` string, uuid, nullable
          - `lastModificationTime` string, date-time, nullable
          - `lastModifierId` string, uuid, nullable
          - `isDeleted` boolean
          - `deleterId` string, uuid, nullable
          - `deletionTime` string, date-time, nullable
          - `originalProductId` string, uuid
          - `mappedProductId` string, uuid
          - `mappedProductQuantity` number, double
          - `contributionPercentage` number, double
        - `seoTitle` string, nullable
        - `focusKeyphrase` string, nullable
        - `metaDescription` string, nullable
      - `purchaseId` string, uuid
      - `purchase` KhaasFoodPurchasesDtosPurchaseDto (recursive)
      - `quantity` number, double
      - `costPricePerUnit` number, double
      - `costTotal` number, double
      - `paid` number, double
      - `payable` number, double
      - `remarks` string, nullable
      - `warehouseId` string, uuid, nullable
      - `warehouse` KhaasFoodWarehousesDtosWarehousesWarehouseDto
        - `name` string, nullable
        - `streetAddress` string, nullable
        - `area` string, nullable
        - `district` string, nullable
        - `isMain` boolean
        - `isActive` boolean
        - `warehouseType` 0 | 1 | 2 | 3 | 4 | 5 | 6
        - `syncOnAccounting` boolean
        - `id` string, uuid
        - `isUseInOnlineSale` boolean
        - `isUseInPosSale` boolean
        - `isUseInEComSale` boolean
        - `isUseInDealerSale` boolean
      - `quantityRemaining` number, double
      - `costTotalRemaining` number, double
      - `receivingQuantity` number, double
    - `transactions` KhaasFoodTransactionsDtosTransactionDto[], nullable
      - `id` string, uuid
      - `creationTime` string, date-time
      - `creatorId` string, uuid, nullable
      - `lastModificationTime` string, date-time, nullable
      - `lastModifierId` string, uuid, nullable
      - `transactionFlowType` 1 | 2
      - `transactionFlowTypeString` string, nullable
      - `transactionMedium` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
      - `transactionMediumString` string, nullable
      - `paymentGatewayService` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16
      - `paymentGatewayServiceString` string, nullable
      - `transactionFor` 0 | 1 | 2 | 3 | 4 | 5 | 6
      - `transactionForString` string, nullable
      - `transactionWith` 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7
      - `transactionWithString` string, nullable
      - `parentId` string, uuid, nullable
      - `parentName` string, nullable
      - `orderNumber` string, nullable
      - `orderId` string, uuid, nullable
      - `amount` number, double
      - `transactionNumber` string, nullable
      - `remarks` string, nullable
      - `contactPersonName` string, nullable
      - `contactPersonPhone` string, nullable
      - `transactionDate` string, date-time, nullable
      - `accountHeadName` string, nullable
      - `accountHeadId` string, uuid, nullable
      - `walletId` string, uuid, nullable
      - `wallet` KhaasFoodWalletsDtosWalletDto
        - `id` string, uuid
        - `creationTime` string, date-time
        - `creatorId` string, uuid, nullable
        - `lastModificationTime` string, date-time, nullable
        - `lastModifierId` string, uuid, nullable
        - `title` string, nullable
        - `accountNumber` string, nullable
        - `bankName` string, nullable
        - `cardNumber` string, nullable
        - `mobileNumber` string, nullable
        - `balance` number, double
        - `startingBalance` number, double
        - `warehouseId` string, uuid, nullable
        - `walletType` 1 | 2 | 3
        - `walletTypeCode` 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9
        - `isActive` boolean
      - `warehouseId` string, uuid, nullable
      - `warehouse` KhaasFoodWarehousesDtosWarehousesWarehouseDto
        - `name` string, nullable
        - `streetAddress` string, nullable
        - `area` string, nullable
        - `district` string, nullable
        - `isMain` boolean
        - `isActive` boolean
        - `warehouseType` 0 | 1 | 2 | 3 | 4 | 5 | 6
        - `syncOnAccounting` boolean
        - `id` string, uuid
        - `isUseInOnlineSale` boolean
        - `isUseInPosSale` boolean
        - `isUseInEComSale` boolean
        - `isUseInDealerSale` boolean
      - `state` 0 | 1 | 2
      - `isPayAdjustment` boolean
      - `refTransactionId` string, uuid, nullable
      - `transactionType` 1 | 2
      - `title` string, nullable
      - `accountInfoTitle` string, nullable
      - `paymentGatewayServiceName` string, nullable
      - `createdBy` string, nullable
      - `modifiedBy` string, nullable
    - `accountHeadId` string, nullable
    - `fgRequisitionId` string, uuid, nullable
    - `purchaseAmount` KhaasFoodPurchasesDtosPurchaseAmountDto
      - `totalAmount` number, double
      - `due` number, double
      - `qty` number, double
    - `modifiedBy` 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-09-06** `388b452fc6d7`: 3 info
  - added the optional property `items/items/purchaseDetails/items/productDetail/isExcludedFromRequisition` to the response with the `200` status (media type: text/plain)
  - added the optional property `items/items/purchaseDetails/items/productDetail/isExcludedFromRequisition` to the response with the `200` status (media type: application/json)
  - added the optional property `items/items/purchaseDetails/items/productDetail/isExcludedFromRequisition` to the response with the `200` status (media type: text/json)

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