DiscountRules

POST /api/app/discount-rules

Request

  • Base URL
    https://api.khaasfood.com (the document declares no server; this is the origin it was published from)
  • Auth
    OAuth 2
    Authorization codehttps://api.khaasfood.com/connect/authorize
    Token URLhttps://api.khaasfood.com/connect/token

Request body

namestring required
ruleType0 | 1 | 2 | 3 | 4
ruleGroup0 | 1 | 2 | 3 | 4 | 5 | 6
maxTotalUsageCountinteger nullable
maxUsageLimitnumber double nullable
maxUsageLimitPerCustomerinteger nullable
validFromstring date-time nullable
validTostring date-time nullable
discountType0 | 1 | 2
discountnumber double
condition0 | 1 | 2 | 3 | 4 | 5
activeboolean
isPromotionalboolean
promotionalMessagestring nullable
isConditionAppliedOnlyForMobileAppboolean
noOrderFromDatestring date-time nullable
noOrderToDatestring date-time nullable
orderedFromDatestring date-time nullable
orderedToDatestring date-time nullable
requiredProductIdsstring[] nullable
excludedProductIdsstring[] nullable
eligibleCustomerTypesKhaasFoodEnumsCustomersCustomerType[] nullable
requiredBasketTotalnumber double
minOrderCountinteger nullable
maxOrderCountinteger nullable
isCustomerSpecificCouponboolean

Response

Success

idstring uuid
namestring nullable
ruleType0 | 1 | 2 | 3 | 4
ruleGroup0 | 1 | 2 | 3 | 4 | 5 | 6
maxTotalUsageCountinteger nullable
maxUsageLimitnumber double nullable
maxUsageLimitPerCustomerinteger nullable
validFromstring date-time nullable
validTostring date-time nullable
discountType0 | 1 | 2
discountnumber double
condition0 | 1 | 2 | 3 | 4 | 5
activeboolean
isPromotionalboolean
promotionalMessagestring nullable
isConditionAppliedOnlyForMobileAppboolean
noOrderFromDatestring date-time nullable
noOrderToDatestring date-time nullable
orderedFromDatestring date-time nullable
orderedToDatestring date-time nullable
requiredProductIdsstring[] nullable
excludedProductIdsstring[] nullable
eligibleCustomerTypesKhaasFoodEnumsCustomersCustomerType[] nullable
requiredBasketTotalnumber double
minOrderCountinteger nullable
maxOrderCountinteger nullable
isCustomerSpecificCouponboolean

Changes

No operation changes recorded.