Reseller Get Expired Users API
POST /resellerGetExpiredUsers
Description
This API endpoint retrieves a paginated list of users associated with a reseller who have expired. The response provides information about the total number of expired users, the size of each page, and the current page number.
Request Body
The request uses GraphQL to perform the resellerGetExpiredUsers
query, which requires page
and size
variables to specify pagination details.
Query:
query resellerGetExpiredUsers ($page: Int, $size: Int) {
resellerGetExpiredUsers (page: $page, size: $size) {
totalElements
size
number
}
}
GraphQL Variables:
{
"page": 0,
"size": 0
}
Example Request:
curl --location '' \
--header 'Content-Type: application/json' \
--data '{"query":"query resellerGetExpiredUsers ($page: Int, $size: Int) {\n resellerGetExpiredUsers (page: $page, size: $size) {\n totalElements\n size\n number\n }\n}","variables":{"page":1,"size":10}}'
Response:
-
Success (200 OK):
- The response includes pagination details about the expired users.
{
"data": {
"resellerGetExpiredUsers": {
"totalElements": 50,
"size": 10,
"number": 1
}
}
}totalElements
: The total number of expired users available.size
: The number of expired users per page.number
: The current page number.
-
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 a list of expired users with pagination support. Adjust the page
and size
variables to control the pagination behavior and retrieve the desired subset of expired users.