v1

latestSwagger 2.02026-08-045928532.7 MB
Campaigns

post/api/v1.0/{appId}/campaigns/retention/{campaignId}

Path parameters

appIdstring required
campaignIdinteger required

Request body

NotifyCustomerAfterMinutesinteger

Time in minutes, after which customer will receive retention voucher if he/she does not order

PercentDiscountAmountinteger nullable

Discount amount in percents

MaxDiscountnumber double nullable

Maximum discount for percentage discounts

LumpDiscountAmountnumber double nullable

Discount amount in sum of money

VoucherValidPeriodDaysinteger

Number of days for which the voucher will be valid.

IncludeDeliveryFeeboolean

Discount will include delivery fee

AutoApplyResultingVouchersboolean

Automatically apply resulting vouchers

IncludeExistingOrdersboolean

Campaign will apply to existing orders

IsEnabledboolean

Is campaign enabled

StoreIdsinteger[]

Ids of stores this campaign applies to

AppIdstring

The app that this campaign belongs to.

ForceDiscountboolean

Controls whether the voucher generated from this campaign will override discount exclusions

Response

OK

Example response

{
  "Data": {
    "PublicId": "00000000-0000-0000-0000-000000000000"
  }
}