generateCoupons: generate coupons for specified value and count

This method is available only for our resellers. To become a reseller, register your website in our Resellers Center.

Method generates one or more coupons for specified amount.

Method: POST
Content-type: application-json

Request properties

countIntegerYesNumber of coupons to generate.
amountDoubleYesUSD amount for each coupon.
purchaseLinkStringYesWeb address where customers can buy this coupon.
isVerifiedOnlyBooleanNoGenerate coupons for activation by verified customers only.

Request example

curl -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{

Response structure

errorIdIntegerError identifier.
0 - no errors, operation completed successfully.
>0 - error identifier. Error code and its short description are available in errorCode and errorDescription properties.
errorDescriptionStringShort description of the error
couponsArrayList of generated coupons.

Response example

JSON with no errors
JSON with an error