I’m trying to add a meta field on a Return using Graph but I get an invalid Id error, I couldn’t find in the documentation if a Return can have a meta field or not.
Mutation:
mutation metafieldsSet($metafields: [MetafieldsSetInput!]!) {
metafieldsSet(metafields: $metafields) {
metafields {
id
key
namespace
value
type
}
userErrors {
field
message
}
}
}
Variables:
{
"metafields": [
{
"ownerId": "gid://shopify/Return/7148568894",
"namespace": "custom_notes",
"key": "customer_note",
"value": "This is a customer-provided note.",
"type": "single_line_text_field"
}
]
}
Response:
{
"errors": [
{
"message": "invalid id",
"locations": [
{
"line": 3,
"column": 3
}
],
"path": [
"metafieldsSet"
],
"extensions": {}
}
],
"data": {
"metafieldsSet": null
},
"extensions": {
"cost": {
"requestedQueryCost": 10,
"actualQueryCost": 1,
"throttleStatus": {
"maximumAvailable": 2000.0,
"currentlyAvailable": 1999,
"restoreRate": 100.0
}
}
}
}
I need to add some extra info on my Return that’s why I want to use meta field, if this is not possible will be helpful if I could add info on the returnLineItems edges nodes customerNote field on Return object.
Thank you in advance for any help.