Anchor to orderEditCommitorder
orderEditCommit
mutation
Requires access scope.
Applies and saves staged changes to an order. Mutations are operating on .
All order edits start with
, have any number of
* mutations made, and end with
.
Anchor to Arguments
Arguments
- •ID!required
The ID of the calculated order that will have its changes applied to the order.
- Anchor to notifyCustomernotify•
Customer Whether to notify the customer or not.
- Anchor to staffNotestaff•
Note Note for staff members.
Was this section helpful?
Anchor to OrderEditCommitPayload returnsOrderEditCommitPayload returns
- Anchor to orderorder•
The order with changes applied.
- Anchor to userErrorsuser•
Errors [UserError!]! non-null The list of errors that occurred from executing the mutation.
Was this section helpful?
Mutation Reference
1mutation orderEditCommit($id: ID!, $notifyCustomer: Boolean, $staffNote: String) {2 orderEditCommit(id: $id, notifyCustomer: $notifyCustomer, staffNote: $staffNote) {3 order {4 # Order fields5 }6 userErrors {7 field8 message9 }10 }11}
Input
1{2 "id": "gid://shopify/<objectName>/10079785100",3 "notifyCustomer": true,4 "staffNote": "<your-staffNote>"5}
{
"id": "gid://shopify/<objectName>/10079785100",
"notifyCustomer": true,
"staffNote": "<your-staffNote>"
}