/api/v1.0/{appId}/campaigns/loyalty/{campaignId}Ask AIpost https://api.flipdish.co/api/v1.0/{appId}/campaigns/loyalty/{campaignId}Path ParamsappIdstringrequiredcampaignIdint32requiredBody ParamsOrdersBeforeReceivingVoucherint32Number of orders customer needs to make, before receiving voucherPercentDiscountAmountint32 | null1 to 100Discount amount in percentsMaxDiscountdouble | null≥ 0Maximum discount for percentage discountsRoundingStrategyint32 | null0 to 2Controls how the loyalty voucher's amount is roundedShouldIncludeOrdersWithLoyaltyVoucherboolean | nullControls whether we should include orders with loyalty vouchers in the campaign calculationtruefalseVoucherValidPeriodDaysint321 to 300Number of days for which the voucher will be valid.IncludeDeliveryFeebooleanDiscount will include delivery feetruefalseAutoApplyResultingVouchersbooleanAutomatically apply resulting voucherstruefalseIncludeExistingOrdersbooleanCampaign will apply to existing orderstruefalseIsEnabledbooleanIs campaign enabledtruefalseStoreIdsarray of int32sIds of stores this campaign applies toStoreIdsADD int32AppIdstringThe app that this campaign belongs to.ForceDiscountbooleanControls whether the voucher generated from this campaign will override discount exclusionstruefalseHeadersacceptstringenumDefaults to application/jsonGenerated from available response content typesDataErrorCodeMessageStackTraceapplication/jsonapplication/xmltext/jsontext/xmlShow 8 enum valuesResponses 200OK 400BadRequest 401Unauthorized 403Successful authentication, but authorization has been denied for this request. 404NotFoundUpdated 11 months ago