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.

•String!
required

The identifier of the function providing the constraint rule.

•[MetafieldInput!]
Default:[]

Metafields to associate to the fulfillment constraint rule.


Was this section helpful?

Anchor to FulfillmentConstraintRuleCreatePayload returnsFulfillmentConstraintRuleCreatePayload returns

Anchor to fulfillmentConstraintRulefulfillmentConstraintRule
•FulfillmentConstraintRule

The newly created fulfillment constraint rule.

•[FulfillmentConstraintRuleCreateUserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?