Skip to main content

Zentry.Billing.Api v1.0

Base URLs:

Authentication

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

Employer

GetEmployerBillingProfile

GET /Employer/{EmployerId}/profile

Parameters

NameInTypeRequiredDescription
EmployerIdpathstringtruenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployerBillingProfile

EmployerInvoice

GetEmployerInvoices

POST /EmployerInvoice

Body parameter

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

Parameters

NameInTypeRequiredDescription
bodybodyGetEmployerInvoicesRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployerInvoiceIPagedResponse

GET /EmployerInvoice/{InvoiceId}/link

NameInTypeRequiredDescription
InvoiceIdpathstringtruenone
StatusMeaningDescriptionSchema
200OKOKGetEmployerInvoiceLinkResponse

EmployerLicense

GetEmployerLicenses

POST /EmployerLicense

Body parameter

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

Parameters

NameInTypeRequiredDescription
bodybodyGetEmployerLicensesRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployerLicenseIPagedResponse

UpsertEmployerLicense

POST /EmployerLicense/upsert

Body parameter

{
"employerId": "string",
"name": "Starter",
"cost": 8000,
"checkInTokens": 60,
"canReserveRoom": false,
"futurePrice": 10000,
"monthsUntilPriceIncrease": 2
}

Parameters

NameInTypeRequiredDescription
idquerystringfalsenone
bodybodyUpsertEmployerLicenseRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKEmployerLicense

Payment

GetPayments

POST /Payment

Body parameter

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

Parameters

NameInTypeRequiredDescription
bodybodyGetPaymentsRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKPaymentIPagedResponse

CreateUserPayment

POST /Payment/user/create

Body parameter

{
"userId": "string",
"amount": 0
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateUserPaymentRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKPayment

GetUserCostBreakdown

GET /Payment/user/breakdown

Parameters

NameInTypeRequiredDescription
Amountqueryinteger(int64)falseThe amount in cents.
UserIdquerystringfalseThe id of the user to get the breakdown for

Responses

StatusMeaningDescriptionSchema
200OKOKGetCostBreakdownResponse

Stripe

GetSetupIntent

GET /Stripe/setup-intent

Responses

StatusMeaningDescriptionSchema
200OKOKStripeSetupIntentResponse

SyncPaymentSetupIntent

GET /Stripe/sync/{Id}

Parameters

NameInTypeRequiredDescription
requestheaderSyncSetupIntentRequestfalsenone
Idpathstringtruenone

Responses

StatusMeaningDescriptionSchema
200OKOKNone

UserBillingProfile

GetUserBillingProfiles

POST /UserBillingProfile

Body parameter

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

Parameters

NameInTypeRequiredDescription
bodybodyGetUserBillingProfilesRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKUserBillingProfileIPagedResponse

UserLicense

GetUserLicenses

POST /EmployeeLicense

Body parameter

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"tenantIds": [
"string"
],
"userIds": [
"string"
],
"statuses": [
"Pending"
],
"expirationDateRange": {
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
},
"type": "User",
"employerIds": [
"string"
]
}

Parameters

NameInTypeRequiredDescription
bodybodyGetUserLicensesRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKUserLicenseIPagedResponse

CreateEmployeeLicense

POST /UserLicense/create

Body parameter

{
"employerId": "926d3163ee1ffbbdb47b6a76",
"licenseId": "926d3163ee1ffbbdb47b6a76",
"userId": "926d3163ee1ffbbdb47b6a76"
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateEmployeeLicenseRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKUserLicense

Workspace

GET /Workspace/profile/link

NameInTypeRequiredDescription
2fa-codeheaderstringfalsenone
StatusMeaningDescriptionSchema
200OKOKGetBillingProfileLinkResponse

GetWorkspaceBillingProfile

GET /Workspace/profile

Responses

StatusMeaningDescriptionSchema
200OKOKWorkspaceBillingProfile

WorkspaceInvoice

CreateWorkspaceInvoice

POST /WorkspaceInvoice/create

Body parameter

{
"workspaceId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateWorkspaceInvoiceRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKWorkspaceInvoice

PreviewWorkspaceInvoice

POST /WorkspaceInvoice/preview

Body parameter

{
"workspaceId": "string"
}

Parameters

NameInTypeRequiredDescription
bodybodyCreateWorkspaceInvoiceRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKWorkspaceInvoice

GetWorkspaceInvoices

POST /WorkspaceInvoice

Body parameter

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

Parameters

NameInTypeRequiredDescription
bodybodyGetWorkspaceInvoicesRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKWorkspaceInvoiceIPagedResponse

GET /WorkspaceInvoice/{InvoiceId}/link

NameInTypeRequiredDescription
InvoiceIdpathstringtruenone
StatusMeaningDescriptionSchema
200OKOKGetWorkspaceInvoiceLinkResponse

WorkspaceLicense

GetWorkspaceLicenses

POST /WorkspaceLicense

Body parameter

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"tenantIds": [
"string"
],
"userIds": [
"string"
],
"statuses": [
"Pending"
],
"expirationDateRange": {
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
},
"type": "User"
}

Parameters

NameInTypeRequiredDescription
bodybodyGetWorkspaceLicensesRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKWorkspaceLicenseIPagedResponse

WorkspaceLicenseTemplate

GetWorkspaceLicenseTemplates

POST /WorkspaceLicenseTemplate

Body parameter

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

Parameters

NameInTypeRequiredDescription
bodybodyGetWorkspaceLicenseTemplatesRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKWorkspaceLicenseTemplateIPagedResponse

UpsertWorkspaceLicenseTemplate

POST /WorkspaceLicenseTemplate/upsert

Body parameter

{
"name": "string",
"description": "string",
"workspaceId": "string",
"locationIds": [
"string"
],
"cost": 8000,
"billingFrequency": "Monthly"
}

Parameters

NameInTypeRequiredDescription
idquerystringfalsenone
bodybodyUpsertWorkspaceLicenseTemplateRequestfalsenone

Responses

StatusMeaningDescriptionSchema
200OKOKWorkspaceLicenseTemplate

Schemas

BillingFrequency

"Monthly"

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousMonthly
anonymousAnnually
anonymousOnce

CreateEmployeeLicenseRequest

{
"employerId": "926d3163ee1ffbbdb47b6a76",
"licenseId": "926d3163ee1ffbbdb47b6a76",
"userId": "926d3163ee1ffbbdb47b6a76"
}

NameTypeRequiredRestrictionsDescription
employerIdstringtruenoneZentry Pass Employer Id
licenseIdstringtruenoneZentry Pass Employer License Id.
userIdstringtruenoneZentry Pass User Id

CreateUserPaymentRequest

{
"userId": "string",
"amount": 0
}

NameTypeRequiredRestrictionsDescription
userIdstringtruenonenone
amountinteger(int64)truenonenone

CreateWorkspaceInvoiceRequest

{
"workspaceId": "string"
}

NameTypeRequiredRestrictionsDescription
workspaceIdstringtruenonenone

DateRange

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

NameTypeRequiredRestrictionsDescription
fromstring(date-time)truenoneThe start of the date range
tostring(date-time)truenoneThe end of the date range

EmployerBillingProfile

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"employerId": "926d3163ee1ffbbdb47b6a76",
"hasPaymentMethod": true,
"zipCode": "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
employerIdstringtruenoneZentry Pass Employer Id
hasPaymentMethodbooleantruenoneFlag indicating this employer has setup a payment method
zipCodestring¦nullfalsenoneThe billing zip code

EmployerInvoice

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"employerId": "string",
"status": "New",
"fromDate": "2019-08-24T14:15:22Z",
"toDate": "2019-08-24T14:15:22Z",
"subTotal": 0,
"feeTotal": 0,
"taxes": 0,
"total": 0
}

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
employerIdstringtruenonenone
statusInvoiceStatustruenonenone
fromDatestring(date-time)¦nullfalsenonenone
toDatestring(date-time)truenonenone
subTotalinteger(int64)truenonenone
feeTotalinteger(int64)¦nullfalsenonenone
taxesinteger(int64)¦nullfalsenonenone
totalinteger(int64)¦nullfalsenonenone

EmployerInvoiceIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"employerId": "string",
"status": "New",
"fromDate": "2019-08-24T14:15:22Z",
"toDate": "2019-08-24T14:15:22Z",
"subTotal": 0,
"feeTotal": 0,
"taxes": 0,
"total": 0
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

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

EmployerInvoiceQuery

{
"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

EmployerLicense

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"employerId": "string",
"name": "Starter",
"cost": 8000,
"checkInTokens": 60,
"canReserveRoom": false,
"futurePrice": 10000,
"monthsUntilPriceIncrease": 2
}

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
employerIdstringtruenoneZentry Pass Employer Id
namestringtruenoneThe name of the license
costinteger(int64)truenoneHow much this billing plan costs for the employee. Cost is in cents.
checkInTokensinteger(int32)truenoneThe number of tokens an employee is allocated for per month.
canReserveRoombooleantruenoneWhether this billing plan is allowed to reserve special rooms
futurePriceinteger(int64)¦nullfalsenoneFuture price that this license will increase to. Cost is in cents. Null if no future price increase is planned.
monthsUntilPriceIncreaseinteger(int32)¦nullfalsenoneNumber of months from employee activation date until the price increases to FuturePrice. Null if no future price increase is planned.

EmployerLicenseIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"employerId": "string",
"name": "Starter",
"cost": 8000,
"checkInTokens": 60,
"canReserveRoom": false,
"futurePrice": 10000,
"monthsUntilPriceIncrease": 2
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

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

EmployerLicenseQuery

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

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
ids[string]¦nullfalsenonenone
employerIds[string]¦nullfalsenoneList of Zentry Pass Employer Ids

Fee

{
"name": "string",
"amount": 0
}

NameTypeRequiredRestrictionsDescription
namestringtruenoneThe name of the fee
amountinteger(int64)truenoneThe amount of the fee in cents

GetBillingProfileLinkResponse

{
"link": "string"
}

NameTypeRequiredRestrictionsDescription
linkstringtruenonenone

GetCostBreakdownFee

{
"name": "string",
"amount": 0
}

NameTypeRequiredRestrictionsDescription
namestringtruenoneThe name of the fee
amountinteger(int64)truenoneThe amount of the fee in cents

GetCostBreakdownResponse

{
"amount": 0,
"fees": [
{
"name": "string",
"amount": 0
}
],
"feeTotal": 0,
"taxes": 0,
"total": 0
}

NameTypeRequiredRestrictionsDescription
amountinteger(int64)truenoneThe original amount in cents
fees[GetCostBreakdownFee]¦nullfalsenoneBreakdown of all the fees
feeTotalinteger(int64)¦nullfalseread-onlyThe amount in fees in cents.
taxesinteger(int64)truenoneThe amount of taxes in cents.
totalinteger(int64)truenoneThe total amount in cents

GetEmployerInvoiceLinkResponse

{
"link": "string"
}

NameTypeRequiredRestrictionsDescription
linkstringtruenonenone

GetEmployerInvoicesRequest

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

NameTypeRequiredRestrictionsDescription
anonymousEmployerInvoiceQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetEmployerLicensesRequest

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

NameTypeRequiredRestrictionsDescription
anonymousEmployerLicenseQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetPaymentsRequest

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

NameTypeRequiredRestrictionsDescription
anonymousPaymentQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetUserBillingProfilesRequest

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

NameTypeRequiredRestrictionsDescription
anonymousUserBillingProfileQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetUserLicensesRequest

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"tenantIds": [
"string"
],
"userIds": [
"string"
],
"statuses": [
"Pending"
],
"expirationDateRange": {
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
},
"type": "User",
"employerIds": [
"string"
]
}

NameTypeRequiredRestrictionsDescription
anonymousUserLicenseQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetWorkspaceInvoiceLinkResponse

{
"link": "string"
}

NameTypeRequiredRestrictionsDescription
linkstringtruenonenone

GetWorkspaceInvoicesRequest

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

NameTypeRequiredRestrictionsDescription
anonymousWorkspaceInvoiceQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetWorkspaceLicenseTemplatesRequest

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

NameTypeRequiredRestrictionsDescription
anonymousWorkspaceLicenseTemplateQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

GetWorkspaceLicensesRequest

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"tenantIds": [
"string"
],
"userIds": [
"string"
],
"statuses": [
"Pending"
],
"expirationDateRange": {
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
},
"type": "User"
}

NameTypeRequiredRestrictionsDescription
anonymousWorkspaceLicenseQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

IPagedRequest

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

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

InvoiceStatus

"New"

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousNew
anonymousComplete
anonymousFailed
anonymousProfileIncomplete
anonymousError

License

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "string",
"activationDate": "2019-08-24T14:15:22Z",
"expirationDate": "2019-08-24T14:15:22Z",
"billingFrequency": "Monthly",
"tenantId": "926d3163ee1ffbbdb47b6a76",
"userId": "926d3163ee1ffbbdb47b6a76",
"cost": 8000,
"status": "Pending",
"autoRenew": true,
"futurePrice": 10000,
"priceIncreaseDate": "2019-08-24T14:15:22Z",
"type": "User"
}

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 the license
activationDatestring(date-time)truenoneThe date this license becomes active
expirationDatestring(date-time)truenoneThe date this license expires
billingFrequencyBillingFrequencytruenonenone
tenantIdstringtruenoneZentry Pass Tenant Id
userIdstringtruenoneZentry Pass User Id
costinteger(int64)truenoneHow much this license costs. Cost is in cents.
statusLicenseStatustruenonenone
autoRenewbooleantruenoneWhether this plan should auto-renew
futurePriceinteger(int64)¦nullfalsenoneFuture price that this license will increase to. Cost is in cents. Null if no future price increase is planned.
priceIncreaseDatestring(date-time)¦nullfalsenoneThe date when the price will increase to FuturePrice. Null if no future price increase is planned.
typeLicenseTypetruenonenone

LicenseQuery

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"tenantIds": [
"string"
],
"userIds": [
"string"
],
"statuses": [
"Pending"
],
"expirationDateRange": {
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
},
"type": "User"
}

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
ids[string]¦nullfalsenonenone
tenantIds[string]¦nullfalsenonenone
userIds[string]¦nullfalsenonenone
statuses[LicenseStatus]¦nullfalsenonenone
expirationDateRangeDateRangefalsenonenone
typeLicenseTypefalsenonenone

LicenseStatus

"Pending"

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousPending
anonymousActive
anonymousSuspended
anonymousInactive

LicenseType

"User"

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousUser
anonymousWorkspace

LocationInvoice

{
"locationId": "string",
"locationName": "string",
"locationInvoiceDetails": [
{
"timeIn": "2019-08-24T14:15:22Z",
"cost": 0
}
],
"total": 0
}

NameTypeRequiredRestrictionsDescription
locationIdstringtruenonenone
locationNamestringtruenonenone
locationInvoiceDetails[LocationInvoiceDetail]truenonenone
totalinteger(int64)trueread-onlynone

LocationInvoiceDetail

{
"timeIn": "2019-08-24T14:15:22Z",
"cost": 0
}

NameTypeRequiredRestrictionsDescription
timeInstring(date-time)truenonenone
costinteger(int64)truenonenone

Payment

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"tenantId": "926d3163ee1ffbbdb47b6a76",
"subTotal": 0,
"fees": [
{
"name": "string",
"amount": 0
}
],
"feeTotal": 0,
"taxes": 0,
"total": 0,
"result": "Unknown",
"refund": {
"amount": 0,
"date": "2019-08-24T14:15:22Z",
"reason": "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
tenantIdstringtruenoneZentry Pass Tenant Id
subTotalinteger(int64)truenoneThe subtotal amount charged in cents
fees[Fee]¦nullfalsenoneBreakdown of all the fees on this payment
feeTotalinteger(int64)¦nullfalseread-onlyThe fees associated with the payment. Stored in cents.
taxesinteger(int64)¦nullfalsenoneHow much was charged in taxes in cents
totalinteger(int64)¦nullfalsenoneThe total amount charged including taxes
resultPaymentResulttruenonenone
refundRefundfalsenonenone

PaymentIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"tenantId": "926d3163ee1ffbbdb47b6a76",
"subTotal": 0,
"fees": [
{
"name": "string",
"amount": 0
}
],
"feeTotal": 0,
"taxes": 0,
"total": 0,
"result": "Unknown",
"refund": {
"amount": 0,
"date": "2019-08-24T14:15:22Z",
"reason": "string"
}
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

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

PaymentQuery

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

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

PaymentResult

"Unknown"

NameTypeRequiredRestrictionsDescription
anonymousstringfalsenonenone

Enumerated Values

PropertyValue
anonymousUnknown
anonymousSuccessful
anonymousFailed
anonymousRefunded

Refund

{
"amount": 0,
"date": "2019-08-24T14:15:22Z",
"reason": "string"
}

NameTypeRequiredRestrictionsDescription
amountinteger(int64)truenoneThe amount that was refunded if there was a refund issued
datestring(date-time)truenoneThe date of the refund
reasonstring¦nullfalsenoneThe reason for the refund

StripeSetupIntentResponse

{
"clientSecret": "string"
}

NameTypeRequiredRestrictionsDescription
clientSecretstringtruenonenone

SyncSetupIntentRequest

{
"id": "string"
}

NameTypeRequiredRestrictionsDescription
idstringtruenonenone

UpsertEmployerLicenseRequest

{
"employerId": "string",
"name": "Starter",
"cost": 8000,
"checkInTokens": 60,
"canReserveRoom": false,
"futurePrice": 10000,
"monthsUntilPriceIncrease": 2
}

NameTypeRequiredRestrictionsDescription
employerIdstringtruenoneZentry Pass Employer Id
namestringtruenoneThe name of the license
costinteger(int64)truenoneHow much this billing plan costs for the employee. Cost is in cents.
checkInTokensinteger(int32)truenoneThe number of tokens an employee is allocated for per month.
canReserveRoombooleantruenoneWhether this billing plan is allowed to reserve special rooms
futurePriceinteger(int64)¦nullfalsenoneFuture price that this license will increase to. Cost is in cents. Null if no future price increase is planned.
monthsUntilPriceIncreaseinteger(int32)¦nullfalsenoneNumber of months from employee activation date until the price increases to FuturePrice. Null if no future price increase is planned.

UpsertWorkspaceLicenseTemplateRequest

{
"name": "string",
"description": "string",
"workspaceId": "string",
"locationIds": [
"string"
],
"cost": 8000,
"billingFrequency": "Monthly"
}

NameTypeRequiredRestrictionsDescription
namestringtruenoneThe name of the license
descriptionstringtruenoneDescription of the license
workspaceIdstringtruenoneZentry Pass Workspace Id
locationIds[string]¦nullfalsenoneZentry Pass Location Ids this workspace license can be used at. If this is null, then it can be used at any location.
costinteger(int64)truenoneHow much this license costs. Cost is in cents.
billingFrequencyBillingFrequencytruenonenone

UserBillingProfile

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"userId": "926d3163ee1ffbbdb47b6a76",
"hasPaymentMethod": true,
"zipCode": "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
userIdstringtruenoneZentry Pass User Id
hasPaymentMethodbooleantruenoneFlag indicating this user has setup a payment method
zipCodestring¦nullfalsenoneThe billing zip code

UserBillingProfileIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"userId": "926d3163ee1ffbbdb47b6a76",
"hasPaymentMethod": true,
"zipCode": "string"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

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

UserBillingProfileQuery

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

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

UserLicense

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "string",
"activationDate": "2019-08-24T14:15:22Z",
"expirationDate": "2019-08-24T14:15:22Z",
"billingFrequency": "Monthly",
"tenantId": "926d3163ee1ffbbdb47b6a76",
"userId": "926d3163ee1ffbbdb47b6a76",
"cost": 8000,
"status": "Pending",
"autoRenew": true,
"futurePrice": 10000,
"priceIncreaseDate": "2019-08-24T14:15:22Z",
"type": "User",
"tokenDateRange": {
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
},
"checkInTokens": 60,
"canReserveRoom": false
}

NameTypeRequiredRestrictionsDescription
anonymousLicensefalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
» tokenDateRangeDateRangetruenonenone
» checkInTokensinteger(int32)truenoneThe number of tokens an employee is allocated for per month.
» canReserveRoombooleantruenoneWhether this license allows the employee to reserve special rooms

UserLicenseIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "string",
"activationDate": "2019-08-24T14:15:22Z",
"expirationDate": "2019-08-24T14:15:22Z",
"billingFrequency": "Monthly",
"tenantId": "926d3163ee1ffbbdb47b6a76",
"userId": "926d3163ee1ffbbdb47b6a76",
"cost": 8000,
"status": "Pending",
"autoRenew": true,
"futurePrice": 10000,
"priceIncreaseDate": "2019-08-24T14:15:22Z",
"type": "User",
"tokenDateRange": {
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
},
"checkInTokens": 60,
"canReserveRoom": false
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

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

UserLicenseQuery

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"tenantIds": [
"string"
],
"userIds": [
"string"
],
"statuses": [
"Pending"
],
"expirationDateRange": {
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
},
"type": "User",
"employerIds": [
"string"
]
}

NameTypeRequiredRestrictionsDescription
anonymousLicenseQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
» employerIds[string]¦nullfalsenonenone

WorkspaceBillingProfile

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"workspaceId": "string",
"payoutsEnabled": true
}

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
workspaceIdstringtruenoneZentry Pass Workspace Id
payoutsEnabledbooleantruenoneIndicates workspaces has payouts enabled

