Skip to content

Coupon API not working for guest user #14056

Closed
@gnanasekaranl

Description

@gnanasekaranl

Followed below steps,

  1. 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

Metadata

Metadata

Labels

Event: WroCDContribution day in WroFixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is not validGate 1 Failed. Automatic verification of issue format is failedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releasegood first issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions