Set Default shipping address id of the customer in Magento 2 using Address Repository Interface.
You required Customer Id to set shipping address and address id you want to assign it.
First, load the existing address by the getById method of the address repository interface with the set customer. Continue reading “How to set default shipping address of the customer Magento 2?”