/api/v1.0/vouchers/{appId}Ask AIpost https://api.flipdish.co/api/v1.0/vouchers/{appId}Path ParamsappIdstringrequiredBody ParamsVoucherTypestringenumVoucher TypePercentageDiscountLumpDiscountAddItemCreditNoteFreeDeliveryAllowed:PercentageDiscountLumpDiscountAddItemCreditNoteFreeDeliveryPromotionobjectCreate PromotionPromotion objectCreditNoteDetailsobjectCredit note detailsCreditNoteDetails objectLumpDiscountDetailsobjectLump discount detailsLumpDiscountDetails objectPercentDiscountDetailsobjectPercent discount detailsPercentDiscountDetails objectCodestringVoucher CodeDescriptionstringVoucher Description (Visible on printout)Storesarray of int32sStores that this voucher applies toStoresADD int32ValidOnOrdersOverdoubleValid on orders on or aboveTakesPrioritybooleanTakes prioritytruefalseIsEnabledbooleanIs voucher enabledtruefalseIsAutomaticallyAppliedbooleanIs voucher automatically appliedtruefalseIncludeDeliveryFeebooleanInclude delivery feestruefalseIsValidForDeliveryOrdersbooleanValid for delivery orderstruefalseIsValidForPickupOrdersbooleanValid for pickup orderstruefalseIsValidForOrdersPayedOnlinebooleanValid for orders payed onlinetruefalseIsValidForOrdersPayedByCashbooleanValid for orders payed in cashtruefalseIsValidForFirstOrderOnlybooleanValid only on the first order by the customertruefalseIsValidOncePerCustomerbooleanValid once per customertruefalseIsValidOnlyOncebooleanValid only once, by any customer (once used cannot be used again by any other customer)truefalseIsDiscoverablebooleanEnables the voucher to be offered in the Voucher Discoverability featuretruefalseForceDiscountbooleanForce the discount to be applied which bypasses some menu restrictionstruefalseStartDatedate-timeVoucher Starts On (Time in UTC)ExpiryDatedate-timeVoucher Expires On (Time in UTC)ChannelRestrictionsarray of stringsLimit the channels this voucher can be used onChannelRestrictionsADD stringValidityPeriodsarray of objectsPeriods in which the voucher is valid. An empty list means the voucher is valid at all times. When updating the voucher, if this is set to null, the validity periods won't be updated.ValidityPeriodsADD objectVoucherSubTypestringenumVoucher SubtypeNoneSignUpLoyaltyLoyalty25RetentionSecondaryRetentionCustomAllowed:NoneSignUpLoyaltyLoyalty25RetentionSecondaryRetentionCustomCustomerIdint32 | nullCustomer UserIDMaxRedemptionsint32 | nullMaximum number of times the voucher can be redeemed (used)HeadersacceptstringenumDefaults 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