-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Adding billing information via mine API expects costumer id #17485
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
Comments
Hi @wittyvishwas. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @wittyvishwas do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@wittyvishwas, thank you for your report. |
@engcom-backlog-pb Thank you for the prompt response , So the catch is if you have put in a random id that doesn't not exists it works , i am assuming that customerAddressId that you passed '65' is just copy pasted from my report does not actually exists . As mentioned in prerequisite you must have a saved address for the customer and pass that address id in above response And if you add a node "customerId":"2", like below it works
Replace the above response with your customer_address_id and customerId of the user that you are using |
@wittyvishwas, thank you for your report. |
Hi @pmclain. Thank you for working on this issue.
|
Hi @wittyvishwas. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
Not setting the customerId with an existing address caused a `NoSuchEntityException` to be thrown during address validation https://github.com/magento/magento2/blob/56af1e73ce21867b770a7458ab6e109f4a1eface/app/code/Magento/Quote/Model/QuoteAddressValidator.php#L84 Fixes magento#17485
Hi @wittyvishwas. Thank you for your report. The fix will be available with the upcoming 2.2.8 release. |
Uh oh!
There was an error while loading. Please reload this page.
Preconditions
Steps to reproduce
Hit the products REST api rest/V1/carts/mine/billing-address with generated customer token in above state with a similar body as below
Check the response of the Call
Expected result
Success and Returns quote address id
Actual result
and a exception is generated
Same stands for
As it is a mine api the customer id should be populated from customer token
The text was updated successfully, but these errors were encountered: