Skip to main content
Anchor to OrderEditCommitPayload

OrderEditCommitPayload

payload

Return type for orderEditCommit mutation.

•Order

The order with changes applied.

•[String!]

Messages to display to the user after the staged changes are commmitted.

•[UserError!]!
non-null

The list of errors that occurred from executing the mutation.


Was this section helpful?

Anchor to Mutations with this payloadMutations with this payload

•mutation

Applies staged changes from an order editing session to the original order. This finalizes all modifications made during the edit session, including changes to line items, quantities, discounts, and shipping lines.

Order editing follows a three-step workflow: start with orderEditBegin to create an editing session, apply changes using various orderEdit mutations, and then save the changes with the orderEditCommit mutation. The mutation can optionally notify the customer of changes and add staff notes for internal tracking.

You can only edit unfulfilled line items. If an edit changes the total order value, then the customer might need to pay a balance or receive a refund.

Learn more about editing existing orders.

Arguments

•ID!
required

The ID of the calculated order or the order edit session that will have its changes applied to the order.

•Boolean

Whether to notify the customer or not.

•String

Note for staff members.



Was this section helpful?