Order payload differences between graphql and rest

yosmos
New Member
1 0 0

With "read_orders" scope, I can get orders via "rest api". It has "customers" field in it. Customer id and etc. in there.

This is the rest api url -> /admin/api/2021-10/orders.json

 

With "read_orders" scope, I can get orders via "graphql api". In order to get the customer field, I describe "customer" node in graphql request. But in the response I get something like this,

"requiredAccessScope": "`read_customers` access scope."
 
So in the rest api I can get the customer without any 'read_customers' scope. But in graphql, it is highly different. How can I get the customer without 'read_customers' scope in graphql?

 

 

Replies 0 (0)