---
title: "POST /api/app/discount-rules/verify-for-web"
method: POST
path: "/api/app/discount-rules/verify-for-web"
tags: ["DiscountRules"]
---

# POST /api/app/discount-rules/verify-for-web

`POST /api/app/discount-rules/verify-for-web`

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

## Request body

- KhaasFoodDiscountRulesDTOsVerifyDiscountRuleInputDto
  - `products` KhaasFoodDiscountRulesDTOsVerifyDiscountRuleProductDto[], nullable
    - `id` string, uuid
    - `unitPrice` number, double
    - `quantity` number, double
  - `deliveryCharge` number, double
  - `coupon` string, nullable
  - `subtotal` number, double
  - `productIds` string[], nullable
  - `customerId` string, uuid, nullable
  - `customerPhone` string, nullable
  - `isUseRedeemPoint` boolean
  - `isVerifyForMobileApp` boolean
  - `isUseReferralReward` boolean
  - `usedReferralRewardAmount` number, double

## Response `200`

Success

- KhaasFoodDiscountRulesDTOsVerifyDiscountRuleResultDto
  - `overallDiscount` number, double
  - `appliedOverallDiscountDiscountRuleIds` string[], nullable
  - `overallDiscountInfo` string, nullable
  - `deliveryCharge` number, double
  - `deliveryChargeDiscountRuleId` string, uuid, nullable
  - `deliveryChargeDiscountInfo` string, nullable
  - `isCouponApplied` boolean
  - `couponApplyingInfo` string, nullable
  - `promotionalMessage` string, nullable
  - `promotionProgressBarPercentage` number, double
  - `isRestrictRedeem` boolean
  - `customerRedeemPoint` integer
  - `redeemPointRate` number, double
  - `freeGiftProductLookups` KhaasFoodProductsDTOsMobileAppGiftProductLookupDto[], nullable
    - `id` string, uuid
    - `name` string, nullable
    - `parentName` string, nullable
    - `orderedCustomerTotal` integer
    - `salePrice` number, double
    - `regularPrice` number, double
    - `maxPurchaseQuantity` integer, nullable
    - `isSoldOut` boolean
    - `isPreOrderProduct` boolean
    - `isPreOrderAllowWithRegularProduct` boolean
    - `productCategoryId` string, uuid, nullable
    - `homeDeliveryCharge` number, double
    - `courierDeliveryCharge` number, double
    - `preOrderDeliveryDate` string, date-time, nullable
    - `estimatedDeliveryFrom` string, date-time, nullable
    - `estimatedDeliveryTo` string, date-time, nullable
    - `description` string, nullable
    - `shortDescription` string, nullable
    - `displayOrder` integer
    - `quantity` string, nullable
    - `discountPercent` number, double
    - `discountAmount` number, double
    - `isShowDiscountAmount` boolean
    - `applyDiscount` boolean
    - `isDeliveryChargeMultipliedByQuantity` boolean
    - `hasSeparateDeliveryCharge` boolean
    - `images` KhaasFoodProductsDTOsProductImageLookupDto[], nullable
      - `name` string, nullable
      - `imageUrl` string, nullable
      - `alt` string, nullable
      - `isPrimary` boolean
      - `displayOrder` integer
    - `variations` KhaasFoodProductsDTOsProductVariationLookupDto[], nullable
      - `productId` string, uuid
      - `parentName` string, nullable
      - `quantity` string, nullable
      - `salePrice` number, double
      - `regularPrice` number, double
      - `discountPercent` number, double
      - `applyDiscount` boolean
      - `isShowDiscountAmount` boolean
      - `discountAmount` number, double
      - `isDiscountOnlyForApp` boolean
      - `isSoldOut` boolean
      - `isDeliveryChargeMultipliedByQuantity` boolean
      - `hasSeparateDeliveryCharge` boolean
    - `isGiftProduct` boolean
  - `productIds` string[], nullable
  - `deliveryDateSetting` KhaasFoodSettingsDTOsDeliveryDateSettingDto
    - `deliveryPauseStartDateTime` string, date-time, nullable
    - `deliveryPauseEndDateTime` string, date-time, nullable
    - `isDeliveryDateRestricted` boolean
  - `isFirstOrder` boolean
  - `isUseReferralReward` boolean
  - `referralRewardInfo` KhaasFoodDiscountRulesDTOsReferralRewardInfo
    - `remainingReferralRewardAmount` number, double
    - `maxUsableReferralRewardAmount` number, double
    - `usedReferralRewardAmount` 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)
