How to assign promo criteria to a Product Specific Discount

Hi,

I’m able to create a new Product Specific Discount using this method

$app = new iSDK();
// perform authorization tasks

$app->addProductTotalDiscount(“test discount”, “discount for a product”, 0, 3, 3, 5);

but, I can’t find a way to assign a Pomo Code to this Discount

This will be very helpful for me if I can get a solution

Regards,
Ahmed

Hi @Mohiuddin_Ahmed, unfortunately there isn’t a way assign a promo code to a discount via the API.

That’s what I was thinking… Then what’s the point to have this option in API. I mean if I can’t apply a discount then why should I create on in the first place… Thanks for the answer though… I really appreciate it :slight_smile: