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)