---
schema_version: "1"
id: fbec14144a92be06a873fd4b0aaeb29a04fa1e07b0dce30b7def0751f5241062
title: Two New Promotion APIs
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/commerce/264-0-0/b2c_20_3_w7081970_new_promo_apis_lb.md
canonical_url: https://help.salesforce.com/s/articleView?id=commerce.b2c_20_3_w7081970_new_promo_apis_lb.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 67b96256a77c3aeed0ce07dfd40b0a424eb166046d6b22f31630bd15c7945b63
description: Two new promotion APIs expose the promotion tier index at order and product level in dw.campaign.Discount script API
products:
  - Commerce
  - B2C Commerce
release: "264"
---
# Two New Promotion APIs

Two new promotion APIs expose the promotion tier index at order and product level in dw.campaign.Discount script API

How:

/\*\*

\* Returns the tier index for promotion at order level or bonus product.

\* Promotion tiers are always evaluated in the order of the highest threshold (such as quantity, or amount)

\* to the lowest threshold. The tier that is evaluated first (that is, the highest quantity or amount) is indexed as 0,

\* the next tier 1, and so on. The lowest tier has index n - 1, where n is the total number of tiers.

\* @return Tier index or <code>null</code>

\*/

public Integer getPromotionTier();

/\*\*

\* Returns the tier index by quantity Id of Product promotion. ProductLineItems can have more than one quantity, but

\* not all items of that SKU have received the same tier of promotion. Each quantity of the ProductLineItem is

\* indexed from 1 to n, where n is the quantity of the ProductLineItem, and this method returns a mapping from that

\* quantity index to the index of tier of the promotion that item received. For more information about tier indexes,

\* see {@link #getPromotionTier()} method.

\*

\* @see #getPromotionTier()

\* @return Map of Tier index by quantity Id or <code>empty map</code>

\*/

public dw.util.Map getItemPromotionTiers()