Skip to main content

updateFulfillmentRule

Updates an existing fulfillment rule.

Business Rules

  • The fulfillment rule must exist within the current company.
  • The name, if provided, must be unique within the company.

Error Scenarios

  • **NOT_FOUND**: when the company or the fulfillment rule does not exist.
  • **BAD_REQUEST**: when the name is missing, too long, or already in use.

Permissions Required

  • orders:update_fulfillment_profile permission
updateFulfillmentRule(
input: UpdateFulfillmentRuleInput!
): FulfillmentRule

Arguments

updateFulfillmentRule.input ● UpdateFulfillmentRuleInput! non-null input common

Parameters for UpdateFulfillmentRule

Type

FulfillmentRule object orders

Fulfillment Rule

A reusable set of rules that defines how a fulfillment is processed. A fulfillment rule is owned by a company and is assigned to fulfillments to govern how they progress through the fulfillment state machine.