Skip to main content

Zentry.Employers.Api v1.0

Base URLs:

Authentication

  • API Key (API_KEY)
    • Parameter Name: Api-Key Authentication, in: header.

Admin

AddUserRole

POST /Admin/role

Body parameter

{
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"role": "EmployeeAdmin",
"employerId": "686d3163ee1ffbbdb38b6a74"
}

Parameters

NameInTypeRequiredDescription
bodybodyAddUserRoleRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

RemoveUserRole

DELETE /Admin/role

Body parameter

{
"email": "johnsmit@zentrypass.com",
"role": "EmployeeAdmin",
"employerId": "686d3163ee1ffbbdb38b6a74"
}

Parameters

NameInTypeRequiredDescription
bodybodyRemoveUserRoleRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

GetUsersWithRole

GET /Admin/{tenantId}/role/{role}

Parameters

NameInTypeRequiredDescription
getUsersWithRoleRequestheaderGetUsersWithRoleRequestfalsenone
tenantIdpathstringtruenone
rolepathstringtruenone

Responses

StatusMeaningDescriptionSchema
200OKOKUserIPagedResponse

Application

CreateApplication

POST /Application/create

Body parameter

{
"name": "string",
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"description": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

GetApplications

POST /Application

Body parameter

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"ownerIds": [
"string"
]
}

Parameters

NameInTypeRequiredDescription
bodybodyGetApplicationsRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplicationIPagedResponse

UpdateApplication

PUT /Application

Body parameter

{
"id": "string",
"name": "string",
"description": "string",
"address": {
"line1": "11 N 4th St",
"line2": "string",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
}
}

Parameters

NameInTypeRequiredDescription
bodybodyUpdateApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

ApproveApplicationInquiry

PUT /Application/approve-inquiry

Body parameter

