Hello, I'm trying to integrate Magento into an IOS app through the use of the Magento REST Web API. Currently in my program, the user logs in then a customer session token is stored in the application (/rest/V1/integration/customer/token). What I've been trying to figure out is how one would then obtain all Platform Orders/Orders for this specific customer. Reading through the documentation has led me to believe that the only way that this would be possible is to create a custom endpoint. Is there any other way that achieving this would be possible without having to create a custom endpoint or is this the only option. Thanks for the help!
By default, You have to use SearchCriteria interface for Get Customer Specific Order Data in magento 2.
In above query replace customer_email with your customer email and email@example.com with your email id.
Already one user have asked question like you,
But you can check other sales and customer API in Magento swagger,
Yes , you can get specific customer orders using rest api !! you need to pass that in searchcriteria api !
Magento 2 have one mechanism to get filtered data using SearchCriteria property in REST API.
Below is the end point - if you wanted to get specific customer order data.
Where you need to pass - your customer 's email id instead of firstname.lastname@example.org
same way like others api you are calling - you need to pass its access token for the same.
Hope it helps to you !!