How can I add customer multiple address through rest API in Magento2.1.? Hope currently there is no API for adding additional customer address.So, Please let me know is there any other option to add multiple shipping and billing addresses through rest API. Is there any kind of suggestion should be appreciated.
Magento – How to add customer new Address(multiple shiiping and billing addresses) through API in magento2.1.7
addressapiattributesmagento-2.1magento2
Best Answer
I created a custom module for that, here are the steps :
Create a module
app/code/CustomerAddress/AddressBook
Create regisration.php:
Create etc/di.xml:
Create module.xml :
Create etc/webapi.xml :
Create etc/zip_codes.xml :
Create etc/webapi_rest/di.xml :
Create API/AddressInterface.php
Create Model/Address.php :
So, You can add a feature in settings in you mobile app to enable customer to save multiple addresses in the database.
After that, when place an order and go to point save shipping address for the order, display all addresses for him so he can choose the preferred one through shipping Address API:
Hope that help you ...