Create a Facility

Create a facility. Facilities are related to a company as a physical resource.

SecurityApiKeyAuth and CustomAuth
Request
path Parameters
state
required
string

Lower case ANSI standard 38:2009 USPS codes of the US state where licensee is operating.

Enum: "ca" "il" "wa" "ma" "md" "mi" "wv" "co" "ok" "oh"
header Parameters
x-api-key
required
string

Trace API key header

Example: b123x21wbHlkYXBpa2V5
Authorization
required
string

Company and user credentials authentication

Example: KMP-JSON token=dmVuZG9yLWFwaS1rZXk6dX12312sdfs2V5
Request Body schema: application/json
name
required
string

Unique Facility name.

reference_id
required
string

Unique Reference ID from track and trace system.

identifier_code
required
string

Unique identifier code used by some states.

phone_number
required
string

15 character string to store phone number for the facility.

company_id
required
string

Trace Company id to associate the facility to.

timezone
required
string

Timezone facility is located in.

required
Array of objects

licenses belonging to the company

address
required
object

Address of the facility

Responses
200

OK

400

Bad Request

post/{state}/v1/config/facilities
Request samples
application/json
{
  • "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": [
    ],
  • "address": {
    }
}
Response samples
application/json
{
  • "results": {
    },
  • "warnings": [ ]
}