Menu

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.

Address: https://api.anti-captcha.com/generateCoupons
Method: POST
Content-type: application-json

Request properties

PropertyTypeRequiredPurpose
clientKeyStringYes
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 '{
    "clientKey":"YOUR_API_KEY",
    "count":2,
    "amount":10,
    "purchaseLink":"https://myshop.com/anticaptcha_coupons/coupon10bucks"
}' https://api.anti-captcha.com/generateCoupons


Response structure

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

Response example

JSON with no errors
JSON with an error
{
    "errorId":0,
    "coupons":["CBKL-FP9Q-9MDV-L4NC-VWEF","DYRY-ESR8-YND3-G7D3-TS3T"]
}