Deletes a restaurant employee record by marking the record as deleted. A deleted employee cannot log in at the restaurant or open new time entries.
If you GET an employee record that has been deleted, its
deleted value is true and its deletedDate value contains
the date and time the record was deleted.
If you delete an employee that has already been deleted then the result is successful (200) and no change is made.
The deleted record appears in the list of deleted employees for the restaurant in Toast Web. From the list of deleted employees, you can enable a deleted record so that the employee can use it again. Information about deleted employees remains available in reports.
You cannot delete employees who have open time entries (time entries that do not have an out date value).
The employee has been deleted. Returns an Employee object
containing information about the deleted restaurant
employee.
The GUID or external identifier was malformed.
The GUID or external identifier does not match any employees at the current restaurant.
An unexpected internal error occurred. There is a
requestId attached to this error that can be referenced
by Toast support.
curl -i -X DELETE \ 'https://toast-api-server/labor/v1/employees/{employeeId}' \ -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \ -H 'Toast-Restaurant-External-ID: string'
{- "guid": "string",
- "entityType": "string",
- "externalId": "string",
- "createdDate": "2019-08-24T14:15:22Z",
- "modifiedDate": "2019-08-24T14:15:22Z",
- "deletedDate": "2019-08-24T14:15:22Z",
- "firstName": "string",
- "chosenName": "string",
- "lastName": "string",
- "email": "string",
- "phoneNumber": "string",
- "phoneNumberCountryCode": "string",
- "passcode": "string",
- "externalEmployeeId": "string",
- "deleted": true,
- "jobReferences": [
- {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}
], - "wageOverrides": [
- {
- "wage": 0,
- "jobReference": {
- "guid": "string",
- "entityType": "string",
- "externalId": "string"
}
}
], - "v2EmployeeGuid": "string"
}