Skip to main content
PATCH
Update an employee

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required
Pattern: ^[0-9]+$

Body

application/json

Values for updating an employee. An omitted property is left unchanged, and an explicit null clears a property that permits one.

authentication_rule
object | null

How the employee signs in at the point of sale, or null to sign in with a PIN. Every method the rule names must have its credential set on the employee.

badge_barcode
string | null

Barcode on the badge the employee scans to sign in at the point of sale, or null for none. Unique within the banner. A deactivated employee cannot hold one unless the same request reactivates them.

deactivated_at
string<date-time> | null

When the employee was deactivated. Null means active, so setting it back to null reactivates the employee. Deactivating releases the employee's PIN and barcode so another employee can take them.

email_address
string<email> | null

Employee's email address, or null for none. Unique within the banner.

Maximum string length: 254
first_name
string

Employee's first name.

last_name
string

Employee's last name.

pin
string | null

Numeric PIN the employee enters to sign in at the point of sale, or null for none. Six digits, and unique within the banner. A deactivated employee cannot hold one unless the same request reactivates them.

Required string length: 6
Pattern: ^[0-9]+$
roles
object[]

Roles the employee holds. Supplying this replaces every role the employee holds.

Maximum array length: 200

Response

A staff member at a store, to whom point-of-sale activity can be attributed.

id
string
required

Unique identifier for the record.

authentication_rule
object | null
required

Effective rule that determines how the employee authenticates at the POS.

created_at
string<date-time>
required

When the record was created.

deactivated_at
string<date-time> | null
required

When the employee was deactivated, or null when the employee is active.

editable
boolean
required

Whether the employee can be changed. Employees Vori creates and manages are not editable.

email_address
string<email> | null
required

Employee's email address, or null when none is configured.

Maximum string length: 254
first_name
string
required

Employee's first name.

last_name
string
required

Employee's last name.

roles
object[]
required

Roles assigned to the employee.

updated_at
string<date-time>
required

When the record was last changed.

virtual
boolean
required

Whether the employee exists only to attribute orders and cannot sign in at a terminal.

badge_barcode
string | null

Barcode on the badge the employee scans to sign in at the point of sale, or null when none is configured. Returned only when requested with include=badge_barcode by a caller holding the employees:read_credentials permission, and absent from the response otherwise.

pin
string | null

Numeric PIN used by the employee for POS authentication, or null when none is configured. Returned only when requested with include=pin by a caller holding the employees:read_credentials permission, and absent from the response otherwise.

Required string length: 6
Pattern: ^[0-9]+$