Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

union

Requires Apps must have read_discounts access scope.

The type of discount that will be applied. Currently, only a percentage discount is supported.

OBJECT

The fixed amount value of a discount, and whether the amount is applied to each entitled item or spread evenly across the entitled items.

amount
non-null

The value of the discount.

appliesOnEachItem
non-null

If true, then the discount is applied to each of the entitled items. If false, then the amount is split across all of the entitled items.

OBJECT

A discount effect that gives customers a percentage off of specified items on their order.

percentage
non-null

The percentage value of the discount.


Was this section helpful?

Anchor to Fields with this unionFields with this union

OBJECT

The discount's effect on qualifying items.


Was this section helpful?