Below is the REST API called on Checkout Page, when you have multiple address & u click on "Ship here"

magento/rest/default/V1/carts/mine/estimate-shipping-methods-by-address-id

It passes addressId variable as a POST

How to get that variable in Model?

magento\vendor\magento\module-dhl\Model\Carrier.php

protected function _buildQuotesRequestXml() {
    // Need to get addressId variable here
}

I need it because for Hong Kong it's not passing City for Saved Address.

https://github.com/magento/magento2/issues/7928

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.