Get Customer Data by Rest API using V1/customers/me 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.”

How to add new Customer Address By REST API Magento 2?

Add Update Customer Address Using REST Web API in Magento 2 with URL rest/{store_code}/V1/customers/me and PUT Action method.

API is useful when you have to import customer addresses from a third-party platform. Just call REST API and you can import the address to the Magento.

There are two ways to Add or Update Customer Addresses using REST, Continue reading “How to add new Customer Address By REST API Magento 2?”

How to generate customer access token by REST API Magento 2?

Generate customer access token in Magento using a specific username and password of the customer in the payload request.

By default, a customer token is valid for 1 hour only. To change the default value of the system,
Go to admin panel,
Click Left sidebar Stores > Settings > Configuration > Services > OAuth > Access Token Expiration. Continue reading “How to generate customer access token by REST API Magento 2?”