Перейти к основному содержимому

Get Reseller Score Limits API

POST /getResellerScoreLimits

Description

This API endpoint retrieves the score limits for resellers. It provides information about the score definitions, their associated symbols, and the maximum limits for each.

Request Body

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

Query:

query getResellerScoreLimits {
getResellerScoreLimits {
scoreDefinition
symbol
maximumLimit
}
}

GraphQL Variables:

{}

Example Request:

curl --location '' \
--header 'Content-Type: application/json' \
--data '{"query":"query getResellerScoreLimits {\n getResellerScoreLimits {\n scoreDefinition\n symbol\n maximumLimit\n }\n}","variables":{}}'

Response:

  • Success (200 OK):

    • The response includes details about the score limits for resellers.
    {
    "data": {
    "getResellerScoreLimits": [
    {
    "scoreDefinition": "Monthly Credit",
    "symbol": "MC",
    "maximumLimit": 10000
    },
    {
    "scoreDefinition": "Total Sale",
    "symbol": "TS",
    "maximumLimit": 50000
    }
    ]
    }
    }
    • scoreDefinition: The name or description of the score.
    • symbol: The symbol associated with the score definition.
    • maximumLimit: The maximum limit for the score.
  • 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 is useful for retrieving the defined score limits for resellers. The scoreDefinition, symbol, and maximumLimit fields provide comprehensive information about the available score limits and their constraints.