Requires write_orders
access scope or write_marketplace_orders
access scope. Also: The app must have the write_pos_staff_member_event_attribution_overrides
access scope to assign events to another staff member.
Updates the attributes of an order, such as the customer's email, the shipping address for the order, tags, and metafields associated with the order.
If you need to make significant updates to an order, such as adding or removing line items, changing quantities, or modifying discounts, then use the orderEditBegin
mutation instead. The orderEditBegin
mutation initiates an order editing session, allowing you to make multiple changes before finalizing them. Learn more about using the orderEditBegin
mutation to edit existing orders.
If you need to remove a customer from an order, then use the orderCustomerRemove
mutation instead.
Learn how to build apps that integrate with order management and fulfillment processes.
The attributes of the updated order.
The list of errors that occurred from executing the mutation.
mutation OrderUpdate($input: OrderInput!) { orderUpdate(input: $input) { order { id note shippingAddress { address1 city province zip country } } userErrors { field message } } }
curl -X POST \ https://your-development-store.myshopify.com/admin/api/2025-07/graphql.json \ -H 'Content-Type: application/json' \ -H 'X-Shopify-Access-Token: {access_token}' \ -d '{ "query": "mutation OrderUpdate($input: OrderInput!) { orderUpdate(input: $input) { order { id note shippingAddress { address1 city province zip country } } userErrors { field message } } }", "variables": { "input": { "id": "gid://shopify/Order/148977776", "shippingAddress": { "address1": "190 MacLaren", "city": "Sudbury", "province": "Ontario", "zip": "K2P0V6", "country": "Canada" }, "note": "Please gift wrap the snowboard." } } }'
const { admin } = await authenticate.admin(request); const response = await admin.graphql( `#graphql mutation OrderUpdate($input: OrderInput!) { orderUpdate(input: $input) { order { id note shippingAddress { address1 city province zip country } } userErrors { field message } } }`, { variables: { "input": { "id": "gid://shopify/Order/148977776", "shippingAddress": { "address1": "190 MacLaren", "city": "Sudbury", "province": "Ontario", "zip": "K2P0V6", "country": "Canada" }, "note": "Please gift wrap the snowboard." } }, }, ); const data = await response.json();
const client = new shopify.clients.Graphql({session}); const data = await client.query({ data: { "query": `mutation OrderUpdate($input: OrderInput!) { orderUpdate(input: $input) { order { id note shippingAddress { address1 city province zip country } } userErrors { field message } } }`, "variables": { "input": { "id": "gid://shopify/Order/148977776", "shippingAddress": { "address1": "190 MacLaren", "city": "Sudbury", "province": "Ontario", "zip": "K2P0V6", "country": "Canada" }, "note": "Please gift wrap the snowboard." } }, }, });
session = ShopifyAPI::Auth::Session.new( shop: "your-development-store.myshopify.com", access_token: access_token ) client = ShopifyAPI::Clients::Graphql::Admin.new( session: session ) query = <<~QUERY mutation OrderUpdate($input: OrderInput!) { orderUpdate(input: $input) { order { id note shippingAddress { address1 city province zip country } } userErrors { field message } } } QUERY variables = { "input": { "id": "gid://shopify/Order/148977776", "shippingAddress": { "address1": "190 MacLaren", "city": "Sudbury", "province": "Ontario", "zip": "K2P0V6", "country": "Canada" }, "note": "Please gift wrap the snowboard." } } response = client.query(query: query, variables: variables)
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4