Skip to main content
Log inSign up
Anchor to DiscountShippingDestinationSelection

DiscountShippingDestinationSelection

union

Requires Apps must have read_discounts access scope.

The type used to target the eligible countries of an order's shipping destination for which the discount applies. For example, the discount might be applicable when shipping to all countries, or only to a set of countries.

OBJECT

The shipping destinations where the discount can be applied.

countries
non-null

The codes for the countries where the discount can be applied.

includeRestOfWorld
non-null

Whether the discount is applicable to countries that haven't been defined in the shop's shipping zones.

OBJECT

The DiscountCountryAll object lets you target all countries as shipping destination for discount eligibility.

allCountries
non-null

Whether the discount can be applied to all countries as shipping destination. This value is always true.


Was this section helpful?

Anchor to Fields with this unionFields with this union

OBJECT

The countries that qualify for the discount. You can define a list of countries or specify all countries to be eligible for the discount.

OBJECT

The countries that qualify for the discount. You can define a list of countries or specify all countries to be eligible for the discount.


Was this section helpful?