PromotionsResource
Defined in: sdks/hepsiburada/src/resources/promotions.ts:31
Hepsiburada Seller Promotions (satici-promosyonu-entegrasyonu).
Service base URL: oms-external[-sit].hepsiburada.com. 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: Sandbox beekod_dev merchant doesn’t have permission for this
surface; SIT calls return 403. Endpoints typed from the developer-portal
spec; live-tested in production by integrators with the right scope.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new PromotionsResource(
transport,limiter?):PromotionsResource
Defined in: sdks/hepsiburada/src/resources/promotions.ts:34
Parameters
Section titled “Parameters”transport
Section titled “transport”HepsiburadaTransport
limiter?
Section titled “limiter?”TokenBucketRateLimiter
Returns
Section titled “Returns”PromotionsResource
Methods
Section titled “Methods”cancelDiscount()
Section titled “cancelDiscount()”cancelDiscount(
input):Promise<unknown>
Defined in: sdks/hepsiburada/src/resources/promotions.ts:162
Cancel an existing discount.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<unknown>
createPercentDiscount()
Section titled “createPercentDiscount()”createPercentDiscount(
input):Promise<unknown>
Defined in: sdks/hepsiburada/src/resources/promotions.ts:138
Create a percentage basket discount.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<unknown>
createTlDiscount()
Section titled “createTlDiscount()”createTlDiscount(
input):Promise<unknown>
Defined in: sdks/hepsiburada/src/resources/promotions.ts:126
Create a fixed-TL basket discount.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<unknown>
createXyDiscount()
Section titled “createXyDiscount()”createXyDiscount(
input):Promise<unknown>
Defined in: sdks/hepsiburada/src/resources/promotions.ts:150
Create an X-buy-Y-pay basket discount.
Parameters
Section titled “Parameters”Returns
Section titled “Returns”Promise<unknown>
getBudgets()
Section titled “getBudgets()”getBudgets():
Promise<DiscountBudgets>
Defined in: sdks/hepsiburada/src/resources/promotions.ts:70
Get the seller’s current discount budgets.
Returns
Section titled “Returns”Promise<DiscountBudgets>
getDiscount()
Section titled “getDiscount()”getDiscount(
campaignId):Promise<Discount>
Defined in: sdks/hepsiburada/src/resources/promotions.ts:110
Get a single discount by campaign id.
Parameters
Section titled “Parameters”campaignId
Section titled “campaignId”string
Returns
Section titled “Returns”Promise<Discount>
getLimits()
Section titled “getLimits()”getLimits():
Promise<DiscountLimits>
Defined in: sdks/hepsiburada/src/resources/promotions.ts:81
Get the seller’s discount limits.
Returns
Section titled “Returns”Promise<DiscountLimits>
listCategories()
Section titled “listCategories()”listCategories():
Promise<PromotionCategory[]>
Defined in: sdks/hepsiburada/src/resources/promotions.ts:44
List the seller’s product categories eligible for self-campaigns.
Returns
Section titled “Returns”Promise<PromotionCategory[]>
listDiscounts()
Section titled “listDiscounts()”listDiscounts():
Promise<Discount[]>
Defined in: sdks/hepsiburada/src/resources/promotions.ts:92
List the seller’s existing discounts.
Returns
Section titled “Returns”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.