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
  • General Input For Any Request
  • Step 1 - Request Activate OTP
  • Step 2 - Validate The OTP
  • Step 3 - Preform Payment
  • Step 4 - Validate Payment & Activate Contract
  1. Reference
  2. API Reference

User Activate Request

Validating user contacts (phone number - email address) using One Time Password.

General Input For Any Request

Headers

Name
Type
Description

Content-Type*

string

application/json

ApiKey*

string

API Key

Authorization*

string

Bearer Access Token `Bearer <accessToken>` that returned from login Api

Request Body

Name
Type
Description

geoLocation*

object :

User Current Location {latitude, longitude}

userDeviceUtcTime*

requestId

<GUID>

{
  "data": <Data model according to each model described below>,
  "error_code": <int>,
  "error_message": <string>
}
{
    "data": null,
    "error_code": <int>,
    "error_message": <string>
}
{
    // Response
}

Step 1 - Request Activate OTP

POST https://api.vlenseg.com/api/BusinessRequest/Activate

Use parameters mentioned in general input above, check the data model in responses below.

{
    "data": {
        "isActive": <bool>,
        "needsReValidate": <bool>,
        "errorMessage": <string>,
        "paymentLink": <string>,
        "isValidPayment": <bool>,
        "requestId": <GUID>,
        "otpRequestId": <GUID>,
        "transactionId": <GUID>
    },
    "error_code": <string>,
    "error_message": <string>
}
{
    "data": null,
    "error_code": 403,
    "error_message": "This request is pending approval form admin"
}

Step 2 - Validate The OTP

POST https://api.vlenseg.com/api/BusinessRequest/Activate

Use parameters mentioned in general input above, check the data model in responses below.

Request Body

Name
Type
Description

transactionId*

<GUID>

returned from the first step

otpRequestId*

<GUID>

returned from the first step

otpCode*

<string>

Sent to user register Phone Number via SMS

scanTransaction

{

"image": <string>

}

Mandatory if needsReValidate = true in the first step, contains user captured image as base 64 string.

{
    "data": {
        "isActive": <bool>,
        "needsReValidate": <bool>,
        "errorMessage": <string>,
        "paymentLink": <string>,
        "isValidPayment": <bool>,
        "requestId": <GUID>,
        "otpRequestId": <GUID>,
        "transactionId": <GUID>
    },
    "error_code": <string>,
    "error_message": <string>
}

Step 3 - Preform Payment

Use the payment Link that returned from Step 2 to preform payment action to the using iFrame in the mobile or external browser

Step 4 - Validate Payment & Activate Contract

POST https://api.vlenseg.com/api/BusinessRequest/Activate

Use parameters mentioned in general input above, check the data model in responses below.

Request Body

Name
Type
Description

transactionId*

<GUID>

returned from the first step

{
    "data": {
        "isActive": true,
        "needsReValidate": <bool>,
        "errorMessage": <string>,
        "paymentLink": <string>,
        "isValidPayment": <bool>,
        "requestId": <GUID>,
        "otpRequestId": <GUID>,
        "transactionId": <GUID>
    },
    "error_code": <string>,
    "error_message": <string>
}
PreviousUser Create RequestNext⚙️ Admin Control Panel

Last updated 1 year ago

{
    "latitude": <decimal>,
    "longitude": <decimal>
}
<isoTimestamp>