I want to add multiple customer billing address and fetch all customer billing address programmatically.
Please help me in this.
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.
Sign up to join this communityYou can only set 1 default billing address within magento but you can add additional addresses to get the customers address's you can do this by using Magento\Customer\Api\Data\CustomerInterfaceFactory and with implimenting the below code
$customer = $this->_customerRepository->getById($customerId);
$addresses = $customer->getAddresses(); // Returns Array