API version: unstable
API version: 2021-01 Release candidate
API version: 2020-10 Latest
API version: 2020-07
API version: 2020-04
API version: 2020-01
API version: 2019-10 Unsupported
API version: 2019-07 Unsupported

SellingPlanAnchorInput input object

Version unstable

Specifies the input fields required to create or update a selling plan anchor.

Input fields

day (Int)

The day of the anchor.

When type is WEEKDAY, the value must be between 1-7. Shopify interprets the days of the week according to ISO 8601, where 1 is Monday.

If type is not WEEKDAY, then the value must be between 1-31.

month (Int)

The month of the anchor. If type is different than YEARDAY, this field must be null, otherwise it must be between 1-12.

type (SellingPlanAnchorType)

Represents the anchor type, must be one of WEEKDAY, MONTHDAY, YEARDAY.

Version 2021-01 (Release candidate)

Specifies the input fields required to create or update a selling plan anchor.

Input fields

day (Int)

The day of the anchor.

When type is WEEKDAY, the value must be between 1-7. Shopify interprets the days of the week according to ISO 8601, where 1 is Monday.

If type is not WEEKDAY, then the value must be between 1-31.

month (Int)

The month of the anchor. If type is different than YEARDAY, this field must be null, otherwise it must be between 1-12.

type (SellingPlanAnchorType)

Represents the anchor type, must be one of WEEKDAY, MONTHDAY, YEARDAY.