Create an employee associated with the license_number provided.
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMPL20200818"
}, - "name": {
- "first_name": "Judau",
- "last_name": "Ashita"
}, - "email_address": "jashita@greencheckverified.com",
- "phone_number": "408-123-4567",
- "type": {
- "id": "5"
}, - "facilities": [
- {
- "id": "12345"
}
], - "credentials": [
- {
- "username": "jdoe@kmpl.com",
- "password": "mysecurepassword",
- "software_name": "metrc",
- "state": "ca",
- "api_key": "1234567889asfasdfafaasfd",
- "other": "other required value"
}
], - "permission_groups": [
- {
- "id": "1"
}
], - "birthday": "2000-01-03T00:00:00Z",
- "hire_date": "2019-01-03T00:00:00Z"
}{- "results": {
- "type": "object",
- "data": {
- "id": "25689",
- "name": {
- "first_name": "Judau",
- "last_name": "Ashita"
}, - "email_address": "jashita@greencheckverified.com",
- "phone_number": "408-123-4567",
- "type": {
- "id": "5",
- "name": "full-time"
}, - "company": {
- "id": "234",
- "name": "KMPL Cannabis"
}, - "facilities": [
- {
- "id": "12345",
- "name": "KMPL Manufacturing",
- "license": {
- "license_number": "KMPL20200818",
- "type": {
- "name": "Type 12"
}
}
}
], - "occupational_licenses": [ ],
- "credentials": [
- {
- "username": "jdoe@kmpl.com",
- "password": "mysecurepassword",
- "software_name": "metrc",
- "state": "ca",
- "api_key": "1234567889asfasdfafaasfd",
- "other": "other required value"
}
], - "permission_groups": [
- {
- "id": "1",
- "name": "Administration"
}
], - "birthday": "2000-01-03T00:00:00Z",
- "hire_date": "2019-01-03T00:00:00Z",
- "termination_date": "",
- "entity_state": [
- {
- "state": "active",
- "date": "2021-01-12T05:27:39Z",
- "reason": "employee created",
- "actioned_by": "admin@kmp.com"
}
]
}
}, - "warnings": [ ]
}Retrieve employee details. If the id path parameter is not provided in the request, the response will contain all the active employees for the license_number provided.
| license_number required | string Reference (entity_ID) for the license. This is the business license number issued by the state. Example: license_number=ABC-1234 |
| entity_state | string Queryable entity states for employee. Inactive will return terminated and deleted employees. |
| start_date | string Starting date in ISO 8601 UTC format for the time range of employee's modifications. Only applicable if entity_state query parameter is used. Example: start_date=2020-09-04 |
| end_date | string End date in ISO 8601 UTC format for the time range of employee's modifications. Only applicable if entity_state query parameter is used. |
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "results": {
- "type": "object",
- "data": {
- "id": "25689",
- "name": {
- "first_name": "Judau",
- "last_name": "Ashita"
}, - "email_address": "jashita@greencheckverified.com",
- "phone_number": "408-123-4567",
- "type": {
- "id": "5",
- "name": "full-time"
}, - "company": {
- "id": "234",
- "name": "KMPL Cannabis"
}, - "facilities": [
- {
- "id": "12345",
- "name": "KMPL Manufacturing",
- "license": {
- "license_number": "KMPL20200818",
- "type": {
- "name": "Type 12"
}
}
}
], - "occupational_licenses": [ ],
- "credentials": [
- {
- "username": "jdoe@kmpl.com",
- "password": "mysecurepassword",
- "software_name": "metrc",
- "state": "ca",
- "api_key": "1234567889asfasdfafaasfd",
- "other": "other required value"
}
], - "permission_groups": [
- {
- "id": "1",
- "name": "Administration"
}
], - "birthday": "2000-01-03T00:00:00Z",
- "hire_date": "2019-01-03T00:00:00Z",
- "termination_date": "",
- "entity_state": [
- {
- "state": "active",
- "date": "2021-01-12T05:27:39Z",
- "reason": "employee created",
- "actioned_by": "admin@kmp.com"
}
]
}
}, - "warnings": [ ]
}Update employee registered under the license_number provided.
required | object | ||||||||||||
object The name of the employee. | |||||||||||||
| email_address | string The employee's email address. | ||||||||||||
| phone_number | string The phone number of the employee. | ||||||||||||
object The type of employment (e.g. full-time, temporary, gig, etc.). List of available types can be obtained via the /employee_types endpoint). | |||||||||||||
Array of objects The list of facilities the employee is authorized to work in. | |||||||||||||
Array of objects A list of occupational licenses held by the employee. | |||||||||||||
Array of objects The list of credentials the employee has for the track & trace system(s) (NOTE: not used in some states).
| |||||||||||||
Array
| |||||||||||||
Array of objects The list of permission groups the employee has been assigned. Required if this employee will be using track & trace system. | |||||||||||||
| birthday | string The employees birthday in ISO 8601 UTC format. | ||||||||||||
| hire_date | string The date the employee was hired in ISO 8601 UTC format. | ||||||||||||
| termination_date | string or null The date the employee's employment was terminated in ISO 8601 UTC format. | ||||||||||||
Array of objects A list of state changes made to the entity. Entity states for employees [active, inactive, deleted] | |||||||||||||
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "license": {
- "license_number": "KMPL20200818"
}, - "name": {
- "first_name": "Judau",
- "last_name": "Ashita"
}, - "facilities": [
- {
- "id": "12345"
}, - {
- "id": "12346"
}
], - "email_address": "jashita@greencheckverified.com",
- "phone_number": "408-123-4567",
- "type": {
- "id": "5"
}, - "credentials": [
- {
- "username": "jdoe@kmpl.com",
- "password": "mysecurepassword",
- "software_name": "metrc",
- "state": "ca",
- "api_key": "1234567889asfasdfafaasfd",
- "other": "other required value"
}
], - "permission_groups": [
- {
- "id": "1"
}
], - "birthday": "2000-01-03T00:00:00Z",
- "hire_date": "2019-01-03T00:00:00Z",
- "entity_state": [
- {
- "state": "inactive",
- "date": "2021-01-12T05:27:39Z",
- "reason": "employee on leave",
- "actioned_by": "admin@kmp.com"
}
]
}{- "results": {
- "type": "object",
- "data": {
- "id": "25689",
- "name": {
- "first_name": "Judau",
- "last_name": "Ashita"
}, - "email_address": "jashita@greencheckverified.com",
- "phone_number": "408-123-4567",
- "type": {
- "id": "5",
- "name": "full-time"
}, - "company": {
- "id": "234",
- "name": "KMPL Cannabis"
}, - "facilities": [
- {
- "id": "12345",
- "name": "KMPL Manufacturing",
- "license": {
- "license_number": "KMPL20200818",
- "type": {
- "name": "Type 12"
}
}
}, - {
- "id": "12346",
- "name": "KMPL Manufacturing #2",
- "license": {
- "license_number": "KMPL20200819",
- "type": {
- "name": "Type 12"
}
}
}
], - "occupational_licenses": [ ],
- "credentials": [
- {
- "username": "jdoe@kmpl.com",
- "password": "mysecurepassword",
- "software_name": "metrc",
- "state": "ca",
- "api_key": "1234567889asfasdfafaasfd",
- "other": "other required value"
}
], - "permission_groups": [
- {
- "id": "1",
- "name": "Administration"
}
], - "birthday": "2000-01-03T00:00:00Z",
- "hire_date": "2019-01-03T00:00:00Z",
- "termination_date": "",
- "entity_state": [
- {
- "state": "inactive",
- "date": "2021-01-12T05:27:39Z",
- "reason": "employee on leave",
- "actioned_by": "admin@kmp.com"
}
]
}
}, - "warnings": [ ]
}Delete employee.
| id required | string Reference (entity_ID) for the employee you are deleting. Example: 1234 |
| state required | string Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating. |
{- "license": {
- "license_number": "KMPL20200818"
}
}{- "results": {
- "type": "object",
- "data": {
- "id": "234",
- "deleted": true
}
}, - "warnings": [ ]
}Retrieve a list of employee types
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "1",
- "name": "full-time"
}, - {
- "id": "2",
- "name": "part-time"
}, - {
- "id": "3",
- "name": "temporary"
}, - {
- "id": "4",
- "name": "gig"
}
]
}, - "warnings": [ ]
}