To continue receiving payouts, you need to secure your account by turning on two-step authentication. If two-step authentication is not turned on your payouts will be paused. Learn more

Order payload differences between graphql and rest

New Member
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)