DiscountShippingDestinationSelection
Requires Apps must have 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.
Anchor to Possible typesPossible types
- •OBJECT
The shipping destinations where the discount can be applied.
- countries•[Countrynon-null
Code!]! The codes for the countries where the discount can be applied.
- include
Rest •Of World Boolean!non-null Whether the discount is applicable to countries that haven't been defined in the shop's shipping zones.
- countries•
- •OBJECT
The
object lets you target all countries as shipping destination for discount eligibility.
- all
Countries •Boolean!non-null Whether the discount can be applied to all countries as shipping destination. This value is always
true
.
- all
Anchor to Fields with this unionFields with this union
- Anchor to DiscountAutomaticFreeShipping.destinationSelectionDiscount•
Automatic Free Shipping.destination Selection 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.
- Anchor to DiscountCodeFreeShipping.destinationSelectionDiscount•
Code Free Shipping.destination Selection 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.