cancel
Showing results for 
Search instead for 
Did you mean: 

How can i get list of all the Addresses of specific user in Magento2 REST API.

SOLVED

How can i get list of all the Addresses of specific user in Magento2 REST API.

How can i get list of all the addresses in Magento2 of user using REST API

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How can i get list of all the Addresses of specific user in Magento2 REST API.

Hello @pratap_penmetsa,

 

Please below REST endpoints URL to get all address of a specific customer

 

 

Endpoint URL: http://magento.com/index.php/rest/V1/customers/{id}

Request: GET

Header: Authorization bearer {access-token}}

 

I have also tried above Rest API, You can check result here https://www.screencast.com/t/umOD9zgl

2018-09-22_12-10-09.jpg

 

Let me know if you have any trouble in it.

--
If my answer is useful, please Accept as Solution & give Kudos

 

 

 

 

View solution in original post

2 REPLIES 2

Re: How can i get list of all the Addresses of specific user in Magento2 REST API.

Hello @pratap_penmetsa,

 

Please below REST endpoints URL to get all address of a specific customer

 

 

Endpoint URL: http://magento.com/index.php/rest/V1/customers/{id}

Request: GET

Header: Authorization bearer {access-token}}

 

I have also tried above Rest API, You can check result here https://www.screencast.com/t/umOD9zgl

2018-09-22_12-10-09.jpg

 

Let me know if you have any trouble in it.

--
If my answer is useful, please Accept as Solution & give Kudos

 

 

 

 

Re: How can i get list of all the Addresses of specific user in Magento2 REST API.

ERROR

 

{
"message": "The \"z1x8i0099lvlupt43b2bwlgmvoqhn36s\" value's type is invalid. The \"int\" type was expected. Verify and try again."
}