Documentation 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

Property Type Required Purpose
clientKey String Yes
minCreateDate Integer No Minimum coupons creation date in UTC time.

Request example

CURL
          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

Property Type Purpose
errorId Integer Error identifier.
0 - no errors, operation completed successfully.
>1 - error identifier. Error code and short description transferred in errorCode and errorDescription properties.
errorCode String
errorDescription String Short description of the error
eligibleBalance Double Eligible account balance value. It is not the same as main account balance and counts only account refills in cryptocurrency.
coupons Array List 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
          {
    "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"
    }]
}
        
JSON with an error
          {
    "errorId": 1,
    "errorCode": "ERROR_KEY_DOES_NOT_EXIST",
    "errorDescription": "Account authorization key not found in the system"
}