Skip to main content
Anchor to fulfillmentConstraintRuleCreate

fulfillmentConstraintRuleCreate

mutation

Requires write_fulfillment_constraint_rules access scope.

Creates a fulfillment constraint rule and its metafield.

•[DeliveryMethodType!]!
required

Associate the function with one or multiple delivery method types.

Show enum values
•String

The handle of the function providing the constraint rule.

•[MetafieldInput!]
Default:[]

Metafields to associate to the fulfillment constraint rule.

Show input fields
•String
Deprecated

Was this section helpful?

Anchor to FulfillmentConstraintRuleCreatePayload returnsFulfillmentConstraintRuleCreatePayload returns

Anchor to fulfillmentConstraintRulefulfillmentConstraintRule
•FulfillmentConstraintRule

The newly created fulfillment constraint rule.

Show fields
•[FulfillmentConstraintRuleCreateUserError!]!
non-null

The list of errors that occurred from executing the mutation.

Show fields

Was this section helpful?