Skip to main content
POST
Create TimePass
A Pass (internally TimePass) is a prepaid check-in allowance for a location, configured as either a day pass or a time-limited pass with availability, customer, pricing, and access-control rules.

Authentication

This endpoint requires OAuth2 authentication. Include a valid bearer token in the Authorization header. The authenticated user must be a full unrestricted administrator or have the TimePass-Create role.

Request Body

Required Fields

integer
required
ID of the location that owns this pass and supplies its default location scope and local check-in schedule..
string
required
Required pass name, up to 254 characters; this is the customer-facing name used to identify the pass..
number
required
Base amount charged in the selected currency; the lowest matching plan-specific special price overrides this amount for eligible members..
integer
required
ID of the ISO 4217 currency used for the pass price and plan-specific special prices..

Optional Fields

string
Optional custom text shown on invoice lines instead of the pass name..
integer
Non-negative total check-in allowance in minutes; leave null for a day pass that can be used repeatedly during one calendar day..
boolean
Whether check-ins made with this pass count against the customer’s plan check-in and time limits..
boolean
Whether this pass can be automatically sold to members who check in without a valid pass when pay-as-you-go check-in is enabled..
boolean
Whether this pass can be automatically sold to contacts without an active contract who check in without a valid pass when pay-as-you-go check-in is enabled..
integer
Optional pass-selection priority when a customer has multiple valid passes; higher values are used first and null is treated as normal priority (0)..
integer
Optional ID of the standard tax rate applied when this pass is invoiced..
integer
Optional ID of the reduced tax rate applied when the customer qualifies for reduced taxation..
integer
Optional ID of the tax rate applied when the customer is tax exempt..
integer
Optional ID of the financial account used to record pass revenue..
integer[]
List of locations where this pass can be used; when empty, it is valid at the owning location and its child locations, while a non-empty list restricts use to those locations..
string
Optional external Kisi access-control group ID assigned to customers using this pass..
string
Optional external DoorGuard access-control group ID assigned to customers using this pass..
string
Legacy single access-control group ID; do not use this field because provider-specific access groups are managed through the current access-control integration..
boolean
Whether a customer holding this pass can check in to the location’s connected IT network..
boolean
Whether this pass is restricted to contacts without an active contract; do not combine with OnlyForMembers..
boolean
Whether this pass is restricted to members with an active contract; when Tariffs is non-empty, the member must have an active contract on one of those plans, and this must not be combined with OnlyForContacts..
integer[]
List of plans whose active members can use this pass when OnlyForMembers is true; an empty list allows members on any plan..
boolean
Whether this pass is archived and should no longer appear in active pass lists..

Code Examples

Response

200

integer
HTTP status code. 200 on success.
string
A human-readable message confirming the creation.
object
Contains the Id of the newly created record.
boolean
true if the timepass was created successfully.
array
null on success.
Example Response

400

string
A summary of the validation error(s), in the format PropertyName: error message.
any
null on validation failure.
object[]
Array of validation errors.
boolean
false when the request fails validation.
Example Response