Get successful orders of a specific user by email address in Flutter

Solved

Get successful orders of a specific user by email address in Flutter

bdevay
Tourist
4 1 0

Hi All,

 

I have an Android (Flutter) application. Shopify is not yet integrated, and I'm looking for the proper solution. The user must login into my application before access the store, so I have a valid email address belongs to the user. I want to retrieve the completed and successful transactions/orders belong to this specific user through API. I don't want to use the API for initiating the purchase, I just want to access the transactions of the specific user. Is it possible somehow?

Accepted Solution (1)

bdevay
Tourist
4 1 0

This is an accepted solution.

Let me answer my own question because after spending some time, I was able to figure out the solution which is actually a basic API call.

 

Here is the relevant part of the documentation:

https://shopify.dev/api/admin-rest/2022-10/resources/order#get-orders?status=any

 

This is the solution:

curl -X GET "https://your-development-store.myshopify.com/admin/api/2022-10/orders.json?email=<email address>&status=<any|open|closed>" \

-H "X-Shopify-Access-Token: {access_token}"

View solution in original post

Reply 1 (1)

bdevay
Tourist
4 1 0

This is an accepted solution.

Let me answer my own question because after spending some time, I was able to figure out the solution which is actually a basic API call.

 

Here is the relevant part of the documentation:

https://shopify.dev/api/admin-rest/2022-10/resources/order#get-orders?status=any

 

This is the solution:

curl -X GET "https://your-development-store.myshopify.com/admin/api/2022-10/orders.json?email=<email address>&status=<any|open|closed>" \

-H "X-Shopify-Access-Token: {access_token}"