پرش به مطلب اصلی

Reseller Level Coefficients API

POST /getResellerLevelCoefficients

Description

This API endpoint retrieves the coefficients related to reseller levels, including various metrics such as credit percentages and sales data.

Request Body

The request uses GraphQL to perform the getResellerLevelCoefficients query, which does not require any variables.

Query:

query getResellerLevelCoefficients {
getResellerLevelCoefficients {
monthCreditPercent
monthCreditMax
currentCreditPercent
currentCreditMax
activeSubscriptionPercent
activeSubscriptionMax
membershipDurationPercent
membershipDurationMax
depositIntervalManualDays
depositIntervalMax
totalSalePercent
totalSaleMax
monthSalePercent
monthSaleMax
}
}

GraphQL Variables:

{}

Example Request:

curl --location '' \
--header 'Content-Type: application/json' \
--data '{"query":"query getResellerLevelCoefficients {\n getResellerLevelCoefficients {\n monthCreditPercent\n monthCreditMax\n currentCreditPercent\n currentCreditMax\n activeSubscriptionPercent\n activeSubscriptionMax\n membershipDurationPercent\n membershipDurationMax\n depositIntervalManualDays\n depositIntervalMax\n totalSalePercent\n totalSaleMax\n monthSalePercent\n monthSaleMax\n }\n}","variables":{}}'

Response:

  • Success (200 OK):

    • The response includes various coefficients related to reseller levels.
    {
    "data": {
    "getResellerLevelCoefficients": {
    "monthCreditPercent": 5.0,
    "monthCreditMax": 1000,
    "currentCreditPercent": 10.0,
    "currentCreditMax": 2000,
    "activeSubscriptionPercent": 15.0,
    "activeSubscriptionMax": 3000,
    "membershipDurationPercent": 20.0,
    "membershipDurationMax": 4000,
    "depositIntervalManualDays": 30,
    "depositIntervalMax": 5000,
    "totalSalePercent": 25.0,
    "totalSaleMax": 6000,
    "monthSalePercent": 30.0,
    "monthSaleMax": 7000
    }
    }
    }
  • Error (4XX/5XX):

    • If there is an issue with the request or server error, the response will include an error message and status code.

Note:

This endpoint provides detailed coefficient values related to reseller performance, including monthly credit percentages, sales data, and more.