"[{"message":"Managing coupons is not permitted. instanceId=6522526c-2489-49c4-8bb6-f66a2a6da251","details":{}}]"

I have a server side function that gets called from my shopping cart page if the user is a club member. It generates a custom 15% off code for them.

Since about March 1st, it has stopped working and I get the message above when debugging it.

Did something in the API change? Is there a permission change that i need to set to allow this?

Skipped the most important Part, this is returned from createCoupon. This code has been working for months.

Here is the coupondata that I am passing in
{“name”:“SCD:Intrigue Webmaster”,“code”:“SCD0911736654”,“startTime”:“2020-03-03T00:37:44.046Z”,“expirationTime”:“2020-03-04T00:00:00.000Z”,“usageLimit”:1,“limitedToOneItem”:false,“active”:true,“percentOffRate”:15,“scope”:{“namespace”:“stores”,“group”:{“name”:“collection”,“entityId”:“3841ade6-88c0-d3a2-0666-9173e446b677”}}}

If you continue to have problems, please post the URL of your site. Only authorized Wix personnel can get access to your site in the editor. Please include the name of the page involved. Also, provide whatever login credentials and coupon codes that are required to test (you can put this information as comments in your code).

There is currently an issue with createCoupon() and updateCoupon(). A ticket has been opened and the development team is working on the fix.

Hey Ross, the problem has been fixed. I tried this out myself and all is good. Please try again.

1 Like

thank you. Do you know if there are plans to implement a way apply discounts to orders without having to have the user enter a coupon code. Even being able to apply a coupon to a store order in code would be better than having to get the user to enter a code to get a discount.

Hi, has this been solved? I’m having the same issue

1 Like

Has this been solved? I have been working on this for 48 hours straight now and I’m tempted to take to social media about my issues… Here is what I’m receiving as well!

applicationError:
description: Managing coupons is not permitted. instanceId=a0191490-a789-48ed-90d1-02326839a1d4
code: UNAUTHORIZED
data: {}

Hello, I am getting this error as well. Please help. :disappointed_relieved: