{"action":"opened","issue":{"url":"https://api.github.com/repos/magento/magento2/issues/5544","repository_url":"https://api.github.com/repos/magento/magento2","labels_url":"https://api.github.com/repos/magento/magento2/issues/5544/labels{/name}","comments_url":"https://api.github.com/repos/magento/magento2/issues/5544/comments","events_url":"https://api.github.com/repos/magento/magento2/issues/5544/events","html_url":"https://github.com/magento/magento2/issues/5544","id":164535041,"number":5544,"title":"M2.1 API  salesOrderRepositoryV1 can't create shpping address","user":{"login":"5zymon","id":3308234,"avatar_url":"https://avatars.githubusercontent.com/u/3308234?v=3","gravatar_id":"","url":"https://api.github.com/users/5zymon","html_url":"https://github.com/5zymon","followers_url":"https://api.github.com/users/5zymon/followers","following_url":"https://api.github.com/users/5zymon/following{/other_user}","gists_url":"https://api.github.com/users/5zymon/gists{/gist_id}","starred_url":"https://api.github.com/users/5zymon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/5zymon/subscriptions","organizations_url":"https://api.github.com/users/5zymon/orgs","repos_url":"https://api.github.com/users/5zymon/repos","events_url":"https://api.github.com/users/5zymon/events{/privacy}","received_events_url":"https://api.github.com/users/5zymon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-08T13:49:27Z","updated_at":"2016-07-08T13:49:27Z","closed_at":null,"body":"Hello, I am not sure if this is Magento issue or lack of documentation, but I just stuck for a longer while and I just can't find anything wrong on my end.\r\n\r\nI am importing orders using  salesOrderRepositoryV1 and REST API. I am providing shipping details in extension attributes\r\n\r\n`  public 'extension_attributes' => \r\n    object(stdClass)[590]\r\n      public 'shipping_assignments' => \r\n        array (size=1)\r\n          0 => \r\n            object(stdClass)[595]\r\n              public 'shipping' => \r\n                object(stdClass)[602]\r\n                  public 'address' => \r\n                    object(stdClass)[599]\r\n                      public 'address_type' => string 'shipping' (length=8)\r\n                      public 'city' => string 'Katowice' (length=8)\r\n                      public 'country_id' => string 'PL' (length=2)\r\n                      public 'email' => string 'testing+magento@gmail.com' (length=25)\r\n                      public 'entity_id' => int 3\r\n                      public 'firstname' => string 'Test' (length=6)\r\n                      public 'lastname' => string 'Testing' (length=5)\r\n                      public 'parent_id' => int 2\r\n                      public 'postcode' => string '40-029' (length=6)\r\n                      public 'street' => \r\n                        array (size=1)\r\n                          0 => string 'Some Street 18/8' (length=13)\r\n                      public 'telephone' => string '2134414124' (length=10)\r\n                  public 'method' => string 'flatrate_flatrate' (length=17)\r\n                  public 'total' => \r\n                    object(stdClass)[596]\r\n                      public 'base_shipping_amount' => int 5\r\n                      public 'base_shipping_canceled' => int 5\r\n                      public 'base_shipping_discount_amount' => int 0\r\n                      public 'base_shipping_discount_tax_compensation_amnt' => null\r\n                      public 'base_shipping_incl_tax' => int 5\r\n                      public 'base_shipping_tax_amount' => int 0\r\n                      public 'shipping_amount' => int 5\r\n                      public 'shipping_canceled' => int 5\r\n                      public 'shipping_discount_amount' => int 0\r\n                      public 'shipping_discount_tax_compensation_amount' => int 0\r\n                      public 'shipping_incl_tax' => int 5\r\n                      public 'shipping_tax_amount' => int 0`\r\n\r\n\r\nThe order is created in magento, Billing Details are fine when I try to view the order in backend I get this:\r\n\r\nFatal error: Call to a member function getId() on null in /var/www/magento_2/vendor/magento/module-sales/Block/Adminhtml/Order/View/Info.php on line 227\r\n\r\nWhen I check order in database \"sales_order_address\" table, there is billing address inserted, but there is no sign of shipping address in there. "}}
{"actor":{"display_login":"5zymon"}}