-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Coupon API not working for guest user #14056
Comments
@gnanasekaranl, thank you for your report. |
Coupon code also does not work for logged-in customer through webapi, on frontend it works fine. magento-engcom-team any updates? |
I'm working on this #distributed-cd |
So many critical erros on this thing... |
@matkeupon I have already found the problem and a possible solution. I will send a fix to the dev team (I'm an external contributor), so keep in touch because this could be solved soon. Regards! |
#WroCD |
@Hypo386 thank you for joining. Please accept team invitation here and self-assign the issue. |
Hi @gnanasekaranl. Thank you for your report. The fix will be available with the upcoming 2.2.6 release. |
@VladimirZaets That's great. |
@magento-engcom-team give me 2.3-develop instance |
Hi @pascalckunz. Thank you for your request. I'm working on Magento 2.3-develop instance for you |
Hi @pascalckunz, here is your Magento instance. |
Hi @gnanasekaranl. Thank you for your report. The fix will be available with the upcoming 2.3.0 release. |
Hi @gnanasekaranl. Thank you for your report. The fix will be available with the upcoming 2.1.16 release. |
Followed below steps,
Create cart for guest user URL: http://devsite.com/magento2.2/rest/all/V1/guest-carts
Content-Type: application/json
Method: POST
Authorization Bearer Key: yfna0bkjnj3j8jcr42rk7a1f3391yy0c
Request Parameters: NIL
Response :
adf748e2e78b4cd4d7d3795a127bed97 (Generates Cart ID in response)
create coupon in backend and also by API
Apply this coupon to cartId
URL: http://devsite.com/magento2.2/rest/all/V1/guest-carts/adf748e2e78b4cd4d7d3795a127bed97/coupons/782OYX2VOEINUF08
Content-Type: application/json
Method: PUT
Authorization Bearer Key: yfna0bkjnj3j8jcr42rk7a1f3391yy0c
Request Parameters: NIL
Response :
{
"message": "Coupon code is not valid"
}
For check I have applied this coupon in front-end of website as a guest user its work. In API only its not working
The text was updated successfully, but these errors were encountered: