W-Access

The W-Access Object

Methods

Get data

GET https://api.w3lcome.com/v1/integration/waccess

This endpoint allows you to get the W-Access configurations

Headers

{    
    "enabled": true,
    "aesKey": "longSecretKey",   
    "qrcodeDuration": 21600,
    "url": "http://192.168.100.36/checkin",
    "username": "w3lcome.token",
    "password": "Vy1BY2Vzcy1Ub2tlbg",
    "totpEnabled": false,
    "staticVisitorQRCode": false,
    "createdAt": "2020-03-11T19:21:26.970Z",
    "updatedAt": "2020-03-11T19:21:26.970Z"
}

Post data

POST https://api.w3lcome.com/v1/integration/waccess

This endpoint allows you to update the W-Access configurations

Headers

Request Body

{
    "enabled": true,
    "aesKey": "newLongSecretKey",
    "qrcodeDuration": 3600,
    "url": "http://192.168.100.36/checkin"
    "username": "w3lcome.token",
    "password": "Vy1BY2Vzcy1Ub2tlbg",
    "createdAt": "2020-03-11T19:21:26.970Z",
    "updatedAt": "2020-03-12T16:39:22.970Z"
}

Remove data

DELETE https://api.w3lcome.com/v1/integration/waccess

This endpoint allows you to delete the W-Access configurations

Headers

{
    "success": true
}

Table of Errors

Dynamic QR Code (Host)

To use the dynamic QR Code, the Host must have the property wAccessCardNumber under metadata which is an Int32

Valid Sample

{
    "name": "Alisson Enz",
    "email": "alisson@w3lcome.com",
    "metadata": {
        "wAccessCardNumber": 123456
    }
}

Invalid Sample

It will not work, the system only accepts custom fields under metadata

{
    "name": "Alisson Error",
    "email": "alisson@error.com",
    "wAccessCardNumber": 123456
}

Last updated