Menu

getResellerData:重获优惠券清单和符合条件的余额

此方法仅可由我们的经销商使用。要成为经销商,请在我们的经销商中心注册您的网站。

可用此方法建立外部优惠券管理系统。

地址: https://api.anti-captcha.com/getResellerData
方法: POST
Content-type: application-json

请求属性

属性类型必须使用用途
clientKey字符串
minCreateDate整数最少量优惠券的创建日期(UTC 时间)。

请求示例

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


回应结构

属性类型用途
errorId整数错误标识符。
0 - 无错误,操作成功完成。
>0 - 错误标识符。错误代码及其简短描述可在 errorCodeerrorDescription 属性中找到。
errorCode字符串
errorDescription字符串简短错误说明
eligibleBalance双精度值符合条件的帐户余额。这不同于主用帐户余额,仅报告用加密货币进行的帐户充值额。
coupons数组优惠券对象列表,每个对象包含以下字段: id:系统中的唯一 ID;amount:优惠券价值;code:优惠券代码;link:与优惠券相关的网络地址;status:状态:新 "或 "激活"--显示优惠券是否已被客户激活

回应示例

JSON 没有错误
JSON 有错误
{
    "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"
    }]
}