redeemPromocode

fun redeemPromocode(    callback: RedeemPromocodeCallback,     promocode: String,     selectedUnitItems: Pair<String, String>? = null,     cartId: String = "current")

Redeems a promo code. After activating the promo code, the user gets free items and/or the price of the cart is reduced.

See also

Parameters

promocode

Unique case sensitive code. Contains letters and numbers.

cartId

Cart ID. Default value is current.

selectedUnitItems

The reward that is selected by a user. Object key is an SKU of a unit, and value is an SKU of one of the items in a unit.

callback

Status callback.

Sources

Link copied to clipboard