Create a facility. Facilities are related to a company as a physical resource.
OK
Bad Request
{- "name": "OH Cultivation Facility",
- "display_name": "OH CF",
- "reference_id": 1234,
- "identifier_code": 1234,
- "phone_number": "123-456-7890",
- "company_id": "3bca4bdef72849839fdf56e787a2ca40",
- "timezone": "America/New_York",
- "licenses": [
- {
- "license_number": "040-X0002"
}
], - "address": {
- "address_line_1": "123 farmlab st.",
- "address_line_2": "Suite 100",
- "address_line_3": null,
- "country": "USA",
- "county": "Cleveland",
- "city": "Cleveland",
- "state": "OH",
- "zip": 54321,
- "gps": "41.430329189481924, -81.75101155046161"
}
}{- "results": {
- "type": "array",
- "data": [
- {
- "id": "d01ba1a3db3643b09f9c497bb30d2529",
- "reference_id": "0000000001234",
- "name": "OH Cultivation Factory",
- "display_name": "OH CF #1",
- "identifier_code": "00000000001234",
- "phone_number": "123-432-1234",
- "timezone": "America/New_York",
- "licenses": [
- {
- "license_number": "040-X0002"
}
], - "address": {
- "address_line_1": "123 farmlab st.",
- "address_line_2": "Suite 100",
- "address_line_3": null,
- "country": "USA",
- "county": "Cleveland",
- "city": "Cleveland",
- "state": "OH",
- "zip": "54321",
- "gps": "41.430329189481924, -81.75101155046161"
}, - "entity_state": [
- {
- "state": "active",
- "date": "2024-01-08T17:59:45Z",
- "reason": "facility created",
- "actioned_by": "system_generated"
}, - {
- "state": "updated",
- "date": "2024-01-08T17:59:45Z",
- "reason": "facility updated",
- "actioned_by": "system_generated"
}
]
}
]
}, - "warnings": [ ]
}Gets a list of Facilities associated to your api key.
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "results": {
- "type": "array",
- "data": [
- {
- "id": "e1967c3bf9c84d7f828815f4814f5116",
- "reference_id": "000000000123",
- "name": null,
- "display_name": null,
- "identifier_code": "0000000000123",
- "phone_number": "123-432-1234",
- "timezone": "America/New_York",
- "licenses": [
- {
- "license_number": "040-X0002"
}
], - "address": {
- "address_line_1": "123 farmlab st.",
- "address_line_2": "Suite 100",
- "address_line_3": null,
- "country": "USA",
- "county": "Cleveland",
- "city": "Cleveland",
- "state": "OH",
- "zip": "54321",
- "gps": null
}, - "entity_state": [
- {
- "state": "active",
- "date": "2024-01-05T15:27:39Z",
- "reason": "facility created",
- "actioned_by": "system_generated"
}, - {
- "state": "updated",
- "date": "2024-01-05T15:27:39Z",
- "reason": "facility updated",
- "actioned_by": "system_generated"
}
]
}
]
}, - "warnings": [ ]
}Get the Facility details for the Facility {id} path parameter.
| id required | string Reference (entity_ID) for the Facility you are retrieving. Example: f6c3a86531294b0c83eacc1104a6a680 |
| state required | string Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating. |
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "results": {
- "type": "object",
- "data": {
- "id": "12345",
- "reference_id": "WASTATE1.MM24R",
- "name": "KMPL Manufacturing",
- "display_name": "KMPL Mfg",
- "identifier_code": "JALLCT1",
- "phone_number": "408-123-4567",
- "deleted": false,
- "licenses": [
- {
- "license_number": "KMPL20200815",
- "type": {
- "name": "M-Type 1"
}, - "start_date": "2021-01-12T00:00:00Z",
- "end_date": "2022-01-12T00:00:00Z"
}
], - "address": {
- "address_line_1": "577 Stoneybrook Road",
- "address_line_2": "Suite 100",
- "address_line_3": null,
- "country": "USA",
- "county": "Los Angeles",
- "city": "WEST HOLLYWOOD",
- "state": "CA",
- "zip": "92069",
- "gps": "37.33250383310398, -121.90493842065254"
}, - "entity_state": [
- {
- "state": "active",
- "date": "2021-01-12T05:27:39Z",
- "reason": "facility added",
- "actioned_by": "admin@kmp.com"
}
]
}
}, - "warnings": [ ]
}Update a Facility.
| id required | string reference (entity_ID) for the Facility you are updating. Example: 6ba36fba946d4de583b2f994f6297fd8 |
| state required | string Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating. |
OK
object | |||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||
Array of objects | |||||||||||||||||||||||||||||||||||||||||||||||
Bad Request
{- "update_date": "2024-01-08T11:15:01Z",
- "phone_number": "098-765-4321"
}{- "results": {
- "type": "object",
- "data": {
- "id": "d01ba1a3db3643b09f9c497bb30d2529",
- "reference_id": "0000000001234",
- "name": "OH Cultivation Factory",
- "display_name": "OH CF #1",
- "identifier_code": "00000000001234",
- "phone_number": "098-765-4321",
- "timezone": "America/New_York",
- "licenses": [
- {
- "license_number": "040-X0002"
}
], - "address": {
- "address_line_1": "123 farmlab st.",
- "address_line_2": "Suite 100",
- "address_line_3": null,
- "country": "USA",
- "county": "Cleveland",
- "city": "Cleveland",
- "state": "OH",
- "zip": "54321",
- "gps": null
}, - "entity_state": [
- {
- "state": "active",
- "date": "2024-01-08T17:59:45Z",
- "reason": "facility created",
- "actioned_by": "system_generated"
}, - {
- "state": "updated",
- "date": "2024-01-08T18:36:50Z",
- "reason": "facility updated",
- "actioned_by": "system_generated"
}, - {
- "state": "field_updates",
- "date": "2024-01-08T11:15:01Z",
- "reason": "phone_number updated",
- "actioned_by": "system_generated"
}
]
}
}, - "warnings": [ ]
}Delete a Facility.
| id required | string Reference (entity_ID) for the facility you are deleting. Example: 6ba36fba946d4de583b2f994f6297fd8 |
| state required | string Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating. |
{- "results": {
- "type": "object",
- "data": {
- "id": "e1967c3bf9c84d7f828815f4814f5116",
- "deleted": true
}
}, - "warnings": [ ]
}