API version: unstable
API version: 2021-01 Release candidate
API version: 2020-10 Latest
API version: 2020-07
API version: 2020-04
API version: 2020-01
API version: 2019-10 Unsupported
API version: 2019-07 Unsupported

orderUpdate mutation

Version unstable

Updates an order.

Required access

write_orders access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( OrderInput! ) required

The input for the mutation.

OrderInput fields

customAttributes ([AttributeInput!])

Custom information to add to the order, represented as a key value pair. Also referred to as note attributes.

email (String)

The email address associated with the order.

id (ID!) Required

The ID of the order to update.

localizationExtensions ([LocalizationExtensionInput!])

The localization extensions attached to the order. For example, Tax IDs.

metafields ([MetafieldInput!])

The metafields to associate with this order.

note (String)

The order note.

privateMetafields ([PrivateMetafieldInput!])

The private metafields attached to the order.

shippingAddress (MailingAddressInput)

The shipping address associated with the order.

tags ([String!])

A comma separated list of tags that have been added to the order.

Return fields

order (Order)

The updated order.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2021-01 (Release candidate)

Updates an order.

Required access

write_orders access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( OrderInput! ) required

The input for the mutation.

OrderInput fields

customAttributes ([AttributeInput!])

Custom information to add to the order, represented as a key value pair. Also referred to as note attributes.

email (String)

The email address associated with the order.

id (ID!) Required

The ID of the order to update.

metafields ([MetafieldInput!])

The metafields to associate with this order.

note (String)

The order note.

shippingAddress (MailingAddressInput)

The shipping address associated with the order.

tags ([String!])

A comma separated list of tags that have been added to the order.

Return fields

order (Order)

The updated order.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2020-10 (Latest)

Updates an order.

Required access

write_orders access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( OrderInput! ) required

The input for the mutation.

OrderInput fields

customAttributes ([AttributeInput!])

Custom information to add to the order, represented as a key value pair. Also referred to as note attributes.

email (String)

The email address associated with the order.

id (ID!) Required

The ID of the order to update.

metafields ([MetafieldInput!])

The metafields to associate with this order.

note (String)

The order note.

shippingAddress (MailingAddressInput)

The shipping address associated with the order.

tags ([String!])

A comma separated list of tags that have been added to the order.

Return fields

order (Order)

The updated order.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2020-07

Updates an order.

Required access

write_orders access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( OrderInput! ) required

The input for the mutation.

OrderInput fields

customAttributes ([AttributeInput!])

Custom information to add to the order, represented as a key value pair. Also referred to as note attributes.

email (String)

The email address associated with the order.

id (ID!) Required

The ID of the order to update.

metafields ([MetafieldInput!])

The metafields to associate with this order.

note (String)

The order note.

shippingAddress (MailingAddressInput)

The shipping address associated with the order.

tags ([String!])

A comma separated list of tags that have been added to the order.

Return fields

order (Order)

The updated order.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2020-04

Updates an order.

Required access

write_orders access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( OrderInput! ) required

The input for the mutation.

OrderInput fields

customAttributes ([AttributeInput!])

Custom information to add to the order, represented as a key value pair. Also referred to as note attributes.

email (String)

The email address associated with the order.

id (ID!) Required

The ID of the order to update.

metafields ([MetafieldInput!])

The metafields to associate with this order.

note (String)

The order note.

shippingAddress (MailingAddressInput)

The shipping address associated with the order.

tags ([String!])

A comma separated list of tags that have been added to the order.

Return fields

order (Order)

The updated order.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2020-01

Updates an order.

Required access

write_orders access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( OrderInput! ) required

The input for the mutation.

OrderInput fields

customAttributes ([AttributeInput!])

Custom information to add to the order, represented as a key value pair. Also referred to as note attributes.

email (String)

The email address associated with the order.

id (ID!) Required

The ID of the order to update.

metafields ([MetafieldInput!])

The metafields to associate with this order.

note (String)

The order note.

shippingAddress (MailingAddressInput)

The shipping address associated with the order.

tags ([String!])

A comma separated list of tags that have been added to the order.

Return fields

order (Order)

The updated order.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-10 (Unsupported)

Updates an order.

Required access

write_orders access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( OrderInput! ) required

The input for the mutation.

OrderInput fields

customAttributes ([AttributeInput!])

Custom information to add to the order, represented as a key value pair. Also referred to as note attributes.

email (String)

The email address associated with the order.

id (ID!) Required

The ID of the order to update.

metafields ([MetafieldInput!])

The metafields to associate with this order.

note (String)

The order note.

shippingAddress (MailingAddressInput)

The shipping address associated with the order.

tags ([String!])

A comma separated list of tags that have been added to the order.

Return fields

order (Order)

The updated order.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-07 (Unsupported)

Updates an order.

Required access

write_orders access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( OrderInput! ) required

The input for the mutation.

OrderInput fields

customAttributes ([AttributeInput!])

Custom information to add to the order, represented as a key value pair. Also referred to as note attributes.

email (String)

The email address associated with the order.

id (ID!) Required

The ID of the order to update.

metafields ([MetafieldInput!])

The metafields to associate with this order.

note (String)

The order note.

shippingAddress (MailingAddressInput)

The shipping address associated with the order.

tags ([String!])

A comma separated list of tags that have been added to the order.

Return fields

order (Order)

The updated order.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.

Version 2019-04 (Unsupported)

Updates an order.

Required access

write_orders access scope.

Interactive example

This is an example mutation query. Use the embedded interactive tool below to edit the query.

Hint: use Ctrl + Space for autocompleting fields.


Arguments

input ( OrderInput! ) required

The input for the mutation.

OrderInput fields

customAttributes ([AttributeInput!])

Custom information to add to the order, represented as a key value pair. Also referred to as note attributes.

email (String)

The email address associated with the order.

id (ID!) Required

The ID of the order to update.

metafields ([MetafieldInput!])

The metafields to associate with this order.

note (String)

The order note.

shippingAddress (MailingAddressInput)

The shipping address associated with the order.

tags ([String!])

A comma separated list of tags that have been added to the order.

Return fields

order (Order)

The updated order.

userErrors ([UserError!]!)

List of errors that occurred executing the mutation.