{
"applicationId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyApproveApplicationInquiryRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

SubmitApplication

PUT /Application/submit

Body parameter

{
"applicationId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodySubmitApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

ApproveApplication

PUT /Application/approve

Body parameter

{
"applicationId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyApproveApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployer

DenyApplication

PUT /Application/deny

Body parameter

{
"applicationId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyDenyApplicationRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKApplication

Employee

CreateEmployeeInquiry

POST /Employee/inquiry

Body parameter

{
"companyName": "string",
"employeeName": "string",
"email": "string",
"title": "string",
"referralContact": {
"name": "string",
"email": "string"
}
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateEmployeeInquiryRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployeeInquiry

InviteEmployee

POST /Employee/invite

Body parameter

{
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"employerId": "686d3163ee1ffbbdb38b6a74",
"employerUserId": "[AN ID IN YOUR SYSTEM]",
"employerBillingPlanId": "926d3163ee1ffbbdb47b6a76"
}

Parameters

NameInTypeRequiredDescription
bodybodyInviteEmployeeRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployee

GetEmployees

POST /Employee

Body parameter

{
"offset": 0,
"limit": 25,
"employerIds": [
"686d3163ee1ffbbdb38b6a74"
],
"userIds": [
"686d3163ee1ffbbdb38b6a74"
],
"employerUserIds": [
"AN ID IN YOUR SYSTEM"
]
}

Parameters

NameInTypeRequiredDescription
bodybodyGetEmployeesRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployeeIPagedResponse

UpdateEmployeeStatus

PUT /Employee/status

Body parameter

{
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"status": "Active"
}

Parameters

NameInTypeRequiredDescription
bodybodyUpdateEmployeeStatusRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployee

UpdateEmployeeBillingPlan

PUT /Employee/billing-plan

Body parameter

{
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"billingPlanId": "926d3163ee1ffbbdb47b6a76"
}

Parameters

NameInTypeRequiredDescription
bodybodyUpdateEmployeeBillingPlanRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployee

Employer

GetEmployers

POST /Employer

Body parameter

{
"offset": 0,
"limit": 25,
"employerIds": [
"string"
]
}

Parameters

NameInTypeRequiredDescription
bodybodyGetEmployersRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployerIPagedResponse

Schemas

AddUserRoleRequest

{
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"role": "EmployeeAdmin",
"employerId": "686d3163ee1ffbbdb38b6a74"
}

NameTypeRequiredRestrictionsDescription
contactContacttruenoneInformation about the employee
rolestringtruenoneThe name of the role to add
employerIdstringtruenoneZentry Pass Employer Id

Address

{
"line1": "11 N 4th St",
"line2": "string",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
}

NameTypeRequiredRestrictionsDescription
line1stringtruenoneThe main address
line2string¦nullfalsenonenone
statestringtruenoneThe state
citystringtruenoneThe city
zipCodestringtruenoneThe zip code

Application

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"status": "Inquiry",
"name": "string",
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"description": "string",
"address": {
"line1": "11 N 4th St",
"line2": "string",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
},
"ownerId": "string",
"ownerEmail": "string"
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe unique identifier for this entity
dateCreatedstring(date-time)truenoneThe initial date this entity was created
dateUpdatedstring(date-time)truenoneThe last time this entity was updated
statusApplicationStatustruenonenone
namestringtruenonenone
contactContacttruenoneInformation about the employee
descriptionstringtruenonenone
addressAddressfalsenonenone
ownerIdstring¦nullfalsenonenone
ownerEmailstring¦nullfalsenonenone

ApplicationIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"status": "Inquiry",
"name": "string",
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"description": "string",
"address": {
"line1": "11 N 4th St",
"line2": "string",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
},
"ownerId": "string",
"ownerEmail": "string"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

NameTypeRequiredRestrictionsDescription
data[Application]trueread-onlyThe paged data
pagedRequestIPagedRequesttruenonenone
totalCountinteger(int32)trueread-onlyThe total number of items available

ApplicationQuery

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"ownerIds": [
"string"
]
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
ids[string]¦nullfalsenonenone
ownerIds[string]¦nullfalsenonenone

ApplicationStatus

"Inquiry"

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousInquiry
anonymousPending
anonymousSubmitted
anonymousApproved
anonymousDenied

ApproveApplicationInquiryRequest

{
"applicationId": "string"
}

NameTypeRequiredRestrictionsDescription
applicationIdstringtruenonenone

ApproveApplicationRequest

{
"applicationId": "string"
}

NameTypeRequiredRestrictionsDescription
applicationIdstringtruenonenone

BillingPlanHistory

{
"employerBillingPlanId": "string",
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
}

NameTypeRequiredRestrictionsDescription
employerBillingPlanIdstringtruenonenone
fromstring(date-time)truenonenone
tostring(date-time)¦nullfalsenonenone

Contact

{
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
}

Information about the employee

NameTypeRequiredRestrictionsDescription
namestringtruenoneShould be the First and Last name
emailstringtruenoneThe employee's email
phonestring¦nullfalsenoneThe employee's phone number. Optional.

CreateApplicationRequest

{
"name": "string",
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"description": "string"
}

NameTypeRequiredRestrictionsDescription
namestringtruenonenone
contactContacttruenoneInformation about the employee
descriptionstringtruenonenone

CreateEmployeeInquiryRequest

{
"companyName": "string",
"employeeName": "string",
"email": "string",
"title": "string",
"referralContact": {
"name": "string",
"email": "string"
}
}

NameTypeRequiredRestrictionsDescription
companyNamestringtruenonenone
employeeNamestringtruenonenone
emailstringtruenonenone
titlestringtruenonenone
referralContactReferralfalsenonenone

DenyApplicationRequest

{
"applicationId": "string"
}

NameTypeRequiredRestrictionsDescription
applicationIdstringtruenonenone

Employee

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"employerUserId": "johnsmith@zentrypass.com",
"employerBillingPlanId": "926d3163ee1ffbbdb47b6a76",
"billingPlanHistory": [
{
"employerBillingPlanId": "string",
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
}
],
"status": "Active",
"statusUpdatedDate": "2019-08-24T14:15:22Z"
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe unique identifier for this entity
dateCreatedstring(date-time)truenoneThe initial date this entity was created
dateUpdatedstring(date-time)truenoneThe last time this entity was updated
employerIdstringtruenoneA Zentry Pass Employer Identifier.
userIdstringtruenoneZentry Pass User Identifier.
employerUserIdstringtruenoneThis is an identifier from the Employer's source system. Used to identify employees more easily. Default value is the employee's email.
employerBillingPlanIdstringtruenoneZentry Pass Employer Billing Plan Identifier.
billingPlanHistory[BillingPlanHistory]truenoneThis is a list of billing plans this user has had in the past
statusEmployeeStatustruenonenone
statusUpdatedDatestring(date-time)truenoneThe last time the employee's status was updated

EmployeeIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"employerUserId": "johnsmith@zentrypass.com",
"employerBillingPlanId": "926d3163ee1ffbbdb47b6a76",
"billingPlanHistory": [
{
"employerBillingPlanId": "string",
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
}
],
"status": "Active",
"statusUpdatedDate": "2019-08-24T14:15:22Z"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

NameTypeRequiredRestrictionsDescription
data[Employee]trueread-onlyThe paged data
pagedRequestIPagedRequesttruenonenone
totalCountinteger(int32)trueread-onlyThe total number of items available

EmployeeInquiry

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"companyName": "string",
"employeeName": "string",
"email": "string",
"title": "string",
"referralContact": {
"name": "string",
"email": "string"
}
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe unique identifier for this entity
dateCreatedstring(date-time)truenoneThe initial date this entity was created
dateUpdatedstring(date-time)truenoneThe last time this entity was updated
companyNamestringtruenonenone
employeeNamestringtruenonenone
emailstringtruenonenone
titlestringtruenonenone
referralContactReferralfalsenonenone

EmployeeQuery

{
"offset": 0,
"limit": 25,
"employerIds": [
"686d3163ee1ffbbdb38b6a74"
],
"userIds": [
"686d3163ee1ffbbdb38b6a74"
],
"employerUserIds": [
"AN ID IN YOUR SYSTEM"
]
}

Get employees

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
employerIds[string]¦nullfalsenoneA list of Zentry Pass Employer Identifiers
userIds[string]¦nullfalsenoneA list of Zentry Pass User Identifiers
employerUserIds[string]¦nullfalsenoneThese are identifiers from the Employer's source system

EmployeeStatus

"Active"

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousActive
anonymousInactive

Employer

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "Zentry Pass",
"address": {
"line1": "11 N 4th St",
"line2": "string",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
},
"email": "employer@zentrypass.com"
}

NameTypeRequiredRestrictionsDescription
idstringtruenoneThe unique identifier for this entity
dateCreatedstring(date-time)truenoneThe initial date this entity was created
dateUpdatedstring(date-time)truenoneThe last time this entity was updated
namestringtruenoneThe name of this employer
addressAddresstruenonenone
emailstringtruenoneThe email used for communicating with this employer

EmployerIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "Zentry Pass",
"address": {
"line1": "11 N 4th St",
"line2": "string",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
},
"email": "employer@zentrypass.com"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

NameTypeRequiredRestrictionsDescription
data[Employer]trueread-onlyThe paged data
pagedRequestIPagedRequesttruenonenone
totalCountinteger(int32)trueread-onlyThe total number of items available

EmployerQuery

{
"offset": 0,
"limit": 25,
"employerIds": [
"string"
]
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
employerIds[string]¦nullfalsenonenone

GetApplicationsRequest

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"ownerIds": [
"string"
]
}

NameTypeRequiredRestrictionsDescription
anonymousApplicationQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetEmployeesRequest

{
"offset": 0,
"limit": 25,
"employerIds": [
"686d3163ee1ffbbdb38b6a74"
],
"userIds": [
"686d3163ee1ffbbdb38b6a74"
],
"employerUserIds": [
"AN ID IN YOUR SYSTEM"
]
}

NameTypeRequiredRestrictionsDescription
anonymousEmployeeQueryfalsenoneGet employees

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetEmployersRequest

{
"offset": 0,
"limit": 25,
"employerIds": [
"string"
]
}

NameTypeRequiredRestrictionsDescription
anonymousEmployerQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetUsersWithRoleRequest

{
"role": "string",
"tenantId": "string"
}

NameTypeRequiredRestrictionsDescription
rolestringtruenonenone
tenantIdstringtruenonenone

IPagedRequest

{
"offset": 0,
"limit": 25
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)trueread-onlyHow far to skip into a collection
limitinteger(int32)trueread-onlyHow many results to return

InviteEmployeeRequest

{
"contact": {
"name": "John Smith",
"email": "johnsmith@zentrypass.com",
"phone": "5555555555"
},
"employerId": "686d3163ee1ffbbdb38b6a74",
"employerUserId": "[AN ID IN YOUR SYSTEM]",
"employerBillingPlanId": "926d3163ee1ffbbdb47b6a76"
}

NameTypeRequiredRestrictionsDescription
contactContacttruenoneInformation about the employee
employerIdstringtruenoneZentry Pass Employer Identifier
employerUserIdstring¦nullfalsenoneThis is an identifier from the Employer's source system. Used to identify employees more easily. Default value is the provided email.
employerBillingPlanIdstringtruenoneZentry Pass Employer Billing Plan Identifier.

Referral

{
"name": "string",
"email": "string"
}

NameTypeRequiredRestrictionsDescription
namestringtruenonenone
emailstringtruenonenone

RemoveUserRoleRequest

{
"email": "johnsmit@zentrypass.com",
"role": "EmployeeAdmin",
"employerId": "686d3163ee1ffbbdb38b6a74"
}

NameTypeRequiredRestrictionsDescription
emailstringtruenoneThe email of the admin
rolestringtruenoneThe name of the role to remove
employerIdstringtruenoneZentry Pass Employer Id

SubmitApplicationRequest

{
"applicationId": "string"
}

NameTypeRequiredRestrictionsDescription
applicationIdstringtruenonenone

UpdateApplicationRequest

{
"id": "string",
"name": "string",
"description": "string",
"address": {
"line1": "11 N 4th St",
"line2": "string",
"state": "Missouri",
"city": "St. Louis",
"zipCode": "63102"
}
}

NameTypeRequiredRestrictionsDescription
idstringtruenonenone
namestringtruenonenone
descriptionstringtruenonenone
addressAddresstruenonenone

UpdateEmployeeBillingPlanRequest

{
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"billingPlanId": "926d3163ee1ffbbdb47b6a76"
}

NameTypeRequiredRestrictionsDescription
employerIdstringtruenoneZentry Pass Employer Identifier.
userIdstringtruenoneZentry Pass User Identifier.
billingPlanIdstringtruenoneZentry Pass Employer Billing Plan Identifier.

UpdateEmployeeStatusRequest

{
"employerId": "514d3163ee1ffbbdb38b6c51",
"userId": "686d3163ee1ffbbdb38b6a74",
"status": "Active"
}

NameTypeRequiredRestrictionsDescription
employerIdstringtruenoneZentry Pass Employer Identifier.
userIdstringtruenoneZentry Pass User Identifier.
statusEmployeeStatustruenonenone

User

{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"pictureUrl": "string"
}

NameTypeRequiredRestrictionsDescription
idstringtruenonenone
emailstringtruenonenone
firstNamestringtruenonenone
lastNamestringtruenonenone
pictureUrlstring¦nullfalsenonenone

UserIPagedResponse

{
"data": [
{
"id": "string",
"email": "string",
"firstName": "string",
"lastName": "string",
"pictureUrl": "string"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

NameTypeRequiredRestrictionsDescription
data[User]trueread-onlyThe paged data
pagedRequestIPagedRequesttruenonenone
totalCountinteger(int32)trueread-onlyThe total number of items available