FulfillmentOrders always works in GraphiQL App but returns empty string in API

Solved
nsd128
New Member
2 1 0

Hello,

I am making the following GraphiQL Request in the App and the via the API. In the App I get the expected results, however, in the API the result is always an empty array. 

{
  orders(first: 1) {
    edges {
      node {
        fulfillmentOrders(first: 1) {
          edges {
            node {
              id
            }
          }
        }
      }
    }
  }
}

Is this a known issue or am I doing something wrong? If it's a known issue what's the workaround?

Thank You!

0 Likes
nsd128
New Member
2 1 0

This is an accepted solution.

It was a permission issue. Once I added Merchant-managed fulfillment orders Read and Write the API calls were returning data as expected.

0 Likes