Supported task types
API methods
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.

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 -i -H "Accept: application/json" \
     -H "Content-Type: application/json" \
     -X POST -d '{

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
    "coupons": [{
JSON with an error
    "errorId": 1,
    "errorCode": "ERROR_KEY_DOES_NOT_EXIST",
    "errorDescription": "Account authorization key not found in the system"