Skip to main content
Anchor to FulfillmentConstraintRule

FulfillmentConstraintRule

object

Requires read_fulfillment_constraint_rules access scope.

A fulfillment constraint rule.

•[DeliveryMethodType!]!
non-null

Delivery method types that the function is associated with.

•ShopifyFunction!
non-null

The ID for the fulfillment constraint function.

•ID!
non-null

A globally-unique ID.

•Metafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

Arguments

•String

The container the metafield belongs to. If omitted, the app-reserved namespace will be used.

•String!
required

The key for the metafield.


•MetafieldConnection!
non-null

A list of custom fields that a merchant associates with a Shopify resource.

Arguments

•String

The metafield namespace to filter by. If omitted, all metafields are returned.

•[String!]

List of keys of metafields in the format namespace.key, will be returned in the same format.

•Int

The first n elements from the paginated list.

•String

The elements that come after the specified cursor.

•Int

The last n elements from the paginated list.

•String

The elements that come before the specified cursor.

•Boolean
Default:false

Reverse the order of the underlying list.



Was this section helpful?

•query

The fulfillment constraint rules that belong to a shop.


Was this section helpful?

•mutation

Creates a fulfillment constraint rule and its metafield.

Arguments

•String
Deprecated
•String

The handle of the function providing the constraint rule.

•[DeliveryMethodType!]!
required

Associate the function with one or multiple delivery method types.

•[MetafieldInput!]
Default:[]

Metafields to associate to the fulfillment constraint rule.


•mutation

Update a fulfillment constraint rule.

Arguments

•ID!
required

A globally-unique identifier for the fulfillment constraint rule.

•[DeliveryMethodType!]!
required

Specifies the delivery method types to be updated. If not provided or providing an empty list will associate the function with all delivery methods.



Was this section helpful?

•interface

Was this section helpful?