Get Customer Data REST API from the customer id using V1/customers/:customerId endpoint in Magento 2.
V1/customers/:customerId Used to Retrieve Customer Details in Magento by Customer Id.
(Example, http://magento.docker/rest/default/V1/customers/me/10) Continue reading “Get Customer by Rest API using V1/customers/:customerId in Magento 2.”
Get Logged in Customer Details and Addresses by Rest API using V1/customers/me in Magento 2.
Fetch customer data by providing customer access tokens in the header.
V1/customers/me URL used to fetch customer basic details as well as all the addresses assigned to the customer. Continue reading “Get Customer Data by Rest API using V1/customers/me in Magento 2.”
While you work with REST API in Magento and you got the error like, The consumer isn’t authorized to access %resources.
Error Response will look like this,
"message": "The consumer isn't authorized to access %resources.",
Continue reading “Magento Error The consumer isn’t authorized to access %resources in Rest API using postman.”