Admin.rest ProductResourceFeedback does not return feedbacks

for my sales channel, I created product feedbacks using

mutation($feedbackInput: [ProductResourceFeedbackInput!]!) {
    bulkProductResourceFeedbackCreate(feedbackInput: $feedbackInput) {
      userErrors { field message }
      feedback {
        productId state feedbackGeneratedAt
        productUpdatedAt messages
      }
    }
  }

as a result, feedbacks are properly created

Feedbacks created [
  {
    productId: 'gid://shopify/Product/8768092274913',
    state: 'REQUIRES_ACTION',
    feedbackGeneratedAt: '2024-12-06T15:07:56Z',
    productUpdatedAt: '2024-12-06T15:07:56Z',
    messages: [
      'Product must have at least 1 image.',
      'Needs to specify the gender.',
      'Needs to specify a type.'
    ]
  }
]

And I can see the created feedbacks on the product page.

Now to get them I do

  console.log("getting feedbacks for product", productId)
  let feedbacks = await admin.rest.resources.ProductResourceFeedback.all({
    session: session,
    product_id: productId,
  });
  return feedbacks.data

with productId = 8768092274913

but the result is always empty.

The session.scope contains write_resource_feedbacks

What am I doing wrong?

Thanks in advance

In fact I can access this information using graphql via product object all good!

Great - thanks for posting that it’s working!