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.

Is it possible to retrieve only customer's ID using REST Admin API in Orders?

Is it possible to retrieve only customer's ID using REST Admin API in Orders?

geordanacaixeta
Visitor
2 0 0

I would like to retrieve a list of order ID and its customer's ID.

 

When I try to use a URL like:

 

"https://your-development-store.myshopify.com/admin/api/2024-04/orders.json?status=any&fields=id, customer"

 

I receive so many undesired fields, like customer's email and first_name.

 

Is it possible to retrieve only customer's ID using REST Admin API in Orders?

Replies 0 (0)