-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sales Order Shipping Address #2628
Comments
I'm also intressted in how to get the shipping address and i don't see any solution in the api documentation. |
Thanks a lot @thomasnordkvist for referencing that issue, I hadn't come across it in my searches. Is there anyone that can shed some light about an existing or soon-to-be-released method for retrieving the shipping address via the API, or is customization the only way? That question was raised in #2382 , but it doesn't look like it was addressed. |
@jhildreth I think the magento people want this issue to be closed as soon as possible, because it might be more of a http://magento.stackexchange.com/questions/tagged/magento2 thing than a github issue. /Thomas |
Fair enough, thanks a lot for the help @thomasnordkvist! |
This is a bug; it should have been exposed and linked per @paliarush comment on stack exchange. Creating Bug MAGETWO-46720 |
Ok so it is a bug! Good to know that this functionality will not change much from how i use it now, other than the function path. /Thomas |
Glad to hear it's a bug. Thanks for the update! |
The release notes for 2.0.1 say: "Shipping address in the Orders API now exposes the shipping address value.", which I believe should address this issue. |
…2628 - revert Order\ItemRepository.php
Any info on when this fix is coming out? |
Hi @NadiyaS |
This should be addressed by the commits pushed on Feb 26th; closing. |
Delivered in version 2.0.3 |
@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?
|
When getting multiple orders in one call in 2.0.4, the shipping address is unfortunately incorrect. For a single order it works fine, but for multiple orders, the shipping address in extension attributes is the same for every order. If I have orders 1, 2, and 3, the shipping address for each of them will the one in order 3 - the last one in the call. Should this be filed as a separate bug? |
@timtt : Same thing happened for me too. |
Yes this should be filed as a separate bug - I see the linked github issue and will make sure there's a corresponding internal ticket filed under #4019. |
Is it possible to add shipping address to cart without setting shipping method? As it is possible with billing address (POST /V1/carts/mine/billing-address) |
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.
I'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?
Thanks!
The text was updated successfully, but these errors were encountered: