Developers

Discount

Discount represents an object describing discounts.

List of available attributes

amount

Returns discount amount. Depending on discount_type, the amount is either percentage or a fixed net discount.

applies_to

Returns to what discount applies to. Values can be "products", "cart", "shipping" or "cart_and_shipping".

code

Returns discount redemption code.

currency

Returns discount currency.

discount_type

Returns discount type. Values can be "percentage" or "fixed".