Digital Identity
  • Introduction
  • Quick Start
  • Reference
    • API Reference
      • Register
      • User Profile
      • Verify
      • CancelVerifiedDigitalIdentity
      • Get Verify Data
      • Login
      • Admin Login
      • Check Eligibility
      • Current
      • Get All Product Types
      • Get Business Request Type Template Fields
      • User Create Request
      • User Activate Request
      • ⚙️ Admin Control Panel
        • Login API
        • GetRequests API
        • GetContractToPdf
        • GetUsers
        • GetTransactionById API
        • CancelVerifiedDigitalIdentity
      • Error Codes
Powered by GitBook
On this page
  1. Reference
  2. API Reference
  3. ⚙️ Admin Control Panel

CancelVerifiedDigitalIdentity

PreviousGetTransactionById APINextError Codes

Last updated 8 months ago

Base Endpoint:

POST https://api.vlenseg.com/api/DigitalIdentity/CancelVerifiedDigitalIdentityForAdmin

Overview:

This endpoint allows an admin to cancel a verified digital identity for a specific user by providing the user's ID. The digital identity associated with the given user will be canceled upon a successful request.

Headers:

  • ApiKey (required): The API key for authenticating the request.

  • TenancyName (required): The tenancy name that identifies the tenant.

  • Authorization (required): Bearer token for user authentication, obtained from the Login API.

  • Content-Type: application/json.

Body:

  • userId (required): The unique identifier of the user whose verified digital identity you want to cancel.

const axios = require('axios');

const data = {
  userId: 11017
};

axios.post('https://api.vlenseg.com/api/DigitalIdentity/CancelVerifiedDigitalIdentityForAdmin', data, {
  headers: {
    'ApiKey': 'YOUR_API_KEY',
    'TenancyName': 'YOUR_TENANCY_NAME',
    'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json'
  }
})
.then((response) => {
  console.log(response.data);
})
.catch((error) => {
  console.error('Error:', error.response ? error.response.data : error.message);
});
import requests

url = "https://api.vlenseg.com/api/DigitalIdentity/CancelVerifiedDigitalIdentityForAdmin"

payload = {
    "userId": 11017
}

headers = {
    'ApiKey': 'YOUR_API_KEY',
    'TenancyName': 'YOUR_TENANCY_NAME',
    'Authorization': 'Bearer YOUR_ACCESS_TOKEN',
    'Content-Type': 'application/json'
}

response = requests.post(url, json=payload, headers=headers)

if response.status_code == 200:
    print("Response:", response.json())
else:
    print(f"Error: {response.status_code}", response.text)
curl -X POST 'https://api.vlenseg.com/api/DigitalIdentity/CancelVerifiedDigitalIdentityForAdmin' \
-H 'ApiKey: YOUR_API_KEY' \
-H 'TenancyName: YOUR_TENANCY_NAME' \
-H 'Authorization: Bearer YOUR_ACCESS_TOKEN' \
-H 'Content-Type: application/json' \
-d '{
  "userId": 11017
}'

Cancel a verified digital identity for a user

post
Authorizations
Body
userIdintegerOptional

The unique identifier of the user whose digital identity is to be canceled.

Example: 11017
Responses
200
Digital identity canceled successfully
application/json
400
Invalid request, such as missing or invalid userId
401
Unauthorized, API key or token is missing/invalid
500
Internal server error
post
POST /api/DigitalIdentity/CancelVerifiedDigitalIdentityForAdmin HTTP/1.1
Host: api.vlenseg.com
ApiKey: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 16

{
  "userId": 11017
}
{
  "data": true,
  "error_code": null,
  "error_message": null
}