Skip to content

CreateXyDiscountInput

CreateXyDiscountInput = object & Record<string, unknown>

Defined in: sdks/hepsiburada/src/types/promotion.ts:67

Body for promotions.createXyDiscount() — the diskonto spec’s “Sepete X Al Y Öde İndirimi Oluşturma” request. Undocumented fields pass through.

optional conditionCategories?: string[]

Category ids the campaign applies to.

optional conditionProductCount?: number

Products required in the cart for the campaign to apply (the X in “buy X pay Y”).

optional conditionSkus?: string[]

SKUs the campaign applies to.

optional endDate?: string

Campaign end date-time (ISO 8601).

optional iterationCount?: number

How many times the campaign can repeat within one cart.

optional maxCartCount?: number

Maximum number of carts the campaign applies to.

optional mustPayProductCount?: number

Products the customer pays for (the Y in “buy X pay Y”).

optional name?: string

Campaign name shown to the seller.

optional oneTimeUsage?: boolean

Whether the campaign is one-time-use per customer.

optional startDate?: string

Campaign start date-time (ISO 8601).

Unofficial. Lonca is an independent, community-maintained project — not affiliated with, endorsed by, or supported by Trendyol, Hepsiburada, or any other marketplace. All marketplace names and trademarks belong to their respective owners.