Have your say in Community Polls: What was/is your greatest motivation to start your own business?

Staff note missing when submitting order cancellation via GraphQL Admin API

Staff note missing when submitting order cancellation via GraphQL Admin API

jvillanueva1
Shopify Partner
3 0 0

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. 

Screenshot 2024-11-08 at 12.20.08 PM.png

 

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. 

 

Screenshot 2024-11-08 at 12.24.33 PM.png

Reply 1 (1)

jvillanueva1
Shopify Partner
3 0 0

Any help?