API Reference

This is a list of all the types of events we currently send.

EventDescription
user.createdOccurs whenever a user in system is created.
user.updatedOccurs whenever a user's profile in system is updated.
user.deactivatedOccurs whenever a user's account is deactivated.
user.compliance_status.updatedOccurs whenever a user's overall compliance status is updated.

Events Payload

user.created

Below is an example of the data that will be sent

{
  "event_type": "user.created",
  "data": {
    "fname": "User First Name",
    "lname": "User Last Name",
    "email": "[email protected]",
    "phone": null,
    "company_id": 1,
    "company_name": "Company Name",
    "status": "active", // "deactivated"
    "profile_code": "C",
    "city": null,
    "address": null,
    "country_id": null,
    "province_id": null,
    "postal_code": null,
    "notification_email": null,
    "created_on": "2024-08-09T10:13:36.000000Z",
    "updated_on": "2024-08-09T10:13:36.000000Z"
  }

user.updated

Below is an example of the data that will be sent.

{
  "event_type": "user.updated",
  "data": {
    "fname": "User First Name",
    "lname": "User Last Name",
    "email": "[email protected]",
    "phone": null,
    "company_id": 1,
    "company_name": "Company Name",
    "status": "active", // "deactivated"
    "profile_code": "C",
    "city": null,
    "address": null,
    "country_id": null,
    "province_id": null,
    "postal_code": null,
    "notification_email": null,
    "created_on": "2024-08-09T10:13:36.000000Z",
    "updated_on": "2024-08-09T10:13:36.000000Z"
  }

user.deactivated

Below is an example of the data that will be sent.

{
  "event_type": "user.deactivated",
  "data": {
    "name": "User Full Name",
    "email": "[email protected]",
    "company_id": 1,
    "company_name": "Company Name",
    "status": "active", // "deactivated"
    "profile_id": 1,
    "profile_code": "C"
  }

user.compliance_status.updated

Below is an example of the data that will be sent.

{
    "compliance_company_id": 1,
    "user_company_id": 1,
    "user_email": "[email protected]",
    "external_user_id": null,
    "status": "WAITINGAPPROVAL",
    "compliance_status_items": [
        {
            "usercompliancetype": "insurance",
            "status": "INCOMPLETE",
            "expiry_date": "2024-08-24T00:00:00.000000Z",
            "licence_name": "'Certificate of Insurance",
            "policy_amount": 2000000,
            "service_name": null,
            "service_code": null
        },
        {
            "usercompliancetype": "business_license",
            "status": "WAITINGAPPROVAL",
            "expiry_date": null,
            "licence_name": "Business Licence or Registration",
            "policy_amount": null,
            "service_name": null,
            "service_code": null
        },
        {
            "usercompliancetype": "trade_license",
            "status": "COMPLIANT",
            "expiry_date": null,
            "licence_name": "Cabinetmaker - (ON)",
            "policy_amount": null,
            "service_name": "Cabinetmaker",
            "service_code": "24Cabin"
        },
        {
            "usercompliancetype": "trade_license",
            "status": "COMPLIANT",
            "expiry_date": null,
            "licence_name": "Additional License",
            "policy_amount": null,
            "service_name": null,
            "service_code": null
        },
        {
            "usercompliancetype": "wsi",
            "status": "INPROGRESS",
            "expiry_date": null,
            "licence_name": "WSIB",
            "policy_amount": null,
            "service_name": null,
            "service_code": null
        },
    ]
}

List of all Compliance Status:

Compliance StatusDescription
COMPLIANT
EXPIRED
NONCOMPLIANT
INPROGRESS
EXPIRING
NEEDSREVIEW
WAITINGAPPROVAL
NOTSTARTED
SUBMITTED
INCOMPLETE
IDUNVERIFIED
SUSPENDED
TERMINATED
CANCELED
TRIAL
REJECTED

List of all Compliance Status Item Types:

Compliance Status Item TypeDescription
criminal_checkCriminal record check search through police databases
credit_checkPersonal credit check through Equifax
corporate_checkCorporate credit check through Equifax
insuranceWork insurance or COI
business_licenseBusiness is officially licensed as an organization
trade_licenseLicense to perform service such as trade license
wsiWorkplace Safety insurance
custom_documentsCorporate policies required for signature
drivers_licenseLicense to operate a vehicle
certificationsCertifications required or supplementary to perform work
billingUser had paid for subscription
prequal_approvedPrequal has been approved if that workflow is active
qr_badgeVerified identification badge for on premise work