Update Reseller Score Limits API
POST /updateResellerScoreLimits
Description
This API endpoint allows an admin to update multiple score limits for a reseller by providing a list of symbols and their corresponding maximum limits. The score limits determine the maximum scores a reseller can achieve or utilize, associated with various symbols.
Request Body
The request utilizes GraphQL to perform the updateResellerScoreLimits
mutation.
Mutation:
mutation updateResellerScoreLimits ($resellerScoreLimitEdits: [ResellerScoreLimitEdit]) {
updateResellerScoreLimits (resellerScoreLimitEdits: $resellerScoreLimitEdits) {
scoreDefinition
symbol
maximumLimit
}
}
Variables:
{
"resellerScoreLimitEdits": [
{
"symbol": "<Symbol>",
"maxLimit": 0
}
]
}
- resellerScoreLimitEdits (List of ResellerScoreLimitEdit Objects): A list of objects containing the updated score limit details for the reseller.
- symbol (String): The symbol associated with the score limit (e.g., a currency or point system).
- maxLimit (Int): The maximum limit or cap for the score associated with the specified symbol.
Response:
-
Success (200 OK):
- If the update is successful, the response will return the updated score limit details for each symbol, confirming the changes.
{
"data": {
"updateResellerScoreLimits": [
{
"scoreDefinition": "<Score_Definition>",
"symbol": "<Symbol>",
"maximumLimit": "<Max_Limit>"
}
]
}
} -
Error (4XX/5XX):
- Appropriate error messages and status codes will be returned in cases of invalid data, missing required fields, or server errors.
Note:
Ensure that the resellerScoreLimitEdits
list contains valid and correctly formatted data according to the platform's specifications. This API should be used by admins with the necessary permissions to manage and update multiple reseller score limits associated with various symbols.