Can you use customer-accounts metafieldSet on an Order?

I’m trying to use metafieldsSet on an Order from the OrderStatus page. According to this tutorial, it seems possible. If I perform the exact same steps with a Customer metafield (create definition with READ_WRITE access, set it from the OrderStatus page with a button click), it works, but when using an Order metafield, I receive the generic “access” error:

"extensions": {
                "code": "ACCESS_DENIED",
                "documentation": "https://shopify.dev/api/usage/access-scopes",
                "requiredAccess": "access defined by each metafield input `ownerId` scalar's type in a `MetafieldsSetInput` field.\nFor example, setting a metafield on a `CUSTOMER` requires the same access as mutating a `CUSTOMER`.\n"
            }

I’ve tried debugging by confirming the metafield definition, getting and display the metafield etc.

Maybe I’m just making a simple mistake, but I wanted to confirm if anyone has successfully done this!

It requires the customer_write_orders scope (missing from the scope list) as well! Tyty JR Rafols :hugs:

2 Likes