Menu

getResellerData: retrieve coupon list and eligible balance

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

Use this method to build your external coupon management system.

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

Request properties

PropertyTypeRequiredPurpose
clientKeyStringYes
minCreateDateIntegerNoMinimum coupons creation date in UTC time.

Request example

curl -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{
    "clientKey":"YOUR_API_KEY",
    "minCreateDate":1672185600
}' https://api.anti-captcha.com/getResellerData


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
eligibleBalanceDoubleEligible account balance value. It is not the same as main account balance and counts only account refills in cryptocurrency.
couponsArrayList of coupon objects, each containing the following fields. id: unique ID in the system, amount: coupon value, code: coupon code,link: web-address associated with coupon, status: "new" or "activated" - shows if coupon was activated by a customer

Response example

JSON with no errors
JSON with an error
{
    "errorId":0,
    "eligibleBalance":1234.56,
    "coupons": [{
        "id":32,
        "amount":10,
        "code":"QSXS-83UY-MX73-G7BH-4BMU",
        "link":"http:\/\/my-shop.com\/anticaptcha_coupons/coupon10bucks",
        "status":"new"
        },{
        "id":33,
        "amount":5,
        "code":"KXXQ-L34E-3X4L-WPEM-FFMW",
        "link":"http:\/\/my-shop.com\/anticaptcha_coupons/coupon10bucks",
        "status":"activated"
    }]
}