Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Order payload differences between graphql and rest

Order payload differences between graphql and rest

yosmos
Visitor
3 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)