curl -X POST "<base_url>/usermanagement/v1/users/extendExpiry" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userName": "string",
"serviceName": "rmd",
"extensionDate": "21-04-2025"
}'
{
"header": {
"code": 1,
"message": "Account expiry has been extended successfully",
"response_code": 1
},
"body": {
"userName": "string",
"serviceName": "rmd",
"expiryDate": "05-10-2027"
}
}
User Management
Extend User Expiry
Extends the expiry date for an existing user.
POST
/
usermanagement
/
v1
/
users
/
extendExpiry
curl -X POST "<base_url>/usermanagement/v1/users/extendExpiry" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userName": "string",
"serviceName": "rmd",
"extensionDate": "21-04-2025"
}'
{
"header": {
"code": 1,
"message": "Account expiry has been extended successfully",
"response_code": 1
},
"body": {
"userName": "string",
"serviceName": "rmd",
"expiryDate": "05-10-2027"
}
}
Extends the expiry date for an existing user. If
See Errors for the response envelope and the full list of codes.
serviceName is supplied, only that user’s subscription to that service is extended; if it is omitted, the user account and every service the user is already subscribed to are extended to the new extensionDate.
- URL:
/usermanagement/v1/users/extendExpiry - Full URL:
<base_url>/usermanagement/v1/users/extendExpiry - Request Method: POST
Authentication
Send the Access Token in theX-AccessToken request header on every authenticated call:
X-AccessToken: YOUR_ACCESS_TOKEN
Request Body
string
required
Username generated when the user was created.
string
Service to apply this to. Omit it to apply to the user and every service they are subscribed to.
string
required
New expiry date, in
DD-MM-YYYY format.Sample Request
cURL
curl -X POST "<base_url>/usermanagement/v1/users/extendExpiry" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userName": "string",
"serviceName": "rmd",
"extensionDate": "21-04-2025"
}'
curl -X POST "<base_url>/usermanagement/v1/users/extendExpiry" \
-H "X-AccessToken: YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"userName": "string",
"serviceName": "rmd",
"extensionDate": "21-04-2025"
}'
Response
object
object
Sample Response
Success
{
"header": {
"code": 1,
"message": "Account expiry has been extended successfully",
"response_code": 1
},
"body": {
"userName": "string",
"serviceName": "rmd",
"expiryDate": "05-10-2027"
}
}
{
"header": {
"code": 1,
"message": "Account expiry has been extended successfully",
"response_code": 1
},
"body": {
"userName": "string",
"serviceName": "rmd",
"expiryDate": "05-10-2027"
}
}
Status Codes
| Status | Meaning |
|---|---|
200 | Success. |
500 | Internal Server Error. |
Error codes
Returned inheader.response_code when the request fails.
| Code | Message |
|---|---|
998 | Internal server error |
1001 | Validation error |
1002 | You are not permitted to the resource! |
1003 | Invalid service slug provided |
1004 | Account is not subscribed to this service |
1005 | Invalid username or reseller |