Get list of all previous orders of the customer using Customer token in API.
Magento 2 API – How to Get Customer Order History
magento2ordersrest api
magento2ordersrest api
Get list of all previous orders of the customer using Customer token in API.
Best Answer
Solution 1
You can make your custom API for the same;
Using
filter Builder
you can use search criteriaSolution 2
Magento is using resource
Magento_Sales::sales
because of this we can't access it using Customer's token so for the same we need to override Specific API with<resource ref="self" />
And using this we can access all orders of specific customer using customer's Token in Magento API.