Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello,
I've used admin graphQL query to cancel an order in our code:
https://shopify.dev/docs/api/admin-graphql/2024-10/mutations/orderCancel#argument-staffnote
With variables:
variables: {
orderId: `gid://shopify/Order/${orderId}`,
reason: 'CUSTOMER',
refund: true,
restock: true,
staffNote: 'Test staff note',
}
As you can see in the attached screenshot, the order was successfully cancelled but there are no notes / staffNotes appearing.
According to what I've read, we should be able to see in the notes when viewing the order in shopify admin, but can't see it there.
Any help?
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025