Skip to content

PromotionsResource

Defined in: sdks/hepsiburada/src/resources/promotions.ts:36

Hepsiburada Seller Promotions (satici-promosyonu-entegrasyonu).

Service base URL: diskonto-external[-sit].hepsiburada.com (per the portal spec — routing through oms-external returns 401 because the routes don’t exist there; verified on SIT 2026-08-30, where listCategories answers 200). 9-endpoint self-service basket-discount lifecycle:

  • list seller’s eligible product categories
  • query budgets / limits
  • list discounts / get single discount
  • create three discount types (TL, %, X-buy-Y-pay)
  • cancel a discount

NOTE: On SIT the /self-campaign/* read endpoints answer a server-side 500 ("Beklenmedik bir hata oluştu.") for the sandbox merchant regardless of parameters (verified 2026-08-30) — likely no self-campaign enrollment. listCategories works (200).

new PromotionsResource(transport, limiter?): PromotionsResource

Defined in: sdks/hepsiburada/src/resources/promotions.ts:39

HepsiburadaTransport

TokenBucketRateLimiter

PromotionsResource

cancelDiscount(input): Promise<MutationResult>

Defined in: sdks/hepsiburada/src/resources/promotions.ts:174

Cancel an existing discount. The API only answers { success }, so this resolves to a MutationResult — the body is on raw.

CancelDiscountInput

Promise<MutationResult>


createPercentDiscount(input): Promise<DiscountReceipt>

Defined in: sdks/hepsiburada/src/resources/promotions.ts:145

Create a percentage basket discount. Resolves to a DiscountReceipt (campaignId of the new campaign).

CreatePercentDiscountInput

Promise<DiscountReceipt>


createTlDiscount(input): Promise<DiscountReceipt>

Defined in: sdks/hepsiburada/src/resources/promotions.ts:132

Create a fixed-TL basket discount. Resolves to a DiscountReceipt (campaignId of the new campaign).

CreateTlDiscountInput

Promise<DiscountReceipt>


createXyDiscount(input): Promise<DiscountReceipt>

Defined in: sdks/hepsiburada/src/resources/promotions.ts:158

Create an X-buy-Y-pay basket discount. Resolves to a DiscountReceipt (campaignId of the new campaign).

CreateXyDiscountInput

Promise<DiscountReceipt>


getBudgets(): Promise<DiscountBudgets>

Defined in: sdks/hepsiburada/src/resources/promotions.ts:72

Get the seller’s current discount budgets.

Promise<DiscountBudgets>


getDiscount(campaignId): Promise<Discount>

Defined in: sdks/hepsiburada/src/resources/promotions.ts:116

Get a single discount by campaign id.

string

Promise<Discount>


getLimits(): Promise<DiscountLimits>

Defined in: sdks/hepsiburada/src/resources/promotions.ts:83

Get the seller’s discount limits.

Promise<DiscountLimits>


listCategories(): Promise<PromotionCategory[]>

Defined in: sdks/hepsiburada/src/resources/promotions.ts:49

List the seller’s product categories eligible for self-campaigns.

Promise<PromotionCategory[]>


listDiscounts(params?): Promise<Discount[]>

Defined in: sdks/hepsiburada/src/resources/promotions.ts:100

List the seller’s existing discounts.

The API requires page/pagesize (both mandatory per specs/hepsiburada/diskonto-external.json); the SDK defaults them to page=1, pagesize=100.

ListDiscountsParams = {}

Promise<Discount[]>

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.