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

GetRequests API

PreviousLogin APINextGetContractToPdf

Last updated 8 months ago

Base Endpoint: GET https://api.vlenseg.com/api/BusinessRequest/GetRequests

Overview: This endpoint retrieves a paginated list of business requests. It supports filtering and sorting options for easy access to the data. The response includes metadata such as the total count of requests and details for each 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.

const axios = require('axios');

const url = 'https://api.vlenseg.com/api/BusinessRequest/GetRequests';
const headers = {
    'ApiKey': 'xxx',  // Replace with your actual API key
    'TenancyName': 'Test',  // Replace with your tenancy name
    'Authorization': 'Bearer <access_token>'  // Replace <access_token> with the token returned from the login API
};

axios.get(url, { headers })
    .then(response => {
        console.log(response.data);
    })
    .catch(error => {
        console.error(`Error: ${error.response.status}`, error.response.data);
    });
import requests

url = "https://api.vlenseg.com/api/BusinessRequest/GetRequests"
headers = {
    "ApiKey": "xxx",  # Replace with your actual API key
    "TenancyName": "Test",  # Replace with your tenancy name
    "Authorization": "Bearer <access_token>"  # Replace <access_token> with the token returned from the login API
}

response = requests.get(url, headers=headers)

if response.status_code == 200:
    print(response.json())
else:
    print(f"Error: {response.status_code}, {response.text}")
curl -X GET "https://api.vlenseg.com/api/BusinessRequest/GetRequests" \
-H "ApiKey: xxx" \  # Replace with your actual API key
-H "TenancyName: Test" \  # Replace with your tenancy name
-H "Authorization: Bearer <access_token>"  # Replace <access_token> with the token returned from the login API

Get a list of business requests

get

This endpoint retrieves a paginated list of business requests. It supports bearer authentication using the access token from the login API.

Authorizations
Query parameters
skipCountintegerOptional

The number of records to skip

maxResultCountintegerOptional

The maximum number of records to return

RequestTypestringOptional

The business request id to filter by

FilterTextstringOptional

To filter any text for Id, RequestNumber, .. etc

Header parameters
ApiKeystringRequired
TenancyNamestringRequired
Responses
200
Successful response
application/json
400
Bad request, missing or invalid fields
401
Unauthorized, invalid credentials
get
GET /api/BusinessRequest/GetRequests HTTP/1.1
Host: 
Authorization: Bearer JWT
ApiKey: text
TenancyName: text
Accept: */*
{
  "data": {
    "totalCount": 86,
    "items": [
      {
        "id": "1e83a2e5-3d89-4b30-aa29-21e6171dd388",
        "requestNumber": "Req-7269230638555178366428213",
        "requestStatusName": "CustomerSigned",
        "creationTime": "2024-07-02T11:50:36.6427383",
        "lastModificationTime": "2024-08-12T12:40:31.553314",
        "hasContract": true
      }
    ]
  },
  "error_code": null,
  "error_message": null
}