{"action":"created","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/2628","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/2628/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/2628/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/2628/events","html_url":"https://github.com/magento/magento2/issues/2628","id":120772357,"number":2628,"title":"Sales Order Shipping Address","user":{"login":"jhildreth","id":3173497,"avatar_url":"https://avatars.githubusercontent.com/u/3173497?v=3","gravatar_id":"","url":"https://api.github.com/users/jhildreth","html_url":"https://github.com/jhildreth","followers_url":"https://api.github.com/users/jhildreth/followers","following_url":"https://api.github.com/users/jhildreth/following{/other_user}","gists_url":"https://api.github.com/users/jhildreth/gists{/gist_id}","starred_url":"https://api.github.com/users/jhildreth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhildreth/subscriptions","organizations_url":"https://api.github.com/users/jhildreth/orgs","repos_url":"https://api.github.com/users/jhildreth/repos","events_url":"https://api.github.com/users/jhildreth/events{/privacy}","received_events_url":"https://api.github.com/users/jhildreth/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/magento/magento2/labels/bug","name":"bug","color":"eb6420"},{"url":"https://api.github.com/repos/magento/magento2/labels/CS","name":"CS","color":"fad8c7"}],"state":"closed","locked":false,"assignee":{"login":"NadiyaS","id":11783379,"avatar_url":"https://avatars.githubusercontent.com/u/11783379?v=3","gravatar_id":"","url":"https://api.github.com/users/NadiyaS","html_url":"https://github.com/NadiyaS","followers_url":"https://api.github.com/users/NadiyaS/followers","following_url":"https://api.github.com/users/NadiyaS/following{/other_user}","gists_url":"https://api.github.com/users/NadiyaS/gists{/gist_id}","starred_url":"https://api.github.com/users/NadiyaS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NadiyaS/subscriptions","organizations_url":"https://api.github.com/users/NadiyaS/orgs","repos_url":"https://api.github.com/users/NadiyaS/repos","events_url":"https://api.github.com/users/NadiyaS/events{/privacy}","received_events_url":"https://api.github.com/users/NadiyaS/received_events","type":"User","site_admin":false},"milestone":null,"comments":13,"created_at":"2015-12-07T13:18:53Z","updated_at":"2016-04-07T05:49:55Z","closed_at":"2016-03-29T20:15:13Z","body":"I anticipated that the response to a GET request against the /V1/orders API endpoint would include the shipping address for each sales order, but it does not appear to. It does include the billing address for each order.\r\n\r\nI'm not seeing a good alternative endpoint for retrieving the shipping address - what am I missing? How do I get the shipping address for a sales order via the API?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/magento/magento2/issues/comments/206706922","html_url":"https://github.com/magento/magento2/issues/2628#issuecomment-206706922","issue_url":"https://api.github.com/repos/magento/magento2/issues/2628","id":206706922,"user":{"login":"karanbhomiagit","id":14216430,"avatar_url":"https://avatars.githubusercontent.com/u/14216430?v=3","gravatar_id":"","url":"https://api.github.com/users/karanbhomiagit","html_url":"https://github.com/karanbhomiagit","followers_url":"https://api.github.com/users/karanbhomiagit/followers","following_url":"https://api.github.com/users/karanbhomiagit/following{/other_user}","gists_url":"https://api.github.com/users/karanbhomiagit/gists{/gist_id}","starred_url":"https://api.github.com/users/karanbhomiagit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karanbhomiagit/subscriptions","organizations_url":"https://api.github.com/users/karanbhomiagit/orgs","repos_url":"https://api.github.com/users/karanbhomiagit/repos","events_url":"https://api.github.com/users/karanbhomiagit/events{/privacy}","received_events_url":"https://api.github.com/users/karanbhomiagit/received_events","type":"User","site_admin":false},"created_at":"2016-04-07T05:49:54Z","updated_at":"2016-04-07T05:49:54Z","body":"@davidalger , @choukalos : I see that the shipping address is coming as part of response json to /rest/V1/orders GET call. Any particular reason the shipping address is coming under the \"extension_attributes\" section? Given that the \"billing_address\" comes as a separate section itself, would \"shipping_address\" be moved to a separate section, or would it always be under \"extension_attributes\" section?\r\n\r\n`\"extension_attributes\": {\r\n        \"shipping_assignments\": [\r\n            {\r\n                \"shipping\": {\r\n                    \"address\": {\r\n                        \"address_type\": \"shipping\",\r\n                        \"city\": \"redwood city\",\r\n                        \"company\": \"a\",\r\n                        \"country_id\": \"US\",\r\n                        \"customer_address_id\": 1,\r\n                        \"email\": \"a@b.com\",\r\n                        \"entity_id\": 1,\r\n                        \"firstname\": \"Test Customer\",\r\n                        \"lastname\": \"Last\",\r\n                        \"parent_id\": 1,\r\n                        \"postcode\": \"94034\",\r\n                        \"region\": \"California\",\r\n                        \"region_code\": \"California\",\r\n                        \"region_id\": 12,\r\n                        \"street\": [\r\n                            \"test street\"\r\n                        ],\r\n                        \"telephone\": \"3345678885\"\r\n                    },\r\n                    \"method\": \"flatrate_flatrate\",\r\n                    \"total\": {\r\n                        \"base_shipping_amount\": 20,\r\n                        \"base_shipping_discount_amount\": 0,\r\n                        \"base_shipping_discount_tax_compensation_amnt\": null,\r\n                        \"base_shipping_incl_tax\": 20,\r\n                        \"base_shipping_tax_amount\": 0,\r\n                        \"shipping_amount\": 20,\r\n                        \"shipping_discount_amount\": 0,\r\n                        \"shipping_discount_tax_compensation_amount\": 0,\r\n                        \"shipping_incl_tax\": 20,\r\n                        \"shipping_tax_amount\": 0\r\n                    }`"}}