magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.5k stars 9.3k forks source link

Add shipping address in orderInterface #12263

Closed VictorSnow closed 6 years ago

VictorSnow commented 6 years ago

Preconditions

  1. Magento 2.2.1
  2. ......

Steps to reproduce

  1. call rest api on /V1/orders/:orderId method: get

Expected result

  1. return shipping address as well as the billing address

Actual result

  1. no shippping address is returned
magento-engcom-team commented 6 years ago

@VictorSnow , We cannot reproduce this issue. Here is our result:

shipping address

VictorSnow commented 6 years ago

the interface returns billing_address as order field and shipping_address may need to be the same

            [billing_address] => Array
                (
                    [address_type] => 
                    [city] =>
                    [country_id] =>
                    [customer_id] => 
                    [email] => 
                    [entity_id] => 
                    [firstname] => 
                    [lastname] => 
                    [parent_id] =>
                    [postcode] => 
                    [region] => 
                    [region_code] => 
                    [region_id] => 
                    [street] => Array
                        (
                            [0] =>
                        )

                    [telephone] => 
                )
magento-engcom-team commented 6 years ago

@VictorSnow, thank you for your report. This seems to be correct Magento behavior. Please refer to the Community Forums or the Magento Stack Exchange site for advice or general discussion about this. Otherwise you may submit Pull Request with the suggested changes.