cancel
Showing results for 
Search instead for 
Did you mean: 

Customer Address - REST API for save no exist.

Highlighted

Customer Address - REST API for save no exist.

I'm working on a headless project using Magento 2.1.x as our BACKEND system. Reviewing all the customer APIs when we trying to found the ADDRESS Repository endpoints we not see a save functionality for the address directly.

The only way to save a Address is when you directly call the PUT for CustomerRepository.

 

We are OK to create that endpoint for our project, I'm just curios Why this not possible OOTB REST APIs?

 

Best,

Alejandro,  

2 REPLIES 2
Highlighted

Re: Customer Address - REST API for save no exist.

Hi @Alejandro M

I noticed the same today. What did you do in the end? Did you add the endpoint yourself or did you use the save customer API to manage the addresses?
Highlighted

Re: Customer Address - REST API for save no exist.

Hi @Jalogut1 sorry for the delay,

 

We created our own endpoint in order to save the address from REST APIs. I wish can share the code but we have an agreement with the client we can't share anything.

 

I remember looking for the best solution here, another option is to send the address information when you create/edit a customer, as Address is an a Extensible OBJ, I know is not the better solution but still a possibility.

 

I hope you can find a solution regarding this.

 

Best,

Alejandro.