Showing error when creating discount code using custom app

Showing error when creating discount code using custom app, at first it was showing merchant permission needed for write_price_rules, after giving this permission

it is showing Array ( [errors] => Not Found )
Most probably it needs to permission for creating discount code.
What needs to do?

Hey @amallika22

I did some testing on my end and was able to successfully create discounts with no error when using my custom app with the minimum scope access: write_price_rules, write_discounts. We also have some Discount API examples, that works through a few formatted requests that cover creating and managing discounts using the API.

Hope this helps you get started with your development - Cheers!