WorkspaceInvoice

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"workspaceId": "string",
"status": "New",
"fromDate": "2019-08-24T14:15:22Z",
"toDate": "2019-08-24T14:15:22Z",
"total": 0,
"locationInvoices": [
{
"locationId": "string",
"locationName": "string",
"locationInvoiceDetails": [
{
"timeIn": "2019-08-24T14:15:22Z",
"cost": 0
}
],
"total": 0
}
]
}

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
workspaceIdstringtruenonenone
statusInvoiceStatustruenonenone
fromDatestring(date-time)¦nullfalsenonenone
toDatestring(date-time)truenonenone
totalinteger(int64)truenonenone
locationInvoices[LocationInvoice]truenonenone

WorkspaceInvoiceIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"workspaceId": "string",
"status": "New",
"fromDate": "2019-08-24T14:15:22Z",
"toDate": "2019-08-24T14:15:22Z",
"total": 0,
"locationInvoices": [
{
"locationId": "string",
"locationName": "string",
"locationInvoiceDetails": [
{
"timeIn": "2019-08-24T14:15:22Z",
"cost": 0
}
],
"total": 0
}
]
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

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

WorkspaceInvoiceQuery

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

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

WorkspaceLicense

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "string",
"activationDate": "2019-08-24T14:15:22Z",
"expirationDate": "2019-08-24T14:15:22Z",
"billingFrequency": "Monthly",
"tenantId": "926d3163ee1ffbbdb47b6a76",
"userId": "926d3163ee1ffbbdb47b6a76",
"cost": 8000,
"status": "Pending",
"autoRenew": true,
"futurePrice": 10000,
"priceIncreaseDate": "2019-08-24T14:15:22Z",
"type": "User",
"locationId": "string"
}

NameTypeRequiredRestrictionsDescription
anonymousLicensefalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone
» locationIdstring¦nullfalsenoneZentry Pass Location Id. Optional.

WorkspaceLicenseIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "string",
"activationDate": "2019-08-24T14:15:22Z",
"expirationDate": "2019-08-24T14:15:22Z",
"billingFrequency": "Monthly",
"tenantId": "926d3163ee1ffbbdb47b6a76",
"userId": "926d3163ee1ffbbdb47b6a76",
"cost": 8000,
"status": "Pending",
"autoRenew": true,
"futurePrice": 10000,
"priceIncreaseDate": "2019-08-24T14:15:22Z",
"type": "User",
"locationId": "string"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

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

WorkspaceLicenseQuery

{
"offset": 0,
"limit": 25,
"ids": [
"string"
],
"tenantIds": [
"string"
],
"userIds": [
"string"
],
"statuses": [
"Pending"
],
"expirationDateRange": {
"from": "2019-08-24T14:15:22Z",
"to": "2019-08-24T14:15:22Z"
},
"type": "User"
}

NameTypeRequiredRestrictionsDescription
anonymousLicenseQueryfalsenonenone

and

NameTypeRequiredRestrictionsDescription
anonymousobjectfalsenonenone

WorkspaceLicenseTemplate

{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "string",
"description": "string",
"workspaceId": "string",
"locationIds": [
"string"
],
"cost": 8000,
"billingFrequency": "Monthly"
}

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 the license
descriptionstringtruenoneDescription of the license
workspaceIdstringtruenoneZentry Pass Workspace Id
locationIds[string]¦nullfalsenoneZentry Pass Location Ids this workspace license can be used at. If this is null, then it can be used at any location.
costinteger(int64)truenoneHow much this license costs. Cost is in cents.
billingFrequencyBillingFrequencytruenonenone

WorkspaceLicenseTemplateIPagedResponse

{
"data": [
{
"id": "184d3163ee1ffbbdb38b6c07",
"dateCreated": "2019-08-24T14:15:22Z",
"dateUpdated": "2019-08-24T14:15:22Z",
"name": "string",
"description": "string",
"workspaceId": "string",
"locationIds": [
"string"
],
"cost": 8000,
"billingFrequency": "Monthly"
}
],
"pagedRequest": {
"offset": 0,
"limit": 25
},
"totalCount": 100
}

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

WorkspaceLicenseTemplateQuery

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

NameTypeRequiredRestrictionsDescription
offsetinteger(int32)truenoneHow far to skip into a collection
limitinteger(int32)truenoneHow many results to return
ids[string]¦nullfalsenoneList of Workspace License Ids
workspaceIds[string]¦nullfalsenoneList of Zentry Pass Workspace Ids