generateCouponProduct

/coupon/generateCouponProduct

Used to generate a one time usage coupon for a client.

ParameterTypeDescriptionRequired
api_tokenstringAPI TokenYES
emailstringCustomer EmailYES
days_expireintegerNumber of days coupon should be valid forYES
discount_typestringvalid values are either '$' or '%'YES
discount_amountdecimaldiscount amount. Enter the dollar value to discount or the percentage. For example if you want to give 10% off enter 10 as the valueYES
skustringSKU of the product that you wish to generate a coupon forYES
website_idintegerID of the website generating the couponYES

Example PHP Code using the Codebookie Class:

Output:

VariableTypeDescription
statusstringOK or Error
messagestringCommand Message
coupon_codestringthe newly generated coupon code

 

 

Was this article helpful to you? Yes No 1

How can we help?