{
  "info": {
    "title": "T3 API",
    "version": "v2",
    "description": "## LLM / AI AGENT USAGE\n\nIf you are an LLM or AI agent, see [/llms.txt](/llms.txt) for a quickstart guide.\n\n## WHAT IS THIS?\n\nThis API is part of the [Track & Trace Tools](https://trackandtrace.tools) platform. The API allows you to programmatically access all your Metrc data that is available on metrc.com\n\nIt is not related to the Metrc 3rd party API, does not use Metrc API keys, and is not affiliated with Metrc.\n\nIf you're looking for where to get started, check out the [T3 Wiki API Getting Started guide](https://github.com/classvsoftware/t3-wiki/wiki/T3-API-:-Getting-Started).\n\nThe T3 API is subject to the [Track & Trace Tools Terms of Use](https://www.trackandtrace.tools/terms-of-use).\n\n## FREE API ACCESS (LIMITED)\n\nThe T3 API features a limited number of free endpoints available to anyone with a Metrc login.\n\nThese can be found in the [Free](#/Free) section.\n\n## FULL API ACCESS\n\nFull API access requires a [T3+](https://trackandtrace.tools/plus) subscription. Two steps:\n\n1. **[Subscribe to T3+](https://wiki.trackandtrace.tools/t3-plus/#subscribing-to-t3)** \u2014 each plan includes a fixed number of seats.\n\n2. **[Register your Metrc username](https://wiki.trackandtrace.tools/t3-plus/#registering-a-metrc-username-in-t3)** \u2014 one seat per username. Access is enabled per-username across the whole T3 platform.\n\nSee the [T3+ wiki page](https://wiki.trackandtrace.tools/t3-plus/) for seat allocation examples and how to verify your registration.\n\nFor custom or enterprise arrangements, [reach out](mailto:matt@trackandtrace.tools).\n\n## AUTHENTICATION\n\nThe T3 API supports two authentication formats. Every endpoint that requires authentication accepts either one.\n\nSee the [Authentication wiki page](https://wiki.trackandtrace.tools/t3-api/authentication/) for a full comparison.\n\n### 1. Credential Authentication (Bearer JWT)\n\nExchange your Metrc credentials at `POST /v2/auth/credentials` for a short-lived JWT. Send it on every subsequent request:\n\n`Authorization: Bearer <jwt>`\n\nCredentials required:\n\n- **hostname**: (The website you use to login to metrc: `ca.metrc.com`, `or.metrc.com`, etc.)\n- **username**: Your Metrc username\n- **email**: Your Metrc email (Only applies to Colorado users)\n- **password**: Your Metrc password\n- **otp**: A one-time password used for 2-factor authentication (Only applies to Michigan users)\n\nRefer to the **Authentication** endpoints below for more information.\n\n### 2. Secret Key Authentication\n\nGenerate a secret key once at `POST /v2/auth/secretkey`, then send it on every request via either the header (preferred) or the query parameter:\n\n`X-T3-API-Key: <yourSecretKeyGoesHere>`\n\n*OR*\n\n`?secretKey=<yourSecretKeyGoesHere>`\n\nWhen both are present, the header value wins. The same secret key shares a single rate-limit bucket across both forms.\n\nSecret keys work on every endpoint that requires authentication.\n\n#### Generating Secret Keys\n\nRefer to the [/v2/auth/secretkey](#/Authentication/post_v2_auth_secretkey) endpoint for information on generating secret keys.\n\n[Secret Key Generation Tool](/v2/pages/secret-key)\n\n[Sync Link Creation Tool](/v2/pages/sync-link)\n\n#### Important: Regenerate Your Secret Key When Credentials Change\n\nYour secret key embeds a snapshot of the credentials you supplied at creation time. If **any** of the following change in Metrc, the existing secret key stops working and you must delete it and generate a new one:\n\n- Password\n- Email (Colorado)\n- Username\n- One-time password (OTP) seed (Michigan)\n\n## SECURITY\n\nThe T3 API interacts with Metrc in a similar manner to the [Track & Trace Tools](https://chromewebstore.google.com/detail/track-trace-tools/dfljickgkbfaoiifheibjpejloipegcb) Chrome extension. The API login process is designed with a strong emphasis on security, but the security model differs between the two auth formats \u2014 read carefully:\n\n### Credential Authentication\n\n- **Single-Use Login Credentials:**\n  - When you obtain a JWT, the T3 API uses your login credentials only once to authenticate with Metrc.\n  - After the Metrc login process is complete, your login credentials are immediately deleted from the system.\n  - You are required to enter your login credentials each time you obtain a JWT, ensuring that your credentials are never stored.\n\n- **Secure Temporary Session Storage:**\n  - The T3 API securely encrypts your logged-in Metrc session data in Redis. This data is only used when you make requests through the T3 API.\n  - The encrypted session data is automatically deleted after 24 hours.\n\n### Secret Key Authentication\n\nSecret-key auth makes a deliberate trade-off: your credentials are retained so T3 can re-authenticate with Metrc on your behalf, sparing your integration from having to do it.\n\n- **Encrypted Credential Storage:**\n  - When you create a secret key, your Metrc credentials (username, password, hostname, and where applicable email and OTP seed) are encrypted at rest in T3's database.\n  - The plaintext is never logged and is only decrypted in-memory at request time.\n  - The encryption protects against a database-only compromise, not against compromise of the running service.\n\n- **Revocable:**\n  - Deleting a secret key via `DELETE /v2/auth/secretkey/<id>` evicts it from all caches immediately \u2014 no grace period.\n  - List your active keys (and inspect their `lastUsedAt` activity) via `GET /v2/auth/secretkey`.\n\nFor any questions or concerns, please contact [matt@trackandtrace.tools](mailto:matt@trackandtrace.tools).\n\n## PRIVACY\n\nThe T3 API privacy model follows the same principles as the [Track & Trace Tools](https://chromewebstore.google.com/detail/track-trace-tools/dfljickgkbfaoiifheibjpejloipegcb) Chrome extension. The T3 API functions solely as a connector between you and Metrc, ensuring your privacy is protected.\n\n- **No Data Collection:**\n  - The T3 API does not record, save, harvest, inspect, or analyze any of your data.\n  - All data interactions are ephemeral and occur in real-time, without permanent storage.\n\n- **Secure and Private Access:**\n  - Your data is never shared with third parties. Unauthorized access to your login information or data is strictly prohibited.\n  - T3 employs industry-standard encryption protocols to safeguard all communications between the T3 API and Metrc.\n\n- **User-Controlled Sessions:**\n  - Your Metrc login credentials and session are used exclusively by you. The T3 API will never initiate Metrc traffic without your explicit authorization.\n\n- **Compliance and Best Practices:**\n  - T3's privacy practices are aligned with applicable data protection regulations, including GDPR and CCPA, ensuring that your data rights are respected.\n\nThe T3 API is subject to the [Track & Trace Tools Privacy Policy](https://trackandtrace.tools/privacy-policy). For any privacy-related inquiries, please contact [matt@trackandtrace.tools](mailto:matt@trackandtrace.tools).\n\n## PERMISSIONS\n\nEach Metrc account has different permissions based on several factors:\n\n- Permissions granted by your Metrc admin\n- Class of license (manufacturing, cultivation, etc)\n- US state the license operates in\n\nUse the Permissions endpoints to determine which actions are available to you.\n\n## LICENSES\n\nView a list of all licenses available to the current user:\n\n`GET https://api.trackandtrace.tools/v2/licenses`\n\nSpecify the target license with the required `licenseNumber` query parameter:\n\n`GET https://api.trackandtrace.tools/v2/items?licenseNumber=LIC-00001`\n\nCollection and supercollection endpoints query one license per request. Report endpoints accept several \u2014 repeat the parameter \u2014 and are described under MULTIPLE LICENSES below.\n\n## RATE LIMITING\n\nThe API has a global default request rate limit of 600 requests/minute/user. Some routes have lower rate limits.\n\n## COLLECTIONS\n\nMost Metrc data is queried as a \"collection\". There are no individual object endpoints.  For example, you cannot find an individual object using an endpoint like `/plants/{plantId}`, individual objects must be queried by filtering the collection endpoint `/plants`.\n\nAlthough the T3 API write endpoints use IDs to identify objects, Metrc does not allow for filtering/querying by ID. You will need to query with a different unique identifier like `label`, or load a full collection and then filter.\n\nCollections are paginated, and can be filtered and sorted by individual object fields.\n\nThe JSON response object includes the following properties:\n- `data`: An array of objects, or any empty array\n- `page`: The requested page index\n- `pageSize`: The requested page size\n- `total`: The total number of items in this collection. Use this to determine how many pages are required to return the entire collection.\n\n### LOADING FULL COLLECTIONS\n`pageSize` is limited to 500 in most cases, so you may need to load multiple pages if a license has a large number of packages.\n\nRefer to [this example](https://github.com/classvsoftware/t3-api/blob/master/load_all_active_packages.py) for how to load a full collection in a python script.\n\n## REPORTS\n\nA **collection** endpoint (`/packages`) returns one page at a time, and you assemble the whole set yourself.\n\nA **supercollection** endpoint (`/packages/super`) returns the same paginated data, but each record can be enriched with related data pulled from other Metrc endpoints \u2014 lab results, history, source harvests \u2014 requested with the `include` parameter.\n\nA **report** endpoint (`/packages/active/report`) loads the entire collection in one request and returns it as a single document \u2014 JSON, CSV, an Excel workbook, or a new Google Sheet. There is no pagination: you get everything matching your filters, up to the row cap. A **super report** (`/packages/active/super/report`) does the same, with `include` support.\n\nReports are built for spreadsheets and one-shot exports. Collections are built for applications that page through data.\n\n### LIMITS\n\n| | Report | Super report |\n|---|---|---|\n| Path | `/report` | `/super/report` |\n| Row cap | 50,000 | 5,000 |\n| Rate limit, per report endpoint | 6/minute and 48/hour | 6/minute and 48/hour |\n| Rate limit, all reports together | 48/hour | 48/hour |\n| Supports `include` | No | Yes |\n\nRate limits are counted per T3+ subscription, and a request served from the cache counts too.\n\nA report is refused before it loads when it would be too large to build. Each `include` adds work for every record, so a super report with one include tops out near 5,000 records, and fewer with more includes. The refusal is `Report Request Too Large`, returned *before any data is loaded*, so it costs you nothing but the round trip. Tighten your filters, set a lower `rowLimit`, or request fewer includes.\n\nThe super report row cap is a tenth of the plain cap for this reason.\n\n### PARAMETERS\n\n- `licenseNumber` \u2014 required. Repeat it to report across several licenses. See below.\n- `contentType` \u2014 `json`, `csv`, `xlsx` or `googleSheets`. `json` and `csv` can also be set with the `Content-Type` header; the other two are query-parameter only.\n- `columns` \u2014 comma-separated list of columns. Omit for the report's defaults, which are documented on each endpoint. An unrecognized name returns 400 listing every valid field. Previously called `fieldnames`; that spelling still works, but sending both returns 400.\n- `columnHeaderOverrides` \u2014 renames the column headers of a tabular report. A comma-separated list matched positionally against the columns, where an empty entry keeps that column's default name: `columns=label,item.name,quantity&columnHeaderOverrides=,,Qty`. Names are used exactly as sent. Sending more entries than there are columns returns 400. Ignored by `contentType=json`, which has no header row. See below.\n- `rowLimit` \u2014 caps the records returned. Values above the row cap are clamped, not rejected, so an over-large value behaves like omitting it. Pair it with `sort` for a predictable result. Set it small (`rowLimit=10`) while building a request: a limited report has the same shape as the full one, so it is enough to verify filters and columns without loading everything.\n- `sort` and `filter` \u2014 same syntax as the matching collection endpoint.\n- `prependCsvMetadata` \u2014 set to `false` to drop the metadata preamble from any tabular format. See below.\n- `contentDisposition` \u2014 `attachment` (the default) or `inline`. Reports download by default; `inline` renders them in the browser instead. Ignored by non-browser clients and by `contentType=googleSheets`. See below.\n- `include` \u2014 super reports only.\n- `delivery` and `email` \u2014 deliver the report to an address instead of returning it. Required together, except that `contentType=googleSheets` accepts `email` on its own to share the sheet. See below.\n- `sheetVisibility` \u2014 `public` (the default) or `private`. `googleSheets` only; controls whether anyone with the sheet's link can open it. See below.\n\n### MULTIPLE LICENSES\n\nReports and `/v2/search` are the only endpoints that accept more than one license; every other endpoint returns `400` when `licenseNumber` is repeated. Repeat `licenseNumber` to combine several into one document:\n\n```\nGET /v2/packages/active/report?licenseNumber=LIC-001&licenseNumber=LIC-002&contentType=csv\n```\n\nA comma-joined list is not supported, repeating the same license returns 400, and at most **20** licenses may be requested at once.\n\n**Rows appear in the order the parameters appear.** Every row of `LIC-001` precedes every row of `LIC-002`. `sort` orders rows within a license, not across them.\n\n**The limits are totals, not per-license allowances.** The row cap, `rowLimit` and the size limit all apply to the sum across every requested license: two licenses holding 30,000 records each are 60,000 records and are rejected. `rowLimit` is filled in license order: `rowLimit=600` against a first license holding 400 records returns all 400 of the first and the first 200 of the second, and never asks Metrc for the rest.\n\n**Add `licenseNumber` to `columns` to label the rows.** Every record already carries it, so `columns=licenseNumber,label,quantity` tells the rows apart. It is not a default column, so a single-license report is unchanged. On the three transfer manifest reports the field is `transfer.licenseNumber`.\n\n**A report is all-or-nothing.** If any requested license fails \u2014 most often because you cannot access it \u2014 the whole request fails rather than returning a partial result a spreadsheet has no way to notice.\n\nA multi-license request counts as **one** report request against the rate limits.\n\n### OUTPUT FORMATS\n\n| `contentType` | Response | Notes |\n|---|---|---|\n| `json` | Nested envelope, as an attachment | Unlimited includes |\n| `csv` | `text/csv` attachment | One include |\n| `xlsx` | `.xlsx` attachment | One include |\n| `googleSheets` | `302` redirect to a new sheet | One include, public by default |\n\n`csv`, `xlsx` and `googleSheets` are the same data in different containers: identical rows, identical title-cased headers, identical preamble. Pick `csv` for scripts and scheduled pulls, `xlsx` when you want a file Excel opens without an import step, `googleSheets` for a one-off you intend to share or edit.\n\n### DOWNLOADING\n\nEvery format that returns bytes \u2014 `json`, `csv` and `xlsx` \u2014 is sent with `Content-Disposition: attachment`, so a browser saves it rather than displaying it. Downloads are named for the report, the license, the generation date and a short hash of the request: `active-packages-report_LIC-00001_2024-01-01_a1b2c3.csv`.\n\nThis is a browser concern only. `curl`, `requests`, `fetch` and Google Sheets `IMPORTDATA` all ignore the header and receive the same bytes regardless.\n\nPass `contentDisposition=inline` to have a browser render the response instead; no `Content-Disposition` header is then sent at all. `contentType=googleSheets` returns a redirect rather than bytes, so it ignores the parameter.\n\n### INCLUDES AND OUTPUT FORMAT\n\nWith `contentType=json` you may request as many includes as the size limit allows. With any tabular format \u2014 `csv`, `xlsx` or `googleSheets` \u2014 you may request **at most one**.\n\nThis is a property of the format, not a policy. Each of them is a two-dimensional grid: rows and columns, nothing else. One include folds into that grid by widening each row. A second include adds a data dimension the grid cannot represent \u2014 there is no non-lossy way to place two independent child collections on a single row without a cross join that multiplies the row count and misstates the data. JSON is nested, so it carries as many includes as the size limit allows.\n\n### JSON RESPONSE\n\nA JSON report returns a single object describing the request and its results:\n\n- `generatedAt` \u2014 when the report was produced\n- `filters` \u2014 the filters applied\n- `filterLogic` \u2014 `and` or `or`\n- `sort` \u2014 the sort applied, if any\n- `licenseNumbers` \u2014 an array of the licenses queried, in row order\n- `data` \u2014 an array of records\n\n### TABULAR RESPONSES\n\n`csv` and `xlsx` are served with `Content-Disposition: attachment`, so a browser downloads them. Column headers are title-cased from the field names: `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n\nBy default eight rows precede the header \u2014 seven describing the request (report, data model, generation time, license, filters, filter logic, sort) and one blank separator. Column headers therefore land on **row 9** and the first data row on **row 10**.\n\nSet `prependCsvMetadata=false` to remove the preamble entirely, putting headers on row 1. Do this when the output feeds a formula that expects headers first, such as `IMPORTDATA` in Google Sheets.\n\n### EMAIL DELIVERY\n\n`delivery=email&email=you@example.com` sends the report to that address instead of returning it. The response is a receipt \u2014 `status`, `recipient`, `contentType` \u2014 sent immediately, before the report has been generated.\n\nThis removes the 240-second wait. An inline request gives up at that point with a `504`, although the report keeps building and asking again shortly after is usually answered from the cache. With email delivery nothing is waiting on the result, so the report is delivered when it is ready, but it still has to finish building within about five minutes.\n\n`json`, `csv` and `xlsx` arrive as a file attached to an email. `googleSheets` creates a sheet, shares it with that address, and emails the link \u2014 Google sends its own share notification too, so the recipient gets two messages carrying the same link.\n\n**Errors are emailed, not returned.** Once the receipt is sent there is no response left to fail into, so anything that goes wrong afterwards \u2014 `Report Request Too Large`, a Metrc permission error, a report too large to attach \u2014 is emailed to the recipient carrying the same title and explanation the inline request would have returned. Parameter validation still happens first, so an invalid `columns`, `rowLimit`, `include` or `email` is still an immediate 400.\n\nOne recipient per request. Email delivery is rate limited separately from report generation, and more tightly. Note that a Spreadsheet Sync link is polled on a schedule, so adding `delivery=email` to one sends a message on every refresh.\n\n### GOOGLE SHEETS RESPONSE\n\n`contentType=googleSheets` writes the report into a new Google Sheet. It is the one format whose response is not the report \u2014 it is a way to reach the document.\n\nAsked for inline (the default), the sheet is built during the request and the response is a `302` to it, with the same link in the body for clients that do not follow redirects:\n\n```\nGET /v2/packages/active/report?licenseNumber=LIC-001&contentType=googleSheets\n\nHTTP/1.1 302 Found\nLocation: https://docs.google.com/spreadsheets/d/1AbCdEf.../edit\n\n{\"sheetUrl\": \"https://docs.google.com/spreadsheets/d/1AbCdEf.../edit\", \"sheetId\": \"1AbCdEf...\"}\n```\n\nWith `delivery=email` you get the usual receipt instead, and the link is emailed once the sheet exists.\n\n**By default the sheet is readable and writable by anyone holding the link.** An inline request has no Google account to grant access to, so the URL is the credential \u2014 treat it the way you would treat the report itself. Pass `sheetVisibility=private` together with `email=you@example.com` to withhold the link grant and share it with one account instead; `private` without an `email` is a 400, because the sheet would open for nobody.\n\nThree caveats. **A named `email` must be a Google account** \u2014 Drive may refuse to share with an address it does not recognize, in which case no sheet is left behind and you are told why. **A large report is better asked for with `delivery=email`**: inline, the Drive work happens inside your request, on top of report generation, and a report near the row cap can exceed the request timeout partway through. And **every request creates a new sheet, which is never deleted** \u2014 use `csv` for anything recurring, or a scheduled job will accumulate one abandoned sheet per run.\n\n### CACHING AND TIMING\n\nIdentical report requests are served from cache for **5 minutes**. \"Identical\" means the same license, endpoint and query parameters. A scheduled spreadsheet refresh that runs more often than every 5 minutes will keep receiving the same document.\n\nPresentation and delivery parameters are excluded from that identity: `contentType`, `contentDisposition`, `columns`, `metadata`, `prependCsvMetadata`, `delivery` and `email` are applied to data that has already been loaded, so two people can be emailed the same report without generating it twice. Re-requesting the same report with different columns, or as XLSX instead of JSON, is served from cache rather than reloading from Metrc. `rowLimit`, `filter`, `filterLogic` and `sort` do change which records are fetched, so changing them loads fresh data.\n\nA report request waits up to **240 seconds** for the report to finish. Most complete well inside that. If the wait elapses, you get a `504` \u2014 the report is still being generated, so retry, and the retry is usually served from cache. A report that consistently exceeds 240 seconds is not obtainable inline at all; use `delivery=email`, which does not wait.\n\n## ERROR CODES\n\nAll error responses follow [RFC 7807](https://tools.ietf.org/html/rfc7807) Problem Details format. Each error response includes a `type` URL that links to documentation for that specific error code, along with a machine-readable `code` field.\n\nSee the [Error Reference](/errors/) for the complete list of error codes, their descriptions, common causes, and resolution steps.\n\n## USING THE API\n\nFull documentation on using the T3 API can be found [here](https://github.com/classvsoftware/t3-wiki/wiki/T3-API).\n\n## CONTACT\n\n- **Responsible Organization:** Class V LLC\n- **Responsible Developer:** Matt Frisbie\n- **Email:** [matt@trackandtrace.tools](mailto:matt@trackandtrace.tools)\n- **URL:** [https://trackandtrace.tools](https://trackandtrace.tools)\n- **Terms of Use:** [https://www.trackandtrace.tools/terms-of-use](https://www.trackandtrace.tools/terms-of-use)\n"
  },
  "paths": {
    "/v2/spec/openapi.json": {
      "get": {
        "summary": "Get the OpenAPI specification",
        "description": "Returns the OpenAPI 3.0.2 specification for this API.\n\nSee the [wiki guide on pruning the spec](https://wiki.trackandtrace.tools/t3-api/openapi/#pruning-the-spec) for a longer walkthrough of when and why to use the filters below.\n\n**Without filters:** Returns the full specification containing all paths, schemas, and parameters.\n\n**With filter(s):** Returns a pruned specification containing only the\nrequested resources and their transitive dependencies. This is useful for LLM/AI agent\nconsumption, where sending the full spec would waste tokens.\n\nAll filter values (schema, parameter, tag) are **case-insensitive**.\n\n## Filter Types\n\n### `path` - Filter by API path\n\nReturns the specified path definition(s) plus all transitively-referenced schemas\nand parameters.\n\n```\nGET /v2/spec/openapi.json?path=/v2/packages/active\nGET /v2/spec/openapi.json?path=/v2/packages/active&path=/v2/auth/credentials\n```\n\n### `schema` - Filter by schema name\n\nReturns the specified schema definition(s) plus any transitively-referenced schemas.\nNo paths are included in the response.\n\n```\nGET /v2/spec/openapi.json?schema=MetrcPackage\nGET /v2/spec/openapi.json?schema=metrcpackage\nGET /v2/spec/openapi.json?schema=MetrcPackage&schema=Pagination\n```\n\n### `parameter` - Filter by parameter name\n\nReturns the specified reusable parameter definition(s) plus any schemas they reference.\nNo paths are included in the response.\n\n```\nGET /v2/spec/openapi.json?parameter=LicenseNumber\nGET /v2/spec/openapi.json?parameter=licensenumber\nGET /v2/spec/openapi.json?parameter=CollectionFilter&parameter=CollectionSort\n```\n\n### `tag` - Filter by tag\n\nReturns all paths tagged with the specified tag(s) plus their transitively-referenced\nschemas and parameters.\n\n```\nGET /v2/spec/openapi.json?tag=Items\nGET /v2/spec/openapi.json?tag=items\nGET /v2/spec/openapi.json?tag=Authentication&tag=Packages\n```\n\n## Combining Filters\n\nMultiple filters can be combined in a single request. Results are merged via **union** --\nthe response contains everything matched by any individual filter.\n\n```\nGET /v2/spec/openapi.json?path=/v2/auth/credentials&schema=MetrcPackage\nGET /v2/spec/openapi.json?tag=Items&parameter=LicenseNumber\nGET /v2/spec/openapi.json?path=/v2/packages/active&tag=Authentication&schema=Pagination\n```\n",
        "responses": {
          "200": {
            "description": "A valid OpenAPI 3.0.2 specification",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "404": {
            "description": "One or more requested resources were not found in the spec"
          }
        },
        "parameters": [
          {
            "name": "path",
            "in": "query",
            "required": false,
            "description": "One or more API paths to include. Returns the path definitions plus\ntheir transitively-referenced schemas and parameters. Repeat this\nparameter to include multiple paths.\n",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "/v2/packages/active"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "schema",
            "in": "query",
            "required": false,
            "description": "One or more schema names to include (case-insensitive). Returns the\nschema definition plus any transitively-referenced schemas. No paths\nare included. Repeat this parameter to include multiple schemas.\n",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "MetrcPackage"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "parameter",
            "in": "query",
            "required": false,
            "description": "One or more reusable parameter names to include (case-insensitive).\nReturns the parameter definition plus any referenced schemas. No paths\nare included. Repeat this parameter to include multiple parameters.\n",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "LicenseNumber"
              ]
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "tag",
            "in": "query",
            "required": false,
            "description": "One or more tag names (case-insensitive). Returns all paths tagged\nwith this tag plus their transitively-referenced schemas and parameters.\nRepeat this parameter to include multiple tags.\n",
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "example": [
                "Items"
              ]
            },
            "style": "form",
            "explode": true
          }
        ],
        "tags": [
          "LLM",
          "OpenAPI"
        ],
        "security": []
      }
    },
    "/v2/auth/credentials": {
      "post": {
        "summary": "Authenticate with Metrc credentials",
        "description": "**A T3+ subscription is not required to use this endpoint**\n",
        "requestBody": {
          "description": "JSON object containing your Metrc login details\nNote: The `email` field is only needed if you are authenticating in Colorado. Otherwise, omit this property.\nNote: The `otp` field is only needed if you are authenticating in Michigan. Otherwise, omit this property.\n",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCredentialAuthPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Your JWT access token",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accessToken": {
                      "$ref": "#/components/schemas/AccessToken"
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Authentication",
          "Free"
        ],
        "security": []
      }
    },
    "/v2/auth/whoami": {
      "get": {
        "summary": "Returns information about the authenticated user",
        "responses": {
          "200": {
            "description": "Information about the authenticated user including organization and subscription details",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/JWTData"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "organizationPublicId": {
                          "type": "string",
                          "format": "uuid",
                          "nullable": true,
                          "description": "The public ID of the organization the user belongs to",
                          "example": "550e8400-e29b-41d4-a716-446655440000"
                        },
                        "subscriptionPublicId": {
                          "type": "string",
                          "format": "uuid",
                          "nullable": true,
                          "description": "The public ID of the subscription attached to the organization",
                          "example": "660e8400-e29b-41d4-a716-446655440001"
                        },
                        "subscriptionStatus": {
                          "type": "string",
                          "nullable": true,
                          "description": "The status of the subscription",
                          "enum": [
                            "active",
                            "trialing",
                            "canceled",
                            "overdue"
                          ],
                          "example": "active"
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "tags": [
          "Authentication",
          "Free"
        ]
      }
    },
    "/v2/auth/check": {
      "post": {
        "summary": "Check whether the current JWT can still authenticate against Metrc",
        "description": "Tests the stored Metrc session by issuing a request to the Metrc root and\nconfirming it does not redirect to the login page. Returns `success: true`\nif the session is still valid, otherwise `success: false`. Always responds\nwith HTTP 200.\n",
        "responses": {
          "200": {
            "description": "Whether the JWT's underlying Metrc session is still valid",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "True if the Metrc session is still authenticated, false otherwise",
                      "example": true
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Authentication",
          "Free"
        ]
      }
    },
    "/v2/auth/logout": {
      "post": {
        "summary": "Log out all Metrc sessions",
        "description": "Expires all existing Metrc sessions for the authenticated user by issuing a\nlogout request to Metrc. The cached session data in Redis is also deleted,\nso the JWT will no longer be usable for subsequent API calls.\n",
        "responses": {
          "200": {
            "description": "Successfully logged out of all Metrc sessions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": {
                      "type": "boolean",
                      "description": "True if the logout completed successfully",
                      "example": true
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Authentication",
          "Free"
        ]
      }
    },
    "/v2/auth/sandbox": {
      "post": {
        "summary": "Mint a sandbox JWT from an authenticated session",
        "description": "Exchanges an authenticated Metrc session (the caller's JWT or secret key)\nfor a brand-new JWT scoped to the corresponding sandbox hostname\n(e.g. `mo.metrc.com` -> `sandbox-mo.metrc.com`).\n\nThe caller's account must be provisioned for a sandbox session in Metrc;\nif no one-time login link is available, the endpoint returns 400.\n\nThe returned JWT carries the same username and T3+ subscription state as\nthe source session, but a different hostname, licenses, and permissions.\n",
        "responses": {
          "200": {
            "description": "A JWT access token authenticated against the sandbox hostname",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "accessToken": {
                      "$ref": "#/components/schemas/AccessToken"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Sandbox is not available for this account, or the caller is already on a sandbox hostname"
          },
          "401": {
            "description": "Missing or invalid authentication"
          }
        },
        "tags": [
          "Authentication",
          "Free"
        ]
      }
    },
    "/v2/auth/secretkey": {
      "post": {
        "summary": "Generate a secret key for use with secret-key authentication.",
        "description": "Generates a secret key that can be passed to any `@session_required` endpoint\nvia the `X-T3-API-Key` header (preferred) or the `?secretKey=` query parameter.\n\n### How your credentials are stored\n\nWhen you create a secret key, your Metrc credentials (username, password,\nhostname, and \u2014 where applicable \u2014 email and one-time password seed) are\n**encrypted at rest** in T3's database. The plaintext credentials are never\nlogged and are only decrypted in-memory at request time to establish a Metrc\nsession.\n\n### When you must regenerate your secret key\n\nYour secret key embeds a snapshot of the credentials you submitted. If **any**\nof the following change in Metrc, the secret key will stop working and you\nmust create a new one:\n\n- Password\n- Email (Colorado)\n- Username\n- One-time password seed (Michigan)\n\nThe T3 API also provides a [secret-key management page](/v2/pages/secret-key).\n",
        "requestBody": {
          "description": "JSON object containing your Metrc secret key details\n\nNote: The `email` field is only needed if you are authenticating in Colorado.\nOtherwise, omit this property.\n\nNote: The `otpSeed` field is only needed if you are authenticating in Michigan.\nOtherwise, omit this property.\n",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcSecretKeyCredentialsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Your secret key",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "secretKey": {
                      "$ref": "#/components/schemas/SecretKey"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body, or a missing `email` (Colorado) or `otpSeed` (Michigan)"
          },
          "401": {
            "description": "Metrc login failed with the supplied credentials"
          },
          "403": {
            "description": "This Metrc account has been blocked from API access"
          },
          "423": {
            "description": "The Metrc account is temporarily locked after repeated failed logins, or these credentials failed recently and cannot be retried yet"
          },
          "429": {
            "description": "Too many requests for this Metrc username"
          }
        },
        "tags": [
          "Authentication",
          "Reports"
        ],
        "security": []
      },
      "get": {
        "summary": "List all secret keys for the authenticated user.",
        "description": "Returns all secret keys associated with the authenticated user's hostname and username.\n",
        "responses": {
          "200": {
            "description": "List of secret keys",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "secretKey": {
                            "$ref": "#/components/schemas/SecretKey"
                          },
                          "createdAt": {
                            "type": "string",
                            "format": "date-time",
                            "description": "When the secret key was created"
                          },
                          "isEnabled": {
                            "type": "boolean",
                            "description": "Whether the secret key can authenticate. Disabled keys\nare returned for visibility but cannot be used to\nauthenticate against the API.\n"
                          },
                          "lastUsedAt": {
                            "type": "string",
                            "format": "date-time",
                            "nullable": true,
                            "description": "When the secret key most recently authenticated a\nrequest. `null` if the key has never been used.\n"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "tags": [
          "Authentication"
        ]
      }
    },
    "/v2/auth/secretkey/{secret_key_id}": {
      "delete": {
        "summary": "Delete a secret key.",
        "description": "Permanently deletes a single secret key identified by its UUID. The key must belong to the authenticated user.\n",
        "responses": {
          "200": {
            "description": "The secret key was deleted successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "deleted": {
                      "type": "boolean"
                    },
                    "secretKey": {
                      "$ref": "#/components/schemas/SecretKey"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Secret key not found"
          },
          "401": {
            "description": "Unauthorized"
          }
        },
        "parameters": [
          {
            "name": "secret_key_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/SecretKey"
            },
            "description": "The secret key UUID to delete"
          }
        ],
        "tags": [
          "Authentication"
        ]
      },
      "put": {
        "summary": "Update the Metrc credentials backing an existing secret key (in place).",
        "description": "Rotates the Metrc credentials stored for an existing secret key. The\nsecret key UUID does not change \u2014 callers can continue using the same\nkey value. Use this after a Metrc password change, Colorado email\nchange, Michigan one-time password seed reset, etc., instead of\ndeleting the key and reconfiguring every place it is used.\n\nPer-state requirements are the same as for\n`POST /v2/auth/secretkey`: Colorado requires `email`, Michigan\nrequires `otpSeed`.\n\nThe supplied credentials are validated against Metrc *before* the row\nis updated \u2014 a failed Metrc login leaves the existing credentials\nuntouched. On success, the short-TTL decrypted-credential cache for\nthis secret key is invalidated so the new credentials take effect\nimmediately.\n\nThe `username` and `hostname` in the request body must match the\nidentity that the existing secret key was created with. This endpoint\nrotates credentials in place \u2014 it does not re-key a secret to a\ndifferent Metrc user.\n",
        "requestBody": {
          "description": "JSON object containing the new Metrc credentials.\n\nNote: The `email` field is only needed if you are authenticating in Colorado.\nOtherwise, omit this property.\n\nNote: The `otpSeed` field is only needed if you are authenticating in Michigan.\nOtherwise, omit this property.\n",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcSecretKeyCredentialsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The secret key credentials were updated successfully",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "updated": {
                      "type": "boolean"
                    },
                    "secretKey": {
                      "$ref": "#/components/schemas/SecretKey"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body, a missing `email` (Colorado) or `otpSeed` (Michigan), or no secret key matched the supplied UUID, username and hostname"
          },
          "401": {
            "description": "Metrc login failed with the supplied credentials"
          },
          "403": {
            "description": "This Metrc account has been blocked from API access"
          },
          "423": {
            "description": "The Metrc account is temporarily locked after repeated failed logins, or these credentials failed recently and cannot be retried yet"
          },
          "429": {
            "description": "Too many requests for this Metrc username"
          }
        },
        "parameters": [
          {
            "name": "secret_key_id",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/SecretKey"
            },
            "description": "The secret key UUID whose credentials should be rotated"
          }
        ],
        "tags": [
          "Authentication"
        ],
        "security": []
      }
    },
    "/v2/auth/register": {
      "post": {
        "summary": "Self-register a Metrc username under an organization and issue a secret key.",
        "description": "Registers a Metrc username under the organization identified by a\n`registrationSecret`, and issues a fresh secret key in the same call so\nthe caller can immediately use the API.\n\n### When to use\n\nThis endpoint lets an organization admin programmatically onboard team\nmembers without going through the dash.trackandtrace.tools web flow.\nTwo scenarios:\n\n- **Admin onboarding**: the admin holds the `registrationSecret` and\n  scripts onboarding directly.\n- **Admin-delegated self-registration**: the admin shares the\n  `registrationSecret` with their team members out of band, and each\n  member self-registers without needing a dash account or org\n  membership.\n\n### How the safety model works\n\n- The `registrationSecret` is unique per organization and rotatable from\n  the web UI. A leak only enables abuse against that one org's seat\n  count.\n- The supplied Metrc credentials are validated against Metrc *before*\n  anything is persisted \u2014 a caller cannot register a Metrc username they\n  cannot themselves authenticate as.\n- Registration consumes one seat against the organization's active T3+\n  subscription. When the seat cap is reached, further registrations\n  fail with 402 until seats are freed or the subscription is upgraded.\n\n### Per-state requirements\n\nSame as `POST /v2/auth/secretkey`: Colorado requires `email`, Michigan\nrequires `otpSeed`.\n\n### Idempotency\n\nRe-registering a username that is already attached to the same\norganization returns 409. Registering a username that is already\nattached to a *different* organization is allowed and follows the\nnormal registration path (Metrc-login proof is still required) \u2014 this\nprevents the endpoint from being used to enumerate registrations across\norgs.\n",
        "requestBody": {
          "description": "JSON object containing the organization's `registrationSecret` and the\nMetrc credentials to register.\n",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RegisterPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The Metrc username was registered and a secret key was issued",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "registered": {
                      "type": "boolean"
                    },
                    "secretKey": {
                      "$ref": "#/components/schemas/SecretKey"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body, or a missing `email` (Colorado) or `otpSeed` (Michigan)"
          },
          "401": {
            "description": "Invalid registration secret, or Metrc login failed"
          },
          "402": {
            "description": "Organization has no active subscription, or all subscription seats are in use"
          },
          "403": {
            "description": "This Metrc account has been blocked from API access"
          },
          "409": {
            "description": "This Metrc username is already registered under the organization"
          },
          "423": {
            "description": "The Metrc account is temporarily locked after repeated failed logins, or these credentials failed recently and cannot be retried yet"
          },
          "429": {
            "description": "Too many requests for this Metrc username"
          }
        },
        "tags": [
          "Authentication"
        ],
        "security": []
      }
    },
    "/v2/licenses": {
      "get": {
        "summary": "List of accessible licenses",
        "description": "**A T3+ subscription is not required to use this endpoint**\n",
        "responses": {
          "200": {
            "description": "A list of accessible Metrc licenses",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MetrcLicense"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Licenses",
          "Free"
        ]
      }
    },
    "/v2/states": {
      "get": {
        "summary": "List of accessible states",
        "description": "**A T3+ subscription is not required to use this endpoint**\n",
        "responses": {
          "200": {
            "description": "A list of accessible Metrc states",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MetrcState"
                  }
                }
              }
            }
          }
        },
        "tags": [
          "States",
          "Free"
        ]
      }
    },
    "/v2/items": {
      "get": {
        "summary": "List of active items \u00b7 METRC_ACTIVE_ITEMS",
        "responses": {
          "200": {
            "description": "A list of active items for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItem"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:flower",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Items"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_ITEMS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_ITEMS"
      }
    },
    "/v2/items/fields": {
      "get": {
        "summary": "List the fields active items can be filtered on",
        "description": "Lists the fields `GET /v2/items` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/items`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Items",
          "Free"
        ]
      }
    },
    "/v2/items/{object_id}": {
      "get": {
        "summary": "Retrieve an active item by id \u00b7 METRC_ACTIVE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_ITEMS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an active item by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcItem"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Items"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_ITEMS"
      }
    },
    "/v2/items/super": {
      "get": {
        "summary": "List of active superitems. Additional metadata can be added using the `include` param. \u00b7 METRC_ACTIVE_SUPERITEMS",
        "responses": {
          "200": {
            "description": "A list of active items for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperitem"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:flower",
            "description": "One or more item filters."
          },
          {
            "$ref": "#/components/parameters/SuperitemInclude"
          }
        ],
        "tags": [
          "Items",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERITEMS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERITEMS"
      }
    },
    "/v2/items/super/{object_id}": {
      "get": {
        "summary": "Retrieve an active superitem by id \u00b7 METRC_ACTIVE_SUPERITEMS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERITEMS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an active superitem by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperitem"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperitemInclude"
          }
        ],
        "tags": [
          "Items",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERITEMS"
      }
    },
    "/v2/items/history": {
      "get": {
        "summary": "List of item history objects for a single item \u00b7 METRC_ITEM_HISTORY",
        "responses": {
          "200": {
            "description": "A list of history objects for the specified item.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The item with id={itemId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "itemId",
            "description": "ID of the target item",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the history sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "userName__contains:MSmith001",
            "description": "One or more history filters."
          }
        ],
        "tags": [
          "Items",
          "Single Item",
          "History"
        ],
        "description": "**T3 endpoint id:** `METRC_ITEM_HISTORY`.",
        "x-t3-endpoint-id": "METRC_ITEM_HISTORY"
      }
    },
    "/v2/items/notes": {
      "get": {
        "summary": "List of item notes objects for a single item \u00b7 METRC_ITEM_NOTES",
        "responses": {
          "200": {
            "description": "A list of file objects for the specified item.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItemIngredient"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The item with id={itemId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "itemId",
            "description": "ID of the target item",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          }
        ],
        "tags": [
          "Items",
          "Single Item"
        ],
        "description": "**T3 endpoint id:** `METRC_ITEM_NOTES`.",
        "x-t3-endpoint-id": "METRC_ITEM_NOTES"
      }
    },
    "/v2/items/ingredients": {
      "get": {
        "summary": "List of item ingredients objects for a single item \u00b7 METRC_ITEM_INGREDIENTS",
        "responses": {
          "200": {
            "description": "A list of file objects for the specified item.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItemNote"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The item with id={itemId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "itemId",
            "description": "ID of the target item",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          }
        ],
        "tags": [
          "Items",
          "Single Item"
        ],
        "description": "**T3 endpoint id:** `METRC_ITEM_INGREDIENTS`.",
        "x-t3-endpoint-id": "METRC_ITEM_INGREDIENTS"
      }
    },
    "/v2/items/images": {
      "get": {
        "summary": "List of item image objects for a single item \u00b7 METRC_ITEM_IMAGES",
        "responses": {
          "200": {
            "description": "A list of file objects for the specified item.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItemImage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The item with id={itemId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "itemId",
            "description": "ID of the target item",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the image sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "fileName__contains:abc",
            "description": "One or more file filters."
          }
        ],
        "tags": [
          "Items",
          "Single Item",
          "Files",
          "Photos"
        ],
        "description": "**T3 endpoint id:** `METRC_ITEM_IMAGES`.",
        "x-t3-endpoint-id": "METRC_ITEM_IMAGES"
      }
    },
    "/v2/items/photos": {
      "get": {
        "summary": "List of item image objects for a single item \u00b7 METRC_ITEM_IMAGES",
        "responses": {
          "200": {
            "description": "A list of file objects for the specified item.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItemImage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The item with id={itemId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "itemId",
            "description": "ID of the target item",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the image sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "fileName__contains:abc",
            "description": "One or more file filters."
          }
        ],
        "tags": [
          "Items",
          "Single Item",
          "Files",
          "Photos"
        ],
        "description": "**T3 endpoint id:** `METRC_ITEM_IMAGES`.",
        "x-t3-endpoint-id": "METRC_ITEM_IMAGES"
      }
    },
    "/v2/items/create": {
      "post": {
        "summary": "Create one or more items",
        "description": "**Refer to the request body schema for details on formatting your request**\n\n'\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreateItemsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Items",
          "Create Items"
        ]
      }
    },
    "/v2/items/create/inputs": {
      "get": {
        "summary": "Input data used for creating new items",
        "responses": {
          "200": {
            "description": "A dictionary of data used for creating new items",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreateItemInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Items",
          "Create Items"
        ]
      }
    },
    "/v2/items/discontinue": {
      "post": {
        "summary": "Discontinue one item",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcDiscontinueItemPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Items",
          "Modify Items"
        ]
      }
    },
    "/v2/items/report": {
      "get": {
        "summary": "Generate a report of all active items \u00b7 ITEMS_REPORT",
        "description": "**T3 endpoint id:** `ITEMS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active items for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcItemReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,productCategoryName,productCategoryTypeName,strainName\nBlue Dream 3.5g Prepack,Bud/Flower (Final Packaging),Buds,Blue Dream\nPineapple Express 3.5g Prepack,Bud/Flower (Final Packaging),Buds,Pineapple Express"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more item filters."
          },
          {
            "name": "columns",
            "description": "Defines which item fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,productCategoryName,productCategoryTypeName,strainName",
              "example": "name,productCategoryName,productCategoryTypeName,strainName"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Items",
          "Reports"
        ],
        "x-t3-endpoint-id": "ITEMS_REPORT"
      }
    },
    "/v2/items/super/report": {
      "get": {
        "summary": "Generate a super report of all items \u00b7 ITEMS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ITEMS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of superitems for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperitemReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,productCategoryName\nBuds,Flower\nEdible,Edible"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:kush",
            "description": "One or more item filters."
          },
          {
            "$ref": "#/components/parameters/SuperitemInclude"
          },
          {
            "name": "columns",
            "description": "Defines which item fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,productCategoryName,productCategoryTypeName,strainName",
              "example": "name,productCategoryName,productCategoryTypeName,strainName"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Items",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ITEMS_SUPER_REPORT"
      }
    },
    "/v2/items/images/file": {
      "get": {
        "summary": "Get a photo for an item.",
        "responses": {
          "200": {
            "description": "Item photo",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "itemId",
            "description": "ID of the target item",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "name": "imageFileId",
            "description": "ID of the target photo",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 12345
            }
          },
          {
            "name": "fileType",
            "in": "query",
            "description": "Photo file type",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "ItemLabelImage",
                "ItemProductImage",
                "ItemPackagingImage"
              ],
              "example": "ItemLabelImage"
            }
          }
        ],
        "tags": [
          "Items",
          "Single Item",
          "Files",
          "Photos"
        ]
      },
      "post": {
        "summary": "Upload a photo for an item.",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The image file to upload"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Successfully uploaded item photo",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "imageFileId": {
                      "type": "integer",
                      "description": "ID of the uploaded image file"
                    }
                  },
                  "example": {
                    "imageFileId": 301
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request (missing file or invalid fileType)"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "fileType",
            "in": "query",
            "description": "Photo file type",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ItemImageFileType"
            }
          }
        ],
        "tags": [
          "Items",
          "Single Item",
          "Files",
          "Photos"
        ]
      }
    },
    "/v2/items/photos/file": {
      "get": {
        "summary": "Get a photo for an item.",
        "responses": {
          "200": {
            "description": "Item photo",
            "content": {
              "image/*": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "itemId",
            "description": "ID of the target item",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "name": "imageFileId",
            "description": "ID of the target photo",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 12345
            }
          },
          {
            "name": "fileType",
            "in": "query",
            "description": "Photo file type",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "ItemLabelImage",
                "ItemProductImage",
                "ItemPackagingImage"
              ],
              "example": "ItemLabelImage"
            }
          }
        ],
        "tags": [
          "Items",
          "Single Item",
          "Files",
          "Photos"
        ]
      }
    },
    "/v2/tags/available": {
      "get": {
        "summary": "List of available tags \u00b7 METRC_AVAILABLE_TAGS",
        "responses": {
          "200": {
            "description": "A list of available tags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:flower",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Tags"
        ],
        "description": "**T3 endpoint id:** `METRC_AVAILABLE_TAGS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_AVAILABLE_TAGS"
      }
    },
    "/v2/tags/available/fields": {
      "get": {
        "summary": "List the fields available tags can be filtered on",
        "description": "Lists the fields `GET /v2/tags/available` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/tags/available`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Tags",
          "Free"
        ]
      }
    },
    "/v2/tags/available/{object_id}": {
      "get": {
        "summary": "Retrieve an available tag by id \u00b7 METRC_AVAILABLE_TAGS",
        "description": "**T3 endpoint id:** `METRC_AVAILABLE_TAGS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an available tag by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tags"
        ],
        "x-t3-endpoint-id": "METRC_AVAILABLE_TAGS"
      }
    },
    "/v2/tags/available/super": {
      "get": {
        "summary": "List of available supertags. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_AVAILABLE_SUPERTAGS",
        "responses": {
          "200": {
            "description": "A list of available supertags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSupertag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Tags",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_AVAILABLE_SUPERTAGS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_AVAILABLE_SUPERTAGS"
      }
    },
    "/v2/tags/available/super/{object_id}": {
      "get": {
        "summary": "Retrieve an available supertag by id \u00b7 METRC_AVAILABLE_SUPERTAGS",
        "description": "**T3 endpoint id:** `METRC_AVAILABLE_SUPERTAGS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an available supertag by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupertag"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tags",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_AVAILABLE_SUPERTAGS"
      }
    },
    "/v2/tags/used": {
      "get": {
        "summary": "List of used tags \u00b7 METRC_USED_TAGS",
        "responses": {
          "200": {
            "description": "A list of used tags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:flower",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Tags"
        ],
        "description": "**T3 endpoint id:** `METRC_USED_TAGS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_USED_TAGS"
      }
    },
    "/v2/tags/used/fields": {
      "get": {
        "summary": "List the fields used tags can be filtered on",
        "description": "Lists the fields `GET /v2/tags/used` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/tags/used`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Tags",
          "Free"
        ]
      }
    },
    "/v2/tags/used/{object_id}": {
      "get": {
        "summary": "Retrieve an used tag by id \u00b7 METRC_USED_TAGS",
        "description": "**T3 endpoint id:** `METRC_USED_TAGS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an used tag by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tags"
        ],
        "x-t3-endpoint-id": "METRC_USED_TAGS"
      }
    },
    "/v2/tags/used/super": {
      "get": {
        "summary": "List of used supertags. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_USED_SUPERTAGS",
        "responses": {
          "200": {
            "description": "A list of used supertags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSupertag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Tags",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_USED_SUPERTAGS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_USED_SUPERTAGS"
      }
    },
    "/v2/tags/used/super/{object_id}": {
      "get": {
        "summary": "Retrieve an used supertag by id \u00b7 METRC_USED_SUPERTAGS",
        "description": "**T3 endpoint id:** `METRC_USED_SUPERTAGS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an used supertag by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupertag"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tags",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_USED_SUPERTAGS"
      }
    },
    "/v2/tags/voided": {
      "get": {
        "summary": "List of voided tags \u00b7 METRC_VOIDED_TAGS",
        "responses": {
          "200": {
            "description": "A list of voided tags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:flower",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Tags"
        ],
        "description": "**T3 endpoint id:** `METRC_VOIDED_TAGS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_VOIDED_TAGS"
      }
    },
    "/v2/tags/voided/fields": {
      "get": {
        "summary": "List the fields voided tags can be filtered on",
        "description": "Lists the fields `GET /v2/tags/voided` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/tags/voided`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Tags",
          "Free"
        ]
      }
    },
    "/v2/tags/voided/{object_id}": {
      "get": {
        "summary": "Retrieve a voided tag by id \u00b7 METRC_VOIDED_TAGS",
        "description": "**T3 endpoint id:** `METRC_VOIDED_TAGS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns a voided tag by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tags"
        ],
        "x-t3-endpoint-id": "METRC_VOIDED_TAGS"
      }
    },
    "/v2/tags/voided/super": {
      "get": {
        "summary": "List of voided supertags. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_VOIDED_SUPERTAGS",
        "responses": {
          "200": {
            "description": "A list of voided supertags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSupertag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Tags",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_VOIDED_SUPERTAGS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_VOIDED_SUPERTAGS"
      }
    },
    "/v2/tags/voided/super/{object_id}": {
      "get": {
        "summary": "Retrieve a voided supertag by id \u00b7 METRC_VOIDED_SUPERTAGS",
        "description": "**T3 endpoint id:** `METRC_VOIDED_SUPERTAGS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns a voided supertag by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupertag"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tags",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_VOIDED_SUPERTAGS"
      }
    },
    "/v2/tags/available/report": {
      "get": {
        "summary": "Generate a report of all available tags \u00b7 AVAILABLE_TAGS_REPORT",
        "description": "**T3 endpoint id:** `AVAILABLE_TAGS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of available tags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTagReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName,isUsed\nCannabis Package, 1A4400001234000000001234, Received, false\nCannabis Package, 1A4400001234000000001235, Received, false"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more item filters."
          },
          {
            "name": "columns",
            "description": "Defines which item fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "tagTypeName,label,statusName,isUsed",
              "example": "tagTypeName,label,statusName,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tags",
          "Reports"
        ],
        "x-t3-endpoint-id": "AVAILABLE_TAGS_REPORT"
      }
    },
    "/v2/tags/available/super/report": {
      "get": {
        "summary": "Generate a super report of all available tags \u00b7 AVAILABLE_TAGS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `AVAILABLE_TAGS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of available supertags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupertagReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName\nCannabisPackage,1A4400000000000000001234,Available"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0",
            "description": "One or more tag filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "tagTypeName,label,statusName,isUsed",
              "example": "tagTypeName,label,statusName,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tags",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "AVAILABLE_TAGS_SUPER_REPORT"
      }
    },
    "/v2/tags/used/report": {
      "get": {
        "summary": "Generate a report of all used tags \u00b7 USED_TAGS_REPORT",
        "description": "**T3 endpoint id:** `USED_TAGS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of used tags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTagReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName\nCannabisPackage,1A4400000000000000001234,Used"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0",
            "description": "One or more tag filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "tagTypeName,label,statusName,isUsed",
              "example": "tagTypeName,label,statusName,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tags",
          "Reports"
        ],
        "x-t3-endpoint-id": "USED_TAGS_REPORT"
      }
    },
    "/v2/tags/used/super/report": {
      "get": {
        "summary": "Generate a super report of all used tags \u00b7 USED_TAGS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `USED_TAGS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nTags have no sub-resource includes, so this report carries the same columns as /v2/tags/used/report and differs only in the derived metadata the supercollection layer supplies.\n",
        "responses": {
          "200": {
            "description": "A list of used supertags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupertagReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName\nCannabisPackage,1A4400000000000000001234,Used"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0",
            "description": "One or more tag filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "tagTypeName,label,statusName,isUsed",
              "example": "tagTypeName,label,statusName,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tags",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "USED_TAGS_SUPER_REPORT"
      }
    },
    "/v2/tags/voided/report": {
      "get": {
        "summary": "Generate a report of all voided tags \u00b7 VOIDED_TAGS_REPORT",
        "description": "**T3 endpoint id:** `VOIDED_TAGS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of voided tags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTagReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName\nCannabisPackage,1A4400000000000000001234,Voided"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0",
            "description": "One or more tag filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "tagTypeName,label,statusName,isUsed",
              "example": "tagTypeName,label,statusName,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tags",
          "Reports"
        ],
        "x-t3-endpoint-id": "VOIDED_TAGS_REPORT"
      }
    },
    "/v2/tags/voided/super/report": {
      "get": {
        "summary": "Generate a super report of all voided tags \u00b7 VOIDED_TAGS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `VOIDED_TAGS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nTags have no sub-resource includes, so this report carries the same columns as /v2/tags/voided/report and differs only in the derived metadata the supercollection layer supplies.\n",
        "responses": {
          "200": {
            "description": "A list of voided supertags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupertagReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName\nCannabisPackage,1A4400000000000000001234,Voided"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0",
            "description": "One or more tag filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "tagTypeName,label,statusName,isUsed",
              "example": "tagTypeName,label,statusName,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tags",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "VOIDED_TAGS_SUPER_REPORT"
      }
    },
    "/v2/tagorders/current": {
      "get": {
        "summary": "List of current tag orders \u00b7 METRC_CURRENT_TAG_ORDERS",
        "responses": {
          "200": {
            "description": "A list of current tag orders for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTagOrder"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "orderDate:desc",
            "description": "Defines the tag order sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "statusName__eq:Shipped",
            "description": "One or more tag order filters."
          }
        ],
        "tags": [
          "Tag Orders"
        ],
        "description": "**T3 endpoint id:** `METRC_CURRENT_TAG_ORDERS`. Accepted by `/v2/search` (`t3EndpointIds`).",
        "x-t3-endpoint-id": "METRC_CURRENT_TAG_ORDERS"
      }
    },
    "/v2/tagorders/current/fields": {
      "get": {
        "summary": "List the fields current tag orders can be filtered on",
        "description": "Lists the fields `GET /v2/tagorders/current` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/tagorders/current`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Tag Orders",
          "Free"
        ]
      }
    },
    "/v2/tagorders/current/{object_id}": {
      "get": {
        "summary": "Retrieve a current tag order by id \u00b7 METRC_CURRENT_TAG_ORDERS",
        "description": "**T3 endpoint id:** `METRC_CURRENT_TAG_ORDERS`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns a current tag order by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTagOrder"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tag Orders"
        ],
        "x-t3-endpoint-id": "METRC_CURRENT_TAG_ORDERS"
      }
    },
    "/v2/tagorders/current/super": {
      "get": {
        "summary": "List of current supertagorders. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_CURRENT_SUPERTAGORDERS",
        "responses": {
          "200": {
            "description": "A list of current supertagorders for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperTagOrder"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "orderDate:desc",
            "description": "Defines the tag order sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "statusName__eq:Shipped",
            "description": "One or more tag order filters."
          }
        ],
        "tags": [
          "Tag Orders",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_CURRENT_SUPERTAGORDERS`.",
        "x-t3-endpoint-id": "METRC_CURRENT_SUPERTAGORDERS"
      }
    },
    "/v2/tagorders/current/super/{object_id}": {
      "get": {
        "summary": "Retrieve a current supertagorder by id \u00b7 METRC_CURRENT_SUPERTAGORDERS",
        "description": "**T3 endpoint id:** `METRC_CURRENT_SUPERTAGORDERS`.\n\nReturns a current supertagorder by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperTagOrder"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tag Orders",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_CURRENT_SUPERTAGORDERS"
      }
    },
    "/v2/tagorders/current/report": {
      "get": {
        "summary": "Generate a report of all current tag orders \u00b7 CURRENT_TAG_ORDERS_REPORT",
        "description": "**T3 endpoint id:** `CURRENT_TAG_ORDERS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of current tag orders for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTagOrderReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "orderNumber,orderDate,statusName\nSBX-MO-2026-035-0594,2026-02-04T13:19:28-06:00,Shipped"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "orderDate:desc",
            "description": "Defines the tag order sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "statusName__eq:Shipped",
            "description": "One or more tag order filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag order fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `orderedByName` becomes `Ordered By Name`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "orderNumber,orderDate,statusName,orderedByName,shippingCarrier,trackingNumber,orderAmount",
              "example": "orderNumber,orderDate,statusName,orderedByName,shippingCarrier,trackingNumber,orderAmount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tag Orders",
          "Reports"
        ],
        "x-t3-endpoint-id": "CURRENT_TAG_ORDERS_REPORT"
      }
    },
    "/v2/tagorders/current/super/report": {
      "get": {
        "summary": "Generate a super report of all current tag orders \u00b7 CURRENT_TAG_ORDERS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `CURRENT_TAG_ORDERS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nTag orders have no sub-resource includes, so this report carries the same columns as /v2/tagorders/current/report and differs only in the derived metadata the supercollection layer supplies.\n",
        "responses": {
          "200": {
            "description": "A list of current supertagorders for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperTagOrderReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "orderNumber,orderDate,statusName\nSBX-MO-2026-035-0594,2026-02-04T13:19:28-06:00,Shipped"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "orderDate:desc",
            "description": "Defines the tag order sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "statusName__eq:Shipped",
            "description": "One or more tag order filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag order fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `orderedByName` becomes `Ordered By Name`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "orderNumber,orderDate,statusName,orderedByName,shippingCarrier,trackingNumber,orderAmount",
              "example": "orderNumber,orderDate,statusName,orderedByName,shippingCarrier,trackingNumber,orderAmount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tag Orders",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "CURRENT_TAG_ORDERS_SUPER_REPORT"
      }
    },
    "/v2/tagorders/history": {
      "get": {
        "summary": "List of historical tag orders \u00b7 METRC_HISTORY_TAG_ORDERS",
        "responses": {
          "200": {
            "description": "A list of historical tag orders for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTagOrder"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "orderDate:desc",
            "description": "Defines the tag order sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "statusName__eq:Received",
            "description": "One or more tag order filters."
          }
        ],
        "tags": [
          "Tag Orders"
        ],
        "description": "**T3 endpoint id:** `METRC_HISTORY_TAG_ORDERS`. Accepted by `/v2/search` (`t3EndpointIds`).",
        "x-t3-endpoint-id": "METRC_HISTORY_TAG_ORDERS"
      }
    },
    "/v2/tagorders/history/fields": {
      "get": {
        "summary": "List the fields historical tag orders can be filtered on",
        "description": "Lists the fields `GET /v2/tagorders/history` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/tagorders/history`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Tag Orders",
          "Free"
        ]
      }
    },
    "/v2/tagorders/history/{object_id}": {
      "get": {
        "summary": "Retrieve a historical tag order by id \u00b7 METRC_HISTORY_TAG_ORDERS",
        "description": "**T3 endpoint id:** `METRC_HISTORY_TAG_ORDERS`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns a historical tag order by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTagOrder"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tag Orders"
        ],
        "x-t3-endpoint-id": "METRC_HISTORY_TAG_ORDERS"
      }
    },
    "/v2/tagorders/history/super": {
      "get": {
        "summary": "List of historical supertagorders. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_HISTORY_SUPERTAGORDERS",
        "responses": {
          "200": {
            "description": "A list of historical supertagorders for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperTagOrder"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "orderDate:desc",
            "description": "Defines the tag order sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "statusName__eq:Received",
            "description": "One or more tag order filters."
          }
        ],
        "tags": [
          "Tag Orders",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_HISTORY_SUPERTAGORDERS`.",
        "x-t3-endpoint-id": "METRC_HISTORY_SUPERTAGORDERS"
      }
    },
    "/v2/tagorders/history/super/{object_id}": {
      "get": {
        "summary": "Retrieve a historical supertagorder by id \u00b7 METRC_HISTORY_SUPERTAGORDERS",
        "description": "**T3 endpoint id:** `METRC_HISTORY_SUPERTAGORDERS`.\n\nReturns a historical supertagorder by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperTagOrder"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tag Orders",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_HISTORY_SUPERTAGORDERS"
      }
    },
    "/v2/tagorders/history/report": {
      "get": {
        "summary": "Generate a report of all historical tag orders \u00b7 HISTORY_TAG_ORDERS_REPORT",
        "description": "**T3 endpoint id:** `HISTORY_TAG_ORDERS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of historical tag orders for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTagOrderReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "orderNumber,orderDate,statusName\nSBX-MO-2026-035-0594,2026-02-04T13:19:28-06:00,Received"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "orderDate:desc",
            "description": "Defines the tag order sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "statusName__eq:Received",
            "description": "One or more tag order filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag order fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `orderedByName` becomes `Ordered By Name`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "orderNumber,orderDate,statusName,orderedByName,shippingCarrier,trackingNumber,orderAmount",
              "example": "orderNumber,orderDate,statusName,orderedByName,shippingCarrier,trackingNumber,orderAmount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tag Orders",
          "Reports"
        ],
        "x-t3-endpoint-id": "HISTORY_TAG_ORDERS_REPORT"
      }
    },
    "/v2/tagorders/history/super/report": {
      "get": {
        "summary": "Generate a super report of all historical tag orders \u00b7 HISTORY_TAG_ORDERS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `HISTORY_TAG_ORDERS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nTag orders have no sub-resource includes, so this report carries the same columns as /v2/tagorders/history/report and differs only in the derived metadata the supercollection layer supplies.\n",
        "responses": {
          "200": {
            "description": "A list of historical supertagorders for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperTagOrderReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "orderNumber,orderDate,statusName\nSBX-MO-2026-035-0594,2026-02-04T13:19:28-06:00,Received"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "orderDate:desc",
            "description": "Defines the tag order sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "statusName__eq:Received",
            "description": "One or more tag order filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag order fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `orderedByName` becomes `Ordered By Name`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "orderNumber,orderDate,statusName,orderedByName,shippingCarrier,trackingNumber,orderAmount",
              "example": "orderNumber,orderDate,statusName,orderedByName,shippingCarrier,trackingNumber,orderAmount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Tag Orders",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "HISTORY_TAG_ORDERS_SUPER_REPORT"
      }
    },
    "/v2/processingjobs/active": {
      "get": {
        "summary": "List of active processing jobs \u00b7 METRC_ACTIVE_PROCESSING_JOBS",
        "responses": {
          "200": {
            "description": "A list of active processing jobs for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcProcessingJob"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "startDate:desc",
            "description": "Defines the processing job sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "isFinished__eq:false",
            "description": "One or more processing job filters."
          }
        ],
        "tags": [
          "Processing Jobs"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_PROCESSING_JOBS`. Accepted by `/v2/search` (`t3EndpointIds`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_PROCESSING_JOBS"
      }
    },
    "/v2/processingjobs/active/{object_id}": {
      "get": {
        "summary": "Retrieve an active processing job by id \u00b7 METRC_ACTIVE_PROCESSING_JOBS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_PROCESSING_JOBS`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns an active processing job by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcProcessingJob"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Processing Jobs"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_PROCESSING_JOBS"
      }
    },
    "/v2/processingjobs/active/super": {
      "get": {
        "summary": "List of active superprocessingjobs. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_ACTIVE_SUPERPROCESSINGJOBS",
        "responses": {
          "200": {
            "description": "A list of active superprocessingjobs for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperProcessingJob"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "startDate:desc",
            "description": "Defines the processing job sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "isFinished__eq:false",
            "description": "One or more processing job filters."
          },
          {
            "$ref": "#/components/parameters/SuperProcessingJobInclude"
          }
        ],
        "tags": [
          "Processing Jobs",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERPROCESSINGJOBS`.",
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERPROCESSINGJOBS"
      }
    },
    "/v2/processingjobs/active/super/{object_id}": {
      "get": {
        "summary": "Retrieve an active superprocessingjob by id \u00b7 METRC_ACTIVE_SUPERPROCESSINGJOBS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERPROCESSINGJOBS`.\n\nReturns an active superprocessingjob by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperProcessingJob"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperProcessingJobInclude"
          }
        ],
        "tags": [
          "Processing Jobs",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERPROCESSINGJOBS"
      }
    },
    "/v2/processingjobs/active/report": {
      "get": {
        "summary": "Generate a report of all active processing jobs \u00b7 ACTIVE_PROCESSING_JOBS_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_PROCESSING_JOBS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active processing jobs for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcProcessingJobReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "number,name,jobTypeName\n0000000777,Example Extraction Job,Cannabis Extract Job"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "startDate:desc",
            "description": "Defines the processing job sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "isFinished__eq:false",
            "description": "One or more processing job filters."
          },
          {
            "name": "columns",
            "description": "Defines which processing job fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `jobTypeName` becomes `Job Type Name`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "number,name,jobTypeName,startDate,totalQuantity,isFinished,finishedDate",
              "example": "number,name,jobTypeName,startDate,totalQuantity,isFinished,finishedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Processing Jobs",
          "Reports"
        ],
        "x-t3-endpoint-id": "ACTIVE_PROCESSING_JOBS_REPORT"
      }
    },
    "/v2/processingjobs/active/super/report": {
      "get": {
        "summary": "Generate a super report of all active processing jobs \u00b7 ACTIVE_PROCESSING_JOBS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_PROCESSING_JOBS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\nAttach the job's packages or history with `include`. `sourcePackages` is the supported way to read the packages a job consumed; the `packages` array on the job record is Metrc's partial projection and carries a zeroed `processingJobId`.\n\n",
        "responses": {
          "200": {
            "description": "A list of active superprocessingjobs for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperProcessingJobReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "number,name,jobTypeName\n0000000777,Example Extraction Job,Cannabis Extract Job"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n**Too Many Includes** -- `contentType=csv` accepts at most one include, because a flat grid cannot represent two independent child collections. Use `json`, or request a single include.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/SuperProcessingJobInclude"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "startDate:desc",
            "description": "Defines the processing job sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "isFinished__eq:false",
            "description": "One or more processing job filters."
          },
          {
            "name": "columns",
            "description": "Defines which processing job fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `jobTypeName` becomes `Job Type Name`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "number,name,jobTypeName,startDate,totalQuantity,isFinished,finishedDate",
              "example": "number,name,jobTypeName,startDate,totalQuantity,isFinished,finishedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Processing Jobs",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ACTIVE_PROCESSING_JOBS_SUPER_REPORT"
      }
    },
    "/v2/processingjobs/inactive": {
      "get": {
        "summary": "List of inactive processing jobs \u00b7 METRC_INACTIVE_PROCESSING_JOBS",
        "responses": {
          "200": {
            "description": "A list of inactive processing jobs for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcProcessingJob"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "startDate:desc",
            "description": "Defines the processing job sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "jobTypeName__contains:Extract",
            "description": "One or more processing job filters."
          }
        ],
        "tags": [
          "Processing Jobs"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_PROCESSING_JOBS`. Accepted by `/v2/search` (`t3EndpointIds`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_PROCESSING_JOBS"
      }
    },
    "/v2/processingjobs/inactive/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive processing job by id \u00b7 METRC_INACTIVE_PROCESSING_JOBS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_PROCESSING_JOBS`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns an inactive processing job by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcProcessingJob"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Processing Jobs"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_PROCESSING_JOBS"
      }
    },
    "/v2/processingjobs/inactive/super": {
      "get": {
        "summary": "List of inactive superprocessingjobs. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_INACTIVE_SUPERPROCESSINGJOBS",
        "responses": {
          "200": {
            "description": "A list of inactive superprocessingjobs for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperProcessingJob"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "startDate:desc",
            "description": "Defines the processing job sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "jobTypeName__contains:Extract",
            "description": "One or more processing job filters."
          },
          {
            "$ref": "#/components/parameters/SuperProcessingJobInclude"
          }
        ],
        "tags": [
          "Processing Jobs",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERPROCESSINGJOBS`.",
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERPROCESSINGJOBS"
      }
    },
    "/v2/processingjobs/inactive/super/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive superprocessingjob by id \u00b7 METRC_INACTIVE_SUPERPROCESSINGJOBS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERPROCESSINGJOBS`.\n\nReturns an inactive superprocessingjob by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperProcessingJob"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperProcessingJobInclude"
          }
        ],
        "tags": [
          "Processing Jobs",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERPROCESSINGJOBS"
      }
    },
    "/v2/processingjobs/inactive/report": {
      "get": {
        "summary": "Generate a report of all inactive processing jobs \u00b7 INACTIVE_PROCESSING_JOBS_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_PROCESSING_JOBS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive processing jobs for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcProcessingJobReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "number,name,jobTypeName\n0000000777,Example Extraction Job,Cannabis Extract Job"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "startDate:desc",
            "description": "Defines the processing job sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "jobTypeName__contains:Extract",
            "description": "One or more processing job filters."
          },
          {
            "name": "columns",
            "description": "Defines which processing job fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `jobTypeName` becomes `Job Type Name`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "number,name,jobTypeName,startDate,totalQuantity,isFinished,finishedDate",
              "example": "number,name,jobTypeName,startDate,totalQuantity,isFinished,finishedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Processing Jobs",
          "Reports"
        ],
        "x-t3-endpoint-id": "INACTIVE_PROCESSING_JOBS_REPORT"
      }
    },
    "/v2/processingjobs/inactive/super/report": {
      "get": {
        "summary": "Generate a super report of all inactive processing jobs \u00b7 INACTIVE_PROCESSING_JOBS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_PROCESSING_JOBS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\nAttach the job's packages or history with `include`. `sourcePackages` is the supported way to read the packages a job consumed; the `packages` array on the job record is Metrc's partial projection and carries a zeroed `processingJobId`.\n\n",
        "responses": {
          "200": {
            "description": "A list of inactive superprocessingjobs for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperProcessingJobReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "number,name,jobTypeName\n0000000777,Example Extraction Job,Cannabis Extract Job"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n**Too Many Includes** -- `contentType=csv` accepts at most one include, because a flat grid cannot represent two independent child collections. Use `json`, or request a single include.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/SuperProcessingJobInclude"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "startDate:desc",
            "description": "Defines the processing job sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "jobTypeName__contains:Extract",
            "description": "One or more processing job filters."
          },
          {
            "name": "columns",
            "description": "Defines which processing job fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `jobTypeName` becomes `Job Type Name`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "number,name,jobTypeName,startDate,totalQuantity,isFinished,finishedDate",
              "example": "number,name,jobTypeName,startDate,totalQuantity,isFinished,finishedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Processing Jobs",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "INACTIVE_PROCESSING_JOBS_SUPER_REPORT"
      }
    },
    "/v2/locations/active": {
      "get": {
        "summary": "List of active locations \u00b7 METRC_ACTIVE_LOCATIONS",
        "responses": {
          "200": {
            "description": "A list of active locations for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcLocation"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the location sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:row",
            "description": "One or more location filters."
          }
        ],
        "tags": [
          "Locations"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_LOCATIONS`. Accepted by `/v2/search` (`t3EndpointIds`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_LOCATIONS"
      }
    },
    "/v2/locations/active/fields": {
      "get": {
        "summary": "List the fields active locations can be filtered on",
        "description": "Lists the fields `GET /v2/locations/active` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/locations/active`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Locations",
          "Free"
        ]
      }
    },
    "/v2/locations/active/{object_id}": {
      "get": {
        "summary": "Retrieve an active location by id \u00b7 METRC_ACTIVE_LOCATIONS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_LOCATIONS`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns an active location by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcLocation"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Locations"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_LOCATIONS"
      }
    },
    "/v2/locations/active/super": {
      "get": {
        "summary": "List of active superlocations. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_ACTIVE_SUPERLOCATIONS",
        "responses": {
          "200": {
            "description": "A list of active superlocations for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperlocation"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the location sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:vault",
            "description": "One or more location filters."
          }
        ],
        "tags": [
          "Locations",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERLOCATIONS`.",
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERLOCATIONS"
      }
    },
    "/v2/locations/active/super/{object_id}": {
      "get": {
        "summary": "Retrieve an active superlocation by id \u00b7 METRC_ACTIVE_SUPERLOCATIONS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERLOCATIONS`.\n\nReturns an active superlocation by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperlocation"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Locations",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERLOCATIONS"
      }
    },
    "/v2/locations/active/report": {
      "get": {
        "summary": "Generate a report of all available locations \u00b7 ACTIVE_LOCATIONS_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_LOCATIONS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of available locations for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTagReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name\nRow 01\nRow 02"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the location sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more location filters."
          },
          {
            "name": "columns",
            "description": "Defines which location fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name",
              "example": "name"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Locations",
          "Reports"
        ],
        "x-t3-endpoint-id": "ACTIVE_LOCATIONS_REPORT"
      }
    },
    "/v2/locations/active/super/report": {
      "get": {
        "summary": "Generate a super report of all active locations \u00b7 ACTIVE_LOCATIONS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_LOCATIONS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active superlocations for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperlocationReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name\nRoom A\nRoom B"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the location sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:e",
            "description": "One or more location filters."
          },
          {
            "name": "columns",
            "description": "Defines which location fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name",
              "example": "name"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Locations",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ACTIVE_LOCATIONS_SUPER_REPORT"
      }
    },
    "/v2/strains": {
      "get": {
        "summary": "List of active strains \u00b7 METRC_ACTIVE_STRAINS",
        "responses": {
          "200": {
            "description": "A list of active strains for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcStrain"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the strain sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:flower",
            "description": "One or more strain filters."
          }
        ],
        "tags": [
          "Strains"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_STRAINS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_STRAINS"
      }
    },
    "/v2/strains/fields": {
      "get": {
        "summary": "List the fields active strains can be filtered on",
        "description": "Lists the fields `GET /v2/strains` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/strains`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Strains",
          "Free"
        ]
      }
    },
    "/v2/strains/{object_id}": {
      "get": {
        "summary": "Retrieve an active strain by id \u00b7 METRC_ACTIVE_STRAINS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_STRAINS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an active strain by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcStrain"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Strains"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_STRAINS"
      }
    },
    "/v2/strains/super": {
      "get": {
        "summary": "List of active superstrains. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_ACTIVE_SUPERSTRAINS",
        "responses": {
          "200": {
            "description": "A list of active superstrains for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperstrain"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the strain sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:kush",
            "description": "One or more strain filters."
          }
        ],
        "tags": [
          "Strains",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERSTRAINS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERSTRAINS"
      }
    },
    "/v2/strains/super/{object_id}": {
      "get": {
        "summary": "Retrieve an active superstrain by id \u00b7 METRC_ACTIVE_SUPERSTRAINS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERSTRAINS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an active superstrain by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperstrain"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Strains",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERSTRAINS"
      }
    },
    "/v2/strains/discontinue": {
      "post": {
        "summary": "Discontinue one strain",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcDiscontinueStrainPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Strains",
          "Modify Strains"
        ]
      }
    },
    "/v2/strains/report": {
      "get": {
        "summary": "Generate a report of all active strains \u00b7 STRAINS_REPORT",
        "description": "**T3 endpoint id:** `STRAINS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active strains for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcStrainReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,sativaPercentage,indicaPercentage,isUsed\nBlue Dream,50,50,true"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the strain sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more strain filters."
          },
          {
            "name": "columns",
            "description": "Defines which strain fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,sativaPercentage,indicaPercentage,isUsed",
              "example": "name,sativaPercentage,indicaPercentage,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Strains",
          "Reports"
        ],
        "x-t3-endpoint-id": "STRAINS_REPORT"
      }
    },
    "/v2/strains/super/report": {
      "get": {
        "summary": "Generate a super report of all strains \u00b7 STRAINS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `STRAINS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of superstrains for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperstrainReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,sativaPercentage,indicaPercentage\nOG Kush,30,70\nBlue Dream,50,50"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the strain sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:as",
            "description": "One or more strain filters."
          },
          {
            "name": "columns",
            "description": "Defines which strain fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,sativaPercentage,indicaPercentage,isUsed",
              "example": "name,sativaPercentage,indicaPercentage,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Strains",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "STRAINS_SUPER_REPORT"
      }
    },
    "/v2/strains/create": {
      "post": {
        "summary": "Create one or more strains",
        "description": "**Refer to the request body schema for details on formatting your request**\n\n'\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreateStrainsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Strains",
          "Create Strains"
        ]
      }
    },
    "/v2/packages/active": {
      "get": {
        "summary": "List of active packages \u00b7 METRC_ACTIVE_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of active packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          }
        ],
        "tags": [
          "Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_PACKAGES"
      }
    },
    "/v2/packages/active/fields": {
      "get": {
        "summary": "List the fields active packages can be filtered on",
        "description": "Lists the fields `GET /v2/packages/active` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/packages/active`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Free"
        ]
      }
    },
    "/v2/packages/active/{object_id}": {
      "get": {
        "summary": "Retrieve an active package by id \u00b7 METRC_ACTIVE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).\n\nReturns an active package by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_PACKAGES"
      }
    },
    "/v2/packages/active/super": {
      "get": {
        "summary": "List of active superpackages. Additional metadata can be added using the `include` param. \u00b7 METRC_ACTIVE_SUPERPACKAGES",
        "responses": {
          "200": {
            "description": "A list of active superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperpackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERPACKAGES"
      }
    },
    "/v2/packages/active/super/{object_id}": {
      "get": {
        "summary": "Retrieve an active superpackage by id \u00b7 METRC_ACTIVE_SUPERPACKAGES",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).\n\nReturns an active superpackage by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackage"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERPACKAGES"
      }
    },
    "/v2/packages/onhold": {
      "get": {
        "summary": "List of on hold packages \u00b7 METRC_ONHOLD_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of on hold packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_ONHOLD_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ONHOLD_PACKAGES"
      }
    },
    "/v2/packages/onhold/fields": {
      "get": {
        "summary": "List the fields on hold packages can be filtered on",
        "description": "Lists the fields `GET /v2/packages/onhold` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/packages/onhold`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Free"
        ]
      }
    },
    "/v2/packages/onhold/{object_id}": {
      "get": {
        "summary": "Retrieve an on hold package by id \u00b7 METRC_ONHOLD_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).\n\nReturns an on hold package by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_PACKAGES"
      }
    },
    "/v2/packages/onhold/super": {
      "get": {
        "summary": "List of on-hold superpackages. Additional metadata can be added using the `include` param. \u00b7 METRC_ONHOLD_SUPERPACKAGES",
        "responses": {
          "200": {
            "description": "A list of on-hold superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperpackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ONHOLD_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ONHOLD_SUPERPACKAGES"
      }
    },
    "/v2/packages/onhold/super/{object_id}": {
      "get": {
        "summary": "Retrieve an on-hold superpackage by id \u00b7 METRC_ONHOLD_SUPERPACKAGES",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).\n\nReturns an on-hold superpackage by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackage"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_SUPERPACKAGES"
      }
    },
    "/v2/packages/onhold/report": {
      "get": {
        "summary": "Generate a report of all on hold packages \u00b7 ONHOLD_PACKAGES_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_PACKAGES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation",
              "example": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports"
        ],
        "x-t3-endpoint-id": "ONHOLD_PACKAGES_REPORT"
      }
    },
    "/v2/packages/onhold/super/report": {
      "get": {
        "summary": "Generate a super report of all on hold packages \u00b7 ONHOLD_PACKAGES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_PACKAGES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation",
              "example": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ONHOLD_PACKAGES_SUPER_REPORT"
      }
    },
    "/v2/packages/inactive": {
      "get": {
        "summary": "List of inactive packages \u00b7 METRC_INACTIVE_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of inactive packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_PACKAGES"
      }
    },
    "/v2/packages/inactive/fields": {
      "get": {
        "summary": "List the fields inactive packages can be filtered on",
        "description": "Lists the fields `GET /v2/packages/inactive` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/packages/inactive`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Free"
        ]
      }
    },
    "/v2/packages/inactive/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive package by id \u00b7 METRC_INACTIVE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).\n\nReturns an inactive package by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_PACKAGES"
      }
    },
    "/v2/packages/inactive/super": {
      "get": {
        "summary": "List of inactive superpackages. Additional metadata can be added using the `include` param. \u00b7 METRC_INACTIVE_SUPERPACKAGES",
        "responses": {
          "200": {
            "description": "A list of inactive superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperpackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERPACKAGES"
      }
    },
    "/v2/packages/inactive/super/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive superpackage by id \u00b7 METRC_INACTIVE_SUPERPACKAGES",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).\n\nReturns an inactive superpackage by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackage"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERPACKAGES"
      }
    },
    "/v2/packages/intransit": {
      "get": {
        "summary": "List of in transit packages \u00b7 METRC_INTRANSIT_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of in transit packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_INTRANSIT_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INTRANSIT_PACKAGES"
      }
    },
    "/v2/packages/intransit/fields": {
      "get": {
        "summary": "List the fields in transit packages can be filtered on",
        "description": "Lists the fields `GET /v2/packages/intransit` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/packages/intransit`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Free"
        ]
      }
    },
    "/v2/packages/intransit/{object_id}": {
      "get": {
        "summary": "Retrieve an in transit package by id \u00b7 METRC_INTRANSIT_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_INTRANSIT_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).\n\nReturns an in transit package by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages"
        ],
        "x-t3-endpoint-id": "METRC_INTRANSIT_PACKAGES"
      }
    },
    "/v2/packages/intransit/super": {
      "get": {
        "summary": "List of intransit superpackages. Additional metadata can be added using the `include` param. \u00b7 METRC_INTRANSIT_SUPERPACKAGES",
        "responses": {
          "200": {
            "description": "A list of intransit superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperpackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INTRANSIT_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INTRANSIT_SUPERPACKAGES"
      }
    },
    "/v2/packages/intransit/super/{object_id}": {
      "get": {
        "summary": "Retrieve an intransit superpackage by id \u00b7 METRC_INTRANSIT_SUPERPACKAGES",
        "description": "**T3 endpoint id:** `METRC_INTRANSIT_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`), COA extraction (`t3EndpointId`).\n\nReturns an intransit superpackage by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackage"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_INTRANSIT_SUPERPACKAGES"
      }
    },
    "/v2/packages/transferred": {
      "get": {
        "summary": "List of transferred packages \u00b7 METRC_TRANSFERRED_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_TRANSFERRED_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\n\n**Note: this return type is different from the other package endpoints**\n",
        "responses": {
          "200": {
            "description": "A list of transferred packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcDeliveryPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "packageLabel:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "packageLabel__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages"
        ],
        "x-t3-endpoint-id": "METRC_TRANSFERRED_PACKAGES"
      }
    },
    "/v2/packages/transferred/fields": {
      "get": {
        "summary": "List the fields transferred packages can be filtered on",
        "description": "Lists the fields `GET /v2/packages/transferred` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/packages/transferred`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Free"
        ]
      }
    },
    "/v2/packages/transferred/super": {
      "get": {
        "summary": "List of transferred superpackages. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_TRANSFERRED_SUPERPACKAGES",
        "responses": {
          "200": {
            "description": "A list of transferred superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperTransferredPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transferred package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "productName__contains:Flower",
            "description": "One or more transferred package filters."
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_TRANSFERRED_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_TRANSFERRED_SUPERPACKAGES"
      }
    },
    "/v2/packages/transferred/super/{object_id}": {
      "get": {
        "summary": "Retrieve a transferred superpackage by id \u00b7 METRC_TRANSFERRED_SUPERPACKAGES",
        "description": "**T3 endpoint id:** `METRC_TRANSFERRED_SUPERPACKAGES`. Accepted by tag lists (`t3EndpointId`).\n\nReturns a transferred superpackage by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperTransferredPackage"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `packageId`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_TRANSFERRED_SUPERPACKAGES"
      }
    },
    "/v2/packages/transferred/super/report": {
      "get": {
        "summary": "Generate a super report of all transferred packages \u00b7 TRANSFERRED_PACKAGES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `TRANSFERRED_PACKAGES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of transferred superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperTransferredPackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "manifestNumber,packageLabel,productName\n0000123456,1A4400000000000000001234,Pineapple Express Flower\n0000123457,1A4400000000000000005678,Blue Dream Flower"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transferred package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "productName__contains:Flower",
            "description": "One or more transferred package filters."
          },
          {
            "name": "columns",
            "description": "Defines which transferred package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "manifestNumber,packageLabel,productName,shippedQuantity,shippedUnitOfMeasureAbbreviation,shipperWholesalePrice",
              "example": "manifestNumber,packageLabel,productName,shippedQuantity,shippedUnitOfMeasureAbbreviation,shipperWholesalePrice"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "TRANSFERRED_PACKAGES_SUPER_REPORT"
      }
    },
    "/v2/packages/transferred/{object_id}": {
      "get": {
        "summary": "Retrieve a transferred package by id \u00b7 METRC_TRANSFERRED_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_TRANSFERRED_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns a transferred package by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n\nThis collection is keyed by `packageId`, not by `id`: a row's `id` is the id of the manifest it travelled on, shared by every package on that manifest. The id in the path is therefore the `packageId`.\n\nA package transferred more than once has one row per manifest. This endpoint returns the first; use `/v2/packages/transferred?filter=packageId__eq:<id>` for all of them.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcDeliveryPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `packageId`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages"
        ],
        "x-t3-endpoint-id": "METRC_TRANSFERRED_PACKAGES"
      }
    },
    "/v2/packages/history": {
      "get": {
        "summary": "List of package history objects for a single package \u00b7 METRC_PACKAGE_HISTORY",
        "responses": {
          "200": {
            "description": "A list of history objects for the specified package.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The package with id={packageId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "packageId",
            "description": "ID of the target package",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the history sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "userName__contains:MSmith001",
            "description": "One or more history filters."
          }
        ],
        "tags": [
          "Packages",
          "Single Package",
          "History"
        ],
        "description": "**T3 endpoint id:** `METRC_PACKAGE_HISTORY`.",
        "x-t3-endpoint-id": "METRC_PACKAGE_HISTORY"
      }
    },
    "/v2/packages/labresults": {
      "get": {
        "summary": "List of package lab result objects for a single package \u00b7 METRC_PACKAGE_LABRESULTS",
        "responses": {
          "200": {
            "description": "A list of package lab result objects for the specified package.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackageLabResult"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The package with id={packageId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "packageId",
            "description": "ID of the target package",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "testTypeName:asc",
            "description": "Defines the package lab result sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "testTypeName__contains:terpenes",
            "description": "One or more package lab result filters."
          }
        ],
        "tags": [
          "Packages",
          "Single Package",
          "Lab Results"
        ],
        "description": "**T3 endpoint id:** `METRC_PACKAGE_LABRESULTS`.",
        "x-t3-endpoint-id": "METRC_PACKAGE_LABRESULTS"
      }
    },
    "/v2/packages/labresult-batches": {
      "get": {
        "summary": "List of package lab result batch objects for a single package \u00b7 METRC_PACKAGE_LABRESULT_BATCHES",
        "responses": {
          "200": {
            "description": "A list of package lab result batch objects for the specified package.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackageLabResultBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The package with id={packageId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "packageId",
            "description": "ID of the target package",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "name": "requiredOnly",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": true
            },
            "description": "Metrc's package details page sends `requiredOnly=true` for its lab test\nbatch results list. Set at most one of `requiredOnly`, `selectedOnly` and\n`voluntaryOnly`; `false` is the same as leaving it out.\n"
          },
          {
            "name": "selectedOnly",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": true
            },
            "description": "Metrc's package details page sends `selectedOnly=true` for its required\nlab test batches list.\n"
          },
          {
            "name": "voluntaryOnly",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": true
            },
            "description": "Metrc's package details page sends `voluntaryOnly=true` for its voluntary\nlab test batches list.\n"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "testTypeName:asc",
            "description": "Defines the package lab result sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "testTypeName__contains:terpenes",
            "description": "One or more package lab result filters."
          }
        ],
        "tags": [
          "Packages",
          "Single Package",
          "Lab Results"
        ],
        "description": "**T3 endpoint id:** `METRC_PACKAGE_LABRESULT_BATCHES`.",
        "x-t3-endpoint-id": "METRC_PACKAGE_LABRESULT_BATCHES"
      }
    },
    "/v2/packages/required-labtest-batches": {
      "get": {
        "summary": "List of package required labtest batch objects for a single package \u00b7 METRC_PACKAGE_REQUIRED_LABTEST_BATCHES",
        "responses": {
          "200": {
            "description": "A list of package lab result batch objects for the specified package.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackageRequiredLabtestBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The package with id={packageId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "packageId",
            "description": "ID of the target package",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "testTypeName:asc",
            "description": "Defines the package lab result sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "testTypeName__contains:terpenes",
            "description": "One or more package lab result filters."
          }
        ],
        "tags": [
          "Packages",
          "Single Package",
          "Lab Results"
        ],
        "description": "**T3 endpoint id:** `METRC_PACKAGE_REQUIRED_LABTEST_BATCHES`.",
        "x-t3-endpoint-id": "METRC_PACKAGE_REQUIRED_LABTEST_BATCHES"
      }
    },
    "/v2/packages/source-harvests": {
      "get": {
        "summary": "List of package source harvest objects for a single package \u00b7 METRC_PACKAGE_SOURCE_HARVESTS",
        "responses": {
          "200": {
            "description": "A list of source harvest objects for the specified package.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackageSourceHarvest"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The package with id={packageId} was not found in the specified license"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "packageId",
            "description": "ID of the target package",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "testTypeName:asc",
            "description": "Defines the package source harvest result sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "testTypeName__contains:terpenes",
            "description": "One or more package source harvest result filters."
          }
        ],
        "tags": [
          "Packages",
          "Single Package",
          "Harvests"
        ],
        "description": "**T3 endpoint id:** `METRC_PACKAGE_SOURCE_HARVESTS`.",
        "x-t3-endpoint-id": "METRC_PACKAGE_SOURCE_HARVESTS"
      }
    },
    "/v2/packages/labresults/document": {
      "get": {
        "summary": "Get the COA PDF for a lab result.",
        "description": "**NOTE: A single package might have hundreds of lab results, but most will share just one or two lab test result document IDs.**\n",
        "responses": {
          "200": {
            "description": "PDF of the lab result COA",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "packageId",
            "description": "ID of the target package",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "name": "labTestResultDocumentFileId",
            "description": "ID of the target lab result",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          }
        ],
        "tags": [
          "Packages",
          "Single Package",
          "Lab Results",
          "PDF"
        ]
      }
    },
    "/v2/packages/create": {
      "post": {
        "summary": "Create one or more packages from existing active packages",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePackagesFromPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Create Packages"
        ]
      }
    },
    "/v2/packages/notes": {
      "post": {
        "summary": "Add notes to packages",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcAddPackageNotePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/create/inputs": {
      "get": {
        "summary": "Input data used for creating new packages",
        "responses": {
          "200": {
            "description": "A dictionary of data used for creating new packages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePackageInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Create Packages"
        ]
      }
    },
    "/v2/packages/create/source-packages": {
      "get": {
        "summary": "List of packages eligible to be used in creating new packages \u00b7 METRC_CREATE_PACKAGES_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of eligible packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Create Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/create/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible to be used in creating new packages by id \u00b7 METRC_CREATE_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_SOURCE_PACKAGES`.\n\nReturns a package eligible to be used in creating new packages by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Create Packages"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/create/source-items": {
      "get": {
        "summary": "List of items eligible to be used in creating new packages \u00b7 METRC_CREATE_PACKAGES_SOURCE_ITEMS",
        "responses": {
          "200": {
            "description": "A list of eligible items for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItem"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Packages",
          "Create Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_SOURCE_ITEMS`.",
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_SOURCE_ITEMS"
      }
    },
    "/v2/packages/create/source-items/{object_id}": {
      "get": {
        "summary": "Retrieve an item eligible to be used in creating new packages by id \u00b7 METRC_CREATE_PACKAGES_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_SOURCE_ITEMS`.\n\nReturns an item eligible to be used in creating new packages by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcItem"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Create Packages"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_SOURCE_ITEMS"
      }
    },
    "/v2/packages/create/source-tags": {
      "get": {
        "summary": "List of tags eligible to be used in creating new packages \u00b7 METRC_CREATE_PACKAGES_SOURCE_TAGS",
        "responses": {
          "200": {
            "description": "A list of eligible tags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Packages",
          "Create Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_SOURCE_TAGS`.",
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_SOURCE_TAGS"
      }
    },
    "/v2/packages/create/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag eligible to be used in creating new packages by id \u00b7 METRC_CREATE_PACKAGES_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_SOURCE_TAGS`.\n\nReturns a tag eligible to be used in creating new packages by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Create Packages"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_SOURCE_TAGS"
      }
    },
    "/v2/packages/create/testing": {
      "post": {
        "summary": "Create one or more packages for testing from existing active packages",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreateTestingPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Package Testing"
        ]
      }
    },
    "/v2/packages/create/testing/inputs": {
      "get": {
        "summary": "Input data used for creating new testing packages",
        "responses": {
          "200": {
            "description": "A dictionary of data used for creating new testing packages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePackageInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Package Testing"
        ]
      }
    },
    "/v2/packages/create/testing/source-packages": {
      "get": {
        "summary": "List of packages eligible to be used in creating new testing packages \u00b7 METRC_CREATE_TESTING_PACKAGES_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of eligible packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Package Testing"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_TESTING_PACKAGES_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_CREATE_TESTING_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/create/testing/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible to be used in creating new testing packages by id \u00b7 METRC_CREATE_TESTING_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_CREATE_TESTING_PACKAGES_SOURCE_PACKAGES`.\n\nReturns a package eligible to be used in creating new testing packages by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Package Testing"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_TESTING_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/create/testing/source-items": {
      "get": {
        "summary": "List of items eligible to be used in creating new testing packages \u00b7 METRC_CREATE_TESTING_PACKAGES_SOURCE_ITEMS",
        "responses": {
          "200": {
            "description": "A list of eligible items for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItem"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Packages",
          "Package Testing"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_TESTING_PACKAGES_SOURCE_ITEMS`.",
        "x-t3-endpoint-id": "METRC_CREATE_TESTING_PACKAGES_SOURCE_ITEMS"
      }
    },
    "/v2/packages/create/testing/source-items/{object_id}": {
      "get": {
        "summary": "Retrieve an item eligible to be used in creating new testing packages by id \u00b7 METRC_CREATE_TESTING_PACKAGES_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_TESTING_PACKAGES_SOURCE_ITEMS`.\n\nReturns an item eligible to be used in creating new testing packages by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcItem"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Package Testing"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_TESTING_PACKAGES_SOURCE_ITEMS"
      }
    },
    "/v2/packages/create/testing/source-tags": {
      "get": {
        "summary": "List of tags eligible to be used in creating new testing packages \u00b7 METRC_CREATE_TESTING_PACKAGES_SOURCE_TAGS",
        "responses": {
          "200": {
            "description": "A list of eligible tags for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Packages",
          "Package Testing"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_TESTING_PACKAGES_SOURCE_TAGS`.",
        "x-t3-endpoint-id": "METRC_CREATE_TESTING_PACKAGES_SOURCE_TAGS"
      }
    },
    "/v2/packages/create/testing/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag eligible to be used in creating new testing packages by id \u00b7 METRC_CREATE_TESTING_PACKAGES_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_TESTING_PACKAGES_SOURCE_TAGS`.\n\nReturns a tag eligible to be used in creating new testing packages by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Package Testing"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_TESTING_PACKAGES_SOURCE_TAGS"
      }
    },
    "/v2/packages/create/testing/lab-batches": {
      "get": {
        "summary": "List of lab test batches for a product category",
        "description": "Returns lab test batches available for the given product category, used when\nsubmitting packages for testing. The returned batch IDs are submitted in the\n`requiredLabTestBatches` field of the create testing packages payload.\n",
        "responses": {
          "200": {
            "description": "A list of lab test batches for this product category",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcLabBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "in": "query",
            "name": "productCategoryId",
            "required": true,
            "schema": {
              "type": "integer"
            },
            "description": "The product category ID to fetch lab test batches for"
          }
        ],
        "tags": [
          "Packages",
          "Package Testing"
        ]
      }
    },
    "/v2/packages/adjust": {
      "post": {
        "summary": "Adjust one or more active packages",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcAdjustPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Package Adjustment"
        ]
      }
    },
    "/v2/packages/adjust/inputs": {
      "get": {
        "summary": "Input data used for adjusting packages",
        "responses": {
          "200": {
            "description": "A dictionary of data used for adjusting packages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcAdjustPackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Package Adjustment"
        ]
      }
    },
    "/v2/packages/adjust/source-packages": {
      "get": {
        "summary": "List of active packages eligible for adjustment \u00b7 METRC_ADJUST_PACKAGES_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of active packages eligible for adjustment",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Package Adjustment"
        ],
        "description": "**T3 endpoint id:** `METRC_ADJUST_PACKAGES_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_ADJUST_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/adjust/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve an active package eligible for adjustment by id \u00b7 METRC_ADJUST_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_ADJUST_PACKAGES_SOURCE_PACKAGES`.\n\nReturns an active package eligible for adjustment by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Package Adjustment"
        ],
        "x-t3-endpoint-id": "METRC_ADJUST_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/active/report": {
      "get": {
        "summary": "Generate a report of all active packages \u00b7 ACTIVE_PACKAGES_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_PACKAGES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation",
              "example": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports"
        ],
        "x-t3-endpoint-id": "ACTIVE_PACKAGES_REPORT"
      }
    },
    "/v2/packages/inactive/report": {
      "get": {
        "summary": "Generate a report of all inactive packages \u00b7 INACTIVE_PACKAGES_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_PACKAGES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation",
              "example": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports"
        ],
        "x-t3-endpoint-id": "INACTIVE_PACKAGES_REPORT"
      }
    },
    "/v2/packages/point-in-time/report": {
      "get": {
        "summary": "Generate a report of every package a license held at a past moment \u00b7 POINT_IN_TIME_PACKAGES_REPORT",
        "description": "**T3 endpoint id:** `POINT_IN_TIME_PACKAGES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nLists every package one license held as a past day opened or closed, with the quantity each had then. The answer is worked out from each package's history, so it covers packages that have since been finished, discontinued or transferred out.\n\nA package that was on a manifest counts as held by its shipper. A package the report cannot settle is listed with `status` unknown and a `note`, never dropped. A package that has since been transferred out has no history, so its quantity is the quantity shipped, with `quantityConfidence` estimated.\n\nThe report reads every package the license could have held, and the history of each one that has changed since the date, so a license with more than 50,000 such rows, or one whose report would be too large to build, is refused. A more recent date makes a smaller report.\n",
        "responses": {
          "200": {
            "description": "Every package the license held at the moment, and every one the report could not settle",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PointInTimePackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity,unitOfMeasureAbbreviation,status,quantityConfidence,note\n1A4400000000000000001234,Package A,10,g,held,exact,\n1A4400000000000000005678,Package B,5,ea,held,estimated,Has since left the license. The quantity is what was shipped."
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid query parameter** -- the report was sent `filter`, `filterLogic`, `sort`, `include`, `rowMode` or `rowLimit`, which it does not accept, or more than one `licenseNumber`, or a `timezone` that is not an IANA zone name.\n\n**Invalid date** -- `date` is not `YYYY-MM-DD`, the moment has not happened yet, or `date` is more than 180 days back.\n\n**Invalid moment** -- `moment` is not `open` or `close`.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Report Request Too Large** -- the license could have held more than 50,000 packages at the moment, or the report would be too large to build because too many of them have changed since. A more recent `date` makes a smaller report. Reports for a license this large are not available yet.\n"
          },
          "429": {
            "description": "Rate Limit Exceeded -- this subscription has had 2 point-in-time reports built in the last hour. Asking again for a report that is already cached does not count.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "name": "date",
            "description": "The date to report on, written `YYYY-MM-DD`. It may be today or up to 180 days back, judged in the report's time zone.\n",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date",
              "example": "2026-09-30"
            }
          },
          {
            "name": "moment",
            "description": "Which end of `date` to report on. `open` is the day before anything dated on it. `close` is the day after everything dated on it, which is the same as the opening of the next day. The close of today is refused, since it has not happened yet.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "open",
                "close"
              ],
              "default": "open",
              "example": "close"
            }
          },
          {
            "name": "timezone",
            "description": "The IANA time zone `date` is read in, such as `America/Chicago`. Omit it to use the state's: Missouri is `America/Chicago`. A state that spans two zones uses the one its capital keeps.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "America/Chicago"
            }
          },
          {
            "name": "columns",
            "description": "Defines which fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `quantityConfidence` becomes `Quantity Confidence`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. They describe the item as Metrc shows it now.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,item.name,quantity,unitOfMeasureAbbreviation,status,quantityConfidence,note",
              "example": "label,item.name,quantity,unitOfMeasureAbbreviation,status,quantityConfidence,note"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports"
        ],
        "x-t3-endpoint-id": "POINT_IN_TIME_PACKAGES_REPORT"
      }
    },
    "/v2/packages/intransit/report": {
      "get": {
        "summary": "Generate a report of all in-transit packages \u00b7 INTRANSIT_PACKAGES_REPORT",
        "description": "**T3 endpoint id:** `INTRANSIT_PACKAGES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of in-transit packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation",
              "example": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports"
        ],
        "x-t3-endpoint-id": "INTRANSIT_PACKAGES_REPORT"
      }
    },
    "/v2/packages/transferred/report": {
      "get": {
        "summary": "Generate a report of all transferred packages \u00b7 TRANSFERRED_PACKAGES_REPORT",
        "description": "**T3 endpoint id:** `TRANSFERRED_PACKAGES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of transferred packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTransferredPackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "manifestNumber,packageLabel,productName,quantity\n0001234567,1A4400000000000000001234,Package A,10\n0001234567,1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "packageLabel:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "packageLabel__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "manifestNumber,packageLabel,productName,shippedQuantity,shippedUnitOfMeasureAbbreviation,shipperWholesalePrice",
              "example": "manifestNumber,packageLabel,productName,shippedQuantity,shippedUnitOfMeasureAbbreviation,shipperWholesalePrice"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports"
        ],
        "x-t3-endpoint-id": "TRANSFERRED_PACKAGES_REPORT"
      }
    },
    "/v2/packages/active/super/report": {
      "get": {
        "summary": "Generate a super report of all active packages \u00b7 ACTIVE_PACKAGES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_PACKAGES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation",
              "example": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ACTIVE_PACKAGES_SUPER_REPORT"
      }
    },
    "/v2/packages/inactive/super/report": {
      "get": {
        "summary": "Generate a super report of all inactive packages \u00b7 INACTIVE_PACKAGES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_PACKAGES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation",
              "example": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "INACTIVE_PACKAGES_SUPER_REPORT"
      }
    },
    "/v2/packages/intransit/super/report": {
      "get": {
        "summary": "Generate a super report of all in-transit packages \u00b7 INTRANSIT_PACKAGES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `INTRANSIT_PACKAGES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of in-transit superpackages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation",
              "example": "label,locationName,item.name,quantity,unitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "INTRANSIT_PACKAGES_SUPER_REPORT"
      }
    },
    "/v2/packages/unfinish": {
      "post": {
        "summary": "Unfinish packages",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcUnfinishPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/change-items": {
      "post": {
        "summary": "Change the item of one or more packages",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcChangePackageItemsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/change-items/inputs": {
      "get": {
        "summary": "Input data used for changing package items",
        "responses": {
          "200": {
            "description": "A dictionary of data used for changing package items",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePackageItemsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/change-items/source-packages": {
      "get": {
        "summary": "List of packages eligible for an item change \u00b7 METRC_CHANGE_PACKAGE_ITEMS_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "List of packages eligible for an item change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_CHANGE_PACKAGE_ITEMS_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_CHANGE_PACKAGE_ITEMS_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/change-items/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible for an item change by id \u00b7 METRC_CHANGE_PACKAGE_ITEMS_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PACKAGE_ITEMS_SOURCE_PACKAGES`.\n\nReturns a package eligible for an item change by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PACKAGE_ITEMS_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/change-items/source-items": {
      "get": {
        "summary": "List of items a package's item can be changed to \u00b7 METRC_CHANGE_PACKAGE_ITEMS_SOURCE_ITEMS",
        "responses": {
          "200": {
            "description": "List of items a package's item can be changed to",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItem"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Flower",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_CHANGE_PACKAGE_ITEMS_SOURCE_ITEMS`.",
        "x-t3-endpoint-id": "METRC_CHANGE_PACKAGE_ITEMS_SOURCE_ITEMS"
      }
    },
    "/v2/packages/change-items/source-items/{object_id}": {
      "get": {
        "summary": "Retrieve an item a package's item can be changed to by id \u00b7 METRC_CHANGE_PACKAGE_ITEMS_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PACKAGE_ITEMS_SOURCE_ITEMS`.\n\nReturns an item a package's item can be changed to by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcItem"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PACKAGE_ITEMS_SOURCE_ITEMS"
      }
    },
    "/v2/packages/change-locations": {
      "post": {
        "summary": "Move one or more packages to a different location",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcChangePackageLocationsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/change-locations/inputs": {
      "get": {
        "summary": "Input data used for changing package locations",
        "responses": {
          "200": {
            "description": "A dictionary of data used for changing package locations",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePackageLocationsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/change-locations/source-packages": {
      "get": {
        "summary": "List of packages eligible for a location change \u00b7 METRC_CHANGE_PACKAGE_LOCATIONS_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "List of packages eligible for a location change",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_CHANGE_PACKAGE_LOCATIONS_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_CHANGE_PACKAGE_LOCATIONS_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/change-locations/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible for a location change by id \u00b7 METRC_CHANGE_PACKAGE_LOCATIONS_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PACKAGE_LOCATIONS_SOURCE_PACKAGES`.\n\nReturns a package eligible for a location change by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PACKAGE_LOCATIONS_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/change-required-labtest-batches": {
      "post": {
        "summary": "Change the lab test batches one or more packages require",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcChangePackageRequiredLabTestBatchesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/change-required-labtest-batches/inputs": {
      "get": {
        "summary": "Input data used for changing package required lab test batches",
        "responses": {
          "200": {
            "description": "A dictionary of data used for changing package required lab test batches",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePackageRequiredLabTestBatchesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "packageId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 12345
            },
            "description": "The package whose lab test batches to list. Metrc serves `labTestBatches`\nonly for a named package; without one, every list comes back empty.\n"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/notes/inputs": {
      "get": {
        "summary": "Input data used for adding package notes",
        "responses": {
          "200": {
            "description": "A dictionary of data used for adding package notes",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcAddPackageNotesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/notes/source-packages": {
      "get": {
        "summary": "List of packages eligible for a note \u00b7 METRC_ADD_PACKAGE_NOTES_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "List of packages eligible for a note",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_ADD_PACKAGE_NOTES_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_ADD_PACKAGE_NOTES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/notes/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible for a note by id \u00b7 METRC_ADD_PACKAGE_NOTES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_ADD_PACKAGE_NOTES_SOURCE_PACKAGES`.\n\nReturns a package eligible for a note by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_ADD_PACKAGE_NOTES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/unfinish/inputs": {
      "get": {
        "summary": "Input data used for unfinishing packages",
        "responses": {
          "200": {
            "description": "A dictionary of data used for unfinishing packages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcUnfinishPackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/finish": {
      "post": {
        "summary": "Finish one or more packages",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcFinishPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/finish/inputs": {
      "get": {
        "summary": "Input data used for finishing packages",
        "responses": {
          "200": {
            "description": "A dictionary of data used for finishing packages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcFinishPackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/return": {
      "post": {
        "summary": "Return quantity from one or more packages to their source packages",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcReturnPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/return/inputs": {
      "get": {
        "summary": "Input data used for returning package quantity to a source package",
        "responses": {
          "200": {
            "description": "A dictionary of data used for returning package quantity to a source package",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcReturnPackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "packageId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 12345
            },
            "description": "The child package to return quantity from. Metrc serves `details`, with the\nsource package and the most that can be returned, only for a named package.\n"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/discontinue": {
      "post": {
        "summary": "Discontinue one package",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcDiscontinuePackagePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/remediate": {
      "post": {
        "summary": "Remediate one or more packages",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRemediatePackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/remediate/inputs": {
      "get": {
        "summary": "Input data used for remediating packages",
        "responses": {
          "200": {
            "description": "A dictionary of data used for remediating packages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcRemediatePackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/remediate/source-packages": {
      "get": {
        "summary": "List of packages eligible for remediation \u00b7 METRC_REMEDIATE_PACKAGES_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "List of packages eligible for remediation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "description": "**T3 endpoint id:** `METRC_REMEDIATE_PACKAGES_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_REMEDIATE_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/remediate/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible for remediation by id \u00b7 METRC_REMEDIATE_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_REMEDIATE_PACKAGES_SOURCE_PACKAGES`.\n\nReturns a package eligible for remediation by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_REMEDIATE_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/trade-sample/flag": {
      "post": {
        "summary": "Flag packages as trade sample",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcFlagTradeSamplePackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/trade-sample/flag/inputs": {
      "get": {
        "summary": "Input data used for flagging packages as trade sample",
        "responses": {
          "200": {
            "description": "A dictionary of data used for flagging packages as trade sample",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTradeSamplePackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/trade-sample/flag/source-packages": {
      "get": {
        "summary": "List of packages eligible to flag as trade sample \u00b7 METRC_FLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_FLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES`.\n\nMetrc filters eligibility server-side with the same lookup for flag and\nunflag, told apart by an `adding` flag, so this offers packages not yet flagged.\n",
        "responses": {
          "200": {
            "description": "List of packages eligible to flag as trade sample",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_FLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/trade-sample/flag/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible to flag as trade sample by id \u00b7 METRC_FLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_FLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES`.\n\nReturns a package eligible to flag as trade sample by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_FLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/trade-sample/unflag": {
      "post": {
        "summary": "Unflag packages as trade sample",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcUnflagTradeSamplePackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/trade-sample/unflag/inputs": {
      "get": {
        "summary": "Input data used for unflagging packages as trade sample",
        "responses": {
          "200": {
            "description": "A dictionary of data used for unflagging packages as trade sample",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTradeSamplePackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/trade-sample/unflag/source-packages": {
      "get": {
        "summary": "List of packages eligible to unflag as trade sample \u00b7 METRC_UNFLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_UNFLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES`.\n\nMetrc filters eligibility server-side with the same lookup for flag and\nunflag, told apart by an `adding` flag, so this offers packages already flagged.\n",
        "responses": {
          "200": {
            "description": "List of packages eligible to unflag as trade sample",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_UNFLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/trade-sample/unflag/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible to unflag as trade sample by id \u00b7 METRC_UNFLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_UNFLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES`.\n\nReturns a package eligible to unflag as trade sample by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_UNFLAG_TRADE_SAMPLE_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/donation/flag": {
      "post": {
        "summary": "Flag packages for donation",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcFlagDonationPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/donation/flag/inputs": {
      "get": {
        "summary": "Input data used for flagging packages for donation",
        "responses": {
          "200": {
            "description": "A dictionary of data used for flagging packages for donation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcDonationPackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/donation/flag/source-packages": {
      "get": {
        "summary": "List of packages eligible to flag for donation \u00b7 METRC_FLAG_DONATION_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_FLAG_DONATION_PACKAGES_SOURCE_PACKAGES`.\n\nMetrc filters eligibility server-side with the same lookup for flag and\nunflag, told apart by an `adding` flag, so this offers packages not yet flagged.\n",
        "responses": {
          "200": {
            "description": "List of packages eligible to flag for donation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_FLAG_DONATION_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/donation/flag/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible to flag for donation by id \u00b7 METRC_FLAG_DONATION_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_FLAG_DONATION_PACKAGES_SOURCE_PACKAGES`.\n\nReturns a package eligible to flag for donation by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_FLAG_DONATION_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/donation/unflag": {
      "post": {
        "summary": "Unflag packages for donation",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcUnflagDonationPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/donation/unflag/inputs": {
      "get": {
        "summary": "Input data used for unflagging packages for donation",
        "responses": {
          "200": {
            "description": "A dictionary of data used for unflagging packages for donation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcDonationPackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ]
      }
    },
    "/v2/packages/donation/unflag/source-packages": {
      "get": {
        "summary": "List of packages eligible to unflag for donation \u00b7 METRC_UNFLAG_DONATION_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_UNFLAG_DONATION_PACKAGES_SOURCE_PACKAGES`.\n\nMetrc filters eligibility server-side with the same lookup for flag and\nunflag, told apart by an `adding` flag, so this offers packages already flagged.\n",
        "responses": {
          "200": {
            "description": "List of packages eligible to unflag for donation",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_UNFLAG_DONATION_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/donation/unflag/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible to unflag for donation by id \u00b7 METRC_UNFLAG_DONATION_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_UNFLAG_DONATION_PACKAGES_SOURCE_PACKAGES`.\n\nReturns a package eligible to unflag for donation by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Modify Packages"
        ],
        "x-t3-endpoint-id": "METRC_UNFLAG_DONATION_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/product-labels": {
      "get": {
        "summary": "List of packages with product labels \u00b7 METRC_PRODUCT_LABELS",
        "description": "**T3 endpoint id:** `METRC_PRODUCT_LABELS`.\n\nMetrc's Product Labels grid: packages Retail ID labels have been downloaded\nfor. `productLabel` carries the label counts. Download a package's first\nlabels from `/v2/packages/product-labels/download/source-packages`.\n",
        "responses": {
          "200": {
            "description": "A list of packages with product labels for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ],
        "x-t3-endpoint-id": "METRC_PRODUCT_LABELS"
      }
    },
    "/v2/packages/product-labels/fields": {
      "get": {
        "summary": "List the fields packages with product labels can be filtered on",
        "description": "Lists the fields `GET /v2/packages/product-labels` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/packages/product-labels`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Free"
        ]
      }
    },
    "/v2/packages/product-labels/{object_id}": {
      "get": {
        "summary": "Retrieve a package with product labels by id \u00b7 METRC_PRODUCT_LABELS",
        "description": "**T3 endpoint id:** `METRC_PRODUCT_LABELS`.\n\nReturns a package with product labels by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ],
        "x-t3-endpoint-id": "METRC_PRODUCT_LABELS"
      }
    },
    "/v2/packages/product-labels/super": {
      "get": {
        "summary": "List of packages with product labels. Additional metadata can be added using the `include` param. \u00b7 METRC_SUPER_PRODUCT_LABELS",
        "responses": {
          "200": {
            "description": "A list of packages with product labels for this license, as superpackages",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperpackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_SUPER_PRODUCT_LABELS`.",
        "x-t3-endpoint-id": "METRC_SUPER_PRODUCT_LABELS"
      }
    },
    "/v2/packages/product-labels/super/{object_id}": {
      "get": {
        "summary": "Retrieve a package with product labels by id \u00b7 METRC_SUPER_PRODUCT_LABELS",
        "description": "**T3 endpoint id:** `METRC_SUPER_PRODUCT_LABELS`.\n\nReturns a package with product labels by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackage"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_SUPER_PRODUCT_LABELS"
      }
    },
    "/v2/packages/product-labels/report": {
      "get": {
        "summary": "Generate a report of all packages with product labels \u00b7 PRODUCT_LABELS_REPORT",
        "description": "**T3 endpoint id:** `PRODUCT_LABELS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of packages with product labels for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,sourcePackageLabels",
              "example": "label,locationName,item.name,quantity,sourcePackageLabels"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Reports"
        ],
        "x-t3-endpoint-id": "PRODUCT_LABELS_REPORT"
      }
    },
    "/v2/packages/product-labels/super/report": {
      "get": {
        "summary": "Generate a super report of all packages with product labels \u00b7 PRODUCT_LABELS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `PRODUCT_LABELS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of packages with product labels for this license, as superpackages",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperpackageReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,item.name,quantity\n1A4400000000000000001234,Package A,10\n1A4400000000000000005678,Package B,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          },
          {
            "$ref": "#/components/parameters/SuperpackageInclude"
          },
          {
            "name": "columns",
            "description": "Defines which package fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nFour nested item fields are available by dot notation: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`. No other nesting is supported, and `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,item.name,quantity,sourcePackageLabels",
              "example": "label,locationName,item.name,quantity,sourcePackageLabels"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "PRODUCT_LABELS_SUPER_REPORT"
      }
    },
    "/v2/packages/staged-product-labels": {
      "get": {
        "summary": "List of tags with staged product labels \u00b7 METRC_STAGED_PRODUCT_LABELS",
        "description": "**T3 endpoint id:** `METRC_STAGED_PRODUCT_LABELS`.\n\nMetrc's Staged Product Labels grid: tags Retail ID labels have been\ndownloaded for before a package carries them. Offered in California and\nMichigan. Download a tag's first labels from\n`/v2/packages/staged-product-labels/download/source-tags`.\n",
        "responses": {
          "200": {
            "description": "A list of tags with staged product labels for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ],
        "x-t3-endpoint-id": "METRC_STAGED_PRODUCT_LABELS"
      }
    },
    "/v2/packages/staged-product-labels/fields": {
      "get": {
        "summary": "List the fields tags with staged product labels can be filtered on",
        "description": "Lists the fields `GET /v2/packages/staged-product-labels` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/packages/staged-product-labels`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Free"
        ]
      }
    },
    "/v2/packages/staged-product-labels/{object_id}": {
      "get": {
        "summary": "Retrieve a tag with staged product labels by id \u00b7 METRC_STAGED_PRODUCT_LABELS",
        "description": "**T3 endpoint id:** `METRC_STAGED_PRODUCT_LABELS`.\n\nReturns a tag with staged product labels by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ],
        "x-t3-endpoint-id": "METRC_STAGED_PRODUCT_LABELS"
      }
    },
    "/v2/packages/staged-product-labels/super": {
      "get": {
        "summary": "List of tags with staged product labels. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_SUPER_STAGED_PRODUCT_LABELS",
        "responses": {
          "200": {
            "description": "A list of tags with staged product labels for this license, as supertags",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSupertag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_SUPER_STAGED_PRODUCT_LABELS`.",
        "x-t3-endpoint-id": "METRC_SUPER_STAGED_PRODUCT_LABELS"
      }
    },
    "/v2/packages/staged-product-labels/super/{object_id}": {
      "get": {
        "summary": "Retrieve a tag with staged product labels by id \u00b7 METRC_SUPER_STAGED_PRODUCT_LABELS",
        "description": "**T3 endpoint id:** `METRC_SUPER_STAGED_PRODUCT_LABELS`.\n\nReturns a tag with staged product labels by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupertag"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_SUPER_STAGED_PRODUCT_LABELS"
      }
    },
    "/v2/packages/staged-product-labels/report": {
      "get": {
        "summary": "Generate a report of all tags with staged product labels \u00b7 STAGED_PRODUCT_LABELS_REPORT",
        "description": "**T3 endpoint id:** `STAGED_PRODUCT_LABELS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of tags with staged product labels for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTagReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName\nCannabisPackage,1A4400000000000000001234,Used"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0",
            "description": "One or more tag filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "tagTypeName,label,statusName,isUsed",
              "example": "tagTypeName,label,statusName,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Reports"
        ],
        "x-t3-endpoint-id": "STAGED_PRODUCT_LABELS_REPORT"
      }
    },
    "/v2/packages/staged-product-labels/super/report": {
      "get": {
        "summary": "Generate a super report of all tags with staged product labels \u00b7 STAGED_PRODUCT_LABELS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `STAGED_PRODUCT_LABELS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nTags have no sub-resource includes, so this report carries the same columns as /v2/packages/staged-product-labels/report and differs only in the derived metadata the supercollection layer supplies.\n",
        "responses": {
          "200": {
            "description": "A list of tags with staged product labels for this license, as supertags",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupertagReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName\nCannabisPackage,1A4400000000000000001234,Used"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0",
            "description": "One or more tag filters."
          },
          {
            "name": "columns",
            "description": "Defines which tag fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "tagTypeName,label,statusName,isUsed",
              "example": "tagTypeName,label,statusName,isUsed"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Retail ID",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "STAGED_PRODUCT_LABELS_SUPER_REPORT"
      }
    },
    "/v2/packages/product-labels/download-history": {
      "get": {
        "summary": "List of label sets downloaded for one package",
        "description": "Metrc's download history for one package with product labels: one row per set of Retail ID\nlabels downloaded. A child package cut from a labelled package has no history\nof its own.\n",
        "responses": {
          "200": {
            "description": "The label sets downloaded for this package",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcProductLabelDownloadHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "in": "query",
            "name": "packageId",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 12345
            },
            "description": "The package ID, as the `id` of a row in `/v2/packages/product-labels`."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/staged-product-labels/download-history": {
      "get": {
        "summary": "List of label sets downloaded for one tag",
        "description": "Metrc's download history for one tag with staged product labels: one row per set of Retail ID\nlabels downloaded. A child package cut from a labelled package has no history\nof its own.\n",
        "responses": {
          "200": {
            "description": "The label sets downloaded for this tag",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcProductLabelDownloadHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "in": "query",
            "name": "tagId",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 12345
            },
            "description": "The tag ID, as the `id` of a row in `/v2/packages/staged-product-labels`."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/product-labels/download/inputs": {
      "get": {
        "summary": "Input data used for downloading product labels",
        "responses": {
          "200": {
            "description": "A dictionary of data used for downloading product labels",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcDownloadProductLabelsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/staged-product-labels/download/inputs": {
      "get": {
        "summary": "Input data used for downloading staged product labels",
        "responses": {
          "200": {
            "description": "A dictionary of data used for downloading staged product labels",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcDownloadProductLabelsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/product-labels/download/source-packages": {
      "get": {
        "summary": "List of packages eligible for a product label download \u00b7 METRC_DOWNLOAD_PRODUCT_LABELS_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_DOWNLOAD_PRODUCT_LABELS_SOURCE_PACKAGES`.\n\nMetrc's own picker for the Download Labels form, filtered server-side. A\npackage needs no labels yet to appear here.\n",
        "responses": {
          "200": {
            "description": "List of packages eligible for a product label download",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ],
        "x-t3-endpoint-id": "METRC_DOWNLOAD_PRODUCT_LABELS_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/product-labels/download/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible for a product label download by id \u00b7 METRC_DOWNLOAD_PRODUCT_LABELS_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_DOWNLOAD_PRODUCT_LABELS_SOURCE_PACKAGES`.\n\nReturns a package eligible for a product label download by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ],
        "x-t3-endpoint-id": "METRC_DOWNLOAD_PRODUCT_LABELS_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/staged-product-labels/download/source-tags": {
      "get": {
        "summary": "List of tags eligible for a staged product label download \u00b7 METRC_DOWNLOAD_STAGED_PRODUCT_LABELS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_DOWNLOAD_STAGED_PRODUCT_LABELS_SOURCE_TAGS`.\n\nMetrc's own picker for the staged Download Labels form, filtered server-side.\nOffered in California and Michigan.\n",
        "responses": {
          "200": {
            "description": "List of tags eligible for a staged product label download",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:0003",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ],
        "x-t3-endpoint-id": "METRC_DOWNLOAD_STAGED_PRODUCT_LABELS_SOURCE_TAGS"
      }
    },
    "/v2/packages/staged-product-labels/download/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag eligible for a staged product label download by id \u00b7 METRC_DOWNLOAD_STAGED_PRODUCT_LABELS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_DOWNLOAD_STAGED_PRODUCT_LABELS_SOURCE_TAGS`.\n\nReturns a tag eligible for a staged product label download by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ],
        "x-t3-endpoint-id": "METRC_DOWNLOAD_STAGED_PRODUCT_LABELS_SOURCE_TAGS"
      }
    },
    "/v2/packages/product-labels/download/compliance-templates": {
      "get": {
        "summary": "Compliance label templates for one package",
        "description": "The label templates Metrc offers when downloading this package's labels.\nCalifornia's Download Labels form asks for them; other states' forms do not.\n",
        "responses": {
          "200": {
            "description": "The templates Metrc offers for this package",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MetrcProductLabelComplianceTemplate"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "in": "query",
            "name": "packageId",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 12345
            },
            "description": "The package ID."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/staged-product-labels/download/compliance-templates": {
      "get": {
        "summary": "Compliance label templates for one tag",
        "description": "The label templates Metrc offers when downloading this tag's labels.\nCalifornia's Download Labels form asks for them; other states' forms do not.\n",
        "responses": {
          "200": {
            "description": "The templates Metrc offers for this tag",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/MetrcProductLabelComplianceTemplate"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "in": "query",
            "name": "tagId",
            "required": true,
            "schema": {
              "type": "integer",
              "example": 12345
            },
            "description": "The tag ID."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/product-labels/download": {
      "post": {
        "summary": "Issue Retail ID labels for one or more packages",
        "description": "Issues labels, and Metrc offers no way to withdraw them. Metrc's form warns\nagainst labelling bulk material, whose child packages then cannot generate\nlabels of their own.\n\n`metrcResponse.result` holds one entry per issued set, carrying `issuanceId`,\n`label`, `format` and `labelSet`. Pass `issuanceId` and `labelSet` to\n`/v2/packages/product-labels/print/csv` (or `/print/worker` for a PDF) to\nread the labels. An entry with no `issuanceId` is Metrc reporting a failure\nfor that entry.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcDownloadProductLabelsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and Metrc accepted it\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    },
                    "metrcResponse": {
                      "description": "Metrc's response to the request, with its keys camelCased. Present only when message is \"Success\". If Metrc's response is not JSON, this is its raw text.\n\n\"Success\" does not mean every entry succeeded. Metrc can report a failure for one entry inside an accepted request, so check this value before treating the operation as complete.\n"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/staged-product-labels/download": {
      "post": {
        "summary": "Issue Retail ID labels for one or more tags",
        "description": "Issues labels for tags not yet on a package, and Metrc offers no way to\nwithdraw them. California and Michigan only.\n\n`metrcResponse.result` holds one entry per issued set, carrying `issuanceId`,\n`label`, `format` and `labelSet`. Pass `issuanceId` and `labelSet` to\n`/v2/packages/product-labels/print/csv` (or `/print/worker` for a PDF) to\nread the labels. An entry with no `issuanceId` is Metrc reporting a failure\nfor that entry.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcDownloadStagedProductLabelsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and Metrc accepted it\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    },
                    "metrcResponse": {
                      "description": "Metrc's response to the request, with its keys camelCased. Present only when message is \"Success\". If Metrc's response is not JSON, this is its raw text.\n\n\"Success\" does not mean every entry succeeded. Metrc can report a failure for one entry inside an accepted request, so check this value before treating the operation as complete.\n"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/product-labels/redownload": {
      "post": {
        "summary": "Fetch Retail ID labels already issued for a package",
        "description": "Sends what the PDF and CSV buttons on Metrc's Product Labels grid and its\ndownload history rows send. A child package of a labelled package has no\nlabels of its own to fetch.\n\nAnswers like the download endpoint: `metrcResponse.result` carries the\n`issuanceId` and `labelSet` to read the labels with.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRedownloadProductLabelsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and Metrc accepted it\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    },
                    "metrcResponse": {
                      "description": "Metrc's response to the request, with its keys camelCased. Present only when message is \"Success\". If Metrc's response is not JSON, this is its raw text.\n\n\"Success\" does not mean every entry succeeded. Metrc can report a failure for one entry inside an accepted request, so check this value before treating the operation as complete.\n"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/staged-product-labels/redownload": {
      "post": {
        "summary": "Fetch Retail ID labels already issued for a tag",
        "description": "Sends what the PDF and CSV buttons on Metrc's Staged Product Labels grid and\nits download history rows send. California and Michigan only.\n\nAnswers like the download endpoint: `metrcResponse.result` carries the\n`issuanceId` and `labelSet` to read the labels with.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRedownloadProductLabelsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and Metrc accepted it\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    },
                    "metrcResponse": {
                      "description": "Metrc's response to the request, with its keys camelCased. Present only when message is \"Success\". If Metrc's response is not JSON, this is its raw text.\n\n\"Success\" does not mean every entry succeeded. Metrc can report a failure for one entry inside an accepted request, so check this value before treating the operation as complete.\n"
                    }
                  },
                  "required": [
                    "message"
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/product-labels/print/csv": {
      "get": {
        "summary": "Read one issued set of Retail ID labels as CSV rows",
        "description": "Reads labels that a download or redownload issued, for packages or tags,\nin the form Metrc's page saves as a CSV file. Use it for an entry whose\n`format` is `csv`. Each row after the header is one label.\n",
        "responses": {
          "200": {
            "description": "The set of labels, one row per label",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcProductLabelsCsv"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "in": "query",
            "name": "issuanceId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "An `issuanceId` from a download or redownload answer."
          },
          {
            "in": "query",
            "name": "labelSet",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The same entry's `labelSet`, when it has one."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/product-labels/print/worker": {
      "get": {
        "summary": "Read the instructions Metrc uses to draw one issued set of labels as a PDF",
        "description": "Use it for an entry whose `format` is `pdf` or `newPdf`. Metrc's page draws\nthe PDF in the browser from this answer; T3 returns the answer itself, with\nits keys unchanged.\n",
        "responses": {
          "200": {
            "description": "Metrc's drawing instructions for the set",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcProductLabelsWorkerJob"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "in": "query",
            "name": "issuanceId",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "An `issuanceId` from a download or redownload answer."
          },
          {
            "in": "query",
            "name": "labelSet",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "The same entry's `labelSet`, when it has one."
          }
        ],
        "tags": [
          "Packages",
          "Retail ID"
        ]
      }
    },
    "/v2/packages/lab-samples": {
      "get": {
        "summary": "List of lab samples \u00b7 METRC_LAB_SAMPLE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_LAB_SAMPLE_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nMetrc's Lab Samples grid, which only a testing lab's license has: one row per\ntest on each sample package the lab holds. Offered in Maine and Missouri.\n",
        "responses": {
          "200": {
            "description": "A list of lab sample test rows for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackageLabSample"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the lab sample sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "testTypeName__contains:THC",
            "description": "One or more lab sample filters."
          }
        ],
        "tags": [
          "Packages",
          "Lab Results"
        ],
        "x-t3-endpoint-id": "METRC_LAB_SAMPLE_PACKAGES"
      }
    },
    "/v2/packages/lab-samples/fields": {
      "get": {
        "summary": "List the fields lab samples can be filtered on",
        "description": "Lists the fields `GET /v2/packages/lab-samples` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/packages/lab-samples`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Lab Results",
          "Free"
        ]
      }
    },
    "/v2/packages/lab-samples/{object_id}": {
      "get": {
        "summary": "Retrieve a lab sample by id \u00b7 METRC_LAB_SAMPLE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_LAB_SAMPLE_PACKAGES`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns a lab sample by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n\nThis collection is keyed by `labTestDetailId`, not by `id`: the grid lists a sample once per test, and every row carries the sample's package `id`. The id in the path is therefore the `labTestDetailId`, which names one test on one sample. Use `/v2/packages/lab-samples?filter=id__eq:<id>` for every test on a sample.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackageLabSample"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `labTestDetailId`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Lab Results"
        ],
        "x-t3-endpoint-id": "METRC_LAB_SAMPLE_PACKAGES"
      }
    },
    "/v2/packages/lab-samples/super": {
      "get": {
        "summary": "List of lab samples. Each item carries derived `metadata.summary` + `metadata.description` text. \u00b7 METRC_SUPER_LAB_SAMPLE_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of lab sample test rows for this license, with derived metadata",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperPackageLabSample"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the lab sample sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "testTypeName__contains:THC",
            "description": "One or more lab sample filters."
          }
        ],
        "tags": [
          "Packages",
          "Lab Results",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_SUPER_LAB_SAMPLE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_SUPER_LAB_SAMPLE_PACKAGES"
      }
    },
    "/v2/packages/lab-samples/super/{object_id}": {
      "get": {
        "summary": "Retrieve a lab sample by id \u00b7 METRC_SUPER_LAB_SAMPLE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_SUPER_LAB_SAMPLE_PACKAGES`.\n\nReturns a lab sample by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n\nThis collection is keyed by `labTestDetailId`, not by `id`: the grid lists a sample once per test, and every row carries the sample's package `id`. The id in the path is therefore the `labTestDetailId`, which names one test on one sample. Use `/v2/packages/lab-samples/super?filter=id__eq:<id>` for every test on a sample.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperPackageLabSample"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `labTestDetailId`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Lab Results",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_SUPER_LAB_SAMPLE_PACKAGES"
      }
    },
    "/v2/packages/lab-samples/report": {
      "get": {
        "summary": "Generate a report of all lab samples \u00b7 LAB_SAMPLE_PACKAGES_REPORT",
        "description": "**T3 endpoint id:** `LAB_SAMPLE_PACKAGES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of lab sample test rows for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackageLabSampleReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName\nCannabisPackage,1A4400000000000000001234,Used"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0",
            "description": "One or more tag filters."
          },
          {
            "name": "columns",
            "description": "Defines which lab sample fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nThree item fields are available by dot notation: `item.name`, `item.strainName` and `item.productCategoryName`. `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,item.name,testTypeName,testPassed,labTestingStateName",
              "example": "label,item.name,testTypeName,testPassed,labTestingStateName"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Lab Results",
          "Reports"
        ],
        "x-t3-endpoint-id": "LAB_SAMPLE_PACKAGES_REPORT"
      }
    },
    "/v2/packages/lab-samples/super/report": {
      "get": {
        "summary": "Generate a super report of all lab samples \u00b7 LAB_SAMPLE_PACKAGES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `LAB_SAMPLE_PACKAGES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nLab samples have no sub-resource includes, so this report carries the same columns as /v2/packages/lab-samples/report and differs only in the derived metadata the supercollection layer supplies.\n",
        "responses": {
          "200": {
            "description": "A list of lab sample test rows for this license, with derived metadata",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperPackageLabSampleReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "tagTypeName,label,statusName\nCannabisPackage,1A4400000000000000001234,Used"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid Include** -- this report attaches no related data, so it accepts no `include` parameter. Any `include` value is rejected.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0",
            "description": "One or more tag filters."
          },
          {
            "name": "columns",
            "description": "Defines which lab sample fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nThree item fields are available by dot notation: `item.name`, `item.strainName` and `item.productCategoryName`. `item` on its own is not a valid field.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,item.name,testTypeName,testPassed,labTestingStateName",
              "example": "label,item.name,testTypeName,testPassed,labTestingStateName"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Packages",
          "Lab Results",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "LAB_SAMPLE_PACKAGES_SUPER_REPORT"
      }
    },
    "/v2/packages/labresults/record": {
      "post": {
        "summary": "Record lab test results for one or more sample packages",
        "description": "Only a testing lab's license can record tests, in Maine and Missouri. Each\nresult names a test type from `/v2/packages/labresults/record/inputs`.\nMissouri also takes the `documentFileId` of a result document uploaded with\n`POST /v2/packages/labresults/document/file`.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRecordLabTestsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Packages",
          "Lab Results"
        ]
      }
    },
    "/v2/packages/labresults/record/inputs": {
      "get": {
        "summary": "Input data used for recording lab tests",
        "responses": {
          "200": {
            "description": "A dictionary of data used for recording lab tests",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcRecordLabTestsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Packages",
          "Lab Results"
        ]
      }
    },
    "/v2/packages/labresults/record/source-packages": {
      "get": {
        "summary": "List of packages eligible for recorded lab tests \u00b7 METRC_RECORD_LAB_TESTS_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_RECORD_LAB_TESTS_SOURCE_PACKAGES`.\n\nMetrc's own picker for the Record Tests form, filtered server-side.\n",
        "responses": {
          "200": {
            "description": "List of packages eligible for recorded lab tests",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Lab Results"
        ],
        "x-t3-endpoint-id": "METRC_RECORD_LAB_TESTS_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/labresults/record/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible for recorded lab tests by id \u00b7 METRC_RECORD_LAB_TESTS_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_RECORD_LAB_TESTS_SOURCE_PACKAGES`.\n\nReturns a package eligible for recorded lab tests by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Lab Results"
        ],
        "x-t3-endpoint-id": "METRC_RECORD_LAB_TESTS_SOURCE_PACKAGES"
      }
    },
    "/v2/packages/labresults/document/history": {
      "get": {
        "summary": "List of documents uploaded for one lab test result \u00b7 METRC_LAB_TEST_DOCUMENT_HISTORY",
        "description": "**T3 endpoint id:** `METRC_LAB_TEST_DOCUMENT_HISTORY`.\n\nEvery result document uploaded for a lab test result. Read\n`labTestResultId` from `/v2/packages/labresults`.\n",
        "responses": {
          "200": {
            "description": "The documents uploaded for the lab test result",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcLabTestDocumentHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "labTestResultId",
            "description": "The `labTestResultId` of a row in `/v2/packages/labresults`.",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "recordedDateTime:desc",
            "description": "Defines the document sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "fileName__contains:coa",
            "description": "One or more document filters."
          }
        ],
        "tags": [
          "Packages",
          "Single Package",
          "Lab Results"
        ],
        "x-t3-endpoint-id": "METRC_LAB_TEST_DOCUMENT_HISTORY"
      }
    },
    "/v2/packages/labresults/document/file": {
      "post": {
        "summary": "Upload a lab result document",
        "description": "Missouri testing labs only. Stores a PDF and answers with its\n`documentFileId`, which `POST /v2/packages/labresults/record` takes. A dry\nrun unless `submit=true`.\n",
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "file"
                ],
                "properties": {
                  "file": {
                    "type": "string",
                    "format": "binary",
                    "description": "The PDF to upload"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The document was stored",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "documentFileId": {
                      "type": "integer",
                      "description": "ID of the stored document"
                    }
                  },
                  "example": {
                    "documentFileId": 301
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request (missing file)"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          }
        ],
        "tags": [
          "Packages",
          "Lab Results",
          "Files"
        ]
      }
    },
    "/v2/permissions/views": {
      "get": {
        "summary": "List of all available permission views",
        "description": "**A T3+ subscription is not required to use this endpoint**\n",
        "responses": {
          "200": {
            "description": "A list of permission views available to this account",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "example": [
                    "packages",
                    "admin/items",
                    "plants"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Permissions",
          "Free"
        ]
      }
    },
    "/v2/permissions": {
      "get": {
        "summary": "List of all permissions within a single view",
        "description": "**A T3+ subscription is not required to use this endpoint**\n",
        "responses": {
          "200": {
            "description": "Everything the account can do within the specified view, as a flat array of `view[/tab][:action]` strings.\n\nAn entry without an action names a **sub-view** \u2014 one of the grid tabs the page renders, such as `packages/active`. Its presence is what tells you a collection scoped to that tab can be read at all: California serves no Vegetative plant tab, so `plants/plantsvegetative` is absent there and `/v2/plants/vegetative` will not work.\n\nAn entry with an action names a modal the account can open. Most actions are scoped to the tab whose selection they act on (`plants/plantsflowering:harvest_flowering_plants`); actions that act on the whole page carry no tab (`plants:new_address`).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "example": [
                    "packages/active",
                    "packages/inactive",
                    "packages:add_items",
                    "packages/active:new_packages",
                    "packages/active:remediate_packages"
                  ],
                  "items": {
                    "type": "string"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The license does not have this view (`code: METRC_RESOURCE_UNAUTHORIZED`). Metrc answers a view the license lacks by redirecting to one it has; T3 reports the refusal rather than that page's permissions. List the views with `/v2/permissions/views` first."
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "view",
            "description": "Specifies the view to check permissions",
            "required": true,
            "in": "query",
            "schema": {
              "type": "string",
              "example": "packages"
            }
          }
        ],
        "tags": [
          "Permissions",
          "Free"
        ]
      }
    },
    "/v2/metrc/pages": {
      "get": {
        "summary": "List Metrc pages and their tables",
        "description": "Lists the pages of the Metrc web app and the tables (grids) on each one, with\nlinks that open them for one license.\n\n\n**A T3+ subscription is not required to use this endpoint.**\n\n\nEvery page is listed for every license, whether or not this account or\nlicense can open it. Use `GET /v2/permissions/views` to check access.\n\n\nLinks use the session's Metrc hostname, so a sandbox session gets sandbox\nlinks. No request is sent to Metrc.\n\n\nEach table's `t3EndpointId` matches the `t3EndpointId` of a search result, so a\nsearch hit can link to the table it came from. `gridSelector` is the value of\nthe Metrc tab's `data-grid-selector` attribute.\n\n\nSee the [Metrc Pages wiki page](https://wiki.trackandtrace.tools/t3-api/metrc-pages/)\nfor examples.\n",
        "responses": {
          "200": {
            "description": "Every Metrc page, in the order of Metrc's navigation menu.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPagesResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired\n(`code: METRC_SESSION_EXPIRED`). Authenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`).\nIf the license was added recently, authenticate again to refresh the\nlicense list.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Metrc Pages",
          "Free"
        ]
      }
    },
    "/v2/transfers/incoming/active": {
      "get": {
        "summary": "List of incoming active transfers \u00b7 METRC_INCOMING_ACTIVE_TRANSFERS",
        "responses": {
          "200": {
            "description": "A list of incoming inactive transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcIncomingTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          }
        ],
        "tags": [
          "Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_INCOMING_ACTIVE_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INCOMING_ACTIVE_TRANSFERS"
      }
    },
    "/v2/transfers/incoming/active/fields": {
      "get": {
        "summary": "List the fields incoming active transfers can be filtered on",
        "description": "Lists the fields `GET /v2/transfers/incoming/active` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/transfers/incoming/active`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Free"
        ]
      }
    },
    "/v2/transfers/incoming/active/{object_id}": {
      "get": {
        "summary": "Retrieve an incoming active transfer by id \u00b7 METRC_INCOMING_ACTIVE_TRANSFERS",
        "description": "**T3 endpoint id:** `METRC_INCOMING_ACTIVE_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an incoming active transfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcIncomingTransfer"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Transfers"
        ],
        "x-t3-endpoint-id": "METRC_INCOMING_ACTIVE_TRANSFERS"
      }
    },
    "/v2/transfers/incoming/active/super": {
      "get": {
        "summary": "List of incoming active supertransfers. Additional data can be added using the `include` param. \u00b7 METRC_INCOMING_ACTIVE_SUPERTRANSFERS",
        "responses": {
          "200": {
            "description": "A list of incoming active supertransfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcIncomingSuperTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INCOMING_ACTIVE_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INCOMING_ACTIVE_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/incoming/active/super/{object_id}": {
      "get": {
        "summary": "Retrieve an incoming active supertransfer by id \u00b7 METRC_INCOMING_ACTIVE_SUPERTRANSFERS",
        "description": "**T3 endpoint id:** `METRC_INCOMING_ACTIVE_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an incoming active supertransfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcIncomingSuperTransfer"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_INCOMING_ACTIVE_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/incoming/active/report": {
      "get": {
        "summary": "Generate a report of all active incoming transfers \u00b7 INCOMING_ACTIVE_TRANSFERS_REPORT",
        "description": "**T3 endpoint id:** `INCOMING_ACTIVE_TRANSFERS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nOne row per transfer. For a row per package -- with transporter and delivery detail cross-joined in -- use the transfer manifest reports instead.\n",
        "responses": {
          "200": {
            "description": "A list of active incoming transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcIncomingTransferReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount\n0000012345,Sample Cultivation LLC,Example Dispensary LLC,4\n0000012346,Sample Cultivation LLC,Example Dispensary LLC,2"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "createdDateTime:desc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "name": "columns",
            "description": "Defines which transfer fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime",
              "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports"
        ],
        "x-t3-endpoint-id": "INCOMING_ACTIVE_TRANSFERS_REPORT"
      }
    },
    "/v2/transfers/incoming/inactive": {
      "get": {
        "summary": "List of incoming inactive transfers \u00b7 METRC_INCOMING_INACTIVE_TRANSFERS",
        "responses": {
          "200": {
            "description": "A list of incoming active transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcIncomingTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          }
        ],
        "tags": [
          "Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_INCOMING_INACTIVE_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INCOMING_INACTIVE_TRANSFERS"
      }
    },
    "/v2/transfers/incoming/inactive/fields": {
      "get": {
        "summary": "List the fields incoming inactive transfers can be filtered on",
        "description": "Lists the fields `GET /v2/transfers/incoming/inactive` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/transfers/incoming/inactive`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Free"
        ]
      }
    },
    "/v2/transfers/incoming/inactive/{object_id}": {
      "get": {
        "summary": "Retrieve an incoming inactive transfer by id \u00b7 METRC_INCOMING_INACTIVE_TRANSFERS",
        "description": "**T3 endpoint id:** `METRC_INCOMING_INACTIVE_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an incoming inactive transfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcIncomingTransfer"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Transfers"
        ],
        "x-t3-endpoint-id": "METRC_INCOMING_INACTIVE_TRANSFERS"
      }
    },
    "/v2/transfers/incoming/inactive/super": {
      "get": {
        "summary": "List of incoming inactive supertransfers. Additional data can be added using the `include` param. \u00b7 METRC_INCOMING_INACTIVE_SUPERTRANSFERS",
        "responses": {
          "200": {
            "description": "A list of incoming inactive supertransfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcIncomingSuperTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INCOMING_INACTIVE_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INCOMING_INACTIVE_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/incoming/inactive/super/{object_id}": {
      "get": {
        "summary": "Retrieve an incoming inactive supertransfer by id \u00b7 METRC_INCOMING_INACTIVE_SUPERTRANSFERS",
        "description": "**T3 endpoint id:** `METRC_INCOMING_INACTIVE_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an incoming inactive supertransfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcIncomingSuperTransfer"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_INCOMING_INACTIVE_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/incoming/inactive/report": {
      "get": {
        "summary": "Generate a report of all inactive incoming transfers \u00b7 INCOMING_INACTIVE_TRANSFERS_REPORT",
        "description": "**T3 endpoint id:** `INCOMING_INACTIVE_TRANSFERS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nOne row per transfer. For a row per package -- with transporter and delivery detail cross-joined in -- use the transfer manifest reports instead.\n",
        "responses": {
          "200": {
            "description": "A list of inactive incoming transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcIncomingTransferReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount\n0000012345,Sample Cultivation LLC,Example Dispensary LLC,4\n0000012346,Sample Cultivation LLC,Example Dispensary LLC,2"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "createdDateTime:desc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "name": "columns",
            "description": "Defines which transfer fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime",
              "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports"
        ],
        "x-t3-endpoint-id": "INCOMING_INACTIVE_TRANSFERS_REPORT"
      }
    },
    "/v2/transfers/outgoing/active": {
      "get": {
        "summary": "List of outgoing active transfers \u00b7 METRC_OUTGOING_ACTIVE_TRANSFERS",
        "responses": {
          "200": {
            "description": "A list of outgoing active transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcOutgoingTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          }
        ],
        "tags": [
          "Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_OUTGOING_ACTIVE_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_OUTGOING_ACTIVE_TRANSFERS"
      }
    },
    "/v2/transfers/outgoing/active/fields": {
      "get": {
        "summary": "List the fields outgoing active transfers can be filtered on",
        "description": "Lists the fields `GET /v2/transfers/outgoing/active` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/transfers/outgoing/active`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Free"
        ]
      }
    },
    "/v2/transfers/outgoing/active/{object_id}": {
      "get": {
        "summary": "Retrieve an outgoing active transfer by id \u00b7 METRC_OUTGOING_ACTIVE_TRANSFERS",
        "description": "**T3 endpoint id:** `METRC_OUTGOING_ACTIVE_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an outgoing active transfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcOutgoingTransfer"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Transfers"
        ],
        "x-t3-endpoint-id": "METRC_OUTGOING_ACTIVE_TRANSFERS"
      }
    },
    "/v2/transfers/outgoing/active/super": {
      "get": {
        "summary": "List of outgoing active supertransfers. Additional data can be added using the `include` param. \u00b7 METRC_OUTGOING_ACTIVE_SUPERTRANSFERS",
        "responses": {
          "200": {
            "description": "A list of outgoing active supertransfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcOutgoingSuperTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_OUTGOING_ACTIVE_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_OUTGOING_ACTIVE_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/outgoing/active/super/{object_id}": {
      "get": {
        "summary": "Retrieve an outgoing active supertransfer by id \u00b7 METRC_OUTGOING_ACTIVE_SUPERTRANSFERS",
        "description": "**T3 endpoint id:** `METRC_OUTGOING_ACTIVE_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an outgoing active supertransfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcOutgoingSuperTransfer"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_OUTGOING_ACTIVE_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/outgoing/active/report": {
      "get": {
        "summary": "Generate a report of all active outgoing transfers \u00b7 OUTGOING_ACTIVE_TRANSFERS_REPORT",
        "description": "**T3 endpoint id:** `OUTGOING_ACTIVE_TRANSFERS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nOne row per transfer. For a row per package -- with transporter and delivery detail cross-joined in -- use the transfer manifest reports instead.\n",
        "responses": {
          "200": {
            "description": "A list of active outgoing transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcOutgoingTransferReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount\n0000012345,Sample Cultivation LLC,Example Dispensary LLC,4\n0000012346,Sample Cultivation LLC,Example Dispensary LLC,2"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "createdDateTime:desc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "name": "columns",
            "description": "Defines which transfer fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime",
              "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports"
        ],
        "x-t3-endpoint-id": "OUTGOING_ACTIVE_TRANSFERS_REPORT"
      }
    },
    "/v2/transfers/outgoing/inactive": {
      "get": {
        "summary": "List of outgoing inactive transfers \u00b7 METRC_OUTGOING_INACTIVE_TRANSFERS",
        "responses": {
          "200": {
            "description": "A list of outgoing inactive transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcOutgoingTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          }
        ],
        "tags": [
          "Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_OUTGOING_INACTIVE_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_OUTGOING_INACTIVE_TRANSFERS"
      }
    },
    "/v2/transfers/outgoing/inactive/fields": {
      "get": {
        "summary": "List the fields outgoing inactive transfers can be filtered on",
        "description": "Lists the fields `GET /v2/transfers/outgoing/inactive` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/transfers/outgoing/inactive`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Free"
        ]
      }
    },
    "/v2/transfers/outgoing/inactive/{object_id}": {
      "get": {
        "summary": "Retrieve an outgoing inactive transfer by id \u00b7 METRC_OUTGOING_INACTIVE_TRANSFERS",
        "description": "**T3 endpoint id:** `METRC_OUTGOING_INACTIVE_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an outgoing inactive transfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcOutgoingTransfer"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Transfers"
        ],
        "x-t3-endpoint-id": "METRC_OUTGOING_INACTIVE_TRANSFERS"
      }
    },
    "/v2/transfers/outgoing/inactive/super": {
      "get": {
        "summary": "List of outgoing inactive supertransfers. Additional data can be added using the `include` param. \u00b7 METRC_OUTGOING_INACTIVE_SUPERTRANSFERS",
        "responses": {
          "200": {
            "description": "A list of outgoing inactive supertransfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcOutgoingSuperTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_OUTGOING_INACTIVE_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_OUTGOING_INACTIVE_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/outgoing/inactive/super/{object_id}": {
      "get": {
        "summary": "Retrieve an outgoing inactive supertransfer by id \u00b7 METRC_OUTGOING_INACTIVE_SUPERTRANSFERS",
        "description": "**T3 endpoint id:** `METRC_OUTGOING_INACTIVE_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an outgoing inactive supertransfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcOutgoingSuperTransfer"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_OUTGOING_INACTIVE_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/outgoing/inactive/report": {
      "get": {
        "summary": "Generate a report of all inactive outgoing transfers \u00b7 OUTGOING_INACTIVE_TRANSFERS_REPORT",
        "description": "**T3 endpoint id:** `OUTGOING_INACTIVE_TRANSFERS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nOne row per transfer. For a row per package -- with transporter and delivery detail cross-joined in -- use the transfer manifest reports instead.\n",
        "responses": {
          "200": {
            "description": "A list of inactive outgoing transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcOutgoingTransferReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount\n0000012345,Sample Cultivation LLC,Example Dispensary LLC,4\n0000012346,Sample Cultivation LLC,Example Dispensary LLC,2"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "createdDateTime:desc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "name": "columns",
            "description": "Defines which transfer fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime",
              "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports"
        ],
        "x-t3-endpoint-id": "OUTGOING_INACTIVE_TRANSFERS_REPORT"
      }
    },
    "/v2/transfers/rejected": {
      "get": {
        "summary": "List of rejected transfers \u00b7 METRC_OUTGOING_REJECTED_TRANSFERS",
        "responses": {
          "200": {
            "description": "A list of rejected transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcOutgoingTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          }
        ],
        "tags": [
          "Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_OUTGOING_REJECTED_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_OUTGOING_REJECTED_TRANSFERS"
      }
    },
    "/v2/transfers/rejected/fields": {
      "get": {
        "summary": "List the fields rejected transfers can be filtered on",
        "description": "Lists the fields `GET /v2/transfers/rejected` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/transfers/rejected`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Free"
        ]
      }
    },
    "/v2/transfers/rejected/{object_id}": {
      "get": {
        "summary": "Retrieve a rejected transfer by id \u00b7 METRC_OUTGOING_REJECTED_TRANSFERS",
        "description": "**T3 endpoint id:** `METRC_OUTGOING_REJECTED_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns a rejected transfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcOutgoingTransfer"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Transfers"
        ],
        "x-t3-endpoint-id": "METRC_OUTGOING_REJECTED_TRANSFERS"
      }
    },
    "/v2/transfers/rejected/super": {
      "get": {
        "summary": "List of rejected outgoing supertransfers. Additional data can be added using the `include` param. \u00b7 METRC_OUTGOING_REJECTED_SUPERTRANSFERS",
        "responses": {
          "200": {
            "description": "A list of rejected outgoing supertransfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcOutgoingSuperTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_OUTGOING_REJECTED_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_OUTGOING_REJECTED_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/rejected/super/{object_id}": {
      "get": {
        "summary": "Retrieve a rejected outgoing supertransfer by id \u00b7 METRC_OUTGOING_REJECTED_SUPERTRANSFERS",
        "description": "**T3 endpoint id:** `METRC_OUTGOING_REJECTED_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns a rejected outgoing supertransfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcOutgoingSuperTransfer"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SupertransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_OUTGOING_REJECTED_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/rejected/report": {
      "get": {
        "summary": "Generate a report of all rejected transfers \u00b7 OUTGOING_REJECTED_TRANSFERS_REPORT",
        "description": "**T3 endpoint id:** `OUTGOING_REJECTED_TRANSFERS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nOne row per transfer. For a row per package -- with transporter and delivery detail cross-joined in -- use the transfer manifest reports instead.\n",
        "responses": {
          "200": {
            "description": "A list of rejected transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcOutgoingTransferReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount\n0000012345,Sample Cultivation LLC,Example Dispensary LLC,4\n0000012346,Sample Cultivation LLC,Example Dispensary LLC,2"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "createdDateTime:desc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "name": "columns",
            "description": "Defines which transfer fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime",
              "example": "manifestNumber,shipperFacilityName,recipientFacilityName,packageCount,createdDateTime"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports"
        ],
        "x-t3-endpoint-id": "OUTGOING_REJECTED_TRANSFERS_REPORT"
      }
    },
    "/v2/transfers/templates": {
      "get": {
        "summary": "List of transfer templates \u00b7 METRC_TRANSFER_TEMPLATES",
        "responses": {
          "200": {
            "description": "A list of transfer templates for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTransferTemplate"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Templates"
        ],
        "description": "**T3 endpoint id:** `METRC_TRANSFER_TEMPLATES`. Accepted by `/v2/search` (`t3EndpointIds`).",
        "x-t3-endpoint-id": "METRC_TRANSFER_TEMPLATES"
      }
    },
    "/v2/transfers/templates/fields": {
      "get": {
        "summary": "List the fields transfer templates can be filtered on",
        "description": "Lists the fields `GET /v2/transfers/templates` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/transfers/templates`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Templates",
          "Free"
        ]
      }
    },
    "/v2/transfers/templates/{object_id}": {
      "get": {
        "summary": "Retrieve a transfer template by id \u00b7 METRC_TRANSFER_TEMPLATES",
        "description": "**T3 endpoint id:** `METRC_TRANSFER_TEMPLATES`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns a transfer template by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTransferTemplate"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Templates"
        ],
        "x-t3-endpoint-id": "METRC_TRANSFER_TEMPLATES"
      }
    },
    "/v2/transfers/manifest": {
      "get": {
        "summary": "Get the manifest PDF for a transfer.",
        "responses": {
          "200": {
            "description": "PDF of the manifest",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/ManifestNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Single Transfer",
          "Files",
          "PDF",
          "Manifests"
        ]
      }
    },
    "/v2/transfers/deliveries": {
      "get": {
        "summary": "List of deliveries for a single transfer \u00b7 METRC_TRANSFER_DELIVERIES",
        "responses": {
          "200": {
            "description": "A list of deliveries for a single transfer",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTransferDelivery"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/ManifestNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "recipientFacilityName:asc",
            "description": "Defines the delivery sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "recipientFacilityName__endswith:industries",
            "description": "One or more delivery filters."
          }
        ],
        "tags": [
          "Single Transfer",
          "Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_TRANSFER_DELIVERIES`.",
        "x-t3-endpoint-id": "METRC_TRANSFER_DELIVERIES"
      }
    },
    "/v2/transfers/transporter-details": {
      "get": {
        "summary": "List of transporter detailss for a single transfer \u00b7 METRC_TRANSFER_TRANSPORTER_DETAILS",
        "responses": {
          "200": {
            "description": "A list of transporter details for a single tarnsfer",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTransferTransporterDetails"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/ManifestNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "transporterFacilityName:asc",
            "description": "Defines the delivery sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "transporterFacilityName__endswith:industries",
            "description": "One or more delivery filters."
          }
        ],
        "tags": [
          "Single Transfer",
          "Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_TRANSFER_TRANSPORTER_DETAILS`.",
        "x-t3-endpoint-id": "METRC_TRANSFER_TRANSPORTER_DETAILS"
      }
    },
    "/v2/transfers/transporters": {
      "get": {
        "summary": "List of transporters for a single delivery \u00b7 METRC_DELIVERY_TRANSPORTERS",
        "responses": {
          "200": {
            "description": "A list of transporters for a single delivery",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTransferTransporter"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/DeliveryId"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "transporterFacilityName:asc",
            "description": "Defines the delivery sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "transporterFacilityName__endswith:industries",
            "description": "One or more delivery filters."
          }
        ],
        "tags": [
          "Single Transfer",
          "Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_DELIVERY_TRANSPORTERS`.",
        "x-t3-endpoint-id": "METRC_DELIVERY_TRANSPORTERS"
      }
    },
    "/v2/transfers/packages": {
      "get": {
        "summary": "List of packages for a single delivery \u00b7 METRC_TRANSFER_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of packages for a single delivery",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTransferDelivery"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/DeliveryId"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "packageLabel:asc",
            "description": "Defines the delivery package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "packageLabel__endswith:0003",
            "description": "One or more delivery package filters."
          }
        ],
        "tags": [
          "Single Transfer",
          "Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_TRANSFER_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_TRANSFER_PACKAGES"
      }
    },
    "/v2/transfers/history": {
      "get": {
        "summary": "List of transfer history objects for a single transfer \u00b7 METRC_TRANSFER_HISTORY",
        "responses": {
          "200": {
            "description": "A list of history objects for the specified transfer.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "404": {
            "description": "The transfer with manifestNumber={manifestNumber} was not found in the specified license, or you do not have access to view this transfer's history"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/ManifestNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the history sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "userName__contains:MSmith001",
            "description": "One or more history filters."
          }
        ],
        "tags": [
          "Single Transfer",
          "Transfers",
          "History"
        ],
        "description": "**T3 endpoint id:** `METRC_TRANSFER_HISTORY`.",
        "x-t3-endpoint-id": "METRC_TRANSFER_HISTORY"
      }
    },
    "/v2/transfers/create/inputs": {
      "get": {
        "summary": "Input data used for creating new transers",
        "responses": {
          "200": {
            "description": "A dictionary of data used for creating new transfers",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreateTransferInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Create Transfers"
        ]
      }
    },
    "/v2/transfers/create": {
      "post": {
        "summary": "Create a transfer",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreateTransfersPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Create Transfers"
        ]
      }
    },
    "/v2/transfers/update": {
      "post": {
        "summary": "Update a transfer",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcUpdateTransfersPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Modify Transfer"
        ]
      }
    },
    "/v2/transfers/void": {
      "post": {
        "summary": "Void one transfer",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcVoidTransferPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Modify Transfer"
        ]
      }
    },
    "/v2/transfers/receive/inputs": {
      "get": {
        "summary": "Input data used for receiving transfers",
        "responses": {
          "200": {
            "description": "Locations, units of measure, and rejection reasons used when receiving",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcReceiveTransferInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Receive Transfer"
        ]
      }
    },
    "/v2/transfers/receive": {
      "post": {
        "summary": "Receive one or more incoming transfers",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcReceiveTransfersPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Receive Transfer"
        ]
      }
    },
    "/v2/transfers/approve": {
      "post": {
        "summary": "Approve one or more incoming transfers",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcApproveTransfersPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Receive Transfer"
        ]
      }
    },
    "/v2/transfers/reject/inputs": {
      "get": {
        "summary": "Input data used for rejecting transfers",
        "responses": {
          "200": {
            "description": "Rejection reasons available at the approval step",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcRejectTransferInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Receive Transfer"
        ]
      }
    },
    "/v2/transfers/reject": {
      "post": {
        "summary": "Reject one or more incoming transfers",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRejectTransfersPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Receive Transfer"
        ]
      }
    },
    "/v2/transfers/rejected/receive/inputs": {
      "get": {
        "summary": "Input data used for taking back rejected transfers",
        "responses": {
          "200": {
            "description": "Locations, units and reasons used when taking back a rejection",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcReceiveRejectedTransferInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "in": "query",
            "name": "transferId",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 12345
            },
            "description": "The rejected transfer to open the modal against, from\n[rejected transfers](#/Transfers/get_v2_transfers_rejected). Omit it and\nonly the option lists come back.\n"
          },
          {
            "in": "query",
            "name": "deliveryId",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 6789
            },
            "description": "The delivery the packages are returning on, from the same listing's\n`deliveryId`. Required alongside `transferId` for `details` to be populated.\n"
          }
        ],
        "tags": [
          "Transfers",
          "Receive Transfer"
        ]
      }
    },
    "/v2/transfers/rejected/receive": {
      "post": {
        "summary": "Take back one or more rejected transfers",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcReceiveRejectedTransfersPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Receive Transfer"
        ]
      }
    },
    "/v2/transfers/notes/inputs": {
      "get": {
        "summary": "Input data used for adding transfer notes",
        "responses": {
          "200": {
            "description": "Reasons available when adding a note to a transfer",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreateTransferNoteInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Notes"
        ]
      }
    },
    "/v2/transfers/notes/create": {
      "post": {
        "summary": "Add one or more notes to a transfer",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreateTransferNotesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Notes"
        ]
      }
    },
    "/v2/transfers/notes/void": {
      "post": {
        "summary": "Void one transfer note",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcVoidTransferNotePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Notes"
        ]
      }
    },
    "/v2/transfers/templates/create": {
      "post": {
        "summary": "Create a transfer template",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreateTransferTemplatesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Templates",
          "Create Transfers"
        ]
      }
    },
    "/v2/transfers/templates/update": {
      "post": {
        "summary": "Update a transfer template",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcUpdateTransferTemplatesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfer Templates",
          "Modify Transfer Template"
        ]
      }
    },
    "/v2/transfers/templates/archive": {
      "post": {
        "summary": "Archive one transfer template",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcArchiveTransferTemplatePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Templates",
          "Modify Transfer"
        ]
      }
    },
    "/v2/transfers/create/destinations": {
      "get": {
        "summary": "List of destination facilities eligible to be used in creating new transfers \u00b7 METRC_CREATE_TRANSFER_DESTINATIONS",
        "responses": {
          "200": {
            "description": "A list of eligible facilities for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcFacility"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "facilityName:asc",
            "description": "Defines the facility sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "facilityName__endswith:LLC",
            "description": "One or more facility filters."
          }
        ],
        "tags": [
          "Packages",
          "Transfers",
          "Facilities",
          "Create Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_TRANSFER_DESTINATIONS`.",
        "x-t3-endpoint-id": "METRC_CREATE_TRANSFER_DESTINATIONS"
      }
    },
    "/v2/transfers/create/destinations/{object_id}": {
      "get": {
        "summary": "Retrieve a destination facility eligible to be used in creating new transfers by id \u00b7 METRC_CREATE_TRANSFER_DESTINATIONS",
        "description": "**T3 endpoint id:** `METRC_CREATE_TRANSFER_DESTINATIONS`.\n\nReturns a destination facility eligible to be used in creating new transfers by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcFacility"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Transfers",
          "Facilities",
          "Create Transfers"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_TRANSFER_DESTINATIONS"
      }
    },
    "/v2/transfers/create/transporters": {
      "get": {
        "summary": "List of transporter facilities eligible to be used in creating new transfers \u00b7 METRC_CREATE_DELIVERY_TRANSPORTERS",
        "responses": {
          "200": {
            "description": "A list of eligible facilities for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcFacility"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "facilityName:asc",
            "description": "Defines the facility sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "facilityName__endswith:LLC",
            "description": "One or more facility filters."
          }
        ],
        "tags": [
          "Packages",
          "Transfers",
          "Facilities",
          "Create Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_DELIVERY_TRANSPORTERS`.",
        "x-t3-endpoint-id": "METRC_CREATE_DELIVERY_TRANSPORTERS"
      }
    },
    "/v2/transfers/create/transporters/{object_id}": {
      "get": {
        "summary": "Retrieve a transporter facility eligible to be used in creating new transfers by id \u00b7 METRC_CREATE_DELIVERY_TRANSPORTERS",
        "description": "**T3 endpoint id:** `METRC_CREATE_DELIVERY_TRANSPORTERS`.\n\nReturns a transporter facility eligible to be used in creating new transfers by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcFacility"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Transfers",
          "Facilities",
          "Create Transfers"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_DELIVERY_TRANSPORTERS"
      }
    },
    "/v2/transfers/create/packages": {
      "get": {
        "summary": "List of packages eligible to be used in creating new transfers \u00b7 METRC_CREATE_TRANSFER_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "A list of eligible packages for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Transfers",
          "Create Transfers"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_TRANSFER_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_CREATE_TRANSFER_SOURCE_PACKAGES"
      }
    },
    "/v2/transfers/create/packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible to be used in creating new transfers by id \u00b7 METRC_CREATE_TRANSFER_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_CREATE_TRANSFER_SOURCE_PACKAGES`.\n\nReturns a package eligible to be used in creating new transfers by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Transfers",
          "Create Transfers"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_TRANSFER_SOURCE_PACKAGES"
      }
    },
    "/v2/transfers/hub": {
      "get": {
        "summary": "List of hub transfers \u00b7 METRC_HUB_TRANSFERS",
        "description": "**T3 endpoint id:** `METRC_HUB_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nThe transfers this license is the transporter for, as shown on Metrc's \"Transfers Hub\" page. Each record is a transfer, one of its deliveries and one of that delivery's transporters flattened onto a single object, with the driver legs embedded as `shipmentTransporterDetails`.\n\nThere is no active/inactive split: Metrc serves this collection from a single path that takes no state parameter.",
        "responses": {
          "200": {
            "description": "A list of hub transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHubTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          }
        ],
        "tags": [
          "Transfers"
        ],
        "x-t3-endpoint-id": "METRC_HUB_TRANSFERS"
      }
    },
    "/v2/transfers/hub/fields": {
      "get": {
        "summary": "List the fields hub transfers can be filtered on",
        "description": "Lists the fields `GET /v2/transfers/hub` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/transfers/hub`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Transfers",
          "Free"
        ]
      }
    },
    "/v2/transfers/hub/{object_id}": {
      "get": {
        "summary": "Retrieve a hub transfer by id \u00b7 METRC_HUB_TRANSFERS",
        "description": "**T3 endpoint id:** `METRC_HUB_TRANSFERS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns a hub transfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHubTransfer"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Transfers"
        ],
        "x-t3-endpoint-id": "METRC_HUB_TRANSFERS"
      }
    },
    "/v2/transfers/hub/super": {
      "get": {
        "summary": "List of hub supertransfers. Additional data can be added using the `include` param. \u00b7 METRC_HUB_SUPERTRANSFERS",
        "description": "**T3 endpoint id:** `METRC_HUB_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).\n\nAs `/v2/transfers/hub`, with optional sub-collections attached. Note that `transporterDetails` is not an include here: the hub response already embeds the driver legs as `shipmentTransporterDetails`.",
        "responses": {
          "200": {
            "description": "A list of hub supertransfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHubSuperTransfer"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "manifestNumber:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/HubTransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_HUB_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/hub/super/{object_id}": {
      "get": {
        "summary": "Retrieve a hub supertransfer by id \u00b7 METRC_HUB_SUPERTRANSFERS",
        "description": "**T3 endpoint id:** `METRC_HUB_SUPERTRANSFERS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns a hub supertransfer by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHubSuperTransfer"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/HubTransferInclude"
          }
        ],
        "tags": [
          "Transfers",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_HUB_SUPERTRANSFERS"
      }
    },
    "/v2/transfers/hub/accept": {
      "post": {
        "summary": "Accept a delivery as its transporter",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcHubTransporterStatusPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Hub"
        ]
      }
    },
    "/v2/transfers/hub/depart": {
      "post": {
        "summary": "Record a delivery departing",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcHubTransporterStatusPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Hub"
        ]
      }
    },
    "/v2/transfers/hub/check-in": {
      "post": {
        "summary": "Check a delivery in at a layover",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcHubTransporterStatusPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Hub"
        ]
      }
    },
    "/v2/transfers/hub/check-out": {
      "post": {
        "summary": "Check a delivery out of a layover",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcHubTransporterStatusPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Hub"
        ]
      }
    },
    "/v2/transfers/hub/arrive": {
      "post": {
        "summary": "Record a delivery arriving",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcHubTransporterStatusPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Hub"
        ]
      }
    },
    "/v2/transfers/hub/update": {
      "post": {
        "summary": "Update a delivery's transport details",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcHubUpdateTransfersPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Transfers",
          "Transfer Hub"
        ]
      }
    },
    "/v2/transfers/hub/report": {
      "get": {
        "summary": "Generate a report of all hub transfers \u00b7 HUB_TRANSFERS_REPORT",
        "description": "**T3 endpoint id:** `HUB_TRANSFERS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nOne row per transfer this license transports. The default columns lead with the driver and vehicle rather than the package count, because on these rows this license is neither the shipper nor the recipient.\n\nFor a row per package use the hub transfer manifest report instead.\n",
        "responses": {
          "200": {
            "description": "A list of hub transfers for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHubTransferReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "manifestNumber,shipperFacilityName,recipientFacilityName,driverName,vehicleMake\n0000012345,Sample Cultivation LLC,Example Dispensary LLC,Jane Doe,Ford\n0000012346,Sample Cultivation LLC,Example Dispensary LLC,John Smith,Ford"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "createdDateTime:desc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters."
          },
          {
            "name": "columns",
            "description": "Defines which transfer fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "manifestNumber,shipperFacilityName,recipientFacilityName,driverName,vehicleMake,estimatedDepartureDateTime",
              "example": "manifestNumber,shipperFacilityName,recipientFacilityName,driverName,vehicleMake,estimatedDepartureDateTime"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports"
        ],
        "x-t3-endpoint-id": "HUB_TRANSFERS_REPORT"
      }
    },
    "/v2/transfers/hub/manifest/report": {
      "get": {
        "summary": "Generate a report of all hub transfer manifests \u00b7 HUB_TRANSFER_MANIFEST_REPORT",
        "description": "**T3 endpoint id:** `HUB_TRANSFER_MANIFEST_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nThis report loads the packages for every transfer **automatically** -- there is no `include` to add and no way to switch it off -- then cross-joins them, so the result is one row per package rather than one row per transfer. Column names are prefixed by the object they come from.\n\nIt covers more transfers than the incoming and outgoing manifest reports, roughly 10,000 before it is too large to build rather than 5,000 or 2,500: the delivery and the transporter arrive already flattened onto the record, with the driver legs embedded, so only the packages are loaded for each transfer. Those flattened fields appear under `transfer.*`; there is no `delivery.*` or `transporter.*` group. For a larger license, filter to a date range, or set a `rowLimit` below that figure.\n\nTwo consequences:\n\n- `rowLimit` caps **transfers**, applied before the join, so a limit of 100 can return several hundred rows.\n- `transporterDetails.*` describes only the **first** driver leg. A transfer with `transfer.multiVehicle` or `transfer.isLayover` true carries further legs that the JSON response returns in full but a flat grid cannot represent; both flags are in the default columns so this is visible from the spreadsheet.\n",
        "responses": {
          "200": {
            "description": "A list of hub transfer manifests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HubTransferManifestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "transfer.manifestNumber,transfer.transporterFacilityName,transporterDetails.driverName,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation\n1000056,Transport Co,Jane Doe,1A4400000000000000001234,Blue Dream Flower,10,g\n1000056,Transport Co,Jane Doe,1A4400000000000000001235,Blue Dream Flower,10,g\n1000057,Transport Co,John Smith,1A4400000000000000005678,Blue Dream Flower,5,g"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid filter** -- a `filter` names a field the underlying transfer collection does not have, or uses an operator its type does not support. The response lists every filterable field. Note that the joined packages, transporters and deliveries are not filterable, so their fields are rejected here.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build (it loads the packages for every transfer). The response says which. Tighten the filters or set a lower `rowLimit`.\n\n**Invalid transform** -- `transform` names something other than `scanSheet`.\n\n**Conflicting Parameters** -- `transform` was combined with `columns`, with `metadata`, or with an explicit `prependCsvMetadata=true`. All three are owned by the transform.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/ReportTransform"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters. Filters select which **transfers** the report covers; a matched transfer contributes all of its joined rows, and there is no syntax for filtering the joined packages, transporters or deliveries.\n\nFiltering by manifest number is the common case. Repeat the parameter once per manifest and set `filterLogic=or`, since no transfer has two manifest numbers.\n"
          },
          {
            "name": "columns",
            "description": "Defines which transfer manifest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nThis report joins several objects, so every field carries the prefix of the object it comes from: `transfer.*`, `transporterDetails.*`, `package.*`.\nCannot be combined with `transform`, which defines its own columns.\n\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "transfer.manifestNumber,transfer.shipperFacilityName,transfer.recipientFacilityName,transfer.transporterFacilityName,transfer.multiVehicle,transfer.isLayover,transporterDetails.driverName,transporterDetails.vehicleMake,transporterDetails.vehicleLicensePlateNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation",
              "example": "transfer.manifestNumber,transfer.shipperFacilityName,transfer.recipientFacilityName,transfer.transporterFacilityName,transfer.multiVehicle,transfer.isLayover,transporterDetails.driverName,transporterDetails.vehicleMake,transporterDetails.vehicleLicensePlateNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports",
          "Manifests"
        ],
        "x-t3-endpoint-id": "HUB_TRANSFER_MANIFEST_REPORT"
      }
    },
    "/v2/transfers/incoming/manifest/report": {
      "get": {
        "summary": "Generate a report of all incoming transfer manifests \u00b7 METRC_INCOMING_TRANSFER_MANIFEST_REPORT",
        "description": "**T3 endpoint id:** `METRC_INCOMING_TRANSFER_MANIFEST_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nThis report loads the packages and transporters for every transfer **automatically** -- there is no `include` to add and no way to switch it off -- then cross-joins them, so the result is one row per package per transporter rather than one row per transfer. Column names are prefixed by the object they come from.\n\nTwo consequences:\n\n- `rowLimit` caps **transfers**, applied before the join, so a limit of 100 can return several hundred rows.\n- Loading the packages and transporters for every transfer makes this report too large to build at roughly 5,000 transfers, well before the row cap shown below. Filter to a date range, or set a `rowLimit` below that figure.\n",
        "responses": {
          "200": {
            "description": "A list of transfer manifests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncomingTransferManifestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "transfer.manifestNumber,transfer.recipientFacilityLicenseNumber,transfer.recipientFacilityName,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation\n1000056,1A4400000000000000001234,Blue Dream Flower,10,g\n1000056,1A4400000000000000001235,Blue Dream Flower,10,g\n1000057,1A4400000000000000005678,Blue Dream Flower,5,g"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid filter** -- a `filter` names a field the underlying transfer collection does not have, or uses an operator its type does not support. The response lists every filterable field. Note that the joined packages, transporters and deliveries are not filterable, so their fields are rejected here.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build (it loads the packages and transporters for every transfer). The response says which. Tighten the filters or set a lower `rowLimit`.\n\n**Invalid transform** -- `transform` names something other than `scanSheet`.\n\n**Conflicting Parameters** -- `transform` was combined with `columns`, with `metadata`, or with an explicit `prependCsvMetadata=true`. All three are owned by the transform.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/ReportTransform"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters. Filters select which **transfers** the report covers; a matched transfer contributes all of its joined rows, and there is no syntax for filtering the joined packages, transporters or deliveries.\n\nFiltering by manifest number is the common case. Repeat the parameter once per manifest and set `filterLogic=or`, since no transfer has two manifest numbers.\n"
          },
          {
            "name": "columns",
            "description": "Defines which transfer manifest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nThis report joins several objects, so every field carries the prefix of the object it comes from: `package.*`, `transfer.*`, `transporter.*`.\nCannot be combined with `transform`, which defines its own columns.\n\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "transfer.manifestNumber,transfer.recipientFacilityLicenseNumber,transfer.recipientFacilityName,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation",
              "example": "transfer.manifestNumber,transfer.recipientFacilityLicenseNumber,transfer.recipientFacilityName,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports",
          "Manifests"
        ],
        "x-t3-endpoint-id": "METRC_INCOMING_TRANSFER_MANIFEST_REPORT"
      }
    },
    "/v2/transfers/incoming/inactive/manifest/report": {
      "get": {
        "summary": "Generate a report of received incoming transfer manifests \u00b7 INCOMING_INACTIVE_TRANSFER_MANIFEST_REPORT",
        "description": "**T3 endpoint id:** `INCOMING_INACTIVE_TRANSFER_MANIFEST_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nThe inactive counterpart of `/v2/transfers/incoming/manifest/report`. It covers the incoming transfers Metrc lists as inactive, chiefly ones already received, and loads and joins them identically -- only the collection differs. Filter on `receivedDateTime` to select a date range.\n\nThis report loads the packages and transporters for every transfer **automatically** -- there is no `include` to add and no way to switch it off -- then cross-joins them, so the result is one row per package per transporter rather than one row per transfer. Column names are prefixed by the object they come from.\n\nTwo consequences:\n\n- `rowLimit` caps **transfers**, applied before the join, so a limit of 100 can return several hundred rows.\n- Loading the packages and transporters for every transfer makes this report too large to build at roughly 5,000 transfers, well before the row cap shown below. Filter to a date range, or set a `rowLimit` below that figure.\n\nAdd `transform=scanSheet` to receive this data as a scan sheet instead -- one row per package with a live-coloured tag reconciliation column. See the `transform` parameter below.\n",
        "responses": {
          "200": {
            "description": "A list of received incoming transfer manifests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IncomingTransferManifestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "transfer.manifestNumber,transfer.receivedDateTime,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation\n1000056,2026-08-04T17:12:00.000,1A4400000000000000001234,Blue Dream Flower,10,g\n1000056,2026-08-04T17:12:00.000,1A4400000000000000001235,Blue Dream Flower,10,g\n1000057,2026-08-06T15:40:00.000,1A4400000000000000005678,Blue Dream Flower,5,g"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid filter** -- a `filter` names a field the underlying transfer collection does not have, or uses an operator its type does not support. The response lists every filterable field. Note that the joined packages, transporters and deliveries are not filterable, so their fields are rejected here.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build (it loads the packages and transporters for every transfer). The response says which. Tighten the filters or set a lower `rowLimit`.\n\n**Invalid transform** -- `transform` names something other than `scanSheet`.\n\n**Conflicting Parameters** -- `transform` was combined with `columns`, with `metadata`, or with an explicit `prependCsvMetadata=true`. All three are owned by the transform.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/ReportTransform"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "receivedDateTime:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "receivedDateTime__gte:2026-08-01T00:00:00.000Z",
            "description": "One or more transfer filters. Filters select which **transfers** the report covers; a matched transfer contributes all of its joined rows, and there is no syntax for filtering the joined packages, transporters or deliveries.\n\nFiltering by received date is the common case, since this collection grows with every transfer the license has ever received. Write dates as full UTC timestamps, such as `2026-08-01T00:00:00.000Z`.\n\nTo select particular manifests, repeat the parameter once per manifest number and set `filterLogic=or`, since no transfer has two manifest numbers.\n"
          },
          {
            "name": "columns",
            "description": "Defines which transfer manifest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nThis report joins several objects, so every field carries the prefix of the object it comes from: `package.*`, `transfer.*`, `transporter.*`.\nCannot be combined with `transform`, which defines its own columns.\n\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "transfer.manifestNumber,transfer.recipientFacilityLicenseNumber,transfer.recipientFacilityName,transfer.receivedDateTime,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation",
              "example": "transfer.manifestNumber,transfer.recipientFacilityLicenseNumber,transfer.recipientFacilityName,transfer.receivedDateTime,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports",
          "Manifests"
        ],
        "x-t3-endpoint-id": "INCOMING_INACTIVE_TRANSFER_MANIFEST_REPORT"
      }
    },
    "/v2/transfers/outgoing/manifest/report": {
      "get": {
        "summary": "Generate a report of all outgoing transfer manifests \u00b7 OUTGOING_TRANSFER_MANIFEST_REPORT",
        "description": "**T3 endpoint id:** `OUTGOING_TRANSFER_MANIFEST_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nThis report loads the packages and transporters for every transfer **automatically** -- there is no `include` to add and no way to switch it off -- then cross-joins them, so the result is one row per package per transporter rather than one row per transfer. Column names are prefixed by the object they come from.\n\nTwo consequences:\n\n- `rowLimit` caps **transfers**, applied before the join, so a limit of 100 can return several hundred rows.\n- Loading the packages and transporters for every transfer makes this report too large to build at roughly 2,500 transfers, half as many as the incoming report and well before the row cap shown below. Filter to a date range, or set a `rowLimit` below that figure.\n",
        "responses": {
          "200": {
            "description": "A list of transfer manifests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutgoingTransferManifestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "transfer.manifestNumber,delivery.recipientFacilityLicenseNumber,delivery.recipientFacilityName,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation\n1000056,EX-00001,Sample Facility LLC,1A4400000000000000001234,Blue Dream Flower,10\n1000056,EX-00001,Sample Facility LLC,1A4400000000000000001235,Blue Dream Flower,10\n1000057,EX-00002,Sample Growers LLC,1A4400000000000000005678,Blue Dream Flower,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid filter** -- a `filter` names a field the underlying transfer collection does not have, or uses an operator its type does not support. The response lists every filterable field. Note that the joined packages, transporters and deliveries are not filterable, so their fields are rejected here.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build (it loads the packages and transporters for every transfer). The response says which. Tighten the filters or set a lower `rowLimit`.\n\n**Invalid transform** -- `transform` names something other than `scanSheet`.\n\n**Conflicting Parameters** -- `transform` was combined with `columns`, with `metadata`, or with an explicit `prependCsvMetadata=true`. All three are owned by the transform.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/ReportTransform"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters. Filters select which **transfers** the report covers; a matched transfer contributes all of its joined rows, and there is no syntax for filtering the joined packages, transporters or deliveries.\n\nFiltering by manifest number is the common case. Repeat the parameter once per manifest and set `filterLogic=or`, since no transfer has two manifest numbers.\n"
          },
          {
            "name": "columns",
            "description": "Defines which transfer manifest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nThis report joins several objects, so every field carries the prefix of the object it comes from: `delivery.*`, `package.*`, `transfer.*`, `transporter.*`, `transporterDetails.*`.\nCannot be combined with `transform`, which defines its own columns.\n\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "transfer.manifestNumber,delivery.recipientFacilityLicenseNumber,delivery.recipientFacilityName,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,transporterDetails.driverName,transporterDetails.driverVehicleLicenseNumber,transporterDetails.vehicleMake,transporterDetails.vehicleModel,transporterDetails.vehicleLicensePlateNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation",
              "example": "transfer.manifestNumber,delivery.recipientFacilityLicenseNumber,delivery.recipientFacilityName,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,transporterDetails.driverName,transporterDetails.driverVehicleLicenseNumber,transporterDetails.vehicleMake,transporterDetails.vehicleModel,transporterDetails.vehicleLicensePlateNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports",
          "Manifests"
        ],
        "x-t3-endpoint-id": "OUTGOING_TRANSFER_MANIFEST_REPORT"
      }
    },
    "/v2/transfers/outgoing/inactive/manifest/report": {
      "get": {
        "summary": "Generate a report of received outgoing transfer manifests \u00b7 OUTGOING_INACTIVE_TRANSFER_MANIFEST_REPORT",
        "description": "**T3 endpoint id:** `OUTGOING_INACTIVE_TRANSFER_MANIFEST_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nThe inactive counterpart of `/v2/transfers/outgoing/manifest/report`. It covers the outgoing transfers Metrc lists as inactive, chiefly ones already received, and loads and joins them identically -- only the collection differs. Filter on `createdDateTime` to select a date range.\n\nThis report loads the packages and transporters for every transfer **automatically** -- there is no `include` to add and no way to switch it off -- then cross-joins them, so the result is one row per package per transporter rather than one row per transfer. Column names are prefixed by the object they come from.\n\nTwo consequences:\n\n- `rowLimit` caps **transfers**, applied before the join, so a limit of 100 can return several hundred rows.\n- Loading the packages and transporters for every transfer makes this report too large to build at roughly 2,500 transfers, half as many as the incoming report and well before the row cap shown below. Filter to a date range, or set a `rowLimit` below that figure.\n\nAdd `transform=scanSheet` to receive this data as a scan sheet instead -- one row per package with a live-coloured tag reconciliation column. See the `transform` parameter below.\n",
        "responses": {
          "200": {
            "description": "A list of received outgoing transfer manifests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutgoingTransferManifestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "transfer.manifestNumber,delivery.recipientFacilityLicenseNumber,delivery.recipientFacilityName,delivery.receivedDateTime,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation\n1000056,EX-00001,Sample Facility LLC,2026-08-04T17:12:00.000,1A4400000000000000001234,Blue Dream Flower,10,g\n1000056,EX-00001,Sample Facility LLC,2026-08-04T17:12:00.000,1A4400000000000000001235,Blue Dream Flower,10,g\n1000057,EX-00002,Sample Growers LLC,2026-08-06T15:40:00.000,1A4400000000000000005678,Blue Dream Flower,5,g"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid filter** -- a `filter` names a field the underlying transfer collection does not have, or uses an operator its type does not support. The response lists every filterable field. Note that the joined packages, transporters and deliveries are not filterable, so their fields are rejected here.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build (it loads the packages and transporters for every transfer). The response says which. Tighten the filters or set a lower `rowLimit`.\n\n**Invalid transform** -- `transform` names something other than `scanSheet`.\n\n**Conflicting Parameters** -- `transform` was combined with `columns`, with `metadata`, or with an explicit `prependCsvMetadata=true`. All three are owned by the transform.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/ReportTransform"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "createdDateTime:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "createdDateTime__gte:2026-08-01T00:00:00.000Z",
            "description": "One or more transfer filters. Filters select which **transfers** the report covers; a matched transfer contributes all of its joined rows, and there is no syntax for filtering the joined packages, transporters or deliveries.\n\nFiltering by date is the common case, since this collection grows with every transfer the license has ever shipped. Use `createdDateTime`: each delivery is received separately, so Metrc lists outgoing transfers without a received date. Write dates as full UTC timestamps, such as `2026-08-01T00:00:00.000Z`.\n\nTo select particular manifests, repeat the parameter once per manifest number and set `filterLogic=or`, since no transfer has two manifest numbers.\n"
          },
          {
            "name": "columns",
            "description": "Defines which transfer manifest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nThis report joins several objects, so every field carries the prefix of the object it comes from: `delivery.*`, `package.*`, `transfer.*`, `transporter.*`, `transporterDetails.*`.\nCannot be combined with `transform`, which defines its own columns.\n\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "transfer.manifestNumber,delivery.recipientFacilityLicenseNumber,delivery.recipientFacilityName,delivery.receivedDateTime,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,transporterDetails.driverName,transporterDetails.driverVehicleLicenseNumber,transporterDetails.vehicleMake,transporterDetails.vehicleModel,transporterDetails.vehicleLicensePlateNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation",
              "example": "transfer.manifestNumber,delivery.recipientFacilityLicenseNumber,delivery.recipientFacilityName,delivery.receivedDateTime,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,transporterDetails.driverName,transporterDetails.driverVehicleLicenseNumber,transporterDetails.vehicleMake,transporterDetails.vehicleModel,transporterDetails.vehicleLicensePlateNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports",
          "Manifests"
        ],
        "x-t3-endpoint-id": "OUTGOING_INACTIVE_TRANSFER_MANIFEST_REPORT"
      }
    },
    "/v2/transfers/rejected/manifest/report": {
      "get": {
        "summary": "Generate a report of all rejected transfer manifests \u00b7 REJECTED_TRANSFER_MANIFEST_REPORT",
        "description": "**T3 endpoint id:** `REJECTED_TRANSFER_MANIFEST_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n\nThe rejected counterpart of `/v2/transfers/outgoing/manifest/report`. Metrc returns rejected transfers in the same shape as outgoing ones, so this report loads and joins them identically -- only the collection differs.\n\nThis report loads the packages and transporters for every transfer **automatically** -- there is no `include` to add and no way to switch it off -- then cross-joins them, so the result is one row per package per transporter rather than one row per transfer. Column names are prefixed by the object they come from.\n\nTwo consequences:\n\n- `rowLimit` caps **transfers**, applied before the join, so a limit of 100 can return several hundred rows.\n- Loading the packages and transporters for every transfer makes this report too large to build at roughly 2,500 transfers, half as many as the incoming report and well before the row cap shown below. Filter to a date range, or set a `rowLimit` below that figure.\n\nAdd `transform=scanSheet` to receive this data as a scan sheet instead -- one row per package with a live-coloured tag reconciliation column. See the `transform` parameter below.\n",
        "responses": {
          "200": {
            "description": "A list of rejected transfer manifests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OutgoingTransferManifestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "transfer.manifestNumber,delivery.recipientFacilityLicenseNumber,delivery.recipientFacilityName,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation\n1000056,EX-00001,Sample Facility LLC,1A4400000000000000001234,Blue Dream Flower,10\n1000056,EX-00001,Sample Facility LLC,1A4400000000000000001235,Blue Dream Flower,10\n1000057,EX-00002,Sample Growers LLC,1A4400000000000000005678,Blue Dream Flower,5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid filter** -- a `filter` names a field the underlying transfer collection does not have, or uses an operator its type does not support. The response lists every filterable field. Note that the joined packages, transporters and deliveries are not filterable, so their fields are rejected here.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build (it loads the packages and transporters for every transfer). The response says which. Tighten the filters or set a lower `rowLimit`.\n\n**Invalid transform** -- `transform` names something other than `scanSheet`.\n\n**Conflicting Parameters** -- `transform` was combined with `columns`, with `metadata`, or with an explicit `prependCsvMetadata=true`. All three are owned by the transform.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/ReportTransform"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the transfer sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "manifestNumber__endswith:0003",
            "description": "One or more transfer filters. Filters select which **transfers** the report covers; a matched transfer contributes all of its joined rows, and there is no syntax for filtering the joined packages, transporters or deliveries.\n\nFiltering by manifest number is the common case. Repeat the parameter once per manifest and set `filterLogic=or`, since no transfer has two manifest numbers.\n"
          },
          {
            "name": "columns",
            "description": "Defines which transfer manifest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\nThis report joins several objects, so every field carries the prefix of the object it comes from: `delivery.*`, `package.*`, `transfer.*`, `transporter.*`, `transporterDetails.*`.\nCannot be combined with `transform`, which defines its own columns.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "transfer.manifestNumber,delivery.recipientFacilityLicenseNumber,delivery.recipientFacilityName,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,transporterDetails.driverName,transporterDetails.driverVehicleLicenseNumber,transporterDetails.vehicleMake,transporterDetails.vehicleModel,transporterDetails.vehicleLicensePlateNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation",
              "example": "transfer.manifestNumber,delivery.recipientFacilityLicenseNumber,delivery.recipientFacilityName,transporter.transporterFacilityName,transporter.transporterFacilityLicenseNumber,transporterDetails.driverName,transporterDetails.driverVehicleLicenseNumber,transporterDetails.vehicleMake,transporterDetails.vehicleModel,transporterDetails.vehicleLicensePlateNumber,package.packageLabel,package.productName,package.shippedQuantity,package.shippedUnitOfMeasureAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Transfers",
          "Reports",
          "Manifests"
        ],
        "x-t3-endpoint-id": "REJECTED_TRANSFER_MANIFEST_REPORT"
      }
    },
    "/v2/transfers/templates/create/packages": {
      "get": {
        "summary": "List of packages eligible for a new transfer template \u00b7 METRC_CREATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "List of packages eligible for a new transfer template",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Transfer Templates"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_CREATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES"
      }
    },
    "/v2/transfers/templates/create/packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible for a new transfer template by id \u00b7 METRC_CREATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_CREATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES`.\n\nReturns a package eligible for a new transfer template by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Transfer Templates"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES"
      }
    },
    "/v2/transfers/templates/update/packages": {
      "get": {
        "summary": "List of packages eligible for an existing transfer template \u00b7 METRC_UPDATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "List of packages eligible for an existing transfer template",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "transferTemplateId",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "example": 4471
            },
            "description": "The template being edited, from `GET /v2/transfers/templates`. Metrc's\nedit form names the template it opened; without it, the lookup runs with no\ntemplate selected.\n"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Packages",
          "Transfer Templates"
        ],
        "description": "**T3 endpoint id:** `METRC_UPDATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_UPDATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES"
      }
    },
    "/v2/transfers/templates/update/packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible for an existing transfer template by id \u00b7 METRC_UPDATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_UPDATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES`.\n\nReturns a package eligible for an existing transfer template by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Packages",
          "Transfer Templates"
        ],
        "x-t3-endpoint-id": "METRC_UPDATE_TRANSFER_TEMPLATE_SOURCE_PACKAGES"
      }
    },
    "/v2/plants/vegetative": {
      "get": {
        "summary": "List of vegetative plants \u00b7 METRC_VEGETATIVE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_VEGETATIVE_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nNOTE: States such as CA do not use vegetative plants, plant batches are promoted directly to flowering.\n",
        "responses": {
          "200": {
            "description": "A list of vegetative plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_VEGETATIVE_PLANTS"
      }
    },
    "/v2/plants/vegetative/fields": {
      "get": {
        "summary": "List the fields vegetative plants can be filtered on",
        "description": "Lists the fields `GET /v2/plants/vegetative` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plants/vegetative`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Free"
        ]
      }
    },
    "/v2/plants/vegetative/{object_id}": {
      "get": {
        "summary": "Retrieve a vegetative plant by id \u00b7 METRC_VEGETATIVE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_VEGETATIVE_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns a vegetative plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_VEGETATIVE_PLANTS"
      }
    },
    "/v2/plants/vegetative/super": {
      "get": {
        "summary": "List of vegetative superplants. Additional metadata can be added using the `include` param. \u00b7 METRC_VEGETATIVE_SUPERPLANTS",
        "responses": {
          "200": {
            "description": "A list of vegetative superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_VEGETATIVE_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_VEGETATIVE_SUPERPLANTS"
      }
    },
    "/v2/plants/vegetative/super/{object_id}": {
      "get": {
        "summary": "Retrieve a vegetative superplant by id \u00b7 METRC_VEGETATIVE_SUPERPLANTS",
        "description": "**T3 endpoint id:** `METRC_VEGETATIVE_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns a vegetative superplant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplant"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_VEGETATIVE_SUPERPLANTS"
      }
    },
    "/v2/plants/vegetative/report": {
      "get": {
        "summary": "Generate a report of all vegetative plants \u00b7 VEGETATIVE_PLANTS_REPORT",
        "description": "**T3 endpoint id:** `VEGETATIVE_PLANTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of vegetative plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,strainName,locationName\n1A4400000000000000001234,Pineapple Express,Row 10\n1A4400000000000000005678,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports"
        ],
        "x-t3-endpoint-id": "VEGETATIVE_PLANTS_REPORT"
      }
    },
    "/v2/plants/flowering": {
      "get": {
        "summary": "List of flowering plants \u00b7 METRC_FLOWERING_PLANTS",
        "responses": {
          "200": {
            "description": "A list of flowering plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants"
        ],
        "description": "**T3 endpoint id:** `METRC_FLOWERING_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_FLOWERING_PLANTS"
      }
    },
    "/v2/plants/flowering/fields": {
      "get": {
        "summary": "List the fields flowering plants can be filtered on",
        "description": "Lists the fields `GET /v2/plants/flowering` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plants/flowering`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Free"
        ]
      }
    },
    "/v2/plants/flowering/{object_id}": {
      "get": {
        "summary": "Retrieve a flowering plant by id \u00b7 METRC_FLOWERING_PLANTS",
        "description": "**T3 endpoint id:** `METRC_FLOWERING_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns a flowering plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_FLOWERING_PLANTS"
      }
    },
    "/v2/plants/flowering/super": {
      "get": {
        "summary": "List of flowering superplants. Additional metadata can be added using the `include` param. \u00b7 METRC_FLOWERING_SUPERPLANTS",
        "responses": {
          "200": {
            "description": "A list of flowering superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_FLOWERING_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_FLOWERING_SUPERPLANTS"
      }
    },
    "/v2/plants/flowering/super/{object_id}": {
      "get": {
        "summary": "Retrieve a flowering superplant by id \u00b7 METRC_FLOWERING_SUPERPLANTS",
        "description": "**T3 endpoint id:** `METRC_FLOWERING_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns a flowering superplant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplant"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_FLOWERING_SUPERPLANTS"
      }
    },
    "/v2/plants/mother/active": {
      "get": {
        "summary": "List of active mother plants \u00b7 METRC_ACTIVE_MOTHER_PLANTS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_MOTHER_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nNOTE: Not all states implement mother plants in Metrc ",
        "responses": {
          "200": {
            "description": "A list of active mother plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_MOTHER_PLANTS"
      }
    },
    "/v2/plants/mother/active/fields": {
      "get": {
        "summary": "List the fields active mother plants can be filtered on",
        "description": "Lists the fields `GET /v2/plants/mother/active` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plants/mother/active`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Free"
        ]
      }
    },
    "/v2/plants/mother/active/{object_id}": {
      "get": {
        "summary": "Retrieve an active mother plant by id \u00b7 METRC_ACTIVE_MOTHER_PLANTS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_MOTHER_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an active mother plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_MOTHER_PLANTS"
      }
    },
    "/v2/plants/mother/active/super": {
      "get": {
        "summary": "List of active mother superplants. Additional metadata can be added using the `include` param. \u00b7 METRC_ACTIVE_MOTHER_SUPERPLANTS",
        "responses": {
          "200": {
            "description": "A list of active mother superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_MOTHER_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_MOTHER_SUPERPLANTS"
      }
    },
    "/v2/plants/mother/active/super/{object_id}": {
      "get": {
        "summary": "Retrieve an active mother superplant by id \u00b7 METRC_ACTIVE_MOTHER_SUPERPLANTS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_MOTHER_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an active mother superplant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplant"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_MOTHER_SUPERPLANTS"
      }
    },
    "/v2/plants/mother/onhold": {
      "get": {
        "summary": "List of on hold mother plants \u00b7 METRC_ONHOLD_MOTHER_PLANTS",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_MOTHER_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nNOTE: Not all states implement mother plants in Metrc\n\nMother plants are excluded from /v2/plants/onhold, so the two collections partition the on hold plants rather than overlap.\n",
        "responses": {
          "200": {
            "description": "A list of on hold mother plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_MOTHER_PLANTS"
      }
    },
    "/v2/plants/mother/onhold/fields": {
      "get": {
        "summary": "List the fields on hold mother plants can be filtered on",
        "description": "Lists the fields `GET /v2/plants/mother/onhold` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plants/mother/onhold`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Free"
        ]
      }
    },
    "/v2/plants/mother/onhold/{object_id}": {
      "get": {
        "summary": "Retrieve an on hold mother plant by id \u00b7 METRC_ONHOLD_MOTHER_PLANTS",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_MOTHER_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an on hold mother plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_MOTHER_PLANTS"
      }
    },
    "/v2/plants/mother/onhold/super": {
      "get": {
        "summary": "List of on-hold mother superplants. Additional metadata can be added using the `include` param. \u00b7 METRC_ONHOLD_MOTHER_SUPERPLANTS",
        "responses": {
          "200": {
            "description": "A list of on-hold mother superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ONHOLD_MOTHER_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ONHOLD_MOTHER_SUPERPLANTS"
      }
    },
    "/v2/plants/mother/onhold/super/{object_id}": {
      "get": {
        "summary": "Retrieve an on-hold mother superplant by id \u00b7 METRC_ONHOLD_MOTHER_SUPERPLANTS",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_MOTHER_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an on-hold mother superplant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplant"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_MOTHER_SUPERPLANTS"
      }
    },
    "/v2/plants/mother/inactive": {
      "get": {
        "summary": "List of inactive mother plants \u00b7 METRC_INACTIVE_MOTHER_PLANTS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_MOTHER_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nNOTE: Not all states implement mother plants in Metrc\n\nMother plants are excluded from /v2/plants/inactive, so the two collections partition the inactive plants rather than overlap.\n",
        "responses": {
          "200": {
            "description": "A list of on hold mother plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_MOTHER_PLANTS"
      }
    },
    "/v2/plants/mother/inactive/fields": {
      "get": {
        "summary": "List the fields inactive mother plants can be filtered on",
        "description": "Lists the fields `GET /v2/plants/mother/inactive` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plants/mother/inactive`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Free"
        ]
      }
    },
    "/v2/plants/mother/inactive/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive mother plant by id \u00b7 METRC_INACTIVE_MOTHER_PLANTS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_MOTHER_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an inactive mother plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_MOTHER_PLANTS"
      }
    },
    "/v2/plants/mother/inactive/super": {
      "get": {
        "summary": "List of inactive mother superplants. Additional metadata can be added using the `include` param. \u00b7 METRC_INACTIVE_MOTHER_SUPERPLANTS",
        "responses": {
          "200": {
            "description": "A list of inactive mother superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_MOTHER_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_MOTHER_SUPERPLANTS"
      }
    },
    "/v2/plants/mother/inactive/super/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive mother superplant by id \u00b7 METRC_INACTIVE_MOTHER_SUPERPLANTS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_MOTHER_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an inactive mother superplant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplant"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_MOTHER_SUPERPLANTS"
      }
    },
    "/v2/plants/mother/active/report": {
      "get": {
        "summary": "Generate a report of all active mother plants \u00b7 ACTIVE_MOTHER_PLANTS_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_MOTHER_PLANTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\nNOTE: Not all states implement mother plants in Metrc ",
        "responses": {
          "200": {
            "description": "A list of active mother plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,strainName,locationName\n1A4400000000000000001234,Pineapple Express,Row 10\n1A4400000000000000005678,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports"
        ],
        "x-t3-endpoint-id": "ACTIVE_MOTHER_PLANTS_REPORT"
      }
    },
    "/v2/plants/flowering/report": {
      "get": {
        "summary": "Generate a report of all flowering plants \u00b7 FLOWERING_PLANTS_REPORT",
        "description": "**T3 endpoint id:** `FLOWERING_PLANTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of flowering plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,strainName,locationName\n1A4400000000000000001234,Pineapple Express,Row 10\n1A4400000000000000005678,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports"
        ],
        "x-t3-endpoint-id": "FLOWERING_PLANTS_REPORT"
      }
    },
    "/v2/plants/vegetative/super/report": {
      "get": {
        "summary": "Generate a super report of all vegetative plants \u00b7 VEGETATIVE_PLANTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `VEGETATIVE_PLANTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of vegetative superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,locationName,strainName\n1A4400000000000000001234,Room A,OG Kush\n1A4400000000000000005678,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:03",
            "description": "One or more plant filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "VEGETATIVE_PLANTS_SUPER_REPORT"
      }
    },
    "/v2/plants/flowering/super/report": {
      "get": {
        "summary": "Generate a super report of all flowering plants \u00b7 FLOWERING_PLANTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `FLOWERING_PLANTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of flowering superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,locationName,strainName\n1A4400000000000000001234,Room A,OG Kush\n1A4400000000000000005678,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:03",
            "description": "One or more plant filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "FLOWERING_PLANTS_SUPER_REPORT"
      }
    },
    "/v2/plants/mother/active/super/report": {
      "get": {
        "summary": "Generate a super report of all active mother plants \u00b7 ACTIVE_MOTHER_PLANTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_MOTHER_PLANTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active mother superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,locationName,strainName\n1A4400000000000000001234,Room A,OG Kush\n1A4400000000000000005678,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:03",
            "description": "One or more plant filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ACTIVE_MOTHER_PLANTS_SUPER_REPORT"
      }
    },
    "/v2/plants/onhold": {
      "get": {
        "summary": "List of on hold plants \u00b7 METRC_ONHOLD_PLANTS",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nNOTE: Mother plants are excluded. This collection and /v2/plants/mother/onhold partition the on hold plants rather than overlap, so a caller wanting every on hold plant must request both.\n",
        "responses": {
          "200": {
            "description": "A list of on hold plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_PLANTS"
      }
    },
    "/v2/plants/onhold/fields": {
      "get": {
        "summary": "List the fields on hold plants can be filtered on",
        "description": "Lists the fields `GET /v2/plants/onhold` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plants/onhold`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Free"
        ]
      }
    },
    "/v2/plants/onhold/{object_id}": {
      "get": {
        "summary": "Retrieve an on hold plant by id \u00b7 METRC_ONHOLD_PLANTS",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an on hold plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_PLANTS"
      }
    },
    "/v2/plants/onhold/super": {
      "get": {
        "summary": "List of on-hold superplants. Additional metadata can be added using the `include` param. \u00b7 METRC_ONHOLD_SUPERPLANTS",
        "responses": {
          "200": {
            "description": "A list of on-hold superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ONHOLD_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ONHOLD_SUPERPLANTS"
      }
    },
    "/v2/plants/onhold/super/{object_id}": {
      "get": {
        "summary": "Retrieve an on-hold superplant by id \u00b7 METRC_ONHOLD_SUPERPLANTS",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an on-hold superplant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplant"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_SUPERPLANTS"
      }
    },
    "/v2/plants/onhold/report": {
      "get": {
        "summary": "Generate a report of all on hold plants \u00b7 ONHOLD_PLANTS_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_PLANTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\nNOTE: Mother plants are excluded. This report and /v2/plants/mother/onhold/report partition the on hold plants rather than overlap, so a caller wanting every on hold plant must request both.\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,strainName,locationName\n1A4400000000000000001234,Pineapple Express,Row 10\n1A4400000000000000005678,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports"
        ],
        "x-t3-endpoint-id": "ONHOLD_PLANTS_REPORT"
      }
    },
    "/v2/plants/onhold/super/report": {
      "get": {
        "summary": "Generate a super report of all on hold plants \u00b7 ONHOLD_PLANTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_PLANTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\nNOTE: Mother plants are excluded. This report and /v2/plants/mother/onhold/super/report partition the on hold plants rather than overlap, so a caller wanting every on hold plant must request both.\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,locationName,strainName\n1A4400000000000000001234,Room A,OG Kush\n1A4400000000000000005678,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:03",
            "description": "One or more plant filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ONHOLD_PLANTS_SUPER_REPORT"
      }
    },
    "/v2/plants/inactive": {
      "get": {
        "summary": "List of inactive plants \u00b7 METRC_INACTIVE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nNOTE: Mother plants are excluded. This collection and /v2/plants/mother/inactive partition the inactive plants rather than overlap, so a caller wanting every inactive plant must request both.\n",
        "responses": {
          "200": {
            "description": "A list of inactive plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_PLANTS"
      }
    },
    "/v2/plants/inactive/fields": {
      "get": {
        "summary": "List the fields inactive plants can be filtered on",
        "description": "Lists the fields `GET /v2/plants/inactive` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plants/inactive`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Free"
        ]
      }
    },
    "/v2/plants/inactive/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive plant by id \u00b7 METRC_INACTIVE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_PLANTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an inactive plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_PLANTS"
      }
    },
    "/v2/plants/inactive/super": {
      "get": {
        "summary": "List of inactive superplants. Additional metadata can be added using the `include` param. \u00b7 METRC_INACTIVE_SUPERPLANTS",
        "responses": {
          "200": {
            "description": "A list of inactive superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERPLANTS"
      }
    },
    "/v2/plants/inactive/super/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive superplant by id \u00b7 METRC_INACTIVE_SUPERPLANTS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERPLANTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an inactive superplant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplant"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERPLANTS"
      }
    },
    "/v2/plants/inactive/report": {
      "get": {
        "summary": "Generate a report of all inactive plants \u00b7 INACTIVE_PLANTS_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_PLANTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\nNOTE: Mother plants are excluded. This report and /v2/plants/mother/inactive/report partition the inactive plants rather than overlap, so a caller wanting every inactive plant must request both.\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,strainName,locationName\n1A4400000000000000001234,Pineapple Express,Row 10\n1A4400000000000000005678,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports"
        ],
        "x-t3-endpoint-id": "INACTIVE_PLANTS_REPORT"
      }
    },
    "/v2/plants/inactive/super/report": {
      "get": {
        "summary": "Generate a super report of all inactive plants \u00b7 INACTIVE_PLANTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_PLANTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\nNOTE: Mother plants are excluded. This report and /v2/plants/mother/inactive/super/report partition the inactive plants rather than overlap, so a caller wanting every inactive plant must request both.\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,locationName,strainName\n1A4400000000000000001234,Room A,OG Kush\n1A4400000000000000005678,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:03",
            "description": "One or more plant filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "INACTIVE_PLANTS_SUPER_REPORT"
      }
    },
    "/v2/plants/mother/onhold/report": {
      "get": {
        "summary": "Generate a report of all on hold mother plants \u00b7 ONHOLD_MOTHER_PLANTS_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_MOTHER_PLANTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\nNOTE: Not all states implement mother plants in Metrc\n\nMother plants are excluded from /v2/plants/onhold/report, so the two reports partition the on hold plants rather than overlap.\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold mother plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,strainName,locationName\n1A4400000000000000001234,Pineapple Express,Row 10\n1A4400000000000000005678,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports"
        ],
        "x-t3-endpoint-id": "ONHOLD_MOTHER_PLANTS_REPORT"
      }
    },
    "/v2/plants/mother/onhold/super/report": {
      "get": {
        "summary": "Generate a super report of all on hold mother plants \u00b7 ONHOLD_MOTHER_PLANTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_MOTHER_PLANTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\nNOTE: Not all states implement mother plants in Metrc\n\nMother plants are excluded from /v2/plants/onhold/super/report, so the two reports partition the on hold plants rather than overlap.\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold mother superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,locationName,strainName\n1A4400000000000000001234,Room A,OG Kush\n1A4400000000000000005678,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:03",
            "description": "One or more plant filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ONHOLD_MOTHER_PLANTS_SUPER_REPORT"
      }
    },
    "/v2/plants/mother/inactive/report": {
      "get": {
        "summary": "Generate a report of all inactive mother plants \u00b7 INACTIVE_MOTHER_PLANTS_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_MOTHER_PLANTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\nNOTE: Not all states implement mother plants in Metrc\n\nMother plants are excluded from /v2/plants/inactive/report, so the two reports partition the inactive plants rather than overlap.\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive mother plants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,strainName,locationName\n1A4400000000000000001234,Pineapple Express,Row 10\n1A4400000000000000005678,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more plant filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports"
        ],
        "x-t3-endpoint-id": "INACTIVE_MOTHER_PLANTS_REPORT"
      }
    },
    "/v2/plants/mother/inactive/super/report": {
      "get": {
        "summary": "Generate a super report of all inactive mother plants \u00b7 INACTIVE_MOTHER_PLANTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_MOTHER_PLANTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\nNOTE: Not all states implement mother plants in Metrc\n\nMother plants are excluded from /v2/plants/inactive/super/report, so the two reports partition the inactive plants rather than overlap.\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive mother superplants for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "label,locationName,strainName\n1A4400000000000000001234,Room A,OG Kush\n1A4400000000000000005678,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:03",
            "description": "One or more plant filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "label,locationName,strainName,plantedDate",
              "example": "label,locationName,strainName,plantedDate"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "INACTIVE_MOTHER_PLANTS_SUPER_REPORT"
      }
    },
    "/v2/plants/history": {
      "get": {
        "summary": "List of history objects for a single plant \u00b7 METRC_PLANT_HISTORY",
        "responses": {
          "200": {
            "description": "A list of package history objects for the specified plant.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The plant with id={plantId} was not found in the specified license, or you do not have access to view this plant's history"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "plantId",
            "description": "ID of the target plant",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the history sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "userName__contains:MSmith001",
            "description": "One or more history filters."
          }
        ],
        "tags": [
          "Plants",
          "Single Plant",
          "History"
        ],
        "description": "**T3 endpoint id:** `METRC_PLANT_HISTORY`.",
        "x-t3-endpoint-id": "METRC_PLANT_HISTORY"
      }
    },
    "/v2/plants/changegrowthphase": {
      "post": {
        "summary": "Change the growth phase of one or more plants",
        "description": "Moves plants between growth phases, most commonly Vegetative to Flowering.\n\n`newLocationId` and `newTagId` must be present but may be `null` to leave the\nplant in place and keep its current tag.\n\n**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcChangePlantGrowthPhasePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/change-locations": {
      "post": {
        "summary": "Change the location of one or more plants",
        "description": "Backs Metrc's **Change Location** modal on the plant grid.\n\nFetch the reference data this request needs from\n[Change Location Inputs](#/Plants/get_v2_plants_change_locations_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcChangePlantLocationsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/change-locations/inputs": {
      "get": {
        "summary": "Input data for change the location of one or more plants",
        "description": "Returns the reference data needed to build a\n[Change Location](#/Plants/post_v2_plants_change_locations) request body, read from Metrc's own\n**Change Location** modal for flowering plants.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Change Location modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePlantLocationsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/change-strains": {
      "post": {
        "summary": "Change the strain of one or more plants",
        "description": "Backs Metrc's **Change Strains** modal on the plant grid.\n\nFetch the reference data this request needs from\n[Change Strains Inputs](#/Plants/get_v2_plants_change_strains_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcChangePlantStrainsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/change-strains/inputs": {
      "get": {
        "summary": "Input data for change the strain of one or more plants",
        "description": "Returns the reference data needed to build a\n[Change Strains](#/Plants/post_v2_plants_change_strains) request body, read from Metrc's own\n**Change Strains** modal for flowering plants.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Change Strains modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePlantStrainsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/destroy": {
      "post": {
        "summary": "Destroy one or more plants",
        "description": "Backs Metrc's **Destroy** modal on the plant grid.\n\nFetch the reference data this request needs from\n[Destroy Inputs](#/Plants/get_v2_plants_destroy_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcDestroyPlantsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/destroy/inputs": {
      "get": {
        "summary": "Input data for destroy one or more plants",
        "description": "Returns the reference data needed to build a\n[Destroy](#/Plants/post_v2_plants_destroy) request body, read from Metrc's own\n**Destroy** modal for flowering plants.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Destroy modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcDestroyPlantsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/create/plantings": {
      "post": {
        "summary": "Create plant batches from one or more plants",
        "description": "Backs Metrc's **Create Plantings** modal on the plant grid.\n\nFetch the reference data this request needs from\n[Create Plantings Inputs](#/Plants/get_v2_plants_create_plantings_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePlantingsFromPlantsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/create/plantings/inputs": {
      "get": {
        "summary": "Input data for create plant batches from one or more plants",
        "description": "Returns the reference data needed to build a\n[Create Plantings](#/Plants/post_v2_plants_create_plantings) request body, read from Metrc's own\n**Create Plantings** modal for flowering plants.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Create Plantings modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePlantingsFromPlantsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/replace-tags": {
      "post": {
        "summary": "Replace the tag on one or more plants",
        "description": "Backs Metrc's **Replace Tags** modal on the plant grid.\n\nFetch the reference data this request needs from\n[Replace Tags Inputs](#/Plants/get_v2_plants_replace_tags_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcReplacePlantTagsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/replace-tags/inputs": {
      "get": {
        "summary": "Input data for replace the tag on one or more plants",
        "description": "Returns the reference data needed to build a\n[Replace Tags](#/Plants/post_v2_plants_replace_tags) request body, read from Metrc's own\n**Replace Tags** modal for flowering plants.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Replace Tags modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcReplacePlantTagsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/changes-by-location/flowering": {
      "post": {
        "summary": "Apply location and growth phase changes to flowering plants",
        "description": "Backs Metrc's **Changes by Location** modal on the plant grid.\n\nFetch the reference data this request needs from\n[Changes by Location Inputs](#/Plants/get_v2_plants_changes_by_location_flowering_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcFloweringPlantChangesByLocationPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/changes-by-location/flowering/inputs": {
      "get": {
        "summary": "Input data for apply location and growth phase changes to flowering plants",
        "description": "Returns the reference data needed to build a\n[Changes by Location](#/Plants/post_v2_plants_changes_by_location_flowering) request body, read from Metrc's own\n**Changes by Location** modal for flowering plants.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Changes by Location modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcFloweringPlantChangesByLocationInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/changes-by-location/vegetative": {
      "post": {
        "summary": "Apply location and growth phase changes to vegetative plants",
        "description": "Backs Metrc's **Changes by Location** modal on the plant grid.\n**Not available in California**, which has no vegetative plant grid.\n\nFetch the reference data this request needs from\n[Changes by Location Inputs](#/Plants/get_v2_plants_changes_by_location_vegetative_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcVegetativePlantChangesByLocationPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/changes-by-location/vegetative/inputs": {
      "get": {
        "summary": "Input data for apply location and growth phase changes to vegetative plants",
        "description": "Returns the reference data needed to build a\n[Changes by Location](#/Plants/post_v2_plants_changes_by_location_vegetative) request body, read from Metrc's own\n**Changes by Location** modal for vegetative plants.\n**Not available in California**, which has no vegetative plant grid.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Changes by Location modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcVegetativePlantChangesByLocationInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/create/packages": {
      "post": {
        "summary": "Create packages from one or more vegetative plants",
        "description": "Backs Metrc's **Create Packages** modal on the plant grid.\n**Not available in California**, which has no vegetative plant grid.\n\nFetch the reference data this request needs from\n[Create Packages Inputs](#/Plants/get_v2_plants_create_packages_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePackagesFromPlantsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/create/packages/inputs": {
      "get": {
        "summary": "Input data for create packages from one or more vegetative plants",
        "description": "Returns the reference data needed to build a\n[Create Packages](#/Plants/post_v2_plants_create_packages) request body, read from Metrc's own\n**Create Packages** modal for vegetative plants.\n**Not available in California**, which has no vegetative plant grid.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Create Packages modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePackagesFromPlantsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/assign-tags": {
      "post": {
        "summary": "Assign a contiguous run of tags to untagged plants",
        "description": "Backs Metrc's **Assign Tags** modal on the plant grid.\n**Not available in California**, which has no vegetative plant grid.\n\nFetch the reference data this request needs from\n[Assign Tags Inputs](#/Plants/get_v2_plants_assign_tags_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcAssignPlantTagsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/assign-tags/inputs": {
      "get": {
        "summary": "Input data for assign a contiguous run of tags to untagged plants",
        "description": "Returns the reference data needed to build a\n[Assign Tags](#/Plants/post_v2_plants_assign_tags) request body, read from Metrc's own\n**Assign Tags** modal for vegetative plants.\n**Not available in California**, which has no vegetative plant grid.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Assign Tags modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcAssignPlantTagsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/merge": {
      "post": {
        "summary": "Merge one plant group into another",
        "description": "Backs Metrc's **Merge** modal on the plant grid.\n**Maine only.** No other indexed state exposes this modal.\n\nFetch the reference data this request needs from\n[Merge Inputs](#/Plants/get_v2_plants_merge_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcMergePlantGroupsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/merge/inputs": {
      "get": {
        "summary": "Input data for merge one plant group into another",
        "description": "Returns the reference data needed to build a\n[Merge](#/Plants/post_v2_plants_merge) request body, read from Metrc's own\n**Merge** modal for flowering plants.\n**Maine only.** No other indexed state exposes this modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Merge modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcMergePlantGroupsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/split": {
      "post": {
        "summary": "Split plants out of a plant group into a new one",
        "description": "Backs Metrc's **Split** modal on the plant grid.\n**Maine only.** No other indexed state exposes this modal.\n\nFetch the reference data this request needs from\n[Split Inputs](#/Plants/get_v2_plants_split_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcSplitPlantsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/split/inputs": {
      "get": {
        "summary": "Input data for split plants out of a plant group into a new one",
        "description": "Returns the reference data needed to build a\n[Split](#/Plants/post_v2_plants_split) request body, read from Metrc's own\n**Split** modal for flowering plants.\n**Maine only.** No other indexed state exposes this modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Split modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSplitPlantsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/destroy/source-plants": {
      "get": {
        "summary": "Plants eligible for destroy on a plant \u00b7 METRC_DESTROY_PLANTS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_DESTROY_PLANTS_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Destroy](#/Plants/post_v2_plants_destroy).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing -- a plant missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_DESTROY_PLANTS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/destroy/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for destroy on a plant by id \u00b7 METRC_DESTROY_PLANTS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_DESTROY_PLANTS_SOURCE_PLANTS`.\n\nReturns a plant eligible for destroy on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_DESTROY_PLANTS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/create/plantings/source-plants": {
      "get": {
        "summary": "Plants eligible for create plantings on a plant \u00b7 METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Create Plantings](#/Plants/post_v2_plants_create_plantings).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing -- a plant missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/create/plantings/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for create plantings on a plant by id \u00b7 METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_PLANTS`.\n\nReturns a plant eligible for create plantings on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/create/plantings/source-tags": {
      "get": {
        "summary": "Tags available for create plantings on a plant \u00b7 METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Create Plantings](#/Plants/post_v2_plants_create_plantings).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing -- a tag missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_TAGS"
      }
    },
    "/v2/plants/create/plantings/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for create plantings on a plant by id \u00b7 METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_TAGS`.\n\nReturns a tag available for create plantings on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTINGS_FROM_PLANTS_SOURCE_TAGS"
      }
    },
    "/v2/plants/replace-tags/source-plants": {
      "get": {
        "summary": "Plants eligible for replace tags on a plant \u00b7 METRC_REPLACE_PLANT_TAGS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_REPLACE_PLANT_TAGS_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Replace Tags](#/Plants/post_v2_plants_replace_tags).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing -- a plant missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_REPLACE_PLANT_TAGS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/replace-tags/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for replace tags on a plant by id \u00b7 METRC_REPLACE_PLANT_TAGS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_REPLACE_PLANT_TAGS_SOURCE_PLANTS`.\n\nReturns a plant eligible for replace tags on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_REPLACE_PLANT_TAGS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/replace-tags/source-tags": {
      "get": {
        "summary": "Tags available for replace tags on a plant \u00b7 METRC_REPLACE_PLANT_TAGS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_REPLACE_PLANT_TAGS_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Replace Tags](#/Plants/post_v2_plants_replace_tags).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing -- a tag missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_REPLACE_PLANT_TAGS_SOURCE_TAGS"
      }
    },
    "/v2/plants/replace-tags/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for replace tags on a plant by id \u00b7 METRC_REPLACE_PLANT_TAGS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_REPLACE_PLANT_TAGS_SOURCE_TAGS`.\n\nReturns a tag available for replace tags on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_REPLACE_PLANT_TAGS_SOURCE_TAGS"
      }
    },
    "/v2/plants/create/packages/source-plants": {
      "get": {
        "summary": "Plants eligible for create packages on a plant \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Create Packages](#/Plants/post_v2_plants_create_packages).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing -- a plant missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/create/packages/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for create packages on a plant by id \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_PLANTS`.\n\nReturns a plant eligible for create packages on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/create/packages/source-items": {
      "get": {
        "summary": "Items eligible for create packages on a plant \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_ITEMS`.\n\nThe items Metrc will accept on\n[Create Packages](#/Plants/post_v2_plants_create_packages).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general item listing -- a item missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of item objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItem"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Buds",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_ITEMS"
      }
    },
    "/v2/plants/create/packages/source-items/{object_id}": {
      "get": {
        "summary": "Retrieve an item eligible for create packages on a plant by id \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_ITEMS`.\n\nReturns an item eligible for create packages on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcItem"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_ITEMS"
      }
    },
    "/v2/plants/create/packages/source-tags": {
      "get": {
        "summary": "Tags available for create packages on a plant \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Create Packages](#/Plants/post_v2_plants_create_packages).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing -- a tag missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_TAGS"
      }
    },
    "/v2/plants/create/packages/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for create packages on a plant by id \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_TAGS`.\n\nReturns a tag available for create packages on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTS_SOURCE_TAGS"
      }
    },
    "/v2/plants/assign-tags/source-tags": {
      "get": {
        "summary": "Tags available for assign tags on a plant \u00b7 METRC_ASSIGN_PLANT_TAGS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_ASSIGN_PLANT_TAGS_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Assign Tags](#/Plants/post_v2_plants_assign_tags).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing -- a tag missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_ASSIGN_PLANT_TAGS_SOURCE_TAGS"
      }
    },
    "/v2/plants/assign-tags/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for assign tags on a plant by id \u00b7 METRC_ASSIGN_PLANT_TAGS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_ASSIGN_PLANT_TAGS_SOURCE_TAGS`.\n\nReturns a tag available for assign tags on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_ASSIGN_PLANT_TAGS_SOURCE_TAGS"
      }
    },
    "/v2/plants/merge/source-plants": {
      "get": {
        "summary": "Plants eligible for merge on a plant \u00b7 METRC_MERGE_PLANT_GROUPS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_MERGE_PLANT_GROUPS_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Merge](#/Plants/post_v2_plants_merge).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing -- a plant missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_MERGE_PLANT_GROUPS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/merge/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for merge on a plant by id \u00b7 METRC_MERGE_PLANT_GROUPS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_MERGE_PLANT_GROUPS_SOURCE_PLANTS`.\n\nReturns a plant eligible for merge on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_MERGE_PLANT_GROUPS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/split/source-plants": {
      "get": {
        "summary": "Plants eligible for split on a plant \u00b7 METRC_SPLIT_PLANTS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_SPLIT_PLANTS_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Split](#/Plants/post_v2_plants_split).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing -- a plant missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_SPLIT_PLANTS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/split/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for split on a plant by id \u00b7 METRC_SPLIT_PLANTS_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_SPLIT_PLANTS_SOURCE_PLANTS`.\n\nReturns a plant eligible for split on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_SPLIT_PLANTS_SOURCE_PLANTS"
      }
    },
    "/v2/plants/split/source-tags": {
      "get": {
        "summary": "Tags available for split on a plant \u00b7 METRC_SPLIT_PLANTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_SPLIT_PLANTS_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Split](#/Plants/post_v2_plants_split).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing -- a tag missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_SPLIT_PLANTS_SOURCE_TAGS"
      }
    },
    "/v2/plants/split/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for split on a plant by id \u00b7 METRC_SPLIT_PLANTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_SPLIT_PLANTS_SOURCE_TAGS`.\n\nReturns a tag available for split on a plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_SPLIT_PLANTS_SOURCE_TAGS"
      }
    },
    "/v2/plants/create/plantbatch-package": {
      "post": {
        "summary": "Create an immature plant package from a mother plant",
        "description": "Backs Metrc's **Create Immature Plant Packages** modal, opened from the flowering plant grid.\n**California only.** No other indexed state exposes this modal.\n\nFetch the reference data this request needs from\n[Create Plant Batch Package Inputs](#/Plants/get_v2_plants_create_plantbatch_package_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePlantBatchPackageFromPlantPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/create/plantbatch-package/inputs": {
      "get": {
        "summary": "Input data for creating an immature plant package from a mother plant",
        "description": "Returns the reference data needed to build a\n[Create Plant Batch Package](#/Plants/post_v2_plants_create_plantbatch_package) request body.\n**California only.** No other indexed state exposes this modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Create Immature Plant Packages modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePlantBatchPackageFromPlantInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/create/plantbatch-package/source-plants": {
      "get": {
        "summary": "Plants eligible for an immature plant package cut from a mother plant \u00b7 METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Create Plant Batch Package](#/Plants/post_v2_plants_create_plantbatch_package).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_PLANTS"
      }
    },
    "/v2/plants/create/plantbatch-package/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for an immature plant package cut from a mother plant by id \u00b7 METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_PLANTS`.\n\nReturns a plant eligible for an immature plant package cut from a mother plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_PLANTS"
      }
    },
    "/v2/plants/create/plantbatch-package/source-items": {
      "get": {
        "summary": "Items eligible for an immature plant package cut from a mother plant \u00b7 METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_ITEMS`.\n\nThe items Metrc will accept on\n[Create Plant Batch Package](#/Plants/post_v2_plants_create_plantbatch_package).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general item listing.\n",
        "responses": {
          "200": {
            "description": "A list of item objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItem"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Buds",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_ITEMS"
      }
    },
    "/v2/plants/create/plantbatch-package/source-items/{object_id}": {
      "get": {
        "summary": "Retrieve an item eligible for an immature plant package cut from a mother plant by id \u00b7 METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_ITEMS`.\n\nReturns an item eligible for an immature plant package cut from a mother plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcItem"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_ITEMS"
      }
    },
    "/v2/plants/create/plantbatch-package/source-tags": {
      "get": {
        "summary": "Tags available for an immature plant package cut from a mother plant \u00b7 METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Create Plant Batch Package](#/Plants/post_v2_plants_create_plantbatch_package).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_TAGS"
      }
    },
    "/v2/plants/create/plantbatch-package/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for an immature plant package cut from a mother plant by id \u00b7 METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_TAGS`.\n\nReturns a tag available for an immature plant package cut from a mother plant by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTBATCH_PACKAGE_FROM_PLANT_SOURCE_TAGS"
      }
    },
    "/v2/plants/waste/record": {
      "post": {
        "summary": "Record waste against one or more plants",
        "description": "Backs Metrc's **Record Waste** form.\n\nRecords waste a plant produced **without ending the plant**, unlike the\ndestroy endpoints. All three Record Waste forms post to the same Metrc\nendpoint and differ only in what the waste is attributed to.\n\nFetch the reference data this request needs from\n[Record Waste Inputs](#/Plants/get_v2_plants_waste_record_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRecordPlantWastePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ]
      }
    },
    "/v2/plants/waste/record/inputs": {
      "get": {
        "summary": "Input data for record waste against one or more plants",
        "description": "Returns the reference data needed to build a\n[Record Waste](#/Plants/post_v2_plants_waste_record) request body.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Record Waste form.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcRecordPlantWasteInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ]
      }
    },
    "/v2/plants/waste/record-by-location": {
      "post": {
        "summary": "Record waste against every plant in a location",
        "description": "Backs Metrc's **Record Waste by Location** form.\n\nRecords waste a plant produced **without ending the plant**, unlike the\ndestroy endpoints. All three Record Waste forms post to the same Metrc\nendpoint and differ only in what the waste is attributed to.\n\nFetch the reference data this request needs from\n[Record Waste by Location Inputs](#/Plants/get_v2_plants_waste_record_by_location_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRecordLocationWastePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ]
      }
    },
    "/v2/plants/waste/record-by-location/inputs": {
      "get": {
        "summary": "Input data for record waste against every plant in a location",
        "description": "Returns the reference data needed to build a\n[Record Waste by Location](#/Plants/post_v2_plants_waste_record_by_location) request body.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Record Waste by Location form.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcRecordLocationWasteInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ]
      }
    },
    "/v2/plants/waste/record/source-plants": {
      "get": {
        "summary": "Plants eligible for a waste record \u00b7 METRC_RECORD_PLANT_WASTE_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_RECORD_PLANT_WASTE_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Record Waste](#/Plants/post_v2_plants_waste_record).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for a waste record.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_RECORD_PLANT_WASTE_SOURCE_PLANTS"
      }
    },
    "/v2/plants/waste/record/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for a waste record by id \u00b7 METRC_RECORD_PLANT_WASTE_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_RECORD_PLANT_WASTE_SOURCE_PLANTS`.\n\nReturns a plant eligible for a waste record by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_RECORD_PLANT_WASTE_SOURCE_PLANTS"
      }
    },
    "/v2/plants/waste": {
      "get": {
        "summary": "List of plant waste records \u00b7 METRC_PLANT_WASTE",
        "description": "**T3 endpoint id:** `METRC_PLANT_WASTE`.\n\nEvery waste event recorded against this license's plants.\n",
        "responses": {
          "200": {
            "description": "List of plant waste records.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantWaste"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_PLANT_WASTE"
      }
    },
    "/v2/plants/waste/fields": {
      "get": {
        "summary": "List the fields plant waste records can be filtered on",
        "description": "Lists the fields `GET /v2/plants/waste` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plants/waste`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Waste",
          "Free"
        ]
      }
    },
    "/v2/plants/waste/super": {
      "get": {
        "summary": "List of plant waste records. Additional metadata can be added using the `include` param. \u00b7 METRC_SUPERPLANTWASTE",
        "responses": {
          "200": {
            "description": "A list of plant waste records for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperPlantWaste"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperPlantWasteInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_SUPERPLANTWASTE`.",
        "x-t3-endpoint-id": "METRC_SUPERPLANTWASTE"
      }
    },
    "/v2/plants/waste/super/{object_id}": {
      "get": {
        "summary": "Retrieve a plant waste record by id \u00b7 METRC_SUPERPLANTWASTE",
        "description": "**T3 endpoint id:** `METRC_SUPERPLANTWASTE`.\n\nReturns a plant waste record by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperPlantWaste"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperPlantWasteInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_SUPERPLANTWASTE"
      }
    },
    "/v2/plants/waste/report": {
      "get": {
        "summary": "Generate a report of all plant waste records \u00b7 PLANT_WASTE_REPORT",
        "description": "**T3 endpoint id:** `PLANT_WASTE_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of plant waste records for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantWasteReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "plantWasteNumber,wasteDate,wasteReasonName\n0000004471,2026-05-14,Trimming/Pruning\n0000004472,2026-05-15,Infestation"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "wasteDate:desc",
            "description": "Defines the plant waste sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "wasteReasonName__contains:Trim",
            "description": "One or more plant waste filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant waste fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "plantWasteNumber,wasteDate,wasteReasonName,wasteMethodName,wasteWeight,plantCount",
              "example": "plantWasteNumber,wasteDate,wasteReasonName,wasteMethodName,wasteWeight,plantCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports"
        ],
        "x-t3-endpoint-id": "PLANT_WASTE_REPORT"
      }
    },
    "/v2/plants/waste/super/report": {
      "get": {
        "summary": "Generate a super report of all plant waste records \u00b7 PLANT_WASTE_SUPER_REPORT",
        "description": "**T3 endpoint id:** `PLANT_WASTE_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of plant waste supercollection records for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperPlantWasteReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "plantWasteNumber,wasteDate,wasteReasonName\n0000004471,2026-05-14,Trimming/Pruning\n0000004472,2026-05-15,Infestation"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "wasteDate:desc",
            "description": "Defines the plant waste sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "wasteReasonName__contains:Trim",
            "description": "One or more plant waste filters."
          },
          {
            "$ref": "#/components/parameters/SuperPlantWasteInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant waste fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "plantWasteNumber,wasteDate,wasteReasonName,wasteMethodName,wasteWeight,plantCount",
              "example": "plantWasteNumber,wasteDate,wasteReasonName,wasteMethodName,wasteWeight,plantCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "PLANT_WASTE_SUPER_REPORT"
      }
    },
    "/v2/plants/waste/plants": {
      "get": {
        "summary": "List of plants in a waste record \u00b7 METRC_PLANT_WASTE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_PLANT_WASTE_PLANTS`.\n\nThe plants one waste event was recorded against.\n",
        "responses": {
          "200": {
            "description": "List of plants in a waste record.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/PlantWasteId"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_PLANT_WASTE_PLANTS"
      }
    },
    "/v2/plants/waste/packages": {
      "get": {
        "summary": "List of packages from a waste record \u00b7 METRC_PLANT_WASTE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_PLANT_WASTE_PACKAGES`.\n\nPackages produced by one waste event, where the state creates them.\n",
        "responses": {
          "200": {
            "description": "List of packages from a waste record.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/PlantWasteId"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_PLANT_WASTE_PACKAGES"
      }
    },
    "/v2/plants/additives": {
      "get": {
        "summary": "List of plant additive records \u00b7 METRC_PLANT_ADDITIVES",
        "description": "**T3 endpoint id:** `METRC_PLANT_ADDITIVES`.\n\nEvery additive application recorded against this license's plants.\n",
        "responses": {
          "200": {
            "description": "List of plant additive records.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantAdditive"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_PLANT_ADDITIVES"
      }
    },
    "/v2/plants/additives/fields": {
      "get": {
        "summary": "List the fields plant additive records can be filtered on",
        "description": "Lists the fields `GET /v2/plants/additives` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plants/additives`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Waste",
          "Free"
        ]
      }
    },
    "/v2/plants/additives/super": {
      "get": {
        "summary": "List of plant additive records. Additional metadata can be added using the `include` param. \u00b7 METRC_SUPERPLANTADDITIVES",
        "responses": {
          "200": {
            "description": "A list of plant additive records for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperPlantAdditive"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperPlantAdditiveInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_SUPERPLANTADDITIVES`.",
        "x-t3-endpoint-id": "METRC_SUPERPLANTADDITIVES"
      }
    },
    "/v2/plants/additives/super/{object_id}": {
      "get": {
        "summary": "Retrieve a plant additive record by id \u00b7 METRC_SUPERPLANTADDITIVES",
        "description": "**T3 endpoint id:** `METRC_SUPERPLANTADDITIVES`.\n\nReturns a plant additive record by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperPlantAdditive"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperPlantAdditiveInclude"
          }
        ],
        "tags": [
          "Plants",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_SUPERPLANTADDITIVES"
      }
    },
    "/v2/plants/additives/report": {
      "get": {
        "summary": "Generate a report of all plant additive records \u00b7 PLANT_ADDITIVES_REPORT",
        "description": "**T3 endpoint id:** `PLANT_ADDITIVES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of plant additive records for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantAdditiveReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "applicationDate,additiveTypeName,productTradeName\n2026-05-14,Fertilizer,GrowMore 20-20-20\n2026-05-15,Pesticide,SafeGuard"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "applicationDate:desc",
            "description": "Defines the plant additive sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "additiveTypeName__contains:Fertilizer",
            "description": "One or more plant additive filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant additive fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "applicationDate,additiveTypeName,productTradeName,totalAmountApplied,plantCount",
              "example": "applicationDate,additiveTypeName,productTradeName,totalAmountApplied,plantCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports"
        ],
        "x-t3-endpoint-id": "PLANT_ADDITIVES_REPORT"
      }
    },
    "/v2/plants/additives/super/report": {
      "get": {
        "summary": "Generate a super report of all plant additive records \u00b7 PLANT_ADDITIVES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `PLANT_ADDITIVES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of plant additive supercollection records for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperPlantAdditiveReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "applicationDate,additiveTypeName,productTradeName\n2026-05-14,Fertilizer,GrowMore 20-20-20\n2026-05-15,Pesticide,SafeGuard"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "applicationDate:desc",
            "description": "Defines the plant additive sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "additiveTypeName__contains:Fertilizer",
            "description": "One or more plant additive filters."
          },
          {
            "$ref": "#/components/parameters/SuperPlantAdditiveInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant additive fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "applicationDate,additiveTypeName,productTradeName,totalAmountApplied,plantCount",
              "example": "applicationDate,additiveTypeName,productTradeName,totalAmountApplied,plantCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plants",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "PLANT_ADDITIVES_SUPER_REPORT"
      }
    },
    "/v2/plants/additives/plants": {
      "get": {
        "summary": "List of plants in an additive record \u00b7 METRC_PLANT_ADDITIVE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_PLANT_ADDITIVE_PLANTS`.\n\nThe plants one additive application was recorded against.\n",
        "responses": {
          "200": {
            "description": "List of plants in an additive record.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/PlantAdditiveId"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_PLANT_ADDITIVE_PLANTS"
      }
    },
    "/v2/plants/additives/active-ingredients": {
      "get": {
        "summary": "List of active ingredients in an additive record \u00b7 METRC_PLANT_ADDITIVE_ACTIVE_INGREDIENTS",
        "description": "**T3 endpoint id:** `METRC_PLANT_ADDITIVE_ACTIVE_INGREDIENTS`.\n\nThe active ingredients declared for one additive application.\n",
        "responses": {
          "200": {
            "description": "List of active ingredients in an additive record.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantAdditiveActiveIngredient"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/PlantAdditiveId"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_PLANT_ADDITIVE_ACTIVE_INGREDIENTS"
      }
    },
    "/v2/plants/waste/{object_id}": {
      "get": {
        "summary": "Retrieve a plant waste record by id \u00b7 METRC_PLANT_WASTE",
        "description": "**T3 endpoint id:** `METRC_PLANT_WASTE`.\n\nReturns a plant waste record by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantWaste"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_PLANT_WASTE"
      }
    },
    "/v2/plants/additives/{object_id}": {
      "get": {
        "summary": "Retrieve a plant additive record by id \u00b7 METRC_PLANT_ADDITIVES",
        "description": "**T3 endpoint id:** `METRC_PLANT_ADDITIVES`.\n\nReturns a plant additive record by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantAdditive"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_PLANT_ADDITIVES"
      }
    },
    "/v2/plants/changegrowthphase/inputs/vegetative": {
      "get": {
        "summary": "Input data for changing growth phase for vegetative plants",
        "description": "Returns the reference data needed to build a\n[Change Growth Phase](#/Plants/post_v2_plants_changegrowthphase) request body.\n**Not available in California**, whose plants page has no Change Growth Phase\ncommand; there the equivalent is\n[Promote Immature Plants](#/Plant%20Batches/post_v2_plantbatches_promote).\n\nServed per phase: the growth phases a plant may move into depend on the one it is already in. Only a vegetative plant may become a Mother.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Change Growth Phase modal for vegetative plants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePlantGrowthPhaseInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/changegrowthphase/inputs/flowering": {
      "get": {
        "summary": "Input data for changing growth phase for flowering plants",
        "description": "Returns the reference data needed to build a\n[Change Growth Phase](#/Plants/post_v2_plants_changegrowthphase) request body.\n**Not available in California**, whose plants page has no Change Growth Phase\ncommand; there the equivalent is\n[Promote Immature Plants](#/Plant%20Batches/post_v2_plantbatches_promote).\n\nServed per phase: the growth phases a plant may move into depend on the one it is already in. Only a vegetative plant may become a Mother.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Change Growth Phase modal for flowering plants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePlantGrowthPhaseInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/changegrowthphase/inputs/mother": {
      "get": {
        "summary": "Input data for changing growth phase for mother plants",
        "description": "Returns the reference data needed to build a\n[Change Growth Phase](#/Plants/post_v2_plants_changegrowthphase) request body.\n**Not available in California**, whose plants page has no Change Growth Phase\ncommand; there the equivalent is\n[Promote Immature Plants](#/Plant%20Batches/post_v2_plantbatches_promote).\n\nServed per phase: the growth phases a plant may move into depend on the one it is already in. Only a vegetative plant may become a Mother.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Change Growth Phase modal for mother plants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePlantGrowthPhaseInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/changegrowthphase/source-plants": {
      "get": {
        "summary": "Plants eligible for change plant growth phase \u00b7 METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Change Plant Growth Phase](#/Plants/post_v2_plants_changegrowthphase).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing -- a plant missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_PLANTS"
      }
    },
    "/v2/plants/changegrowthphase/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for change plant growth phase by id \u00b7 METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_PLANTS`.\n\nReturns a plant eligible for change plant growth phase by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_PLANTS"
      }
    },
    "/v2/plants/changegrowthphase/source-tags": {
      "get": {
        "summary": "Tags available for change plant growth phase \u00b7 METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Change Plant Growth Phase](#/Plants/post_v2_plants_changegrowthphase).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing -- a tag missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_TAGS"
      }
    },
    "/v2/plants/changegrowthphase/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for change plant growth phase by id \u00b7 METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_TAGS`.\n\nReturns a tag available for change plant growth phase by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PLANT_GROWTH_PHASE_SOURCE_TAGS"
      }
    },
    "/v2/plants/create/from-packages": {
      "post": {
        "summary": "Unpack one or more packages of plants into plants",
        "description": "**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePlantsFromPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/create/from-packages/inputs": {
      "get": {
        "summary": "Input data used for unpacking packages of plants",
        "responses": {
          "200": {
            "description": "A dictionary of data used for unpacking packages of plants",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePlantsFromPackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ]
      }
    },
    "/v2/plants/create/from-packages/source-packages": {
      "get": {
        "summary": "List of packages eligible to unpack into plants \u00b7 METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "List of packages eligible to unpack into plants",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/plants/create/from-packages/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible to unpack into plants by id \u00b7 METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_PACKAGES`.\n\nReturns a package eligible to unpack into plants by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/plants/create/from-packages/source-tags": {
      "get": {
        "summary": "List of tags eligible for plants unpacked from a package \u00b7 METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_TAGS",
        "responses": {
          "200": {
            "description": "List of tags eligible for plants unpacked from a package",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_TAGS`.",
        "x-t3-endpoint-id": "METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_TAGS"
      }
    },
    "/v2/plants/create/from-packages/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag eligible for plants unpacked from a package by id \u00b7 METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_TAGS`.\n\nReturns a tag eligible for plants unpacked from a package by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plants",
          "Modify Plants"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTS_FROM_PACKAGES_SOURCE_TAGS"
      }
    },
    "/v2/plantbatches/active": {
      "get": {
        "summary": "List of active plant batches \u00b7 METRC_ACTIVE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_PLANTBATCHES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nNOTE: States such as CA use Metrc plant tags as names, other states allow unrestricted names for plant batches.\n",
        "responses": {
          "200": {
            "description": "A list of active plantbatches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/active/fields": {
      "get": {
        "summary": "List the fields active plant batches can be filtered on",
        "description": "Lists the fields `GET /v2/plantbatches/active` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plantbatches/active`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Free"
        ]
      }
    },
    "/v2/plantbatches/active/super": {
      "get": {
        "summary": "List of active superplantbatches. Additional metadata can be added using the `include` param. \u00b7 METRC_ACTIVE_SUPERPLANTBATCHES",
        "responses": {
          "200": {
            "description": "A list of active superplantbatches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplantbatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:BATCH",
            "description": "One or more plant batch filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantbatchInclude"
          }
        ],
        "tags": [
          "Plant Batches",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERPLANTBATCHES`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERPLANTBATCHES"
      }
    },
    "/v2/plantbatches/active/report": {
      "get": {
        "summary": "Generate a report of all active plant batches \u00b7 ACTIVE_PLANTBATCHES_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_PLANTBATCHES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active plant batches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatchReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,strainName,locationName\n1A4400000000000000001234,Pineapple Express,Row 10\n1A4400000000000000005678,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more plant batch filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant batch fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,locationName,strainName,plantedDate,untrackedCount",
              "example": "name,locationName,strainName,plantedDate,untrackedCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plant Batches",
          "Reports"
        ],
        "x-t3-endpoint-id": "ACTIVE_PLANTBATCHES_REPORT"
      }
    },
    "/v2/plantbatches/active/super/report": {
      "get": {
        "summary": "Generate a super report of all active plant batches \u00b7 ACTIVE_PLANTBATCHES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_PLANTBATCHES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active superplantbatches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantbatchReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,locationName,strainName\nBatch 1,Room A,OG Kush\nBatch 2,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:1",
            "description": "One or more plant batch filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantbatchInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant batch fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,locationName,strainName,plantedDate,untrackedCount",
              "example": "name,locationName,strainName,plantedDate,untrackedCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plant Batches",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ACTIVE_PLANTBATCHES_SUPER_REPORT"
      }
    },
    "/v2/plantbatches/onhold": {
      "get": {
        "summary": "List of on hold plantbatches \u00b7 METRC_ONHOLD_PLANTBATCHES",
        "responses": {
          "200": {
            "description": "A list of on hold plantbatches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches"
        ],
        "description": "**T3 endpoint id:** `METRC_ONHOLD_PLANTBATCHES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ONHOLD_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/onhold/fields": {
      "get": {
        "summary": "List the fields on hold plantbatches can be filtered on",
        "description": "Lists the fields `GET /v2/plantbatches/onhold` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plantbatches/onhold`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Free"
        ]
      }
    },
    "/v2/plantbatches/onhold/{object_id}": {
      "get": {
        "summary": "Retrieve an on hold plantbatch by id \u00b7 METRC_ONHOLD_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_PLANTBATCHES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an on hold plantbatch by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/onhold/super": {
      "get": {
        "summary": "List of on-hold superplantbatches. Additional metadata can be added using the `include` param. \u00b7 METRC_ONHOLD_SUPERPLANTBATCHES",
        "responses": {
          "200": {
            "description": "A list of on-hold superplantbatches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplantbatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:BATCH",
            "description": "One or more plant batch filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantbatchInclude"
          }
        ],
        "tags": [
          "Plant Batches",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ONHOLD_SUPERPLANTBATCHES`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ONHOLD_SUPERPLANTBATCHES"
      }
    },
    "/v2/plantbatches/onhold/super/{object_id}": {
      "get": {
        "summary": "Retrieve an on-hold superplantbatch by id \u00b7 METRC_ONHOLD_SUPERPLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_SUPERPLANTBATCHES`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an on-hold superplantbatch by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantbatch"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperplantbatchInclude"
          }
        ],
        "tags": [
          "Plant Batches",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_SUPERPLANTBATCHES"
      }
    },
    "/v2/plantbatches/onhold/report": {
      "get": {
        "summary": "Generate a report of all on hold plant batches \u00b7 ONHOLD_PLANTBATCHES_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_PLANTBATCHES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold plant batches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatchReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,strainName,locationName\nBatch 1,Pineapple Express,Row 10\nBatch 2,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more plant batch filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant batch fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,locationName,strainName,plantedDate,untrackedCount",
              "example": "name,locationName,strainName,plantedDate,untrackedCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plant Batches",
          "Reports"
        ],
        "x-t3-endpoint-id": "ONHOLD_PLANTBATCHES_REPORT"
      }
    },
    "/v2/plantbatches/onhold/super/report": {
      "get": {
        "summary": "Generate a super report of all on hold plant batches \u00b7 ONHOLD_PLANTBATCHES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_PLANTBATCHES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold superplantbatches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantbatchReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,locationName,strainName\nBatch 1,Room A,OG Kush\nBatch 2,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:1",
            "description": "One or more plant batch filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantbatchInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant batch fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,locationName,strainName,plantedDate,untrackedCount",
              "example": "name,locationName,strainName,plantedDate,untrackedCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plant Batches",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ONHOLD_PLANTBATCHES_SUPER_REPORT"
      }
    },
    "/v2/plantbatches/inactive": {
      "get": {
        "summary": "List of inactive plantbatches \u00b7 METRC_INACTIVE_PLANTBATCHES",
        "responses": {
          "200": {
            "description": "A list of inactive plantbatches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_PLANTBATCHES`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/inactive/fields": {
      "get": {
        "summary": "List the fields inactive plantbatches can be filtered on",
        "description": "Lists the fields `GET /v2/plantbatches/inactive` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/plantbatches/inactive`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Free"
        ]
      }
    },
    "/v2/plantbatches/inactive/super": {
      "get": {
        "summary": "List of inactive superplantbatches. Additional metadata can be added using the `include` param. \u00b7 METRC_INACTIVE_SUPERPLANTBATCHES",
        "responses": {
          "200": {
            "description": "A list of inactive superplantbatches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperplantbatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:BATCH",
            "description": "One or more plant batch filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantbatchInclude"
          }
        ],
        "tags": [
          "Plant Batches",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERPLANTBATCHES`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERPLANTBATCHES"
      }
    },
    "/v2/plantbatches/inactive/report": {
      "get": {
        "summary": "Generate a report of all inactive plant batches \u00b7 INACTIVE_PLANTBATCHES_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_PLANTBATCHES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive plant batches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatchReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,strainName,locationName\nBatch 1,Pineapple Express,Row 10\nBatch 2,Pineapple Express,Row 5"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more plant batch filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant batch fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,locationName,strainName,plantedDate,untrackedCount",
              "example": "name,locationName,strainName,plantedDate,untrackedCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plant Batches",
          "Reports"
        ],
        "x-t3-endpoint-id": "INACTIVE_PLANTBATCHES_REPORT"
      }
    },
    "/v2/plantbatches/inactive/super/report": {
      "get": {
        "summary": "Generate a super report of all inactive plant batches \u00b7 INACTIVE_PLANTBATCHES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_PLANTBATCHES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive superplantbatches for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperplantbatchReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,locationName,strainName\nBatch 1,Room A,OG Kush\nBatch 2,Room B,Blue Dream"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:1",
            "description": "One or more plant batch filters."
          },
          {
            "$ref": "#/components/parameters/SuperplantbatchInclude"
          },
          {
            "name": "columns",
            "description": "Defines which plant batch fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,locationName,strainName,plantedDate,untrackedCount",
              "example": "name,locationName,strainName,plantedDate,untrackedCount"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Plant Batches",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "INACTIVE_PLANTBATCHES_SUPER_REPORT"
      }
    },
    "/v2/plantbatches/history": {
      "get": {
        "summary": "List of history objects for a single plant batch \u00b7 METRC_PLANTBATCH_HISTORY",
        "description": "**T3 endpoint id:** `METRC_PLANTBATCH_HISTORY`.\n\nNOTE: only supports INACTIVE plant batches\n",
        "responses": {
          "200": {
            "description": "A list of package history objects for the specified plant batch.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The plant batch with id={plantBatchId} was not found in the specified license, or you do not have access to view this plant batch's history"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "plantBatchId",
            "description": "ID of the target plant batch",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the history sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "userName__contains:MSmith001",
            "description": "One or more history filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Single Plant Batch",
          "History"
        ],
        "x-t3-endpoint-id": "METRC_PLANTBATCH_HISTORY"
      }
    },
    "/v2/plantbatches/create/from-packages": {
      "post": {
        "summary": "Create one or more plant batches from a package",
        "description": "Draws material from a source package and creates immature plant batches.\n\nThe resulting plants are **immature**. Promote them with\n[Promote Immature Plants](#/Plant%20Batches/post_v2_plantbatches_promote) to\nmove them into a tracked growth phase.\n\n**There is one name field, `plantBatchName`, and it is a string.** Where a\nstate identifies a plant batch by tag, pass that tag's label; elsewhere it is\nfree text. Metrc takes a string either way.\n\n**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePlantBatchesFromPackagesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/create/from-packages/inputs": {
      "get": {
        "summary": "Input data used for creating plant batches from packages",
        "description": "Returns the option lists needed to build a\n[Create Plant Batches From Packages](#/Plant%20Batches/post_v2_plantbatches_create_from_packages)\npayload: plant batch types, strains, locations, and units of measure.\n\n`plantBatchTypes` is the only source for `plantBatchTypeId` \u2014 the value is\nstate-specific and does not appear on the plant batch records returned by\nthe list endpoints.\n\nIn California, `tags` is populated: send one tag's label as `plantBatchName`.\nIn other states it is `null`, and `plantBatchName` is free text.\n",
        "responses": {
          "200": {
            "description": "Input data for creating plant batches",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePlantBatchesFromPackagesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/promote": {
      "post": {
        "summary": "Promote immature plants into a tracked growth phase",
        "description": "Moves plants out of an immature plant batch into the Vegetative or Flowering\nphase, assigning one plant tag per promoted plant.\n\n`startingTagId` and `endingTagId` bound a contiguous tag range. Every tag in\nthat range is consumed, and `plantsCount` must equal the size of the range.\n\n**Refer to the request body schema for details on formatting your request**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcPromoteImmaturePlantsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/create/from-plantbatches": {
      "post": {
        "summary": "Create plant batches from an existing plant batch",
        "description": "Backs Metrc's **Create Plantings** modal on the plant batch grid.\n\nFetch the reference data this request needs from\n[Create Plantings Inputs](#/Plant%20Batches/get_v2_plantbatches_create_from_plantbatches_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePlantBatchesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/create/from-plantbatches/inputs": {
      "get": {
        "summary": "Input data for create plant batches from an existing plant batch",
        "description": "Returns the reference data needed to build a\n[Create Plantings](#/Plant%20Batches/post_v2_plantbatches_create_from_plantbatches) request body, read from\nMetrc's own **Create Plantings** modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Create Plantings modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePlantBatchesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/split": {
      "post": {
        "summary": "Split a plant batch into new plant batches",
        "description": "Backs Metrc's **Split Plantings** modal on the plant batch grid.\n\nFetch the reference data this request needs from\n[Split Plantings Inputs](#/Plant%20Batches/get_v2_plantbatches_split_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcSplitPlantBatchesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/split/inputs": {
      "get": {
        "summary": "Input data for split a plant batch into new plant batches",
        "description": "Returns the reference data needed to build a\n[Split Plantings](#/Plant%20Batches/post_v2_plantbatches_split) request body, read from\nMetrc's own **Split Plantings** modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Split Plantings modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSplitPlantBatchesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/create/packages": {
      "post": {
        "summary": "Create packages from one or more plant batches",
        "description": "Backs Metrc's **Create Packages** modal on the plant batch grid.\n\nFetch the reference data this request needs from\n[Create Packages Inputs](#/Plant%20Batches/get_v2_plantbatches_create_packages_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePackagesFromPlantBatchesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Packages From Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/create/packages/inputs": {
      "get": {
        "summary": "Input data for create packages from one or more plant batches",
        "description": "Returns the reference data needed to build a\n[Create Packages](#/Plant%20Batches/post_v2_plantbatches_create_packages) request body, read from\nMetrc's own **Create Packages** modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Create Packages modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePackagesFromPlantBatchesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Packages From Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/destroy": {
      "post": {
        "summary": "Destroy immature plants from one or more plant batches",
        "description": "Backs Metrc's **Destroy Plants** modal on the plant batch grid.\n\nFetch the reference data this request needs from\n[Destroy Plants Inputs](#/Plant%20Batches/get_v2_plantbatches_destroy_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcDestroyPlantBatchesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/destroy/inputs": {
      "get": {
        "summary": "Input data for destroy immature plants from one or more plant batches",
        "description": "Returns the reference data needed to build a\n[Destroy Plants](#/Plant%20Batches/post_v2_plantbatches_destroy) request body, read from\nMetrc's own **Destroy Plants** modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Destroy Plants modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcDestroyPlantBatchesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/change-locations": {
      "post": {
        "summary": "Change the location of one or more plant batches",
        "description": "Backs Metrc's **Change Location** modal on the plant batch grid.\n\nFetch the reference data this request needs from\n[Change Location Inputs](#/Plant%20Batches/get_v2_plantbatches_change_locations_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcChangePlantBatchLocationsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/change-locations/inputs": {
      "get": {
        "summary": "Input data for change the location of one or more plant batches",
        "description": "Returns the reference data needed to build a\n[Change Location](#/Plant%20Batches/post_v2_plantbatches_change_locations) request body, read from\nMetrc's own **Change Location** modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Change Location modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePlantBatchLocationsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/change-strains": {
      "post": {
        "summary": "Change the strain of one or more plant batches",
        "description": "Backs Metrc's **Change Strains** modal on the plant batch grid.\n\nFetch the reference data this request needs from\n[Change Strains Inputs](#/Plant%20Batches/get_v2_plantbatches_change_strains_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcChangePlantBatchStrainsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/change-strains/inputs": {
      "get": {
        "summary": "Input data for change the strain of one or more plant batches",
        "description": "Returns the reference data needed to build a\n[Change Strains](#/Plant%20Batches/post_v2_plantbatches_change_strains) request body, read from\nMetrc's own **Change Strains** modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Change Strains modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangePlantBatchStrainsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/rename": {
      "post": {
        "summary": "Rename one or more plant batches",
        "description": "Backs Metrc's **Rename** modal on the plant batch grid.\n**Not available in California**, whose plant batches are identified by tag\nrather than by name.\n\nFetch the reference data this request needs from\n[Rename Inputs](#/Plant%20Batches/get_v2_plantbatches_rename_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRenamePlantBatchesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/rename/inputs": {
      "get": {
        "summary": "Input data for rename one or more plant batches",
        "description": "Returns the reference data needed to build a\n[Rename](#/Plant%20Batches/post_v2_plantbatches_rename) request body, read from\nMetrc's own **Rename** modal.\n**Not available in California**, whose plant batches are identified by tag\nrather than by name.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Rename modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcRenamePlantBatchesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/adjust": {
      "post": {
        "summary": "Adjust the plant count of one or more plant batches",
        "description": "Backs Metrc's **Adjust** modal on the plant batch grid.\n**Not available in Missouri**, whose plant batch grid has no Adjust modal.\n\nFetch the reference data this request needs from\n[Adjust Inputs](#/Plant%20Batches/get_v2_plantbatches_adjust_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcAdjustPlantBatchesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/adjust/inputs": {
      "get": {
        "summary": "Input data for adjust the plant count of one or more plant batches",
        "description": "Returns the reference data needed to build a\n[Adjust](#/Plant%20Batches/post_v2_plantbatches_adjust) request body, read from\nMetrc's own **Adjust** modal.\n**Not available in Missouri**, whose plant batch grid has no Adjust modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Adjust modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcAdjustPlantBatchesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/replace-tags": {
      "post": {
        "summary": "Replace the tag on one or more plant batches",
        "description": "Backs Metrc's **Replace Tags** modal on the plant batch grid.\n**California only.** No other indexed state exposes this modal.\n\nFetch the reference data this request needs from\n[Replace Tags Inputs](#/Plant%20Batches/get_v2_plantbatches_replace_tags_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcReplacePlantBatchTagsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/replace-tags/inputs": {
      "get": {
        "summary": "Input data for replace the tag on one or more plant batches",
        "description": "Returns the reference data needed to build a\n[Replace Tags](#/Plant%20Batches/post_v2_plantbatches_replace_tags) request body, read from\nMetrc's own **Replace Tags** modal.\n**California only.** No other indexed state exposes this modal.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Replace Tags modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcReplacePlantBatchTagsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/destroy/source-plantbatches": {
      "get": {
        "summary": "Plant batches eligible for destroying immature plants \u00b7 METRC_DESTROY_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_DESTROY_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Destroy Plants](#/Plant%20Batches/post_v2_plantbatches_destroy).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing -- a plant batch missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_DESTROY_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/change-locations/source-plantbatches": {
      "get": {
        "summary": "Plant batches eligible for a plant batch location change \u00b7 METRC_CHANGE_PLANTBATCH_LOCATIONS_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PLANTBATCH_LOCATIONS_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Change Location](#/Plant%20Batches/post_v2_plantbatches_change_locations).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing -- a plant batch missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PLANTBATCH_LOCATIONS_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/change-strains/source-plantbatches": {
      "get": {
        "summary": "Plant batches eligible for a plant batch strain change \u00b7 METRC_CHANGE_PLANTBATCH_STRAINS_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PLANTBATCH_STRAINS_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Change Strains](#/Plant%20Batches/post_v2_plantbatches_change_strains).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing -- a plant batch missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PLANTBATCH_STRAINS_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/rename/source-plantbatches": {
      "get": {
        "summary": "Plant batches eligible for renaming a plant batch \u00b7 METRC_RENAME_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_RENAME_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Rename](#/Plant%20Batches/post_v2_plantbatches_rename).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing -- a plant batch missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_RENAME_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/adjust/source-plantbatches": {
      "get": {
        "summary": "Plant batches eligible for a plant count adjustment \u00b7 METRC_ADJUST_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_ADJUST_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Adjust](#/Plant%20Batches/post_v2_plantbatches_adjust).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing -- a plant batch missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_ADJUST_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/split/source-plantbatches": {
      "get": {
        "summary": "Plant batches eligible for a plant batch split \u00b7 METRC_SPLIT_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_SPLIT_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Split Plantings](#/Plant%20Batches/post_v2_plantbatches_split).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing -- a plant batch missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_SPLIT_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/split/source-tags": {
      "get": {
        "summary": "Tags available for a plant batch split \u00b7 METRC_SPLIT_PLANTBATCHES_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_SPLIT_PLANTBATCHES_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Split Plantings](#/Plant%20Batches/post_v2_plantbatches_split).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing -- a tag missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_SPLIT_PLANTBATCHES_SOURCE_TAGS"
      }
    },
    "/v2/plantbatches/replace-tags/source-plantbatches": {
      "get": {
        "summary": "Plant batches eligible for a plant batch tag replacement \u00b7 METRC_REPLACE_PLANTBATCH_TAGS_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_REPLACE_PLANTBATCH_TAGS_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Replace Tags](#/Plant%20Batches/post_v2_plantbatches_replace_tags).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing -- a plant batch missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_REPLACE_PLANTBATCH_TAGS_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/create/packages/source-plantbatches": {
      "get": {
        "summary": "Plant batches eligible for a package created from a plant batch \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Create Packages](#/Plant%20Batches/post_v2_plantbatches_create_packages).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing -- a plant batch missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Packages From Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/create/packages/source-items": {
      "get": {
        "summary": "Items eligible for a package created from a plant batch \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_ITEMS`.\n\nThe items Metrc will accept on\n[Create Packages](#/Plant%20Batches/post_v2_plantbatches_create_packages).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general item listing -- a item missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of item objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItem"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Buds",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Packages From Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_ITEMS"
      }
    },
    "/v2/plantbatches/create/packages/source-tags": {
      "get": {
        "summary": "Tags available for a package created from a plant batch \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Create Packages](#/Plant%20Batches/post_v2_plantbatches_create_packages).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing -- a tag missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Packages From Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_TAGS"
      }
    },
    "/v2/plantbatches/destroy/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for destroying immature plants by id \u00b7 METRC_DESTROY_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_DESTROY_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for destroying immature plants by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_DESTROY_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/change-locations/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for a plant batch location change by id \u00b7 METRC_CHANGE_PLANTBATCH_LOCATIONS_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PLANTBATCH_LOCATIONS_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for a plant batch location change by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PLANTBATCH_LOCATIONS_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/change-strains/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for a plant batch strain change by id \u00b7 METRC_CHANGE_PLANTBATCH_STRAINS_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_CHANGE_PLANTBATCH_STRAINS_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for a plant batch strain change by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CHANGE_PLANTBATCH_STRAINS_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/rename/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for renaming a plant batch by id \u00b7 METRC_RENAME_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_RENAME_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for renaming a plant batch by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_RENAME_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/adjust/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for a plant count adjustment by id \u00b7 METRC_ADJUST_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_ADJUST_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for a plant count adjustment by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_ADJUST_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/split/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for a plant batch split by id \u00b7 METRC_SPLIT_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_SPLIT_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for a plant batch split by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_SPLIT_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/split/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for a plant batch split by id \u00b7 METRC_SPLIT_PLANTBATCHES_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_SPLIT_PLANTBATCHES_SOURCE_TAGS`.\n\nReturns a tag available for a plant batch split by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_SPLIT_PLANTBATCHES_SOURCE_TAGS"
      }
    },
    "/v2/plantbatches/replace-tags/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for a plant batch tag replacement by id \u00b7 METRC_REPLACE_PLANTBATCH_TAGS_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_REPLACE_PLANTBATCH_TAGS_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for a plant batch tag replacement by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Modify Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_REPLACE_PLANTBATCH_TAGS_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/create/packages/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for a package created from a plant batch by id \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for a package created from a plant batch by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Packages From Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/create/packages/source-items/{object_id}": {
      "get": {
        "summary": "Retrieve an item eligible for a package created from a plant batch by id \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_ITEMS`.\n\nReturns an item eligible for a package created from a plant batch by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcItem"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Packages From Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_ITEMS"
      }
    },
    "/v2/plantbatches/create/packages/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for a package created from a plant batch by id \u00b7 METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_TAGS`.\n\nReturns a tag available for a package created from a plant batch by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Packages From Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_PLANTBATCHES_SOURCE_TAGS"
      }
    },
    "/v2/plantbatches/waste/record": {
      "post": {
        "summary": "Record waste against one or more plant batches",
        "description": "Backs Metrc's **Record Waste** form.\n\nRecords waste a plant produced **without ending the plant**, unlike the\ndestroy endpoints. All three Record Waste forms post to the same Metrc\nendpoint and differ only in what the waste is attributed to.\n\nFetch the reference data this request needs from\n[Record Waste Inputs](#/Plant%20Batches/get_v2_plantbatches_waste_record_inputs) first.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRecordPlantBatchWastePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Plant Batches",
          "Waste"
        ]
      }
    },
    "/v2/plantbatches/waste/record/inputs": {
      "get": {
        "summary": "Input data for record waste against one or more plant batches",
        "description": "Returns the reference data needed to build a\n[Record Waste](#/Plant%20Batches/post_v2_plantbatches_waste_record) request body.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Record Waste form.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcRecordPlantBatchWasteInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Waste"
        ]
      }
    },
    "/v2/plantbatches/waste/record/source-plantbatches": {
      "get": {
        "summary": "Plant batchs eligible for a waste record \u00b7 METRC_RECORD_PLANTBATCH_WASTE_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_RECORD_PLANTBATCH_WASTE_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Record Waste](#/Plant%20Batches/post_v2_plantbatches_waste_record).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for a waste record.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_RECORD_PLANTBATCH_WASTE_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/waste/record/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for a waste record by id \u00b7 METRC_RECORD_PLANTBATCH_WASTE_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_RECORD_PLANTBATCH_WASTE_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for a waste record by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_RECORD_PLANTBATCH_WASTE_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/promote/inputs": {
      "get": {
        "summary": "Input data for changing growth phase",
        "description": "Returns the reference data needed to build a\n[Change Growth Phase](#/Plant%20Batches/post_v2_plantbatches_promote) request body.\n\nOne variant only: Metrc opens this modal without naming a growth phase.\n",
        "responses": {
          "200": {
            "description": "Reference data for Metrc's Change Growth Phase modal.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPromoteImmaturePlantsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ]
      }
    },
    "/v2/plantbatches/promote/source-plantbatches": {
      "get": {
        "summary": "Plant batchs eligible for promote immature plants \u00b7 METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_PLANTBATCHES`.\n\nThe plant batchs Metrc will accept on\n[Promote Immature Plants](#/Plant%20Batches/post_v2_plantbatches_promote).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant batch listing -- a plant batch missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant batch objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlantBatch"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the plant batch sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Reserve",
            "description": "One or more plant batch filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/promote/source-plantbatches/{object_id}": {
      "get": {
        "summary": "Retrieve a plant batch eligible for promote immature plants by id \u00b7 METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_PLANTBATCHES",
        "description": "**T3 endpoint id:** `METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_PLANTBATCHES`.\n\nReturns a plant batch eligible for promote immature plants by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlantBatch"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_PLANTBATCHES"
      }
    },
    "/v2/plantbatches/promote/source-tags": {
      "get": {
        "summary": "Tags available for promote immature plants \u00b7 METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_TAGS`.\n\nThe tags Metrc will accept on\n[Promote Immature Plants](#/Plant%20Batches/post_v2_plantbatches_promote).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general tag listing -- a tag missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_TAGS"
      }
    },
    "/v2/plantbatches/promote/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for promote immature plants by id \u00b7 METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_TAGS`.\n\nReturns a tag available for promote immature plants by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_PROMOTE_IMMATURE_PLANTS_SOURCE_TAGS"
      }
    },
    "/v2/plantbatches/create/from-packages/source-packages": {
      "get": {
        "summary": "List of packages eligible to create plant batches from \u00b7 METRC_CREATE_PLANTBATCHES_FROM_PACKAGES_SOURCE_PACKAGES",
        "responses": {
          "200": {
            "description": "List of packages eligible to create plant batches from",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__endswith:0003",
            "description": "One or more package filters."
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTBATCHES_FROM_PACKAGES_SOURCE_PACKAGES`.",
        "x-t3-endpoint-id": "METRC_CREATE_PLANTBATCHES_FROM_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/plantbatches/create/from-packages/source-packages/{object_id}": {
      "get": {
        "summary": "Retrieve a package eligible to create plant batches from by id \u00b7 METRC_CREATE_PLANTBATCHES_FROM_PACKAGES_SOURCE_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANTBATCHES_FROM_PACKAGES_SOURCE_PACKAGES`.\n\nReturns a package eligible to create plant batches from by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Plant Batches",
          "Create Plant Batches"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANTBATCHES_FROM_PACKAGES_SOURCE_PACKAGES"
      }
    },
    "/v2/harvests/active": {
      "get": {
        "summary": "List of active harvests \u00b7 METRC_ACTIVE_HARVESTS",
        "responses": {
          "200": {
            "description": "A list of active harvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHarvest"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more harvest filters."
          }
        ],
        "tags": [
          "Harvests"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_HARVESTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_HARVESTS"
      }
    },
    "/v2/harvests/active/fields": {
      "get": {
        "summary": "List the fields active harvests can be filtered on",
        "description": "Lists the fields `GET /v2/harvests/active` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/harvests/active`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Harvests",
          "Free"
        ]
      }
    },
    "/v2/harvests/active/{object_id}": {
      "get": {
        "summary": "Retrieve an active harvest by id \u00b7 METRC_ACTIVE_HARVESTS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_HARVESTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an active harvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHarvest"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Harvests"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_HARVESTS"
      }
    },
    "/v2/harvests/active/super": {
      "get": {
        "summary": "List of active superharvests. Additional metadata can be added using the `include` param. \u00b7 METRC_ACTIVE_SUPERHARVESTS",
        "responses": {
          "200": {
            "description": "A list of active superharvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperharvest"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperharvestInclude"
          }
        ],
        "tags": [
          "Harvests",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERHARVESTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERHARVESTS"
      }
    },
    "/v2/harvests/active/super/{object_id}": {
      "get": {
        "summary": "Retrieve an active superharvest by id \u00b7 METRC_ACTIVE_SUPERHARVESTS",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERHARVESTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an active superharvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperharvest"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperharvestInclude"
          }
        ],
        "tags": [
          "Harvests",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERHARVESTS"
      }
    },
    "/v2/harvests/active/report": {
      "get": {
        "summary": "Generate a report of all active harvests \u00b7 ACTIVE_HARVESTS_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_HARVESTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active harvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHarvestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,dryingLocationName,plantCount\nHarvest001,Curing Room,100\nHarvest002,Curing Room,85"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more harvest filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation",
              "example": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Harvests",
          "Reports"
        ],
        "x-t3-endpoint-id": "ACTIVE_HARVESTS_REPORT"
      }
    },
    "/v2/harvests/onhold": {
      "get": {
        "summary": "List of on hold harvests \u00b7 METRC_ONHOLD_HARVESTS",
        "responses": {
          "200": {
            "description": "A list of on hold harvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHarvest"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more harvest filters."
          }
        ],
        "tags": [
          "Harvests"
        ],
        "description": "**T3 endpoint id:** `METRC_ONHOLD_HARVESTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ONHOLD_HARVESTS"
      }
    },
    "/v2/harvests/onhold/fields": {
      "get": {
        "summary": "List the fields on hold harvests can be filtered on",
        "description": "Lists the fields `GET /v2/harvests/onhold` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/harvests/onhold`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Harvests",
          "Free"
        ]
      }
    },
    "/v2/harvests/onhold/{object_id}": {
      "get": {
        "summary": "Retrieve an on hold harvest by id \u00b7 METRC_ONHOLD_HARVESTS",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_HARVESTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an on hold harvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHarvest"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Harvests"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_HARVESTS"
      }
    },
    "/v2/harvests/onhold/super": {
      "get": {
        "summary": "List of on-hold superharvests. Additional metadata can be added using the `include` param. \u00b7 METRC_ONHOLD_SUPERHARVESTS",
        "responses": {
          "200": {
            "description": "A list of on-hold superharvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperharvest"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperharvestInclude"
          }
        ],
        "tags": [
          "Harvests",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ONHOLD_SUPERHARVESTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_ONHOLD_SUPERHARVESTS"
      }
    },
    "/v2/harvests/onhold/super/{object_id}": {
      "get": {
        "summary": "Retrieve an on-hold superharvest by id \u00b7 METRC_ONHOLD_SUPERHARVESTS",
        "description": "**T3 endpoint id:** `METRC_ONHOLD_SUPERHARVESTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an on-hold superharvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperharvest"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperharvestInclude"
          }
        ],
        "tags": [
          "Harvests",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ONHOLD_SUPERHARVESTS"
      }
    },
    "/v2/harvests/onhold/report": {
      "get": {
        "summary": "Generate a report of all on hold harvests \u00b7 ONHOLD_HARVESTS_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_HARVESTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold harvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHarvestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,harvestStartDate,plantCount\nHarvest A,2024-01-01,10\nHarvest B,2024-01-15,20"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:a",
            "description": "One or more harvest filters."
          },
          {
            "name": "columns",
            "description": "Defines which harvest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation",
              "example": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Harvests",
          "Reports"
        ],
        "x-t3-endpoint-id": "ONHOLD_HARVESTS_REPORT"
      }
    },
    "/v2/harvests/onhold/super/report": {
      "get": {
        "summary": "Generate a super report of all on hold harvests \u00b7 ONHOLD_HARVESTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ONHOLD_HARVESTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of on hold superharvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperharvestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,harvestStartDate,plantCount\nHarvest A,2024-01-01,10\nHarvest B,2024-01-15,20"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:a",
            "description": "One or more harvest filters."
          },
          {
            "$ref": "#/components/parameters/SuperharvestInclude"
          },
          {
            "name": "columns",
            "description": "Defines which harvest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation",
              "example": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Harvests",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ONHOLD_HARVESTS_SUPER_REPORT"
      }
    },
    "/v2/harvests/inactive": {
      "get": {
        "summary": "List of inactive harvests \u00b7 METRC_INACTIVE_HARVESTS",
        "responses": {
          "200": {
            "description": "A list of inactive harvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHarvest"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more harvest filters."
          }
        ],
        "tags": [
          "Harvests"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_HARVESTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_HARVESTS"
      }
    },
    "/v2/harvests/inactive/fields": {
      "get": {
        "summary": "List the fields inactive harvests can be filtered on",
        "description": "Lists the fields `GET /v2/harvests/inactive` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/harvests/inactive`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Harvests",
          "Free"
        ]
      }
    },
    "/v2/harvests/inactive/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive harvest by id \u00b7 METRC_INACTIVE_HARVESTS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_HARVESTS`. Accepted by `/v2/search` (`t3EndpointIds`), tag lists (`t3EndpointId`).\n\nReturns an inactive harvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHarvest"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Harvests"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_HARVESTS"
      }
    },
    "/v2/harvests/inactive/super": {
      "get": {
        "summary": "List of inactive superharvests. Additional metadata can be added using the `include` param. \u00b7 METRC_INACTIVE_SUPERHARVESTS",
        "responses": {
          "200": {
            "description": "A list of inactive superharvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSuperharvest"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SuperharvestInclude"
          }
        ],
        "tags": [
          "Harvests",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERHARVESTS`. Accepted by tag lists (`t3EndpointId`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERHARVESTS"
      }
    },
    "/v2/harvests/inactive/super/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive superharvest by id \u00b7 METRC_INACTIVE_SUPERHARVESTS",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERHARVESTS`. Accepted by tag lists (`t3EndpointId`).\n\nReturns an inactive superharvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperharvest"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SuperharvestInclude"
          }
        ],
        "tags": [
          "Harvests",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERHARVESTS"
      }
    },
    "/v2/harvests/inactive/report": {
      "get": {
        "summary": "Generate a report of all inactive harvests \u00b7 INACTIVE_HARVESTS_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_HARVESTS_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive harvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHarvestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,dryingLocationName,plantCount\nHarvest001,Curing Room,100\nHarvest002,Curing Room,85"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more harvest filters."
          },
          {
            "name": "columns",
            "description": "Defines which plant fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation",
              "example": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Harvests",
          "Reports"
        ],
        "x-t3-endpoint-id": "INACTIVE_HARVESTS_REPORT"
      }
    },
    "/v2/harvests/active/super/report": {
      "get": {
        "summary": "Generate a super report of all active harvests \u00b7 ACTIVE_HARVESTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_HARVESTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active superharvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperharvestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,harvestStartDate,plantCount\nHarvest A,2024-01-01,10\nHarvest B,2024-01-15,20"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:a",
            "description": "One or more harvest filters."
          },
          {
            "$ref": "#/components/parameters/SuperharvestInclude"
          },
          {
            "name": "columns",
            "description": "Defines which harvest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation",
              "example": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Harvests",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ACTIVE_HARVESTS_SUPER_REPORT"
      }
    },
    "/v2/harvests/inactive/super/report": {
      "get": {
        "summary": "Generate a super report of all inactive harvests \u00b7 INACTIVE_HARVESTS_SUPER_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_HARVESTS_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive superharvests for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSuperharvestReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "name,harvestStartDate,plantCount\nHarvest A,2024-01-01,10\nHarvest B,2024-01-15,20"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:a",
            "description": "One or more harvest filters."
          },
          {
            "$ref": "#/components/parameters/SuperharvestInclude"
          },
          {
            "name": "columns",
            "description": "Defines which harvest fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation",
              "example": "name,harvestStartDate,dryingLocationName,plantCount,currentWeight,totalWetWeight,totalPackagedWeight,totalWasteWeight,unitOfWeightAbbreviation"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Harvests",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "INACTIVE_HARVESTS_SUPER_REPORT"
      }
    },
    "/v2/harvests/history": {
      "get": {
        "summary": "List of history objects for a single harvest. \u00b7 METRC_HARVEST_HISTORY",
        "description": "**T3 endpoint id:** `METRC_HARVEST_HISTORY`.\n\nNOTE: only supports INACTIVE harvests\n",
        "responses": {
          "200": {
            "description": "A list of history objects for the specified harvest.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The harvest with id={harvestId} was not found in the specified license, or you do not have access to view this harvest's history"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "harvestId",
            "description": "ID of the target harvest",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the history sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "userName__contains:MSmith001",
            "description": "One or more history filters."
          }
        ],
        "tags": [
          "Harvests",
          "Single Harvest",
          "History"
        ],
        "x-t3-endpoint-id": "METRC_HARVEST_HISTORY"
      }
    },
    "/v2/harvests/plants": {
      "get": {
        "summary": "List of harvest plant objects for a single harvest. \u00b7 METRC_HARVEST_PLANTS",
        "description": "**T3 endpoint id:** `METRC_HARVEST_PLANTS`.\n\nNOTE: only supports INACTIVE harvests\n",
        "responses": {
          "200": {
            "description": "A list of harvest plant objects for the specified harvest.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHarvestPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The harvest with id={harvestId} was not found in the specified license, or you do not have access to view this harvest's plants"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "harvestId",
            "description": "ID of the target harvest",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the harvest plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "userName__contains:MSmith001",
            "description": "One or more harvest plant filters."
          }
        ],
        "tags": [
          "Harvests",
          "Plants",
          "Single Harvest"
        ],
        "x-t3-endpoint-id": "METRC_HARVEST_PLANTS"
      }
    },
    "/v2/harvests/packages": {
      "get": {
        "summary": "List of harvest package objects for a single harvest. \u00b7 METRC_HARVEST_PACKAGES",
        "description": "**T3 endpoint id:** `METRC_HARVEST_PACKAGES`.\n\nNOTE: only supports INACTIVE harvests\n",
        "responses": {
          "200": {
            "description": "A list of harvest package objects for the specified harvest.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHarvestPackage"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The harvest with id={harvestId} was not found in the specified license, or you do not have access to view this harvest's packages"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "harvestId",
            "description": "ID of the target harvest",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the harvest package sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "userName__contains:MSmith001",
            "description": "One or more harvest package filters."
          }
        ],
        "tags": [
          "Harvests",
          "Packages",
          "Single Harvest"
        ],
        "x-t3-endpoint-id": "METRC_HARVEST_PACKAGES"
      }
    },
    "/v2/harvests/create": {
      "post": {
        "summary": "Harvest plants",
        "description": "Harvest one or more plants currently in the Flowering state. The plants\nare consumed by the operation and roll up under the harvest record named\nby `harvestName`.\n\n**Only Flowering plants can be harvested.** Metrc offers this operation\non the Flowering tab alone, in every state. To harvest a Vegetative\nplant, advance it with\n[Change Growth Phase](#/Plants/post_v2_plants_change_growthphase) first.\nContrast [Create Manicure](#/Harvests/post_v2_harvests_manicure), which\naccepts Vegetative plants in most states.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePlantHarvestPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Create Harvest"
        ]
      }
    },
    "/v2/harvests/create/inputs": {
      "get": {
        "summary": "Input data for harvesting plants",
        "description": "Returns the reference data needed to build a [Create Harvest](#/Harvests/post_v2_harvests_create)\nrequest body \u2014 eligible drying locations, available units of weight, and\nstate-specific sublocation/patient/detail rows where applicable.\n\nHarvesting is Flowering-only, so this response carries no growth phase.\nThe manicure equivalent does \u2014 see\n[Input data for manicuring plants](#/Harvests/get_v2_harvests_manicure_inputs).\n",
        "responses": {
          "200": {
            "description": "Reference data for harvesting plants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHarvestPlantsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Harvests",
          "Create Harvest"
        ]
      }
    },
    "/v2/harvests/manicure": {
      "post": {
        "summary": "Manicure plants",
        "description": "Manicure (partially harvest) one or more plants. The plants stay in their\ncurrent growth phase and can be harvested or manicured again. The\nmanicured material rolls up under the harvest record named by\n`harvestName`.\n\n**Both Flowering and Vegetative plants can be manicured** \u2014 unlike\n[Create Harvest](#/Harvests/post_v2_harvests_create), which is\nFlowering-only. Metrc exposes a separate manicure action per phase it\nallows, and of the states whose UI has been surveyed only California is\nFlowering-only. No state allows manicuring a Mother plant.\n\nThe payload is the same either way, and so is\n[the inputs response](#/Harvests/get_v2_harvests_manicure_inputs) \u2014 the\nphase is inferred by Metrc from the plant ids you send.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePlantManicurePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Create Manicure"
        ]
      }
    },
    "/v2/harvests/manicure/inputs": {
      "get": {
        "summary": "Input data for manicuring plants",
        "description": "Returns the reference data needed to build a [Create Manicure](#/Harvests/post_v2_harvests_manicure)\nrequest body \u2014 eligible drying locations, available units of weight, and\nstate-specific sublocation/patient/detail rows where applicable. The shape\nmatches the harvest inputs response apart from `growthPhase`.\n\nMetrc's manicure page is scoped to a growth phase and will not render\nwithout one, so this endpoint always asks it for `Flowering` and the\nresponse echoes that back. **That is not a constraint on what you may\nmanicure.** Both Flowering and Vegetative plants are manicurable in most\nstates, and the phase changes only which plant rows Metrc pre-populates\nfor its own autocomplete \u2014 never the drying locations, the units of\nweight, or the payload\n[Create Manicure](#/Harvests/post_v2_harvests_manicure) accepts. A\nVegetative manicure uses this response unchanged, which is why there is\none manicure inputs endpoint rather than one per phase.\n",
        "responses": {
          "200": {
            "description": "Reference data for manicuring plants.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcManicurePlantsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Harvests",
          "Create Manicure"
        ]
      }
    },
    "/v2/harvests/labresults": {
      "get": {
        "summary": "List of lab result objects for a single harvest. \u00b7 METRC_HARVEST_LABRESULTS",
        "responses": {
          "200": {
            "description": "A list of lab result objects for the specified harvest.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHarvestLabResult"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The harvest with id={harvestId} was not found in the specified license, or you do not have access to view this harvest's lab results"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "harvestId",
            "description": "ID of the target harvest",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "testTypeName:asc",
            "description": "Defines the lab result sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "testTypeName__contains:Terpenes",
            "description": "One or more lab result filters."
          }
        ],
        "tags": [
          "Harvests",
          "Single Harvest",
          "Lab Results"
        ],
        "description": "**T3 endpoint id:** `METRC_HARVEST_LABRESULTS`.",
        "x-t3-endpoint-id": "METRC_HARVEST_LABRESULTS"
      }
    },
    "/v2/harvests/waste": {
      "get": {
        "summary": "List of waste objects recorded against a single harvest. \u00b7 METRC_HARVEST_WASTE",
        "description": "**T3 endpoint id:** `METRC_HARVEST_WASTE`.\n\nEach object's `id` is the value to pass as `harvestWasteId` when reading a waste\nentry's history or discontinuing it.\n\nDiscontinued entries are excluded unless `includeDiscontinued=true`.\n",
        "responses": {
          "200": {
            "description": "A list of waste objects for the specified harvest.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHarvestWaste"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The harvest with id={harvestId} was not found in the specified license, or you do not have access to view this harvest's waste"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "harvestId",
            "description": "ID of the target harvest",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "name": "includeDiscontinued",
            "description": "Include waste entries that have been discontinued.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "example": false
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "actualDate:asc",
            "description": "Defines the harvest waste sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "wasteTypeName__contains:Plant",
            "description": "One or more harvest waste filters."
          }
        ],
        "tags": [
          "Harvests",
          "Single Harvest",
          "Waste"
        ],
        "x-t3-endpoint-id": "METRC_HARVEST_WASTE"
      },
      "post": {
        "summary": "Report waste against one or more harvests",
        "description": "Record waste against one or more active harvests. Each entry reduces the\nharvest's current weight.\n\nFetch eligible waste types and units from\n[Report Harvest Waste Inputs](#/Harvests/get_v2_harvests_waste_inputs) first.\nRecorded entries are readable with\n[Harvest Waste](#/Harvests/get_v2_harvests_waste).\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcReportHarvestWastePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Waste"
        ]
      }
    },
    "/v2/harvests/waste/history": {
      "get": {
        "summary": "List of history objects for a single harvest waste entry. \u00b7 METRC_HARVEST_WASTE_HISTORY",
        "description": "**T3 endpoint id:** `METRC_HARVEST_WASTE_HISTORY`.\n\nKeyed on the waste entry's own id, not the harvest's. Read\n`GET /v2/harvests/waste` first to obtain a `harvestWasteId`.\n",
        "responses": {
          "200": {
            "description": "A list of history objects for the specified harvest waste entry.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHistory"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "401": {
            "description": "The harvest waste entry with id={harvestWasteId} was not found in the specified license, or you do not have access to view its history"
          },
          "404": {
            "description": "Metrc returned no history entries. The waste entry may not exist, or you\nmay not have permission to view its history. History endpoints return 404\nrather than an empty list.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "name": "harvestWasteId",
            "description": "ID of the target harvest waste entry",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "userName:asc",
            "description": "Defines the history sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "userName__contains:MSmith001",
            "description": "One or more history filters."
          }
        ],
        "tags": [
          "Harvests",
          "Single Harvest",
          "Waste",
          "History"
        ],
        "x-t3-endpoint-id": "METRC_HARVEST_WASTE_HISTORY"
      }
    },
    "/v2/harvests/finish": {
      "post": {
        "summary": "Finish one or more harvests",
        "description": "Close out one or more active harvests. A finished harvest moves to the\nInactive tab and can be reopened with\n[Unfinish Harvests](#/Harvests/post_v2_harvests_unfinish).\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcFinishHarvestsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests"
        ]
      }
    },
    "/v2/harvests/unfinish": {
      "post": {
        "summary": "Unfinish one or more harvests",
        "description": "Reopen one or more finished harvests, returning them to the Harvested tab so\nfurther packages or waste can be recorded against them.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcUnfinishHarvestsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests"
        ]
      }
    },
    "/v2/harvests/rename": {
      "post": {
        "summary": "Rename one or more harvests",
        "description": "Change the name of one or more active harvests.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcRenameHarvestsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests"
        ]
      }
    },
    "/v2/harvests/change-locations": {
      "post": {
        "summary": "Change the drying location of one or more harvests",
        "description": "Move one or more active harvests to a different drying location.\n\nFetch eligible locations from\n[Change Harvest Locations Inputs](#/Harvests/get_v2_harvests_change_locations_inputs)\nfirst.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcChangeHarvestLocationsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests"
        ]
      }
    },
    "/v2/harvests/change-locations/inputs": {
      "get": {
        "summary": "Input data for changing a harvest's drying location",
        "description": "Returns the reference data needed to build a\n[Change Harvest Locations](#/Harvests/post_v2_harvests_change_locations)\nrequest body \u2014 the locations eligible to receive a harvest, plus\nstate-specific sublocation and detail rows where applicable.\n",
        "responses": {
          "200": {
            "description": "Reference data for changing a harvest's drying location.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcChangeHarvestLocationsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests"
        ]
      }
    },
    "/v2/harvests/waste/inputs": {
      "get": {
        "summary": "Input data for reporting harvest waste",
        "description": "Returns the reference data needed to build a\n[Report Harvest Waste](#/Harvests/post_v2_harvests_waste) request body \u2014 the\nwaste types available to this licence and the units of weight.\n\nOnly waste types with `forHarvests: true` can be reported against a harvest.\n",
        "responses": {
          "200": {
            "description": "Reference data for reporting harvest waste.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcReportHarvestWasteInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Waste"
        ]
      }
    },
    "/v2/harvests/create/packages": {
      "post": {
        "summary": "Create packages from one or more harvests",
        "description": "Create packages from harvest material. Each package draws quantity from one or\nmore harvests through its `ingredients` array.\n\nBefore building a request, fetch the reference data:\n\n* Locations, units and remediation methods \u2014\n  [Create Packages from Harvests Inputs](#/Harvests/get_v2_harvests_create_packages_inputs)\n* Eligible harvests \u2014\n  [Source Harvests](#/Harvests/get_v2_harvests_create_packages_source_harvests)\n* Eligible items \u2014\n  [Source Items](#/Harvests/get_v2_harvests_create_packages_source_items)\n* Available tags \u2014\n  [Source Tags](#/Harvests/get_v2_harvests_create_packages_source_tags)\n\nThe source endpoints return Metrc's own eligible sets, filtered server-side.\nThe general listings are not a substitute.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreatePackagesFromHarvestsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Create Packages From Harvests"
        ]
      }
    },
    "/v2/harvests/create/packages/inputs": {
      "get": {
        "summary": "Input data for creating packages from harvests",
        "description": "Returns the reference data needed to build a\n[Create Packages from Harvests](#/Harvests/post_v2_harvests_create_packages)\nrequest body \u2014 locations, units of measure, remediation methods, and the item\ncategory rules that govern production batches.\n\nHarvests, items and tags are not preloaded here; they come from the three\nsource endpoints under `/v2/harvests/create/packages/`.\n",
        "responses": {
          "200": {
            "description": "Reference data for creating packages from harvests.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreatePackagesFromHarvestsInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Create Packages From Harvests"
        ]
      }
    },
    "/v2/harvests/create/packages/source-harvests": {
      "get": {
        "summary": "Harvests eligible to source a package \u00b7 METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_HARVESTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_HARVESTS`.\n\nThe harvests Metrc will accept as ingredients on\n[Create Packages from Harvests](#/Harvests/post_v2_harvests_create_packages).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\n[Active Harvests](#/Harvests/get_v2_harvests_active).\n",
        "responses": {
          "200": {
            "description": "A list of harvest objects eligible for package creation from harvests.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHarvest"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the harvest sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:2026-05",
            "description": "One or more harvest filters."
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Create Packages From Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_HARVESTS"
      }
    },
    "/v2/harvests/create/packages/source-harvests/{object_id}": {
      "get": {
        "summary": "Retrieve a harvest eligible to source a package by id \u00b7 METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_HARVESTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_HARVESTS`.\n\nReturns a harvest eligible to source a package by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHarvest"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Create Packages From Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_HARVESTS"
      }
    },
    "/v2/harvests/create/packages/source-items": {
      "get": {
        "summary": "Items eligible for a package created from a harvest \u00b7 METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_ITEMS`.\n\nThe items Metrc will accept on\n[Create Packages from Harvests](#/Harvests/post_v2_harvests_create_packages).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\n[Active Items](#/Items/get_v2_items_active).\n",
        "responses": {
          "200": {
            "description": "A list of item objects eligible for package creation from harvests.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcItem"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the item sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Blue Dream",
            "description": "One or more item filters."
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Create Packages From Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_ITEMS"
      }
    },
    "/v2/harvests/create/packages/source-items/{object_id}": {
      "get": {
        "summary": "Retrieve an item eligible for a package created from a harvest by id \u00b7 METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_ITEMS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_ITEMS`.\n\nReturns an item eligible for a package created from a harvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcItem"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Create Packages From Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_ITEMS"
      }
    },
    "/v2/harvests/create/packages/source-tags": {
      "get": {
        "summary": "Tags available for a package created from a harvest \u00b7 METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_TAGS`.\n\nThe package tags Metrc will accept on\n[Create Packages from Harvests](#/Harvests/post_v2_harvests_create_packages).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\n[Available Tags](#/Tags/get_v2_tags_available).\n",
        "responses": {
          "200": {
            "description": "A list of tag objects eligible for package creation from harvests.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTag"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the tag sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more tag filters."
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Create Packages From Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_TAGS"
      }
    },
    "/v2/harvests/create/packages/source-tags/{object_id}": {
      "get": {
        "summary": "Retrieve a tag available for a package created from a harvest by id \u00b7 METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_TAGS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_TAGS`.\n\nReturns a tag available for a package created from a harvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcTag"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Create Packages From Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PACKAGES_FROM_HARVESTS_SOURCE_TAGS"
      }
    },
    "/v2/harvests/waste/discontinue": {
      "post": {
        "summary": "Discontinue a harvest waste entry",
        "description": "Discontinue a single waste entry recorded against a harvest, reversing its\neffect on the harvest's weight.\n\n`id` is the **waste entry's** id, not the harvest's. Read it from the `id`\nfield of a [Harvest Waste](#/Harvests/get_v2_harvests_waste) row.\nDiscontinued entries are hidden from that listing unless you pass\n`includeDiscontinued=true`.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcDiscontinueHarvestWastePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests",
          "Waste"
        ]
      }
    },
    "/v2/harvests/schedules": {
      "get": {
        "summary": "List of scheduled harvests. \u00b7 METRC_HARVEST_SCHEDULES",
        "description": "**T3 endpoint id:** `METRC_HARVEST_SCHEDULES`. Accepted by `/v2/search` (`t3EndpointIds`).\n\n**Missouri only.** Harvest scheduling is a state-specific Metrc feature; this\nendpoint is registered everywhere but only Missouri's Metrc build serves it.\n",
        "responses": {
          "200": {
            "description": "A list of scheduled harvests for the specified license.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcHarvestSchedule"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "scheduledDate:asc",
            "description": "Defines the harvest schedule sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "locationName__contains:Drying",
            "description": "One or more harvest schedule filters."
          }
        ],
        "tags": [
          "Harvests",
          "Harvest Schedules"
        ],
        "x-t3-endpoint-id": "METRC_HARVEST_SCHEDULES"
      }
    },
    "/v2/harvests/schedules/{object_id}": {
      "get": {
        "summary": "Retrieve a scheduled harvest by id \u00b7 METRC_HARVEST_SCHEDULES",
        "description": "**T3 endpoint id:** `METRC_HARVEST_SCHEDULES`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns a scheduled harvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcHarvestSchedule"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Harvests",
          "Harvest Schedules"
        ],
        "x-t3-endpoint-id": "METRC_HARVEST_SCHEDULES"
      }
    },
    "/v2/harvests/schedules/create": {
      "post": {
        "summary": "Schedule one or more harvests",
        "description": "Schedule a harvest against a location for a future date.\n\n**Missouri only.** Harvest scheduling is a state-specific Metrc feature; this\nendpoint is registered everywhere but only Missouri's Metrc build serves it.\n\nFetch eligible locations from\n[Create Harvest Schedules Inputs](#/Harvests/get_v2_harvests_schedules_create_inputs)\nfirst. Scheduled harvests are readable with\n[Harvest Schedules](#/Harvests/get_v2_harvests_schedules) and removable with\n[Void Harvest Schedule](#/Harvests/post_v2_harvests_schedules_void).\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcCreateHarvestSchedulesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Harvest Schedules"
        ]
      }
    },
    "/v2/harvests/schedules/create/inputs": {
      "get": {
        "summary": "Input data for scheduling a harvest",
        "description": "Returns the reference data needed to build a\n[Create Harvest Schedules](#/Harvests/post_v2_harvests_schedules_create)\nrequest body \u2014 the locations a harvest can be scheduled for.\n\n**Missouri only.** Harvest scheduling is a state-specific Metrc feature.\n",
        "responses": {
          "200": {
            "description": "Reference data for scheduling a harvest.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcCreateHarvestSchedulesInputsResponse"
                }
              }
            }
          },
          "403": {
            "description": "The Metrc user does not appear to have permission to open this form for this license. Metrc redirected the request to the license's landing page instead of serving the form. GET /v2/permissions lists what the account can do.",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/errors/METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "title": {
                      "type": "string",
                      "example": "Metrc Permission Denied"
                    },
                    "status": {
                      "type": "integer",
                      "example": 403
                    },
                    "detail": {
                      "type": "string",
                      "example": "Metrc redirected the request for this form on license LIC-00001 to /industry/LIC-00001/packages. The Metrc user does not appear to have permission to open this form for this license. GET /v2/permissions?licenseNumber=LIC-00001 lists what the account can do."
                    },
                    "instance": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/v2/transfers/create/inputs?licenseNumber=LIC-00001"
                    },
                    "code": {
                      "type": "string",
                      "example": "METRC_RESOURCE_UNAUTHORIZED"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2026-10-05T12:34:56.789Z"
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Harvests",
          "Harvest Schedules"
        ]
      }
    },
    "/v2/harvests/schedules/void": {
      "post": {
        "summary": "Void a harvest schedule",
        "description": "Remove a scheduled harvest.\n\n**Missouri only.** Harvest scheduling is a state-specific Metrc feature.\n\n`id` is the schedule's id, from a\n[Harvest Schedules](#/Harvests/get_v2_harvests_schedules) row.\n\n**Refer to the request body schema for details on formatting your request.**\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcVoidHarvestSchedulePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Harvests",
          "Harvest Schedules"
        ]
      }
    },
    "/v2/harvests/create/source-plants": {
      "get": {
        "summary": "Plants eligible for harvest \u00b7 METRC_CREATE_PLANT_HARVEST_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANT_HARVEST_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Harvest](#/Harvests/post_v2_harvests_create).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing -- a plant missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANT_HARVEST_SOURCE_PLANTS"
      }
    },
    "/v2/harvests/create/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for harvest by id \u00b7 METRC_CREATE_PLANT_HARVEST_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANT_HARVEST_SOURCE_PLANTS`.\n\nReturns a plant eligible for harvest by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANT_HARVEST_SOURCE_PLANTS"
      }
    },
    "/v2/harvests/manicure/source-plants": {
      "get": {
        "summary": "Plants eligible for manicure \u00b7 METRC_CREATE_PLANT_MANICURE_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANT_MANICURE_SOURCE_PLANTS`.\n\nThe plants Metrc will accept on\n[Manicure](#/Harvests/post_v2_harvests_manicure).\n\nMetrc filters eligibility server-side, so this is not interchangeable with\nthe general plant listing -- a plant missing here is one Metrc will reject.\n",
        "responses": {
          "200": {
            "description": "A list of plant objects eligible for this operation.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcPlant"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "label:asc",
            "description": "Defines the plant sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "label__contains:1A40",
            "description": "One or more plant filters."
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANT_MANICURE_SOURCE_PLANTS"
      }
    },
    "/v2/harvests/manicure/source-plants/{object_id}": {
      "get": {
        "summary": "Retrieve a plant eligible for manicure by id \u00b7 METRC_CREATE_PLANT_MANICURE_SOURCE_PLANTS",
        "description": "**T3 endpoint id:** `METRC_CREATE_PLANT_MANICURE_SOURCE_PLANTS`.\n\nReturns a plant eligible for manicure by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Harvests",
          "Modify Harvests"
        ],
        "x-t3-endpoint-id": "METRC_CREATE_PLANT_MANICURE_SOURCE_PLANTS"
      }
    },
    "/v2/search": {
      "get": {
        "summary": "Cross-endpoint text search",
        "description": "Searches multiple Metrc collection endpoints in parallel for objects matching\na free-text query, returning a single ranked list of results.\n\n\n**A T3+ subscription is not required to use this endpoint.**\n\n\n### How it works\n\n1. The query string is run through **format detection**. A single query can\n   match multiple formats \u2014 for example, `\"12345\"` is both `INTEGER` and\n   `HEX_STRING`. The detected formats are returned in `detectedQueryFormats`.\n2. The set of endpoints to query is built. `tiers` searches every endpoint\n   in the named tiers, and `t3EndpointIds` exactly the endpoints named. With\n   neither, tiers 1 and 2 are searched: the 16 most-used endpoints.\n3. Each field is searched only for the formats it can hold. Endpoints with no\n   field for the detected formats are **skipped** with reason `format`. For\n   example, `\"Blue Dream\"` (`BASIC_STRING`) skips the tag and sales receipt\n   endpoints, which hold only tags and numbers.\n4. The remaining endpoints are queried in parallel. Each is asked for at most\n   `pageSize` matches (default 10, max 100).\n5. All results are scored and returned as one list sorted by `score`\n   descending. `endpoints` reports every endpoint covered: `answered`,\n   `skipped` or `failed`, with a `reason` for each one not answered.\n\n\n### Several licenses\n\n\nRepeat `licenseNumber` to search several licenses at once:\n`licenseNumber=LIC-00001&licenseNumber=LIC-00002`. Every collection is\nsearched on every license. Each result and each entry in `endpoints` carries\nits `licenseNumber`, and `endpoints` lists the licenses in the order you\nnamed them.\n\n\nA search covers at most 60 license and collection pairs: licenses times\nthe collections searched on each. Three licenses fit the 16 default\ncollections; more licenses need fewer collections, named with\n`t3EndpointIds`. A search over the limit is refused with `400`, and the\nerror gives the count.\n\n\n### Rate limit\n\nSearch is exempt from the shared per-subscription limit. Each Metrc user has\na search budget of their own, counted in the same license and collection\npairs as the per-search limit: 5,000 pairs a minute by default. A search\nover the 16 default collections on one license costs 16, and one over every\ncollection costs 39. Over the budget, the response is `429`.\n\n\n### Query formats\n\n- `DATETIME` \u2014 ISO 8601 date or datetime such as `2024-07-17` or\n  `2024-07-17T12:00:00Z`. Matches `\\d{4}-\\d{2}-\\d{2}` optionally followed by\n  a time component.\n- `HEX_STRING`: only hex characters (`0-9a-fA-F`), with at least one digit.\n  Examples: `1A4FF0100000022000000123`, `0042`, `B52`.\n- `INTEGER`: only digits. Examples: `12345`, `1234566`.\n- `BASIC_STRING`: anything that is neither only digits nor tag-like. A hex\n  query is tag-like when it starts with `1A` or is 8 or more characters long.\n  Examples: `Blue Dream`, `ACDC`, `B52`, `HARVEST0001`.\n\n\n> Note: no endpoint searches date fields, so a pure `DATETIME` query is\n> rejected with `400`. Use a tag, label, manifest number, or name.\n\n\n### Latency\n\nLatency is dominated by the slowest single downstream Metrc call. Tag, item,\nlocation, and strain searches typically return in well under a second; package,\nplant, and especially transfer searches can take several seconds. Narrow the\nquery with `t3EndpointIds` for faster, more predictable response times.\n\n\n### Streaming responses\n\nSet `stream=true` (or send `Accept: text/event-stream`) to receive results as\nServer-Sent Events. The stream opens with `event: start`, listing every\nendpoint as `pending` or `skipped`. Each endpoint then sends one\n`event: result` as it finishes, carrying its outcome and its results. The\nstream ends with `event: done`, or with `event: error` when the search cannot\nfinish, such as when the Metrc session has expired.\n\n\nWhile no endpoint has finished, the server writes a comment line about every\n250 ms. Closing the connection cancels the search's outstanding Metrc\nrequests, so a client can drop a stale search the moment the query changes.\n\n\nSee the [Search wiki page](https://wiki.trackandtrace.tools/t3-api/search/)\nfor the full endpoint catalog and worked examples.\n",
        "responses": {
          "200": {
            "description": "Ranked search results across all queried endpoints. Returned as a single\nJSON object by default, or as a stream of Server-Sent Events when\n`stream=true` (or `Accept: text/event-stream`) is requested.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResponse"
                }
              },
              "text/event-stream": {
                "schema": {
                  "$ref": "#/components/schemas/SearchEventStream"
                }
              }
            }
          },
          "400": {
            "description": "The request was invalid. Common causes:\n\n- `query` parameter missing\n- `query` parameter empty after trimming whitespace\n- `query` parameter is a pure ISO 8601 date/datetime \u2014 no endpoint\n  searches date fields, so this would silently return empty results.\n  Use a tag, label, manifest number, or name instead\n- `licenseNumber` parameter missing, repeated with the same license, or\n  holding a comma\n- the search covers more than 60 license and collection pairs\n- `t3EndpointIds` contained an unknown endpoint ID; empty entries, such as a\n  trailing comma leaves, are ignored\n- `tiers` contained a value other than `1`, `2` or `3`, or was sent\n  with `t3EndpointIds`\n- `endpointIds` was sent; `t3EndpointIds` replaced it\n- `pageSize` was not an integer or was outside [1, 100]\n- `minScore` was sent; it was removed, and every match is returned,\n  best first\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired\n(`code: METRC_SESSION_EXPIRED`). Authenticate again and retry.\n"
          },
          "403": {
            "description": "A `licenseNumber` is not one of the session's licenses\n(`code: FORBIDDEN`). The error names every such license. If a license\nwas added recently, authenticate again to refresh the license list.\n"
          },
          "429": {
            "description": "The Metrc user's search budget for the minute cannot cover this search's\nlicense and collection pairs (`code: RATE_LIMIT_EXCEEDED`). The detail\ngives the budget and this search's cost. Wait and retry, or search fewer\nlicenses or collections.\n"
          }
        },
        "parameters": [
          {
            "name": "licenseNumber",
            "in": "query",
            "required": true,
            "description": "The license to search. Repeat the parameter to search several:\n`licenseNumber=LIC-00001&licenseNumber=LIC-00002`.\n\n\nA comma-joined value is not supported and returns `400`, and so does\nrepeating the same license. Outcomes are listed in the order the licenses\nare named, and that order also breaks ties between equal scores.\n\n\nEvery license must be one of the authenticated user's licenses. Use the\nlicenses endpoint to list them.\n",
            "schema": {
              "type": "array",
              "example": "LIC-00001",
              "minItems": 1,
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true
          },
          {
            "name": "query",
            "in": "query",
            "required": true,
            "description": "The text to search for. Whitespace is trimmed. The string is classified\nagainst the four query formats described above; this classification gates\nwhich endpoints are queried versus skipped.\n\n\nCommon patterns:\n\n- **Tag scan** \u2014 pass the full or partial tag, e.g. `1A4FF0100000022000000123`\n  or just the tail `0000123`. Triggers `HEX_STRING` and (if all digits)\n  `INTEGER`.\n- **Manifest lookup** \u2014 pass the manifest number, e.g. `1234566`. Triggers\n  `INTEGER` and `HEX_STRING`.\n- **Item / strain / location / harvest name** \u2014 pass a partial name, e.g.\n  `Blue Dream`. Triggers `BASIC_STRING`.\n",
            "schema": {
              "type": "string"
            },
            "examples": {
              "tag": {
                "summary": "Tag scan (HEX_STRING + INTEGER)",
                "value": "1A4FF0100000022000000123"
              },
              "manifest": {
                "summary": "Manifest number (HEX_STRING + INTEGER)",
                "value": "1234566"
              },
              "name": {
                "summary": "Item or strain name (BASIC_STRING)",
                "value": "Blue Dream"
              }
            }
          },
          {
            "name": "t3EndpointIds",
            "in": "query",
            "required": false,
            "description": "Comma-separated list of collections to query, each named by the T3\nendpoint id of its collection route (`METRC_ACTIVE_PACKAGES` for\n`/v2/packages/active`). Restricts the search to exactly the collections\nlisted (overriding the default tiers). Useful for narrowing latency\nor scope when the caller already knows what they're looking for.\n\n\n**Omit this parameter** to search by `tiers`, or tiers 1 and 2 when\nneither is sent. **Provide this parameter** to query exactly the listed\nendpoints, whatever their tier (e.g. `METRC_INACTIVE_PACKAGES`,\n`METRC_VOIDED_TAGS`). It cannot be sent with `tiers`.\n\n\nAll listed IDs must be valid search endpoints; any other ID returns\n`400 Bad Request` saying why, and a supercollection ID names the\ncollection to search instead. Empty entries, such as a trailing comma\nleaves, are ignored.\n\n\nThe [Search wiki page](https://wiki.trackandtrace.tools/t3-api/search/)\ncatalogs every endpoint, the fields it searches, and whether it is on by\ndefault. The `SearchT3EndpointId` schema lists every valid ID.\n",
            "schema": {
              "type": "string"
            },
            "examples": {
              "plants_only": {
                "summary": "Plant endpoints only",
                "value": "METRC_VEGETATIVE_PLANTS,METRC_FLOWERING_PLANTS"
              },
              "everything_active": {
                "summary": "All active package endpoints",
                "value": "METRC_ACTIVE_PACKAGES,METRC_INTRANSIT_PACKAGES,METRC_TRANSFERRED_PACKAGES"
              },
              "include_inactive": {
                "summary": "Default packages plus inactive",
                "value": "METRC_ACTIVE_PACKAGES,METRC_INTRANSIT_PACKAGES,METRC_INACTIVE_PACKAGES"
              }
            }
          },
          {
            "name": "tiers",
            "in": "query",
            "required": false,
            "description": "Comma-separated tiers to search: every endpoint in them is searched.\nTier 1 holds the collections most searches are answered by (active\npackages, vegetative and flowering plants, active plant batches, active\nharvests, items), tier 2 the remaining active collections, and tier 3\non-hold, inactive and the rest. Each result and endpoint reports its\n`tier`.\n\n\n**Omit this parameter** to search tiers 1 and 2. It cannot be sent with\n`t3EndpointIds`. A value other than `1`, `2` or `3` returns `400`.\n",
            "schema": {
              "type": "string"
            },
            "examples": {
              "likely_only": {
                "summary": "Tier 1 only",
                "value": "1"
              },
              "everything": {
                "summary": "Every collection",
                "value": "1,2,3"
              },
              "archive": {
                "summary": "On hold, inactive and the rest",
                "value": "3"
              }
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "required": false,
            "description": "Maximum number of matches each downstream Metrc endpoint may return.\nDefaults to 10. Capped at 100. Larger values produce more comprehensive\nresults but proportionally larger responses and slightly slower queries.\n\n\nEach entry in `endpoints` reports `truncated` and `totalAvailable`, so\ncallers can tell when raising `pageSize` would yield more matches.\n",
            "schema": {
              "type": "integer",
              "default": 10,
              "minimum": 1,
              "maximum": 100
            }
          },
          {
            "name": "stream",
            "in": "query",
            "required": false,
            "description": "When `true`, the response is streamed as Server-Sent Events\n(`Content-Type: text/event-stream`) instead of a single JSON payload. The\nsame effect can be triggered by sending `Accept: text/event-stream`.\n\n\nStreaming clients receive `event: start`, one `event: result` per sent\nendpoint, then `event: done` (or `event: error`). See the \"Streaming\nresponses\" section above.\n",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "tags": [
          "Search",
          "Free"
        ]
      }
    },
    "/v2/sales/active": {
      "get": {
        "summary": "List of active sales \u00b7 METRC_ACTIVE_SALES",
        "responses": {
          "200": {
            "description": "A list of active sales for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSalesReceipt"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the sales receipt sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "receiptNumber__contains:003",
            "description": "One or more sales filters."
          }
        ],
        "tags": [
          "Sales Receipts"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SALES`. Accepted by `/v2/search` (`t3EndpointIds`).",
        "x-t3-endpoint-id": "METRC_ACTIVE_SALES"
      }
    },
    "/v2/sales/active/fields": {
      "get": {
        "summary": "List the fields active sales can be filtered on",
        "description": "Lists the fields `GET /v2/sales/active` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/sales/active`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Sales Receipts",
          "Free"
        ]
      }
    },
    "/v2/sales/active/{object_id}": {
      "get": {
        "summary": "Retrieve an active sale by id \u00b7 METRC_ACTIVE_SALES",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SALES`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns an active sale by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSalesReceipt"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Sales Receipts"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_SALES"
      }
    },
    "/v2/sales/active/super": {
      "get": {
        "summary": "List of active supersales receipts. Additional metadata can be added using the `include` param. \u00b7 METRC_ACTIVE_SUPERSALES",
        "responses": {
          "200": {
            "description": "A list of active supersales receipts for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSupersalesReceipt"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SupersalesInclude"
          }
        ],
        "tags": [
          "Sales",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERSALES`.",
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERSALES"
      }
    },
    "/v2/sales/active/super/{object_id}": {
      "get": {
        "summary": "Retrieve an active supersales receipt by id \u00b7 METRC_ACTIVE_SUPERSALES",
        "description": "**T3 endpoint id:** `METRC_ACTIVE_SUPERSALES`.\n\nReturns an active supersales receipt by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupersalesReceipt"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SupersalesInclude"
          }
        ],
        "tags": [
          "Sales",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_ACTIVE_SUPERSALES"
      }
    },
    "/v2/sales/active/report": {
      "get": {
        "summary": "Generate a report of all active sales \u00b7 ACTIVE_SALES_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_SALES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active sales receipts for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSalesReceiptReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "receiptNumber,salesDateTime,totalPackages,totalPrice\n0001234567,01-01-2024T01:01:01,5,100.50\n0001234568,01-01-2024T01:01:01,6,23.50"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the sales receipt sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__endswith:0003",
            "description": "One or more sales receipt filters."
          },
          {
            "name": "columns",
            "description": "Defines which sales receipt fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "receiptNumber,salesDateTime,totalPackages,totalPrice",
              "example": "receiptNumber,salesDateTime,totalPackages,totalPrice"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Sales Receipts",
          "Reports"
        ],
        "x-t3-endpoint-id": "ACTIVE_SALES_REPORT"
      }
    },
    "/v2/sales/active/super/report": {
      "get": {
        "summary": "Generate a super report of all active sales receipts \u00b7 ACTIVE_SALES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `ACTIVE_SALES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of active supersales receipts for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupersalesReceiptReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "receiptNumber,salesDateTime,totalPrice\nR001,2024-01-01T12:00:00,100.00\nR002,2024-01-02T14:00:00,200.00"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "salesDateTime:desc",
            "description": "Defines the sales receipt sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "receiptNumber__endswith:03",
            "description": "One or more sales receipt filters."
          },
          {
            "$ref": "#/components/parameters/SupersalesInclude"
          },
          {
            "name": "columns",
            "description": "Defines which sales receipt fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "receiptNumber,salesDateTime,totalPackages,totalPrice",
              "example": "receiptNumber,salesDateTime,totalPackages,totalPrice"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Sales",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "ACTIVE_SALES_SUPER_REPORT"
      }
    },
    "/v2/sales/inactive": {
      "get": {
        "summary": "List of inactive sales \u00b7 METRC_INACTIVE_SALES",
        "responses": {
          "200": {
            "description": "A list of inactive sales for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSalesReceipt"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the sales receipt sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "receiptNumber__contains:003",
            "description": "One or more sales filters."
          }
        ],
        "tags": [
          "Sales Receipts"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SALES`. Accepted by `/v2/search` (`t3EndpointIds`).",
        "x-t3-endpoint-id": "METRC_INACTIVE_SALES"
      }
    },
    "/v2/sales/inactive/fields": {
      "get": {
        "summary": "List the fields inactive sales can be filtered on",
        "description": "Lists the fields `GET /v2/sales/inactive` can be filtered on for one license, with the `filter` operators each one takes, in the order Metrc's table shows its columns.\n\n**A T3+ subscription is not required to use this endpoint.**\n\nMetrc shows each license the columns that apply to it, so the list can differ between licenses in the same state. A license without this table in Metrc gets a `403`.\n\nEach `field` is the name a `filter` parameter takes on `/v2/sales/inactive`, written `filter=<field>__<operator>:<value>`. `metrc` carries everything Metrc declares about the column.\n\nSee the [Filterable Fields wiki page](https://wiki.trackandtrace.tools/t3-api/collection-fields/) for examples.\n",
        "responses": {
          "200": {
            "description": "The collection's fields, in Metrc's column order.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CollectionFieldsResponse"
                }
              }
            }
          },
          "400": {
            "description": "`licenseNumber` is missing or repeated (`code: INVALID_QUERY_PARAMETER`).\n"
          },
          "401": {
            "description": "The caller is not authenticated, or the Metrc session has expired.\nAuthenticate again and retry.\n"
          },
          "403": {
            "description": "`licenseNumber` is not one of the session's licenses (`code: FORBIDDEN`), or the license does not have this table in Metrc (`code: METRC_RESOURCE_UNAUTHORIZED`).\n"
          },
          "429": {
            "description": "The Metrc user's rate limit for this endpoint is exhausted (`code: RATE_LIMIT_EXCEEDED`). Wait and retry.\n"
          },
          "502": {
            "description": "Metrc's response could not be read (`code: UNEXPECTED_METRC_STATUS_CODE` or `UNEXPECTED_METRC_RESPONSE_STRUCTURE`).\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          }
        ],
        "tags": [
          "Sales Receipts",
          "Free"
        ]
      }
    },
    "/v2/sales/inactive/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive sale by id \u00b7 METRC_INACTIVE_SALES",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SALES`. Accepted by `/v2/search` (`t3EndpointIds`).\n\nReturns an inactive sale by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSalesReceipt"
                }
              }
            }
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Sales Receipts"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_SALES"
      }
    },
    "/v2/sales/inactive/super": {
      "get": {
        "summary": "List of inactive supersales receipts. Additional metadata can be added using the `include` param. \u00b7 METRC_INACTIVE_SUPERSALES",
        "responses": {
          "200": {
            "description": "A list of inactive supersales receipts for this license",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcSupersalesReceipt"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/CollectionSort"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/SupersalesInclude"
          }
        ],
        "tags": [
          "Sales",
          "Supercollections"
        ],
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERSALES`.",
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERSALES"
      }
    },
    "/v2/sales/inactive/super/{object_id}": {
      "get": {
        "summary": "Retrieve an inactive supersales receipt by id \u00b7 METRC_INACTIVE_SUPERSALES",
        "description": "**T3 endpoint id:** `METRC_INACTIVE_SUPERSALES`.\n\nReturns an inactive supersales receipt by its Metrc `id`, without the pagination envelope a collection response carries.\n\nAn id that matches nothing in this collection and license is a `404`; an id in a different state of the same collection is also a `404`, so look it up in the collection that holds it.\n\nPaging, sorting and filtering parameters are rejected with a `400`: the response is one record, so there is nothing for them to act on. Use the collection endpoint for those.\n",
        "responses": {
          "200": {
            "description": "The requested record",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupersalesReceipt"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
          },
          "404": {
            "description": "No record with this id exists in this collection for this license"
          }
        },
        "parameters": [
          {
            "name": "object_id",
            "in": "path",
            "required": true,
            "description": "The record's Metrc `id`.",
            "schema": {
              "type": "integer",
              "example": 12345
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/SupersalesInclude"
          }
        ],
        "tags": [
          "Sales",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "METRC_INACTIVE_SUPERSALES"
      }
    },
    "/v2/sales/inactive/report": {
      "get": {
        "summary": "Generate a report of all inactive sales receipts \u00b7 INACTIVE_SALES_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_SALES_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive sales receipts for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSalesReceiptReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "receiptNumber,salesDateTime,totalPrice\nR001,2024-01-01T12:00:00,100.00\nR002,2024-01-02T14:00:00,200.00"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 50,000 row cap, or the report would be too large to build. The response says which. Tighten the filters or set a lower `rowLimit`.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "salesDateTime:desc",
            "description": "Defines the sales receipt sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "receiptNumber__endswith:03",
            "description": "One or more sales receipt filters."
          },
          {
            "name": "columns",
            "description": "Defines which sales receipt fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "receiptNumber,salesDateTime,totalPackages,totalPrice",
              "example": "receiptNumber,salesDateTime,totalPackages,totalPrice"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Sales",
          "Reports"
        ],
        "x-t3-endpoint-id": "INACTIVE_SALES_REPORT"
      }
    },
    "/v2/sales/inactive/super/report": {
      "get": {
        "summary": "Generate a super report of all inactive sales receipts \u00b7 INACTIVE_SALES_SUPER_REPORT",
        "description": "**T3 endpoint id:** `INACTIVE_SALES_SUPER_REPORT`. Accepted by the saved reports filter (`t3EndpointId`).\n\n**Note: this endpoint supports secret key authentication.**\n",
        "responses": {
          "200": {
            "description": "A list of inactive supersales receipts for this license",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcSupersalesReceiptReportResponse"
                }
              },
              "text/csv": {
                "schema": {
                  "type": "string",
                  "example": "receiptNumber,salesDateTime,totalPrice\nR001,2024-01-01T12:00:00,100.00\nR002,2024-01-02T14:00:00,200.00"
                }
              },
              "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "302": {
            "description": "The report was written into a new Google Sheet.\n\nReturned only for `contentType=googleSheets` with inline delivery. The `Location` header holds the sheet URL, and the body repeats it for clients that do not follow redirects. By default anyone holding the link can open and edit the sheet -- see `sheetVisibility`.\n",
            "headers": {
              "Location": {
                "description": "The sheet URL, identical to `sheetUrl` in the body.",
                "schema": {
                  "type": "string",
                  "format": "uri"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/InlineSheetResponse"
                }
              }
            }
          },
          "400": {
            "description": "The request was rejected before any data was loaded.\n\n**Invalid columns** -- one or more names are not fields of this report. The response lists every valid field.\n\n**Invalid rowLimit** -- `rowLimit` is not an integer, or is below 1. Values above the row cap are clamped rather than rejected.\n\n**Report Request Too Large** -- either the collection is larger than the 5,000 row cap, or the report would be too large to build (each include adds work for every record). The response says which. Tighten the filters, set a lower `rowLimit`, or request fewer includes.\n\n**Invalid Include** -- an `include` value is not one this report accepts. The response lists every valid include. Several includes are supplied by repeating the parameter; a comma-joined list is not supported.\n\n**Too Many Includes for 2D Format** -- `contentType=csv` accepts at most one `include`. Use `contentType=json` for more.\n"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumbers"
          },
          {
            "$ref": "#/components/parameters/SecretKey"
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/ContentType"
          },
          {
            "$ref": "#/components/parameters/Delivery"
          },
          {
            "$ref": "#/components/parameters/Email"
          },
          {
            "$ref": "#/components/parameters/SheetVisibility"
          },
          {
            "$ref": "#/components/parameters/RowLimit"
          },
          {
            "$ref": "#/components/parameters/RowMode"
          },
          {
            "$ref": "#/components/parameters/PrependCsvMetadata"
          },
          {
            "$ref": "#/components/parameters/ContentDisposition"
          },
          {
            "$ref": "#/components/parameters/ColumnHeaderOverrides"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "salesDateTime:desc",
            "description": "Defines the sales receipt sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "receiptNumber__endswith:03",
            "description": "One or more sales receipt filters."
          },
          {
            "$ref": "#/components/parameters/SupersalesInclude"
          },
          {
            "name": "columns",
            "description": "Defines which sales receipt fields should appear in the report data, as a comma-separated list. Omit it to return the default columns shown below.\nAn unrecognized name returns 400, listing every field that is valid for this report.\nIn `csv` output the column headers are title-cased from the field names, so `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "default": "receiptNumber,salesDateTime,totalPackages,totalPrice",
              "example": "receiptNumber,salesDateTime,totalPackages,totalPrice"
            }
          },
          {
            "name": "fieldnames",
            "description": "Deprecated alias for `columns`. Still accepted so existing report URLs keep working, but new integrations should send `columns`. Supplying both returns 400.\n",
            "in": "query",
            "required": false,
            "deprecated": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "tags": [
          "Sales",
          "Reports",
          "Supercollections"
        ],
        "x-t3-endpoint-id": "INACTIVE_SALES_SUPER_REPORT"
      }
    },
    "/v2/sales/transactions": {
      "get": {
        "summary": "List of transactions for a single sales receipt \u00b7 METRC_SALES_RECEIPT_TRANSACTIONS",
        "responses": {
          "200": {
            "description": "A list of transactions for the specified sales receipt",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTransaction"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "name": "salesReceiptId",
            "description": "ID of the target sales receipt",
            "in": "query",
            "required": true,
            "schema": {
              "type": "number",
              "example": 123
            }
          },
          {
            "name": "includeHistory",
            "description": "Enables access to archived transactions in Metrc",
            "in": "query",
            "schema": {
              "type": "boolean",
              "example": true
            }
          },
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the transaction sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "packageLabel__contains:003",
            "description": "One or more transaction filters."
          }
        ],
        "tags": [
          "Sales Receipts",
          "Single Sales Receipt"
        ],
        "description": "**T3 endpoint id:** `METRC_SALES_RECEIPT_TRANSACTIONS`.",
        "x-t3-endpoint-id": "METRC_SALES_RECEIPT_TRANSACTIONS"
      }
    },
    "/v2/sales/unfinalize": {
      "post": {
        "summary": "Unfinalize sales receipts",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcUnfinalizeSalesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Sales Receipts",
          "Modify Sales Receipts"
        ]
      }
    },
    "/v2/sales/void": {
      "post": {
        "summary": "Void one sales receipt",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/MetrcVoidSalesReceiptPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The operation completed successfully.\n",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                      "example": "Success"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "An error response indicating the Metrc servers are experiencing downtime.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "ServiceUnavailable"
                        },
                        "message": {
                          "type": "string",
                          "example": "503 ServiceUnavailable"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 503
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/Submit"
          },
          {
            "$ref": "#/components/parameters/ApplyDynamicValidation"
          },
          {
            "$ref": "#/components/parameters/SkipDynamicValidationChecks"
          }
        ],
        "tags": [
          "Sales Receipts",
          "Modify Sales Receipts"
        ]
      }
    },
    "/v2/labels/label-template-layouts": {
      "get": {
        "summary": "Returns a list of label template layouts",
        "responses": {
          "200": {
            "description": "A list of label template layouts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/T3LabelTemplateLayoutsResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Labels",
          "PDF",
          "Free"
        ]
      },
      "post": {
        "summary": "Create a label template layout",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/T3CreateLabelTemplateLayoutPayload"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The created label template layout",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/T3LabelTemplateLayoutConfig"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body"
          }
        },
        "tags": [
          "Labels",
          "PDF"
        ]
      }
    },
    "/v2/labels/label-content-layouts": {
      "get": {
        "summary": "Returns a list of label content layouts",
        "responses": {
          "200": {
            "description": "A list of label content layouts",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/T3LabelContentLayoutsResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Labels",
          "PDF",
          "Free"
        ]
      },
      "post": {
        "summary": "Create a label content layout",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/T3CreateLabelContentLayoutPayload"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The created label content layout",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/T3LabelContentLayoutConfig"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request body"
          }
        },
        "tags": [
          "Labels",
          "PDF"
        ]
      }
    },
    "/v2/labels/globals": {
      "get": {
        "summary": "Returns every built-in value available to a label template",
        "description": "The authoritative list of what a label valueTemplate can read under the t3 namespace: state warning text under t3.text, and built-in images under t3.images. Paths are returned, not values, so the response stays small no matter how large the image set grows.",
        "responses": {
          "200": {
            "description": "Dot paths for every built-in value",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/T3LabelGlobalsResponse"
                }
              }
            }
          }
        },
        "tags": [
          "Labels",
          "PDF",
          "Free"
        ]
      }
    },
    "/v2/labels/generate": {
      "post": {
        "summary": "Generate a PDF of labels.",
        "description": "Layout IDs can be found by querying the label template layout and label content layout endpoints.\n\nT3 Free users can only generate watermarked labels. Watermarks can be removed with a T3+ subscription.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/T3GenerateLabelsPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "PDF of the labels",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          }
        },
        "tags": [
          "Labels",
          "PDF",
          "Free"
        ]
      }
    },
    "/v2/labels/label-template-layouts/{public_id}": {
      "get": {
        "summary": "Get a single label template layout by ID",
        "responses": {
          "200": {
            "description": "The label template layout",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/T3LabelTemplateLayoutConfig"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Template layout not found"
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The label template layout public ID"
          }
        ],
        "tags": [
          "Labels",
          "PDF"
        ]
      },
      "patch": {
        "summary": "Update a label template layout",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/T3UpdateLabelTemplateLayoutPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated label template layout",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/T3LabelTemplateLayoutConfig"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No fields to update"
          },
          "404": {
            "description": "Template layout not found"
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The label template layout public ID"
          }
        ],
        "tags": [
          "Labels",
          "PDF"
        ]
      },
      "delete": {
        "summary": "Archive a label template layout",
        "description": "Soft-deletes the template layout by setting is_archived to true.",
        "responses": {
          "200": {
            "description": "The template layout was archived",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "publicId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "isArchived": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Template layout not found"
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The label template layout public ID"
          }
        ],
        "tags": [
          "Labels",
          "PDF"
        ]
      }
    },
    "/v2/labels/label-content-layouts/{public_id}": {
      "get": {
        "summary": "Get a single label content layout by ID",
        "responses": {
          "200": {
            "description": "The label content layout",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/T3LabelContentLayoutConfig"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Content layout not found"
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The label content layout public ID"
          }
        ],
        "tags": [
          "Labels",
          "PDF"
        ]
      },
      "patch": {
        "summary": "Update a label content layout",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/T3UpdateLabelContentLayoutPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated label content layout",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/T3LabelContentLayoutConfig"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No fields to update"
          },
          "404": {
            "description": "Content layout not found"
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The label content layout public ID"
          }
        ],
        "tags": [
          "Labels",
          "PDF"
        ]
      },
      "delete": {
        "summary": "Archive a label content layout",
        "description": "Soft-deletes the content layout by setting is_archived to true.",
        "responses": {
          "200": {
            "description": "The content layout was archived",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "publicId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "isArchived": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "Content layout not found"
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "The label content layout public ID"
          }
        ],
        "tags": [
          "Labels",
          "PDF"
        ]
      }
    },
    "/v2/tag-lists": {
      "get": {
        "summary": "List tag lists",
        "description": "Returns the tag lists you can see under one license: your own, plus those\nshared with the license (`visibility` `LICENSE`) when your account has\naccess to it. Each list carries `entryCount` and `scannedCount`; read its\nentries with `GET /v2/tag-lists/{tag_list_id}/entries`.\n\nLists with the most recent activity come first. Adding, removing or\nscanning an entry counts as activity.\n",
        "responses": {
          "200": {
            "description": "One page of tag lists",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/TagList"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "name": "visibility",
            "description": "Only lists with this visibility.",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TagListVisibility"
            }
          },
          {
            "name": "t3EndpointId",
            "description": "Only lists that name this route or its sibling: `METRC_ACTIVE_PACKAGES`\nalso finds lists stored as `METRC_ACTIVE_SUPERPACKAGES`, and the reverse.\n",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TagListT3EndpointId"
            }
          },
          {
            "name": "archived",
            "description": "true for archived lists only. By default, only lists that are not archived.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean",
              "default": false,
              "example": false
            }
          }
        ],
        "tags": [
          "Tag Lists",
          "Free"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/tag-lists/"
        }
      },
      "post": {
        "summary": "Create a tag list",
        "description": "Creates a tag list under a license, optionally with its first entries.\n\nA list is `USER` visibility by default: only you can see it. A `LICENSE`\nlist is shared with everyone on your Metrc hostname whose account has access\nto the license, and you can only create one for a license your account has\naccess to.\n\n`t3EndpointId` records which route the handles resolve against by default,\nplain or `/super`, so interfaces can show the list where it applies.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateTagListPayload"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The new tag list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TagList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "A `LICENSE` list was requested for a license your account does not have access to."
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Tag Lists"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/tag-lists/"
        }
      }
    },
    "/v2/tag-lists/{tag_list_id}": {
      "get": {
        "summary": "Retrieve a tag list",
        "description": "Returns one tag list with its counts. Read its entries with\n`GET /v2/tag-lists/{tag_list_id}/entries`.\n",
        "responses": {
          "200": {
            "description": "The tag list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TagList"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No tag list with this id is visible to your account."
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/TagListId"
          }
        ],
        "tags": [
          "Tag Lists",
          "Free"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/tag-lists/"
        }
      },
      "patch": {
        "summary": "Update a tag list",
        "description": "Changes a tag list's own fields, or archives it. Only the list's creator can\ndo this. Omitted fields are left unchanged.\n\nArchiving hides the list from the default listing; pass `archived=true`\nthere to see archived lists. A list is never deleted.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateTagListPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated tag list",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/TagList"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "You can see the list but did not create it, or `LICENSE` visibility was requested for a license your account does not have access to."
          },
          "404": {
            "description": "No tag list with this id is visible to your account."
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/TagListId"
          }
        ],
        "tags": [
          "Tag Lists"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/tag-lists/"
        }
      }
    },
    "/v2/tag-lists/{tag_list_id}/entries": {
      "get": {
        "summary": "List a tag list's entries",
        "description": "Returns the list's entries in the order they were added, one page at a time.\n\nPass `handle` to check membership: only entries for those handles come\nback, matched ignoring case and surrounding whitespace. Repeat it for more\nthan one, up to 200.\n",
        "responses": {
          "200": {
            "description": "One page of entries",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/TagListEntry"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No tag list with this id is visible to your account."
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/TagListId"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "name": "handle",
            "description": "Only the entries for these handles.",
            "in": "query",
            "required": false,
            "style": "form",
            "explode": true,
            "schema": {
              "type": "array",
              "maxItems": 200,
              "items": {
                "type": "string"
              },
              "example": [
                "1A4000000000000000000001"
              ]
            }
          }
        ],
        "tags": [
          "Tag Lists",
          "Free"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/tag-lists/"
        }
      },
      "post": {
        "summary": "Add or update tag list entries",
        "description": "Adds each handle that is not in the list yet, and updates the supplied\nfields of each one that is. A list holds each handle once; handles match\nignoring case and surrounding whitespace.\n\nSetting `scannedAt` records you as `scannedBy`; setting it to null clears\nboth.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertTagListEntriesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The entries were written",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "created": {
                          "type": "integer",
                          "description": "Handles added.",
                          "example": 2
                        },
                        "updated": {
                          "type": "integer",
                          "description": "Handles already in the list, updated.",
                          "example": 1
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No tag list with this id is visible to your account."
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/TagListId"
          }
        ],
        "tags": [
          "Tag Lists"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/tag-lists/"
        }
      },
      "delete": {
        "summary": "Remove tag list entries",
        "description": "Removes the entries for these handles. Handles not in the list are returned\nin `handlesNotFound`.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/DeleteTagListEntriesPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The entries were removed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "deleted": {
                          "type": "integer",
                          "example": 1
                        },
                        "handlesNotFound": {
                          "type": "array",
                          "items": {
                            "type": "string"
                          },
                          "example": []
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No tag list with this id is visible to your account."
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/TagListId"
          }
        ],
        "tags": [
          "Tag Lists"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/tag-lists/"
        }
      }
    },
    "/v2/tag-lists/{tag_list_id}/resolve": {
      "get": {
        "summary": "Resolve a tag list to Metrc objects",
        "description": "Looks up every entry's handle in one collection and returns the matching objects, in the order the entries were added. A handle listed twice returns its object twice.\n\n`t3EndpointId` names the route to read, or omit it to use the list's own. `METRC_ACTIVE_PACKAGES` returns packages as `/v2/packages/active` does; `METRC_ACTIVE_SUPERPACKAGES` returns superpackages, and accepts that route's `include` values. `TagListT3EndpointId` lists every route accepted.\n\nMatching is case-insensitive and ignores surrounding whitespace. Each collection matches on one field: `label` for packages, plants and tags; `packageLabel` for transferred packages; `manifestNumber` for transfers; `name` for plant batches, harvests, items and strains.\n\nObjects are read under the list's license. Resolve is all or nothing. If any entry matches no object, or more than one, the response is a 422 whose `errors` array lists every failing entry. A list holds at most 5,000 entries.\n",
        "responses": {
          "200": {
            "description": "One object per entry, in the order the entries were added",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "type": "object"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An invalid parameter, no route named by the request or the list, or a list over 5,000 entries"
          },
          "404": {
            "description": "No tag list with this id is visible to your account."
          },
          "422": {
            "description": "One or more entries did not resolve to exactly one object",
            "content": {
              "application/problem+json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "code": {
                      "type": "string",
                      "example": "TAG_LIST_UNRESOLVED_ENTRIES"
                    },
                    "detail": {
                      "type": "string",
                      "example": "2 of 200 entries did not resolve to exactly one object in METRC_ACTIVE_PACKAGES. Nothing was returned; see errors for each entry."
                    },
                    "errors": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "handle": {
                            "type": "string",
                            "example": "1A4000000000000000000123"
                          },
                          "reason": {
                            "type": "string",
                            "enum": [
                              "NOT_FOUND",
                              "AMBIGUOUS"
                            ]
                          },
                          "matchCount": {
                            "type": "integer",
                            "example": 0
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/TagListId"
          },
          {
            "name": "t3EndpointId",
            "description": "The route to read. Defaults to the list's own; required when the list names none.",
            "in": "query",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TagListT3EndpointId"
            }
          },
          {
            "name": "include",
            "description": "Related data to attach to each object. Only accepted with a `/super` route, which lists the values it accepts. Repeat the parameter for more than one.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "style": "form",
            "explode": true
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Tag Lists"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/tag-lists/"
        }
      }
    },
    "/v2/tag-lists/{tag_list_id}/scan": {
      "post": {
        "summary": "Mark entries as scanned by handle",
        "description": "Sets `scannedAt`, and `scannedBy` to you, on the entry for each supplied\nhandle. Built for sweeping many tags at once, such as an RFID read. Handles\nnot in the list are returned in `handlesNotFound`, so callers can surface\nunexpected tags. Nothing is read from Metrc.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScanTagListPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Entries were marked as scanned",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "scanned": {
                          "type": "integer",
                          "description": "Entries whose `scannedAt` was set.",
                          "example": 3
                        },
                        "scannedAt": {
                          "type": "string",
                          "format": "date-time",
                          "description": "The timestamp applied to matching entries.",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "handlesNotFound": {
                          "type": "array",
                          "description": "Supplied handles that match no entry, each once, as first sent.",
                          "items": {
                            "type": "string"
                          },
                          "example": [
                            "1A9..."
                          ]
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No tag list with this id is visible to your account."
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/TagListId"
          }
        ],
        "tags": [
          "Tag Lists"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/tag-lists/"
        }
      }
    },
    "/v2/tag-lists/{tag_list_id}/coa-extraction": {
      "post": {
        "summary": "Schedule COA extraction for a tag list",
        "description": "Resolves the tag list against a package collection, finds every COA document its\npackages' lab results reference, and schedules each one for extraction.\n\n`t3EndpointId` names the collection, or omit it to use the list's own. Either route\nof active, inactive, on hold or in transit packages is accepted\n(`METRC_ACTIVE_PACKAGES` or `METRC_ACTIVE_SUPERPACKAGES`); the `/super` route is the\none read, since it carries lab results. Once a\npackage's documents are extracted, `include=coaResults` on that collection, or on\nresolve, returns `metadata.indexedCoaResults`.\n\nExtraction runs in the background and takes about a minute per document. Poll\n`GET /v2/tag-lists/{tag_list_id}/coa-extraction` to follow it.\n\nA document already scheduled or extracted, by anyone, is never extracted again, so\ncalling this twice schedules nothing new. Revoked and unreleased lab results are\nignored.\n\nResolution is strict, as in resolve: if any entry does not match exactly one package\nin the collection, nothing is scheduled and the response is a 422. A list holds at\nmost 500 entries.\n",
        "requestBody": {
          "required": false,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TriggerTagListCoaExtractionPayload"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "The list's documents were scheduled, or were already",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "requestId": {
                          "type": "integer",
                          "example": 17
                        },
                        "packageCount": {
                          "type": "integer",
                          "description": "Distinct packages the list resolved to.",
                          "example": 120
                        },
                        "documentCount": {
                          "type": "integer",
                          "description": "Distinct COA documents those packages reference.",
                          "example": 87
                        },
                        "scheduledCount": {
                          "type": "integer",
                          "description": "Documents this request scheduled.",
                          "example": 40
                        },
                        "alreadyScheduledCount": {
                          "type": "integer",
                          "description": "Documents already scheduled or extracted, left alone.",
                          "example": 47
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "No route named by the request or the list, a route outside the four package collections, or a list over 500 entries"
          },
          "404": {
            "description": "No tag list with this id is visible to your account."
          },
          "422": {
            "description": "One or more entries did not resolve to exactly one package. See resolve."
          },
          "429": {
            "description": "Too many extraction requests; at most 10 per minute"
          },
          "503": {
            "description": "COA extraction is temporarily unavailable"
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/TagListId"
          }
        ],
        "tags": [
          "Tag Lists"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/opentag/tag-lists/"
        }
      },
      "get": {
        "summary": "Get COA extraction status for a tag list",
        "description": "Reports the latest COA extraction request for the tag list and where each of its\npackages and documents stands. The packages are the ones that request resolved, in\nlist order. Nothing is fetched from Metrc, so this is cheap to poll.\n\nA package is `READY` when `include=coaResults` will serve it. That includes a\npackage whose documents failed to extract: they are settled, and contribute no\nresults.\n\nPackage statuses:\n\n- `READY`: every document is extracted or failed\n- `IN_PROGRESS`: a document is still being extracted\n- `NOT_SCHEDULED`: a document needs to be scheduled again\n- `NO_DOCUMENTS`: the package's lab results reference no COA\n",
        "responses": {
          "200": {
            "description": "The latest request and the state of its packages and documents",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "request": {
                          "type": "object",
                          "nullable": true,
                          "description": "The latest extraction request, or null if the list was never scheduled.",
                          "properties": {
                            "id": {
                              "type": "integer",
                              "example": 17
                            },
                            "requestedAt": {
                              "type": "string",
                              "format": "date-time"
                            },
                            "t3EndpointId": {
                              "type": "string",
                              "nullable": true,
                              "description": "The route the trigger resolved against.",
                              "example": "METRC_ACTIVE_SUPERPACKAGES"
                            }
                          }
                        },
                        "summary": {
                          "type": "object",
                          "description": "Documents in each status.",
                          "additionalProperties": {
                            "type": "integer"
                          },
                          "example": {
                            "QUEUED": 0,
                            "DOWNLOADING": 1,
                            "STORED": 0,
                            "EXTRACTING": 3,
                            "READY": 40,
                            "FAILED": 1,
                            "NOT_SCHEDULED": 0
                          }
                        },
                        "packages": {
                          "type": "array",
                          "items": {
                            "type": "object",
                            "properties": {
                              "label": {
                                "type": "string",
                                "example": "1A4FF0100000022000000123"
                              },
                              "packageId": {
                                "type": "integer",
                                "example": 123
                              },
                              "status": {
                                "type": "string",
                                "enum": [
                                  "READY",
                                  "IN_PROGRESS",
                                  "NOT_SCHEDULED",
                                  "NO_DOCUMENTS"
                                ]
                              },
                              "documents": {
                                "type": "array",
                                "items": {
                                  "type": "object",
                                  "properties": {
                                    "labTestResultDocumentFileId": {
                                      "type": "integer",
                                      "example": 9001
                                    },
                                    "status": {
                                      "type": "string",
                                      "enum": [
                                        "QUEUED",
                                        "DOWNLOADING",
                                        "STORED",
                                        "EXTRACTING",
                                        "READY",
                                        "FAILED",
                                        "NOT_SCHEDULED"
                                      ]
                                    },
                                    "publicPdfUrl": {
                                      "type": "string",
                                      "format": "uri",
                                      "nullable": true,
                                      "description": "Unauthenticated link to the stored PDF, once downloaded."
                                    },
                                    "failureReason": {
                                      "type": "string",
                                      "nullable": true,
                                      "example": "ALL_MODELS_FAILED"
                                    }
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No tag list with this id is visible to your account."
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/TagListId"
          }
        ],
        "tags": [
          "Tag Lists"
        ],
        "externalDocs": {
          "description": "Tag Lists, concepts and usage",
          "url": "https://wiki.trackandtrace.tools/opentag/tag-lists/"
        }
      }
    },
    "/v2/coa/{public_id}.pdf": {
      "get": {
        "summary": "Get a stored COA PDF",
        "description": "Serves a COA PDF stored by COA extraction. No authentication is needed: the\nunguessable id in the URL is the credential, so the link can be shared or printed\nas a QR code. The link never expires.\n\nLinks come from `metadata.coaDocuments[].publicPdfUrl` on packages loaded with\n`include=coaResults`, and from the tag list COA extraction status.\n",
        "responses": {
          "200": {
            "description": "The PDF",
            "content": {
              "application/pdf": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "304": {
            "description": "Not modified; the PDF never changes, so a cached copy is current"
          },
          "404": {
            "description": "No stored COA PDF has this id"
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "description": "The document's public id.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3f9c2a1e-7b4d-4e8a-9c1f-2d5b6a7e8f90"
            }
          }
        ],
        "tags": [
          "Packages",
          "Lab Results",
          "PDF"
        ],
        "security": []
      }
    },
    "/v2/saved-reports": {
      "get": {
        "summary": "List saved reports",
        "description": "Returns every report saved by the authenticated Metrc account, newest first.\n\nSaved reports are owned by the Metrc account, not by a single credential, so\nany secret key or JWT for this `username` and `hostname` sees the same list.\n\nOptionally narrow by `licenseNumber` or `t3EndpointId`, both of which are\nderived from each saved `reportUrl` when it is stored.\n",
        "responses": {
          "200": {
            "description": "A paginated list of saved reports",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/SavedReport"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "name": "licenseNumber",
            "description": "Return only saved reports that cover this license. A report spanning\nseveral licenses matches any one of them.\n",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "C11-0000001-LIC"
            }
          },
          {
            "name": "t3EndpointId",
            "description": "Return only saved reports pointing at this report endpoint.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "example": "VEGETATIVE_PLANTS_REPORT"
            }
          }
        ],
        "tags": [
          "Saved Reports"
        ]
      },
      "post": {
        "summary": "Save a report URL",
        "description": "Saves a report URL under a name so it can be retrieved later.\n\n**Saving does not run anything.** A saved report is a definition. To get the\nreport, read back its `reportUrl` and request it as you normally would; the\nreport endpoints remain the only way to fetch report data.\n\n`reportUrl` comes back origin-relative and without a `secretKey`, so prepend\nthe API origin and supply your key when you request it.\n\n**Authentication is not stored.** Any `secretKey` in the submitted URL is\nstripped before the row is written, so a saved report is not a credential and\na leaked `publicId` grants nothing on its own \u2014 running one still requires\nauthenticating as the owning Metrc account. Rotating or revoking a secret key\ntherefore needs no change to saved reports.\n\n**The URL is validated now, not at run time.** Everything the report endpoint\ncan reject without contacting Metrc \u2014 content type, delivery, transform,\nfilters, sort, licenses, row limit, includes \u2014 is checked here, so a URL\naccepted by this endpoint is one that can run.\n\nExample:\n\n```python\nimport requests\n\nresponse = requests.post(\n    \"https://api.trackandtrace.tools/v2/saved-reports\",\n    headers={\"X-T3-API-Key\": SECRET_KEY},\n    json={\n        \"name\": \"Daily veg plant count\",\n        \"reportUrl\": (\n            \"/v2/plants/vegetative/report\"\n            \"?licenseNumber=C11-0000001-LIC\"\n            \"&contentType=csv\"\n            \"&columns=label,strainName,plantedDate\"\n        ),\n    },\n)\n\nsaved = response.json()[\"data\"]\nprint(saved[\"publicId\"])\nprint(saved[\"reportUrl\"])   # request this to get the report\n```\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSavedReportPayload"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The report was saved",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedReport"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "409": {
            "description": "The name is already used by another saved report on this account, or the\naccount has reached its saved report limit.\n"
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Saved Reports"
        ]
      }
    },
    "/v2/saved-reports/{public_id}": {
      "get": {
        "summary": "Retrieve a saved report",
        "description": "Returns one saved report by its `publicId`.\n\nA saved report belonging to a different Metrc account is reported as not\nfound rather than as forbidden, so this endpoint cannot be used to discover\nwhich identifiers exist.\n",
        "responses": {
          "200": {
            "description": "The saved report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedReport"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No saved report with that id belongs to this account."
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "description": "The saved report's `publicId`.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
            }
          }
        ],
        "tags": [
          "Saved Reports"
        ]
      },
      "patch": {
        "summary": "Update a saved report",
        "description": "Updates a saved report's name, description or URL. Omitted fields are left\nunchanged.\n\nEditing `reportUrl` leaves `publicId` alone, so a client holding the id keeps\nreferring to the same saved report.\n\nA replacement `reportUrl` is validated exactly as on create, and\n`t3EndpointId` and `licenseNumbers` are re-derived from it.\n\nExample \u2014 narrow an existing report to one strain:\n\n```python\nimport requests\n\nrequests.patch(\n    f\"https://api.trackandtrace.tools/v2/saved-reports/{public_id}\",\n    headers={\"X-T3-API-Key\": SECRET_KEY},\n    json={\n        \"reportUrl\": (\n            \"/v2/plants/vegetative/report\"\n            \"?licenseNumber=C11-0000001-LIC\"\n            \"&contentType=csv\"\n            \"&filter=strainName__eq:Blue Dream\"\n        ),\n    },\n)\n```\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateSavedReportPayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The updated saved report",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedReport"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No saved report with that id belongs to this account."
          },
          "409": {
            "description": "The name is already used by another saved report on this account."
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "description": "The saved report's `publicId`.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
            }
          }
        ],
        "tags": [
          "Saved Reports"
        ]
      },
      "delete": {
        "summary": "Delete a saved report",
        "description": "Permanently deletes a saved report.\n\nThis removes the stored definition, and its schedule and run history if it\nhas one. Anything already holding the report URL keeps working, because\nthat URL is an ordinary report endpoint request and does not depend on this\nrecord.\n",
        "responses": {
          "200": {
            "description": "The saved report was deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "publicId": {
                          "type": "string",
                          "format": "uuid",
                          "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No saved report with that id belongs to this account."
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "description": "The saved report's `publicId`.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
            }
          }
        ],
        "tags": [
          "Saved Reports"
        ]
      }
    },
    "/v2/saved-reports/{public_id}/schedule": {
      "get": {
        "summary": "Retrieve a saved report's schedule",
        "description": "Returns the schedule attached to a saved report, including when it next\nruns and, if the system paused it, why.\n",
        "responses": {
          "200": {
            "description": "The schedule",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedReportSchedule"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such saved report belongs to this account, or it has no schedule."
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "description": "The saved report's `publicId`.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
            }
          }
        ],
        "tags": [
          "Saved Reports"
        ]
      },
      "put": {
        "summary": "Create or replace a saved report's schedule",
        "description": "Runs a saved report on a recurring schedule. Each run requests the saved\nreport URL exactly as you would, so the URL's own parameters decide what\nhappens to the output. Use `delivery=email` to have each run sent to you.\nA report without it is still generated on schedule, which only refreshes\nthe cached copy.\n\n**Send this request with a secret key.** The schedule runs with the secret\nkey that creates it, so a request authenticated with a bearer token is\nrefused. Rotating that key keeps the schedule working. Deleting it pauses\nthe schedule. To switch keys, send this request again with the other one.\n\nA saved report has at most one schedule. Sending this again replaces it,\nand resumes it if it was paused.\n\nMissed runs are not caught up. Runs can start up to about two minutes after\ntheir scheduled time, and count toward your subscription's report rate\nlimits like any other request.\n\nExample: email a report every morning.\n\n```python\nimport requests\n\nrequests.put(\n    f\"https://api.trackandtrace.tools/v2/saved-reports/{public_id}/schedule\",\n    headers={\"X-T3-API-Key\": SECRET_KEY},\n    json={\n        \"frequency\": \"daily\",\n        \"timeOfDay\": \"06:00\",\n        \"timezone\": \"America/Denver\",\n    },\n)\n```\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpsertSavedReportSchedulePayload"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The schedule was replaced",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedReportSchedule"
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "The schedule was created",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SavedReportSchedule"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such saved report belongs to this account."
          },
          "409": {
            "description": "Your subscription already has its maximum number of active schedules."
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "description": "The saved report's `publicId`.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
            }
          }
        ],
        "tags": [
          "Saved Reports"
        ]
      },
      "delete": {
        "summary": "Delete a saved report's schedule",
        "description": "Stops the schedule and deletes its run history. The saved report itself is\nkept.\n",
        "responses": {
          "200": {
            "description": "The schedule was deleted",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "object",
                      "properties": {
                        "publicId": {
                          "type": "string",
                          "format": "uuid",
                          "description": "The saved report's `publicId`.",
                          "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such saved report belongs to this account, or it has no schedule."
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "description": "The saved report's `publicId`.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
            }
          }
        ],
        "tags": [
          "Saved Reports"
        ]
      }
    },
    "/v2/saved-reports/{public_id}/schedule/runs": {
      "get": {
        "summary": "List a schedule's runs",
        "description": "Returns the schedule's runs from the last 30 days, newest first.\n\nA run requests the saved report URL as you would. For a report with\n`delivery=email`, a run is `queued` once the report is accepted for\ndelivery; the report, or an explanation of why it failed, arrives by email.\n",
        "responses": {
          "200": {
            "description": "A paginated list of runs",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/SavedReportScheduleRun"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such saved report belongs to this account, or it has no schedule."
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "in": "path",
            "required": true,
            "description": "The saved report's `publicId`.",
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
            }
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          }
        ],
        "tags": [
          "Saved Reports"
        ]
      }
    },
    "/v2/support/tickets": {
      "post": {
        "summary": "File a support ticket",
        "description": "Reports a bug or issue to T3 support, optionally with screenshots or logs\nattached.\n\n**No subscription is required.** Anyone who can authenticate can file a\nticket.\n\n**Tickets are read-only once filed.** There is no endpoint that edits,\ncloses or deletes one. T3 support works the ticket and writes back through\n`resolutionNote`, which appears on the ticket the next time you read it.\n\n### Two ways to send it\n\nWithout attachments, send JSON:\n\n```python\nimport requests\n\nresponse = requests.post(\n    \"https://api.trackandtrace.tools/v2/support/tickets\",\n    headers={\"X-T3-API-Key\": SECRET_KEY},\n    json={\n        \"title\": \"Scanning a package tag opens the wrong package\",\n        \"body\": \"Scanning tags on the Active Packages page opens the package above the one I scanned.\",\n        \"contactEmail\": \"grower@example.com\",\n        \"pageUrl\": \"https://ca.metrc.com/industry/C11-0000001-LIC/packages\",\n        \"stateContext\": {\"route\": \"/packages/active\"},\n    },\n)\n\nprint(response.json()[\"data\"][\"publicId\"])\n```\n\nWith attachments, send `multipart/form-data`: the same JSON object in a\n`payload` part, and one `file` part per attachment.\n\n```python\nimport json\nimport requests\n\npayload = {\n    \"title\": \"Scanning a package tag opens the wrong package\",\n    \"body\": \"Happens every time, on two machines.\",\n    \"contactEmail\": \"grower@example.com\",\n    \"pageUrl\": \"https://ca.metrc.com/industry/C11-0000001-LIC/packages\",\n    \"clientVersion\": \"3.2.1\",\n}\n\nwith open(\"console.png\", \"rb\") as screenshot, open(\"debug.log\", \"rb\") as log:\n    response = requests.post(\n        \"https://api.trackandtrace.tools/v2/support/tickets\",\n        headers={\"X-T3-API-Key\": SECRET_KEY},\n        data={\"payload\": json.dumps(payload)},\n        files=[\n            (\"file\", (\"console.png\", screenshot, \"image/png\")),\n            (\"file\", (\"debug.log\", log, \"text/plain\")),\n        ],\n    )\n\nticket = response.json()[\"data\"]\nprint(ticket[\"publicId\"], [a[\"filename\"] for a in ticket[\"attachments\"]])\n```\n\n### Attachment limits\n\nAt most 5 files, 10 MB each, 25 MB in total. Accepted types are PNG, JPEG,\nGIF and WEBP images, PDF, and plain text, CSV or JSON.\n\nTypes are determined from each file's contents, not from what the upload\ndeclares, so renaming a file does not change whether it is accepted.\n\nAttachments are validated before anything is stored: if one file is rejected\nthe whole request fails and no ticket is created.\n\n**Attachments cannot be downloaded again.** They are stored privately for T3\nsupport. Reading a ticket tells you a file's name, type and size, and nothing\nmore \u2014 keep your own copy of anything you need.\n",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSupportTicketPayload"
              }
            },
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "payload"
                ],
                "properties": {
                  "payload": {
                    "$ref": "#/components/schemas/CreateSupportTicketPayload"
                  },
                  "file": {
                    "type": "array",
                    "description": "The files to attach. Repeat the `file` part once per attachment.\n",
                    "items": {
                      "type": "string",
                      "format": "binary"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "The ticket was filed",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SupportTicket"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The payload failed validation, `stateContext` was too large, or an\nattachment was rejected. See `SUPPORT_TICKET_ATTACHMENT_REJECTED` in the\n[Error Reference](/errors/).\n"
          },
          "409": {
            "description": "This account already has the maximum number of open tickets. Closing one\nrestores the allowance.\n"
          },
          "500": {
            "description": "An error response indicating the server experienced an unexpected error.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "InternalServerError"
                        },
                        "message": {
                          "type": "string",
                          "example": "500 InternalServerError"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 500
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "tags": [
          "Support"
        ]
      },
      "get": {
        "summary": "List support tickets",
        "description": "Returns every support ticket filed by the authenticated Metrc account, newest\nfirst.\n\nTickets are owned by the Metrc account rather than by a single credential, so\nany secret key or JWT for this `username` and `hostname` sees the same list.\nTickets filed by other accounts are never visible.\n\nEach ticket carries its attachments' metadata, so listing tickets needs no\nfollow-up request per ticket.\n\n```python\nimport requests\n\nresponse = requests.get(\n    \"https://api.trackandtrace.tools/v2/support/tickets\",\n    headers={\"X-T3-API-Key\": SECRET_KEY},\n    params={\"status\": \"OPEN\"},\n)\n\nfor ticket in response.json()[\"data\"]:\n    print(ticket[\"status\"], ticket[\"title\"], ticket[\"resolutionNote\"])\n```\n",
        "responses": {
          "200": {
            "description": "A paginated list of support tickets",
            "content": {
              "application/json": {
                "schema": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/SupportTicket"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "An error response indicating the request was invalid. Refer to the response body for details.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "error": {
                      "type": "object",
                      "properties": {
                        "type": {
                          "type": "string",
                          "example": "BadRequest"
                        },
                        "message": {
                          "type": "string",
                          "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                        },
                        "timestamp": {
                          "type": "string",
                          "format": "date-time",
                          "example": "2024-08-09T12:34:56.789Z"
                        },
                        "url": {
                          "type": "string",
                          "example": "https://api.trackandtrace.tools/some-endpoint"
                        },
                        "status_code": {
                          "type": "integer",
                          "example": 400
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "name": "status",
            "description": "Return only tickets in this state.",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "OPEN",
                "CLOSED"
              ],
              "example": "OPEN"
            }
          }
        ],
        "tags": [
          "Support"
        ]
      }
    },
    "/v2/support/tickets/{public_id}": {
      "get": {
        "summary": "Get a support ticket",
        "description": "Returns one of the authenticated Metrc account's support tickets.\n\nThis is how you check on a ticket you filed. `status` shows whether it is\nstill open, and `resolutionNote` carries T3 support's reply once there is\none \u2014 no endpoint modifies a ticket, so reading it is the whole feedback\nchannel.\n\nA ticket filed by a different Metrc account is reported as not found rather\nthan as forbidden, so this endpoint cannot be used to discover which tickets\nexist.\n\n```python\nimport requests\n\nresponse = requests.get(\n    f\"https://api.trackandtrace.tools/v2/support/tickets/{public_id}\",\n    headers={\"X-T3-API-Key\": SECRET_KEY},\n)\n\nticket = response.json()[\"data\"]\nprint(ticket[\"status\"], ticket[\"resolutionNote\"])\n```\n",
        "responses": {
          "200": {
            "description": "The support ticket",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "$ref": "#/components/schemas/SupportTicket"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No ticket with that id belongs to this account. See\n`SUPPORT_TICKET_NOT_FOUND` in the [Error Reference](/errors/).\n"
          }
        },
        "parameters": [
          {
            "name": "public_id",
            "description": "The ticket's `publicId`, as returned when it was filed.",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid",
              "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
            }
          }
        ],
        "tags": [
          "Support"
        ]
      }
    },
    "/v2/dataimport/templates": {
      "get": {
        "summary": "List available data import CSV templates \u00b7 METRC_DATAIMPORT_TEMPLATELIST",
        "responses": {
          "200": {
            "description": "A paginated list of available data import CSV templates",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/Pagination"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "data": {
                          "type": "array",
                          "items": {
                            "$ref": "#/components/schemas/MetrcDataimportTemplate"
                          }
                        }
                      }
                    }
                  ]
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/CollectionPage"
          },
          {
            "$ref": "#/components/parameters/CollectionPageSize"
          },
          {
            "$ref": "#/components/parameters/StrictPagination"
          },
          {
            "$ref": "#/components/parameters/CollectionSort",
            "example": "name:asc",
            "description": "Defines the template sort order."
          },
          {
            "$ref": "#/components/parameters/CollectionFilterLogic"
          },
          {
            "$ref": "#/components/parameters/CollectionFilter",
            "example": "name__contains:Package",
            "description": "One or more template filters."
          },
          {
            "$ref": "#/components/parameters/CollectionMask"
          }
        ],
        "tags": [
          "Data Import"
        ],
        "description": "**T3 endpoint id:** `METRC_DATAIMPORT_TEMPLATELIST`.",
        "x-t3-endpoint-id": "METRC_DATAIMPORT_TEMPLATELIST"
      }
    },
    "/v2/dataimport/csv-documentation": {
      "get": {
        "summary": "Get CSV column documentation for a data import template",
        "responses": {
          "200": {
            "description": "CSV column documentation for the specified template",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MetrcDataimportCsvDocumentation"
                }
              }
            }
          }
        },
        "parameters": [
          {
            "$ref": "#/components/parameters/LicenseNumber"
          },
          {
            "$ref": "#/components/parameters/TemplateId"
          }
        ],
        "tags": [
          "Data Import"
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT",
        "description": "Standard Authorization header using the Bearer scheme. Example: \"Authorization: Bearer {token}\""
      },
      "SecretKeyHeader": {
        "type": "apiKey",
        "in": "header",
        "name": "X-T3-API-Key",
        "description": "T3 secret key passed in a custom HTTP header. Preferred over the query-string form because it does not leak into URLs."
      },
      "SecretKeyQuery": {
        "type": "apiKey",
        "in": "query",
        "name": "secretKey",
        "description": "T3 secret key passed as a query parameter. Supported for backwards compatibility; prefer X-T3-API-Key for new integrations."
      }
    },
    "responses": {
      "SuccessMutationResponse": {
        "description": "The operation completed successfully.\n",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and was successfully passed to Metrc\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                  "example": "Success"
                }
              }
            }
          }
        }
      },
      "SuccessMutationWithMetrcResponse": {
        "description": "The operation completed successfully.\n",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "message": {
                  "type": "string",
                  "description": "Describes the nature of this successful operation\n- \"Success\" indicates the request passed validation and Metrc accepted it\n- \"Dry run\" indicates the request passed validation, but the request was not sent to Metrc\n",
                  "example": "Success"
                },
                "metrcResponse": {
                  "description": "Metrc's response to the request, with its keys camelCased. Present only when message is \"Success\". If Metrc's response is not JSON, this is its raw text.\n\n\"Success\" does not mean every entry succeeded. Metrc can report a failure for one entry inside an accepted request, so check this value before treating the operation as complete.\n"
                }
              },
              "required": [
                "message"
              ]
            }
          }
        }
      },
      "BadRequestMutationResponse": {
        "description": "An error response indicating the request was invalid. Refer to the response body for details.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "BadRequest"
                    },
                    "message": {
                      "type": "string",
                      "example": "400 Bad Request: Invalid request body: 'note' is a required property"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2024-08-09T12:34:56.789Z"
                    },
                    "url": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/some-endpoint"
                    },
                    "status_code": {
                      "type": "integer",
                      "example": 400
                    }
                  }
                }
              }
            }
          }
        }
      },
      "InternalServerErrorMutationResponse": {
        "description": "An error response indicating the server experienced an unexpected error.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "InternalServerError"
                    },
                    "message": {
                      "type": "string",
                      "example": "500 InternalServerError"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2024-08-09T12:34:56.789Z"
                    },
                    "url": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/some-endpoint"
                    },
                    "status_code": {
                      "type": "integer",
                      "example": 500
                    }
                  }
                }
              }
            }
          }
        }
      },
      "ServiceUnavailableMutationResponse": {
        "description": "An error response indicating the Metrc servers are experiencing downtime.",
        "content": {
          "application/json": {
            "schema": {
              "type": "object",
              "properties": {
                "error": {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "example": "ServiceUnavailable"
                    },
                    "message": {
                      "type": "string",
                      "example": "503 ServiceUnavailable"
                    },
                    "timestamp": {
                      "type": "string",
                      "format": "date-time",
                      "example": "2024-08-09T12:34:56.789Z"
                    },
                    "url": {
                      "type": "string",
                      "example": "https://api.trackandtrace.tools/some-endpoint"
                    },
                    "status_code": {
                      "type": "integer",
                      "example": 503
                    }
                  }
                }
              }
            }
          }
        }
      },
      "SupercollectionBadRequestResponse": {
        "description": "The request was rejected before any data was loaded.\n\n**Invalid Include** -- an `include` value is not one this endpoint accepts. The\nresponse lists every include this endpoint does accept, or states that it accepts\nnone. Several includes are supplied by repeating the parameter\n(`include=history&include=labResults`); a comma-joined list is not supported.\n"
      }
    },
    "schemas": {
      "AccessToken": {
        "type": "string",
        "description": "A JSON web token used to send authenticated API requests",
        "example": "eyJhbGciOiJSUzI1NiIsImtpZCI6IjE2ODciLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJodHRwczovL2V4YW1wbGUuY29tIiwic3ViIjoiMTIzNDU2Nzg5MCIsIm5hbWUiOiJKYW5lIERvZSIsImF1ZCI6Imh0dHBzOi8vZXhhbXBsZS5jb20vYXBpIiwiZXhwIjoxNjA5MzYwMDAwfQ.Q8B8u5h5wvxgK3xN-zsmBbs3_HwPkjFz8wq_Fk2JYfw"
      },
      "CollectionField": {
        "type": "object",
        "description": "One field of a collection, as Metrc's table for it shows the column.",
        "required": [
          "field",
          "metrcField",
          "type",
          "operators",
          "sortable",
          "metrc"
        ],
        "properties": {
          "field": {
            "type": "string",
            "description": "The name a `filter` parameter takes on the collection, as in\n`filter=item.strainName__eq:Blue Dream`.\n",
            "example": "item.strainName"
          },
          "metrcField": {
            "type": "string",
            "description": "Metrc's name for the field.",
            "example": "Item.StrainName"
          },
          "label": {
            "type": "string",
            "description": "The column's title in Metrc's table. Absent when Metrc gives the column\nnone.\n",
            "example": "Item Strain"
          },
          "type": {
            "type": "string",
            "description": "The field's type. A `filter` value is always written as text; dates and\ndatetimes are ISO 8601.\n",
            "enum": [
              "string",
              "number",
              "date",
              "datetime",
              "boolean"
            ],
            "example": "string"
          },
          "operators": {
            "type": "array",
            "description": "The `filter` operators Metrc's table offers on the field, its default\nfirst. Empty when Metrc does not let the column be filtered.\n",
            "items": {
              "type": "string",
              "enum": [
                "contains",
                "doesnotcontain",
                "eq",
                "neq",
                "startswith",
                "endswith",
                "lt",
                "lte",
                "gt",
                "gte"
              ]
            },
            "example": [
              "contains",
              "doesnotcontain",
              "eq",
              "neq",
              "startswith",
              "endswith"
            ]
          },
          "sortable": {
            "type": "boolean",
            "description": "False when Metrc does not let the column be sorted.",
            "example": true
          },
          "metrc": {
            "type": "object",
            "additionalProperties": true,
            "description": "Everything Metrc declares about the column, under Metrc's own names, such\nas `hidden` and `abbreviation`. `schemaType` is the type Metrc's data\ndeclares for the field, when it declares one, and `filterOperators` is\nMetrc's label for each operator.\n",
            "example": {
              "title": "Unit CBD Percent",
              "hidden": true,
              "abbreviation": "Unit CBD%",
              "schemaType": "number",
              "filterOperators": {
                "eq": "Equal to",
                "neq": "Not Equal to",
                "gte": "Greater than or Equal to",
                "gt": "Greater than",
                "lte": "Less than or Equal to",
                "lt": "Less than"
              }
            }
          }
        }
      },
      "CollectionFieldsResponse": {
        "type": "object",
        "required": [
          "t3EndpointId",
          "fields"
        ],
        "properties": {
          "t3EndpointId": {
            "type": "string",
            "description": "The collection the fields are for.",
            "example": "METRC_VEGETATIVE_PLANTS"
          },
          "fields": {
            "type": "array",
            "description": "The collection's fields, in the order Metrc's table shows its columns.",
            "items": {
              "$ref": "#/components/schemas/CollectionField"
            }
          }
        }
      },
      "CreateSavedReportPayload": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "name",
          "reportUrl"
        ],
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Label for the saved report. Must be unique among this Metrc account's\nsaved reports.\n",
            "example": "Daily veg plant count",
            "x-errorMessage": "'name' must be a string of 1-200 characters."
          },
          "description": {
            "type": "string",
            "maxLength": 2000,
            "nullable": true,
            "description": "Optional note about what this report is for.",
            "example": "Feeds the cultivation team's morning dashboard",
            "x-errorMessage": "'description' must be a string of at most 2000 characters."
          },
          "reportUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8000,
            "description": "The report URL to save. Accepts either a full URL as copied from a\nbrowser or a bare path with a query string; the scheme and host are\ndiscarded.\n\nThe URL is validated against the report endpoint it names, so a URL that\nwould be rejected as a request is rejected here rather than the first\ntime the saved report runs.\n\nAny `secretKey` is stripped before storage. Authentication is supplied\nper run, not saved.\n",
            "example": "https://api.trackandtrace.tools/v2/plants/vegetative/report?licenseNumber=C11-0000001-LIC&contentType=csv",
            "x-errorMessage": "'reportUrl' must be a report endpoint URL of at most 8000 characters, e.g. /v2/plants/vegetative/report?licenseNumber=EX-00001"
          }
        }
      },
      "CreateSupportTicketPayload": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "title",
          "body",
          "contactEmail"
        ],
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "\\S",
            "description": "One-line summary of the problem.",
            "example": "Scanning a package tag opens the wrong package",
            "x-errorMessage": "'title' must be a string of 1-200 characters and cannot be only whitespace."
          },
          "body": {
            "type": "string",
            "minLength": 1,
            "maxLength": 20000,
            "pattern": "\\S",
            "description": "What happened, what you expected, and how to reproduce it. Plain text.\n",
            "example": "Scanning C11-0000001-LIC package tags on the Active Packages page opens\nthe package above the one I scanned. Started this morning. Happens every\ntime, on two machines.\n",
            "x-errorMessage": "'body' must be a string of 1-20000 characters and cannot be only whitespace."
          },
          "contactEmail": {
            "type": "string",
            "minLength": 1,
            "maxLength": 254,
            "format": "email",
            "description": "Where T3 support can reach you about this ticket. Required.\n\nYour Metrc username identifies the account but is not a mailbox, so\nwithout this there is no way to ask you a follow-up question \u2014 the\nanswer would only ever appear in `resolutionNote`, which you would have\nto think to come back and read.\n\nA single address. Lists are rejected, and the address is checked for\nshape before the ticket is written.\n",
            "example": "grower@example.com",
            "x-errorMessage": "'contactEmail' is required and must be a single email address of at most 254 characters."
          },
          "pageUrl": {
            "type": "string",
            "maxLength": 2000,
            "nullable": true,
            "description": "The page you were on when the problem occurred. Optional, but it is the\nsingle most useful field for reproducing a report.\n",
            "example": "https://ca.metrc.com/industry/C11-0000001-LIC/packages",
            "x-errorMessage": "'pageUrl' must be a string of at most 2000 characters."
          },
          "licenseNumber": {
            "type": "string",
            "maxLength": 100,
            "nullable": true,
            "description": "The license the problem concerns, when it concerns one.\n\nStored as sent and not checked against the licenses your account can\nreach \u2014 \"I cannot see license X\" is a legitimate ticket, and validating\nthis would reject exactly that report.\n",
            "example": "C11-0000001-LIC",
            "x-errorMessage": "'licenseNumber' must be a string of at most 100 characters."
          },
          "clientVersion": {
            "type": "string",
            "maxLength": 50,
            "nullable": true,
            "description": "The version of the client filing the ticket, e.g. the T3 Chrome\nextension's version. Lets a wave of reports be tied to a release without\nasking every reporter what they are running.\n",
            "example": "3.2.1",
            "x-errorMessage": "'clientVersion' must be a string of at most 50 characters."
          },
          "stateContext": {
            "type": "object",
            "description": "Arbitrary client-captured context: the active route, the last few console\nerrors, whatever the client thought was worth recording. The shape is\nyours to decide \u2014 nothing here is validated beyond being a JSON object\nthat serializes to at most 64 KB.\n",
            "additionalProperties": true,
            "example": {
              "route": "/packages/active",
              "selectedLicense": "C11-0000001-LIC",
              "lastError": "TypeError: cannot read property 'id' of undefined"
            },
            "x-errorMessage": "'stateContext' must be a JSON object."
          }
        }
      },
      "CreateTagListPayload": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "licenseNumber",
          "name"
        ],
        "properties": {
          "licenseNumber": {
            "type": "string",
            "minLength": 1,
            "description": "The license the list belongs to.",
            "example": "LIC-00001",
            "x-errorMessage": "'licenseNumber' must be a non-empty string."
          },
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "\\S",
            "description": "A label for the list.",
            "example": "Room A inventory",
            "x-errorMessage": "'name' must be a non-blank string of at most 200 characters."
          },
          "visibility": {
            "$ref": "#/components/schemas/TagListVisibility"
          },
          "t3EndpointId": {
            "$ref": "#/components/schemas/TagListT3EndpointId"
          },
          "metadata": {
            "type": "object",
            "description": "Any JSON object, returned as sent.",
            "example": {
              "room": "A"
            },
            "x-errorMessage": "'metadata' must be an object."
          },
          "entries": {
            "type": "array",
            "maxItems": 5000,
            "description": "The list's first entries. Each handle may appear once.",
            "items": {
              "$ref": "#/components/schemas/TagListEntryInput"
            }
          }
        }
      },
      "DeleteTagListEntriesPayload": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "handles"
        ],
        "properties": {
          "handles": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5000,
            "description": "The handles to remove, matched ignoring case and surrounding whitespace.\nHandles not in the list are returned in `handlesNotFound`.\n",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "example": [
              "1A4000000000000000000001"
            ],
            "x-errorMessage": "'handles' must be an array of 1 to 5000 non-empty strings."
          }
        }
      },
      "ExtractedLabResult": {
        "type": "object",
        "properties": {
          "labTestResultId": {
            "type": "number",
            "format": "int"
          },
          "labTestDetailId": {
            "type": "number",
            "format": "int"
          },
          "labResultTestName": {
            "type": "string",
            "example": "Delta-9 THC"
          },
          "labResultTestValue": {
            "type": "number",
            "format": "float",
            "example": 0.123
          },
          "labResultTestUnit": {
            "type": "string",
            "example": "%"
          },
          "labResultBatchName": {
            "description": "The name of the lab result batch. This is only set if the lab results were loaded via `include=labResultBatches`\n",
            "type": "string",
            "example": "Mandatory Terpenes",
            "nullable": true
          },
          "fullLabResultTestName": {
            "type": "string",
            "example": "Delta-9 THC (%) Mandatory Terpenes"
          },
          "passed": {
            "type": "boolean",
            "example": true
          },
          "labResultTestPerformedDate": {
            "description": "The date the lab performed the test, as Metrc reports it.\n",
            "type": "string",
            "example": "2025-03-12",
            "nullable": true
          },
          "tags": {
            "type": "array",
            "description": "T3 analyzes each lab result, and creates a normalized list of tags for each lab result.\n\nExamples: \n\n- ['delta9', 'thc']\n- ['total', 'cbd']\n- ['terpene', 'limonene']\n",
            "items": {
              "type": "string",
              "example": "terpene"
            }
          }
        }
      },
      "HubTransferManifestReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "manifestNumber__endswith:0003",
              "productName__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "description": "The transfers loaded for this report, nested, each carrying its packages and its embedded shipmentTransporterDetails in full. Requesting contentType=csv returns the flattened T3HubTransferManifest columns instead, one row per package, with only the first driver leg.",
            "items": {
              "$ref": "#/components/schemas/MetrcHubSuperTransfer"
            }
          }
        }
      },
      "IncomingTransferManifestReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "manifestNumber__endswith:0003",
              "productName__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "description": "The transfers loaded for this report, nested. Requesting contentType=csv returns the flattened T3IncomingTransferManifest columns instead, one row per package.",
            "items": {
              "$ref": "#/components/schemas/MetrcIncomingSuperTransfer"
            }
          }
        }
      },
      "InlineSheetResponse": {
        "type": "object",
        "description": "Returned by a report endpoint when `contentType=googleSheets` and delivery is\n`inline` (the default).\n\nThe status is `302` and the `Location` header holds the same URL as `sheetUrl`, so\na browser follows it straight to the sheet and never reads this body. It exists for\nclients that do not follow redirects: without it, the only machine-readable copy of\nthe link would be a header those clients discard.\n\nThe sheet is created and populated during the request, so by the time this is\nreturned the report is already in it. Who can open it is controlled by\n`sheetVisibility`, which defaults to anyone-with-the-link.\n\nEvery request creates a new sheet, and sheets are never deleted. This suits one-off\nexports; for a recurring or scheduled pull use `csv`.\n",
        "required": [
          "sheetUrl",
          "sheetId"
        ],
        "properties": {
          "sheetUrl": {
            "type": "string",
            "format": "uri",
            "description": "The sheet's web view link, identical to the `Location` header.\n",
            "example": "https://docs.google.com/spreadsheets/d/1AbCdEfGhIjKlMnOpQrStUvWxYz/edit"
          },
          "sheetId": {
            "type": "string",
            "description": "The Google Drive file ID, for callers that want to address the sheet through\nthe Google Sheets API rather than open it in a browser.\n",
            "example": "1AbCdEfGhIjKlMnOpQrStUvWxYz"
          }
        }
      },
      "ItemImageFileType": {
        "type": "string",
        "description": "Category of the image file",
        "example": "ItemProductImage",
        "enum": [
          "ItemLabelImage",
          "ItemPackagingImage",
          "ItemProductImage"
        ]
      },
      "JWTData": {
        "type": "object",
        "properties": {
          "authMode": {
            "type": "string",
            "example": "CREDENTIALS"
          },
          "credentialKey": {
            "type": "string",
            "example": "mo.metrc.com__MyMetrcUsername"
          },
          "hasT3plus": {
            "type": "boolean",
            "example": true
          },
          "t3plusSubscriptionTier": {
            "type": "string",
            "enum": [
              "manual",
              "basic",
              "team",
              "enterprise",
              "corporate"
            ],
            "example": "team",
            "nullable": true
          },
          "username": {
            "type": "string",
            "example": "MyMetrcUsername"
          },
          "hostname": {
            "type": "string",
            "example": "mo.metrc.com"
          }
        }
      },
      "LabTestingStates": {
        "type": "string",
        "example": "TestPassed",
        "enum": [
          "NotSubmitted",
          "SubmittedForTesting",
          "TestFailed",
          "TestPassed",
          "TestingInProgress",
          "AwaitingConfirmation",
          "RetestFailed",
          "RetestPassed",
          "Remediated",
          "SelectedForRandomTesting",
          "NotRequired",
          "ProcessValidated"
        ],
        "nullable": false
      },
      "MetrcActionReason": {
        "type": "object",
        "description": "A reason code Metrc offers when an action needs one. The same list serves\nevery part of the UI, and the `for*` flags say which parts each entry is\nvalid for \u2014 filter on the flag for your action rather than matching names,\nwhich are state-specific.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The reason ID, sent as `reasonId`/`rejectReasonId`.",
            "example": 9
          },
          "name": {
            "type": "string",
            "description": "Display name. State-specific; do not match on it.",
            "example": "Moisture Weight Change"
          },
          "requiresNote": {
            "type": "boolean",
            "description": "When true, the accompanying free-text note is mandatory. Metrc rejects\nthe submission without one.\n",
            "example": true
          },
          "forRejectedTransferPackages": {
            "type": "boolean",
            "description": "Valid when rejecting an individual package during receive.",
            "example": true
          },
          "forRejectedTransferApprovals": {
            "type": "boolean",
            "description": "Valid when rejecting a whole incoming transfer.",
            "example": false
          },
          "forTransferNotes": {
            "type": "boolean",
            "description": "Valid when adding a note to a transfer.",
            "example": false
          },
          "forPackageAdjustments": {
            "type": "boolean",
            "description": "Valid when adjusting a package.",
            "example": true
          },
          "forAdministrativeHolds": {
            "type": "boolean",
            "example": false
          },
          "forAdminHoldInvestigations": {
            "type": "boolean",
            "example": false
          },
          "forPlantCountAdjustments": {
            "type": "boolean",
            "example": false
          },
          "forPlantBatchAdjustments": {
            "type": "boolean",
            "example": false
          },
          "forImmaturePlantWaste": {
            "type": "boolean",
            "example": false
          },
          "forMaturePlantWaste": {
            "type": "boolean",
            "example": false
          },
          "forProcessingJobAdjustment": {
            "type": "boolean",
            "example": false
          },
          "forReturnedSalesDeliveries": {
            "type": "boolean",
            "example": false
          },
          "forPreTreatment": {
            "type": "boolean",
            "example": false
          },
          "requiresWasteWeight": {
            "type": "boolean",
            "example": false
          },
          "requiresImmatureWasteWeight": {
            "type": "boolean",
            "example": false
          },
          "requiresMatureWasteWeight": {
            "type": "boolean",
            "example": false
          },
          "isArchived": {
            "type": "boolean",
            "description": "Archived reasons are not selectable.",
            "example": false
          },
          "facilityTypes": {
            "type": "array",
            "description": "Facility types this reason is offered to.",
            "items": {
              "type": "object",
              "properties": {
                "facilityTypeId": {
                  "type": "integer",
                  "example": 1
                },
                "facilityTypeName": {
                  "type": "string",
                  "example": "Comprehensive Cultivator"
                }
              }
            }
          }
        }
      },
      "MetrcAddPackageNotePayload": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "The package ID",
              "example": 12345
            },
            "note": {
              "type": "string",
              "description": "The note to add to this package",
              "example": "This is a package note"
            }
          },
          "required": [
            "id",
            "note"
          ],
          "additionalProperties": false
        }
      },
      "MetrcAddPackageNotesInputsResponse": {
        "type": "object",
        "description": "Reference data for adding notes to packages.\n",
        "properties": {
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "description": "One row per pre-selected package. Empty in the selection-free fetch this\nendpoint performs.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcAdjustPackagesInputsResponse": {
        "type": "object",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Available reasons for package adjustment.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "example": 1
                },
                "name": {
                  "type": "string",
                  "example": "Theft"
                },
                "forPackageAdjustments": {
                  "type": "boolean",
                  "example": true
                },
                "requiresNote": {
                  "type": "boolean",
                  "example": true
                }
              }
            }
          },
          "packages": {
            "type": "array",
            "description": "The packages available for adjustment.",
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "unitsOfMeasure": {
            "type": "array",
            "description": "Available units of measure for adjustment.",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "details": {
            "type": "array",
            "description": "Default adjustment values for each package.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "example": 16131
                },
                "adjustmentQuantity": {
                  "type": "number",
                  "example": 0
                },
                "adjustmentUnitOfMeasureId": {
                  "type": "integer",
                  "example": 0
                },
                "adjustmentReasonId": {
                  "type": "integer",
                  "nullable": true
                },
                "reasonNote": {
                  "type": "string",
                  "nullable": true
                },
                "adjustmentDate": {
                  "type": "string",
                  "nullable": true
                },
                "finishPackage": {
                  "type": "boolean",
                  "example": false
                },
                "finishDate": {
                  "type": "string",
                  "nullable": true
                },
                "isFinishedGood": {
                  "type": "boolean",
                  "example": false
                }
              }
            }
          }
        }
      },
      "MetrcAdjustPackagesPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "format": "int32",
              "description": "The package ID to adjust.",
              "example": 16131
            },
            "isFinishedGood": {
              "type": "boolean",
              "description": "Whether this package is a finished good.",
              "example": false
            },
            "currentQuantity": {
              "type": "number",
              "format": "float",
              "description": "The current quantity of the package before adjustment.",
              "example": 16
            },
            "currentQuantityUom": {
              "type": "string",
              "description": "The current unit of measure name.",
              "example": "Grams"
            },
            "adjustmentQuantity": {
              "type": "number",
              "format": "float",
              "description": "The quantity to adjust by (positive to increase, negative to decrease).",
              "example": 1
            },
            "adjustmentUnitOfMeasureId": {
              "type": "integer",
              "format": "int32",
              "description": "Unit of measure ID for the adjustment.\n\nTo find eligible units of measure, use the [Adjust Package Inputs](#/Package%20Adjustment/get_v2_packages_adjust_inputs)\nendpoint.\n",
              "example": 4
            },
            "newQuantity": {
              "type": "number",
              "format": "float",
              "description": "The expected new quantity after adjustment.",
              "example": 17
            },
            "newQuantityUom": {
              "type": "string",
              "description": "The new unit of measure name.",
              "example": "Grams"
            },
            "adjustmentReasonId": {
              "type": "integer",
              "format": "int32",
              "description": "The reason ID for this adjustment.\n\nTo find eligible adjustment reasons, use the [Adjust Package Inputs](#/Package%20Adjustment/get_v2_packages_adjust_inputs)\nendpoint.\n",
              "example": 1
            },
            "reasonNote": {
              "type": "string",
              "description": "Note explaining the reason for adjustment.",
              "example": "note"
            },
            "adjustmentDate": {
              "type": "string",
              "format": "date",
              "description": "The date of the adjustment.",
              "example": "2026-04-02"
            },
            "finishDate": {
              "type": "string",
              "description": "Finishes the package on this date as part of the adjustment. Omit it,\nor pass an empty string, to leave the package active.\n",
              "example": ""
            }
          },
          "required": [
            "id",
            "adjustmentQuantity",
            "adjustmentUnitOfMeasureId",
            "newQuantity",
            "adjustmentReasonId",
            "reasonNote",
            "adjustmentDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcAdjustPlantBatchesInputsResponse": {
        "type": "object",
        "description": "Reference data for adjusting a plant batch's plant count.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Valid adjustment reasons.",
            "items": {
              "type": "object"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches, when the modal is opened from a grid\nselection. Empty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcAdjustPlantBatchesPayload": {
        "type": "array",
        "description": "Batch of plant batches whose plant count is being corrected.\n\nNot available in Missouri, whose plant batch grid has no Adjust modal.\n\n`newQuantity` is the count the batch should hold after the adjustment and\n`adjustmentQuantity` is the difference applied; Metrc's own form collects\nboth.\n",
        "items": {
          "type": "object",
          "properties": {
            "plantBatchId": {
              "type": "integer",
              "description": "Plant batch ID.\n\nTo find eligible plant batches, use the\n[Adjust Plant Batches Source Plant Batches](#/Plant%20Batches/get_v2_plantbatches_adjust_source_plantbatches)\nendpoint.\n",
              "example": 8891
            },
            "untrackedCount": {
              "type": "integer",
              "description": "The batch's current untracked plant count. Metrc's form pre-fills this\nfrom the selected row; it is the one field the modal does not require.\n",
              "example": 100
            },
            "adjustmentQuantity": {
              "type": "number",
              "description": "The change applied to the plant count. Negative to reduce the batch.\n",
              "example": -5
            },
            "newQuantity": {
              "type": "number",
              "description": "The plant count the batch holds after the adjustment.",
              "example": 95
            },
            "adjustmentReasonId": {
              "type": "integer",
              "description": "Numeric ID of the adjustment reason.\n\nTo find valid reasons, use the\n[Adjust Plant Batches Inputs](#/Plant%20Batches/get_v2_plantbatches_adjust_inputs) endpoint.\n",
              "example": 12
            },
            "reasonNote": {
              "type": "string",
              "minLength": 1,
              "description": "Free text explaining the adjustment.",
              "example": "Miscount at intake"
            },
            "adjustmentDate": {
              "type": "string",
              "format": "date",
              "description": "The date the adjustment took effect.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "plantBatchId",
            "adjustmentQuantity",
            "newQuantity",
            "adjustmentReasonId",
            "reasonNote",
            "adjustmentDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcApproveTransfersPayload": {
        "type": "array",
        "description": "One entry per incoming transfer awaiting approval.\n\nApproval is a step some states put in front of receiving: the transfer\narrives in a *pending approval* state and cannot be received until the\nrecipient approves it. States that do not use the step have no transfers in\nthat state and never need this endpoint.\n",
        "items": {
          "type": "object",
          "required": [
            "id",
            "shipmentDeliveryId"
          ],
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The transfer ID awaiting approval.",
              "example": 12345
            },
            "shipmentDeliveryId": {
              "type": "integer",
              "description": "The delivery being approved.",
              "example": 6789
            },
            "lastModified": {
              "type": "string",
              "format": "date-time",
              "description": "The transfer's `lastModified` stamp. Metrc checks it optimistically and\nrefuses the payload with *\"it has changed since the editing began\"*\nwhen it does not match, so a stale or omitted value fails rather than\noverwriting.\n",
              "example": "2026-09-18T17:17:29+00:00"
            },
            "approvalType": {
              "type": "integer",
              "description": "Which approval this is. Metrc's form carries the value straight through\nfrom the pending-approval record rather than letting the user pick, so\nomit it and T3 sends an empty value. Supply it only if a submission is\nrejected for want of it.\n",
              "example": 1
            },
            "autoApprove": {
              "type": "boolean",
              "description": "Approve subsequent transfers from this shipper automatically. Metrc\nonly offers the checkbox when the transfer's record says\n`CanAutoApprove`, so sending true on a transfer that does not allow it\nis rejected.\n",
              "example": false
            },
            "destinations": {
              "type": "array",
              "description": "The packages being approved, nested one level under their destination.\nMetrc's form submits only package IDs here \u2014 everything else on the\ndelivery is already recorded.\n",
              "items": {
                "type": "object",
                "required": [
                  "packages"
                ],
                "additionalProperties": false,
                "properties": {
                  "packages": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "integer",
                          "description": "The delivery package ID.",
                          "example": 222333
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "MetrcArchiveTransferTemplatePayload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The transfer template ID",
            "example": 12345
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "MetrcAssignPlantTagsInputsResponse": {
        "type": "object",
        "description": "Reference data for assigning a run of tags to untagged plants.\n",
        "properties": {
          "tagTypes": {
            "type": "array",
            "description": "Tag types available for assignment.",
            "items": {
              "type": "object"
            }
          },
          "tags": {
            "type": "array",
            "description": "Tags the modal preloaded. Often null: Metrc serves most tag lists\nthrough the companion source endpoint rather than with the modal.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcAssignPlantTagsPayload": {
        "type": "array",
        "description": "Assign a contiguous run of plant tags to untagged vegetative plants.\n\nNot available in California. `startingTag` and `endingTag` bound the run:\nthe plants named in `plants` consume every tag from start to end inclusive,\nso the run must be exactly as long as that list. Leave `endingTag` off to\nassign a single tag.\n",
        "items": {
          "type": "object",
          "properties": {
            "startingTag": {
              "type": "integer",
              "description": "First tag in the run.\n\nTo find eligible tags, use the\n[Assign Plant Tags Source Tags](#/Plants/get_v2_plants_assign_tags_source_tags)\nendpoint.\n",
              "example": 442199
            },
            "endingTag": {
              "type": "integer",
              "description": "Last tag in the run, inclusive. Omit when assigning a single tag.\n",
              "example": 442203
            },
            "tagTypeId": {
              "type": "integer",
              "description": "Numeric ID of the tag type. Maine only.",
              "example": 2
            },
            "selectedIds": {
              "type": "string",
              "description": "Metrc's own grid-selection field. Maine only, and shown conditionally;\n`plants` is the supported way to name what is being tagged.\n",
              "example": "90210,90211"
            },
            "plants": {
              "type": "array",
              "minItems": 1,
              "description": "The plants receiving the tags, in the order the run applies.",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "Plant ID.",
                    "example": 90210
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the tags were assigned.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "startingTag",
            "plants",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcChangeHarvestLocationsInputsResponse": {
        "type": "object",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to receive the harvest.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations, where the state supports them.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "harvestBatches": {
            "type": "array",
            "description": "Pre-selected harvests, when the modal is opened from a harvest selection.\nEmpty in the modal-only fetch used by this endpoint.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "string",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true
          }
        }
      },
      "MetrcChangeHarvestLocationsPayload": {
        "type": "array",
        "description": "Batch of harvests to move to a different drying location.\n\n`sublocationId` applies only in states that model sublocations. Sending it\nwhere the state does not support it has no effect.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Harvest ID of an active harvest.\n\nTo find eligible harvests, use the [Active Harvests](#/Harvests/get_v2_harvests_active)\nendpoint.\n",
              "example": 304
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID of the new drying location.\n\nTo find eligible locations, use the\n[Change Harvest Locations Inputs](#/Harvests/get_v2_harvests_change_locations_inputs)\nendpoint.\n",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation ID within the new location. Only used by states that model\nsublocations; omit it elsewhere.\n",
              "example": 678
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the harvest was moved.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "locationId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcChangePackageItemsInputsResponse": {
        "type": "object",
        "description": "Reference data for changing a package's item.\n",
        "properties": {
          "items": {
            "type": "array",
            "description": "Always empty here. Metrc loads eligible items on demand; use the\n[Change Package Items Source Items](#/Modify%20Packages/get_v2_packages_change_items_source_items)\nendpoint.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcItem"
            }
          },
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "description": "One row per pre-selected package. Empty in the selection-free fetch this\nendpoint performs.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcChangePackageItemsPayload": {
        "type": "array",
        "description": "Packages whose item is to change.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Package ID.\n\nTo find eligible packages, use the\n[Change Package Items Source Packages](#/Modify%20Packages/get_v2_packages_change_items_source_packages)\nendpoint.\n",
              "example": 12345
            },
            "itemId": {
              "type": "integer",
              "description": "Item ID of the package's new item.\n\nTo find eligible items, use the\n[Change Package Items Source Items](#/Modify%20Packages/get_v2_packages_change_items_source_items)\nendpoint.\n",
              "example": 6645
            }
          },
          "required": [
            "id",
            "itemId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcChangePackageLocationsInputsResponse": {
        "type": "object",
        "description": "Reference data for moving a package to a different location.\n",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the package.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Only Maine and Michigan carry a\n`sublocationId` field on the request.\n",
            "items": {
              "type": "object"
            }
          },
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "harvestBatches": {
            "type": "array",
            "description": "Shared with Metrc's other location forms. Null here.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Shared with Metrc's other location forms. Null here.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "plants": {
            "type": "array",
            "description": "Shared with Metrc's other location forms. Null here.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "One row per pre-selected package. Empty in the selection-free fetch this\nendpoint performs.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcChangePackageLocationsPayload": {
        "type": "array",
        "description": "Packages to move to a different location.\n\n`sublocationId` and `currentSublocationId` apply only in Maine and Michigan,\nthe states whose modal carries them. Sending them elsewhere has no effect.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Package ID.\n\nTo find eligible packages, use the\n[Change Package Locations Source Packages](#/Modify%20Packages/get_v2_packages_change_locations_source_packages)\nendpoint.\n",
              "example": 12345
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID of the new location.\n\nTo find eligible locations, use the\n[Change Package Locations Inputs](#/Modify%20Packages/get_v2_packages_change_locations_inputs)\nendpoint.\n",
              "example": 505
            },
            "currentLocationId": {
              "type": "integer",
              "description": "The package's location before the move, as the package record's\n`locationId` shows it. Metrc's form sends it from a hidden field.\nOptional: T3 sends an empty value when it is omitted.\n",
              "example": 504
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation within the new location. Maine and Michigan only; omit it\nelsewhere.\n",
              "example": 678
            },
            "currentSublocationId": {
              "type": "integer",
              "description": "The package's sublocation before the move. Maine and Michigan only, and\noptional: T3 sends an empty value when it is omitted.\n",
              "example": 677
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the package was moved.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "locationId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcChangePackageRequiredLabTestBatchesInputsResponse": {
        "type": "object",
        "description": "Reference data for changing which lab test batches a package requires.\n",
        "properties": {
          "labTestBatches": {
            "type": "array",
            "description": "The lab test batches the package named by `packageId` can be required to\npass. Empty when no package is named.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcLabBatch"
            }
          },
          "packagesRequiredLabTestBatches": {
            "type": "array",
            "description": "The named package's current required batch IDs. Empty when no package is\nnamed.\n",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "Package ID.",
                  "example": 47501
                },
                "requiredLabTestBatches": {
                  "type": "array",
                  "items": {
                    "type": "integer"
                  },
                  "example": [
                    1,
                    2
                  ]
                },
                "labTestBatches": {
                  "type": "array",
                  "nullable": true,
                  "items": {
                    "type": "object"
                  }
                }
              }
            }
          },
          "packages": {
            "type": "array",
            "description": "The package named by `packageId`. Empty when no package is named.",
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "description": "One row for the named package. Empty when no package is named.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcChangePackageRequiredLabTestBatchesPayload": {
        "type": "array",
        "description": "Testing packages whose required lab test batches are to be replaced. Metrc\nrefuses the change on a package that is not a sample, such as one created\nwith `POST /v2/packages/create`.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Package ID.",
              "example": 12345
            },
            "requiredLabTestBatches": {
              "type": "array",
              "minItems": 1,
              "description": "Lab test batch IDs the package must be tested against. Metrc's form\nshows this only when the package has lab test batches to choose from,\nand then requires at least one.\n\nTo find lab test batches, use the\n[Change Package Required Lab Test Batches Inputs](#/Modify%20Packages/get_v2_packages_change_required_labtest_batches_inputs)\nendpoint. To read a package's current set, use the\n[Package Required Lab Test Batches](#/Packages/get_v2_packages_required_labtest_batches)\nendpoint.\n",
              "items": {
                "type": "integer"
              },
              "example": [
                1,
                3
              ]
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      },
      "MetrcChangePlantBatchLocationsInputsResponse": {
        "type": "object",
        "description": "Reference data for moving a plant batch to a different location.\n",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the plant batch.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Served in every indexed state,\nthough only Maine and Michigan carry a `sublocationId` field on the\nrequest.\n",
            "items": {
              "type": "object"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches, when the modal is opened from a grid\nselection. Empty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcChangePlantBatchLocationsPayload": {
        "type": "array",
        "description": "Batch of plant batches to move to a different location.\n\n`sublocationId` applies only in Maine and Michigan, the states whose modal\ncarries it. Sending it elsewhere has no effect.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant batch ID.\n\nTo find eligible plant batches, use the\n[Change Plant Batch Locations Source Plant Batches](#/Plant%20Batches/get_v2_plantbatches_change_locations_source_plantbatches)\nendpoint.\n",
              "example": 8891
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID of the new location.\n\nTo find eligible locations, use the\n[Change Plant Batch Locations Inputs](#/Plant%20Batches/get_v2_plantbatches_change_locations_inputs)\nendpoint.\n",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation within the new location. Maine and Michigan only; omit it\nelsewhere.\n",
              "example": 678
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plant batch was moved.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "locationId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcChangePlantBatchStrainsInputsResponse": {
        "type": "object",
        "description": "Reference data for reassigning a plant batch to a different strain.\n",
        "properties": {
          "strains": {
            "type": "array",
            "description": "Strains that can be assigned.",
            "items": {
              "$ref": "#/components/schemas/MetrcStrain"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches, when the modal is opened from a grid\nselection. Empty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcChangePlantBatchStrainsPayload": {
        "type": "array",
        "description": "Batch of plant batches to reassign to a different strain.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant batch ID.\n\nTo find eligible plant batches, use the\n[Change Plant Batch Strains Source Plant Batches](#/Plant%20Batches/get_v2_plantbatches_change_strains_source_plantbatches)\nendpoint.\n",
              "example": 8891
            },
            "strainId": {
              "type": "integer",
              "description": "Strain ID to assign.\n\nTo find eligible strains, use the\n[Change Plant Batch Strains Inputs](#/Plant%20Batches/get_v2_plantbatches_change_strains_inputs)\nendpoint.\n",
              "example": 737
            }
          },
          "required": [
            "id",
            "strainId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcChangePlantGrowthPhaseInputsResponse": {
        "type": "object",
        "description": "Reference data for moving a plant into a different growth phase.\n\n**Served per phase.** Unlike every other plant modal, the options here\ndepend on the phase the plant is already in: a vegetative plant may become\nFlowering or a Mother, while a flowering or mother plant may not become a\nMother. That is why this endpoint has three variants rather than one.\n",
        "properties": {
          "growthPhases": {
            "type": "array",
            "description": "The phases a plant in this phase may be moved into. Three entries from\nVegetative, two from Flowering or Mother.\n",
            "items": {
              "type": "object"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "tags": {
            "type": "array",
            "description": "Plant tags the modal preloaded. Often null; the companion source\nendpoint is the supported way to find one.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "locations": {
            "type": "array",
            "description": "Locations the plant may be moved into at the same time.",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcChangePlantGrowthPhasePayload": {
        "type": "array",
        "description": "Batch of plants to move between growth phases, most commonly Vegetative to\nFlowering.\n\n`newLocationId` and `newTagId` are required keys but accept `null`. Metrc\nexpects to see them whether or not the plant is being moved or retagged.\n",
        "items": {
          "type": "object",
          "properties": {
            "growthDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plant entered the new growth phase.",
              "example": "2026-08-26"
            },
            "growthPhase": {
              "type": "string",
              "enum": [
                "Vegetative",
                "Flowering"
              ],
              "description": "The growth phase to move the plant into.",
              "example": "Flowering"
            },
            "id": {
              "type": "integer",
              "description": "Plant ID changing phase.\n\nTo find eligible plants, use the [Vegetative Plants](#/Plants/get_v2_plants_vegetative)\nendpoint.\n",
              "example": 987654
            },
            "newLocationId": {
              "type": "integer",
              "nullable": true,
              "description": "Location ID to move the plant into, or `null` to leave it in place.\n",
              "example": null
            },
            "newTagId": {
              "type": "integer",
              "nullable": true,
              "description": "Replacement plant tag ID, or `null` to keep the current tag.\n",
              "example": null
            }
          },
          "required": [
            "growthDate",
            "growthPhase",
            "id",
            "newLocationId",
            "newTagId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcChangePlantLocationsInputsResponse": {
        "type": "object",
        "description": "Reference data for moving a plant to a different location.\n",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the plant.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Populated only where the state\nmodels them; Maine and Michigan among the indexed states.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcChangePlantLocationsPayload": {
        "type": "array",
        "description": "Batch of plants to move to a different location.\n\n`sublocationId` applies only in Maine and Michigan.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant ID.",
              "example": 90210
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID of the new location.\n\nTo find eligible locations, use the\n[Change Plant Locations Inputs](#/Plants/get_v2_plants_change_locations_inputs) endpoint.\n",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation within the new location. Maine and Michigan only.",
              "example": 678
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plant was moved.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "locationId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcChangePlantStrainsInputsResponse": {
        "type": "object",
        "description": "Reference data for reassigning a plant to a different strain.\n",
        "properties": {
          "strains": {
            "type": "array",
            "description": "Strains that can be assigned.",
            "items": {
              "$ref": "#/components/schemas/MetrcStrain"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcChangePlantStrainsPayload": {
        "type": "array",
        "description": "Batch of plants to reassign to a different strain.",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant ID.",
              "example": 90210
            },
            "strainId": {
              "type": "integer",
              "description": "Strain ID to assign.\n\nTo find eligible strains, use the\n[Change Plant Strains Inputs](#/Plants/get_v2_plants_change_strains_inputs) endpoint.\n",
              "example": 737
            }
          },
          "required": [
            "id",
            "strainId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreateHarvestSchedulesInputsResponse": {
        "type": "object",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations a harvest can be scheduled for.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations, where the state supports them.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "string",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true
          }
        }
      },
      "MetrcCreateHarvestSchedulesPayload": {
        "type": "array",
        "description": "Batch of harvest schedules to create.\n\n**Missouri only.** Harvest scheduling is a state-specific Metrc feature; this\nendpoint is registered everywhere but only Missouri's Metrc build serves it.\n",
        "items": {
          "type": "object",
          "properties": {
            "locationId": {
              "type": "integer",
              "description": "Location ID the harvest is scheduled for.\n\nTo find eligible locations, use\n[Create Harvest Schedules Inputs](#/Harvests/get_v2_harvests_schedules_create_inputs).\n",
              "example": 12345
            },
            "locationName": {
              "type": "string",
              "description": "Name of the location. Metrc's form posts the typeahead's text alongside\nits id; sending it is optional.\n",
              "example": "SBX Default Location Type Location 1"
            },
            "scheduledDate": {
              "type": "string",
              "format": "date",
              "description": "The date the harvest is scheduled to occur. Metrc rejects dates in the\npast.\n",
              "example": "2026-05-14"
            }
          },
          "required": [
            "locationId",
            "scheduledDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreateItemInputsResponse": {
        "type": "object",
        "properties": {
          "adding": {
            "type": "boolean",
            "description": "Indicates if items are being added.",
            "example": true
          },
          "items": {
            "type": "array",
            "description": "List of items.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "itemBrands": {
            "type": "array",
            "description": "List of item brands.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "itemCategories": {
            "type": "array",
            "description": "List of item categories.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "Unique identifier of the item category.",
                  "example": 301
                },
                "name": {
                  "type": "string",
                  "description": "Name of the item category.",
                  "example": "Biomass"
                },
                "productCategoryType": {
                  "type": "string",
                  "description": "Type of the product category.",
                  "example": "ShakeTrim"
                },
                "productCategoryTypeName": {
                  "type": "string",
                  "description": "Display name of the product category type.",
                  "example": "ShakeTrim"
                },
                "itemCategoryTypeName": {
                  "type": "string",
                  "description": "Display name of the item category type.",
                  "example": "ShakeTrim"
                },
                "quantityType": {
                  "type": "string",
                  "description": "Type of quantity measurement.",
                  "example": "WeightBased"
                },
                "quantityTypeName": {
                  "type": "string",
                  "description": "Display name of the quantity type.",
                  "example": "WeightBased"
                },
                "defaultLabTestingStateName": {
                  "type": "string",
                  "description": "Default lab testing state name.",
                  "example": "NotSubmitted"
                },
                "patientPurchaseAmountMultiplier": {
                  "type": "number",
                  "description": "Multiplier for patient purchase amount.",
                  "example": 1
                },
                "requiresApproval": {
                  "type": "boolean",
                  "description": "Indicates if item requires approval.",
                  "example": false
                },
                "requiresStrain": {
                  "type": "boolean",
                  "description": "Indicates if a strain is required.",
                  "example": false
                },
                "requiresItemBrand": {
                  "type": "boolean",
                  "description": "Indicates if an item brand is required.",
                  "example": false
                },
                "requiresAdministrationMethod": {
                  "type": "boolean",
                  "description": "Indicates if an administration method is required.",
                  "example": false
                },
                "requiresUnitCbdPercent": {
                  "type": "boolean",
                  "description": "Indicates if unit CBD percent is required.",
                  "example": false
                },
                "requiresUnitCbdContent": {
                  "type": "boolean",
                  "description": "Indicates if unit CBD content is required.",
                  "example": false
                },
                "requiresUnitCbdContentDose": {
                  "type": "boolean",
                  "description": "Indicates if unit CBD content dose is required.",
                  "example": false
                },
                "requiresUnitCbdAPercent": {
                  "type": "boolean",
                  "description": "Indicates if unit CBD-A percent is required.",
                  "example": false
                },
                "requiresUnitCbdAContent": {
                  "type": "boolean",
                  "description": "Indicates if unit CBD-A content is required.",
                  "example": false
                },
                "requiresUnitCbdAContentDose": {
                  "type": "boolean",
                  "description": "Indicates if unit CBD-A content dose is required.",
                  "example": false
                },
                "requiresUnitThcPercent": {
                  "type": "boolean",
                  "description": "Indicates if unit THC percent is required.",
                  "example": false
                },
                "requiresUnitThcContent": {
                  "type": "boolean",
                  "description": "Indicates if unit THC content is required.",
                  "example": false
                },
                "optionalUnitThcContent": {
                  "type": "boolean",
                  "description": "Indicates if unit THC content is optional.",
                  "nullable": true
                },
                "requiresUnitThcContentDose": {
                  "type": "boolean",
                  "description": "Indicates if unit THC content dose is required.",
                  "example": false
                },
                "requiresUnitThcAPercent": {
                  "type": "boolean",
                  "description": "Indicates if unit THC-A percent is required.",
                  "example": false
                },
                "requiresUnitThcAContent": {
                  "type": "boolean",
                  "description": "Indicates if unit THC-A content is required.",
                  "example": false
                },
                "requiresUnitThcAContentDose": {
                  "type": "boolean",
                  "description": "Indicates if unit THC-A content dose is required.",
                  "example": false
                },
                "requiresUnitVolume": {
                  "type": "boolean",
                  "description": "Indicates if unit volume is required.",
                  "example": false
                },
                "requiresUnitWeight": {
                  "type": "boolean",
                  "description": "Indicates if unit weight is required.",
                  "example": false
                },
                "requiresServingSize": {
                  "type": "boolean",
                  "description": "Indicates if serving size is required.",
                  "example": false
                },
                "requiresSupplyDurationDays": {
                  "type": "boolean",
                  "description": "Indicates if supply duration days is required.",
                  "example": false
                },
                "requiresNumberOfDoses": {
                  "type": "boolean",
                  "description": "Indicates if number of doses is required.",
                  "example": false
                },
                "calculateUnitQuantity": {
                  "type": "boolean",
                  "description": "Indicates if unit quantity should be calculated.",
                  "example": false
                },
                "unitQuantityMultiplier": {
                  "type": "number",
                  "description": "Multiplier for unit quantity calculation.",
                  "nullable": true
                },
                "unitQuantityUnitOfMeasureAbbreviation": {
                  "type": "string",
                  "description": "Unit of measure abbreviation for unit quantity.",
                  "nullable": true
                },
                "requiresPublicIngredients": {
                  "type": "boolean",
                  "description": "Indicates if public ingredients are required.",
                  "example": false
                },
                "requiresDescription": {
                  "type": "boolean",
                  "description": "Indicates if a description is required.",
                  "example": false
                },
                "requiresAllergens": {
                  "type": "boolean",
                  "description": "Indicates if allergens are required.",
                  "example": false
                },
                "requiresProductPhotos": {
                  "type": "integer",
                  "description": "Number of product photos required.",
                  "example": 0
                },
                "requiresProductPhotoDescription": {
                  "type": "boolean",
                  "description": "Indicates if product photo description is required.",
                  "example": false
                },
                "requiresLabelPhotos": {
                  "type": "integer",
                  "description": "Number of label photos required.",
                  "example": 0
                },
                "requiresLabelPhotoDescription": {
                  "type": "boolean",
                  "description": "Indicates if label photo description is required.",
                  "example": false
                },
                "requiresPackagingPhotos": {
                  "type": "integer",
                  "description": "Number of packaging photos required.",
                  "example": 0
                },
                "requiresPackagingPhotoDescription": {
                  "type": "boolean",
                  "description": "Indicates if packaging photo description is required.",
                  "example": false
                },
                "canContainSeeds": {
                  "type": "boolean",
                  "description": "Indicates if the item can contain seeds.",
                  "example": true
                },
                "canBePreTreated": {
                  "type": "boolean",
                  "description": "Indicates if the item can be pre-treated.",
                  "example": false
                },
                "canBeRemediated": {
                  "type": "boolean",
                  "description": "Indicates if the item can be remediated.",
                  "example": true
                },
                "canBeDecontaminated": {
                  "type": "boolean",
                  "description": "Indicates if the item can be decontaminated.",
                  "example": false
                },
                "canBeDestroyed": {
                  "type": "boolean",
                  "description": "Indicates if the item can be destroyed.",
                  "example": false
                },
                "useItemWeightAsPatientFlowerPurchased": {
                  "type": "boolean",
                  "description": "Indicates if item weight is used as patient flower purchased.",
                  "example": true
                },
                "useUnitTHCContentAsPatientFlowerPurchased": {
                  "type": "boolean",
                  "description": "Indicates if unit THC content is used as patient flower purchased.",
                  "nullable": true
                },
                "useItemWeightAsPatientConcentratePurchased": {
                  "type": "boolean",
                  "description": "Indicates if item weight is used as patient concentrate purchased.",
                  "example": false
                },
                "useItemWeightAsPatientInfusedPurchased": {
                  "type": "boolean",
                  "description": "Indicates if item weight is used as patient infused purchased.",
                  "example": false
                },
                "expirationDateConfiguration": {
                  "type": "string",
                  "description": "Expiration date configuration setting.",
                  "example": "Off"
                },
                "expirationConfigurationState": {
                  "type": "string",
                  "description": "Expiration configuration state.",
                  "nullable": true
                },
                "sellByDateConfiguration": {
                  "type": "string",
                  "description": "Sell by date configuration setting.",
                  "example": "Off"
                },
                "sellByConfigurationState": {
                  "type": "string",
                  "description": "Sell by configuration state.",
                  "nullable": true
                },
                "useByDateConfiguration": {
                  "type": "string",
                  "description": "Use by date configuration setting.",
                  "example": "Off"
                },
                "useByConfigurationState": {
                  "type": "string",
                  "description": "Use by configuration state.",
                  "nullable": true
                },
                "expirationDateDaysInAdvance": {
                  "type": "integer",
                  "description": "Number of days in advance for expiration date.",
                  "nullable": true
                },
                "sellByDateDaysInAdvance": {
                  "type": "integer",
                  "description": "Number of days in advance for sell by date.",
                  "nullable": true
                },
                "useByDateDaysInAdvance": {
                  "type": "integer",
                  "description": "Number of days in advance for use by date.",
                  "nullable": true
                },
                "minConsecutiveSourcesForRTA": {
                  "type": "integer",
                  "description": "Minimum consecutive sources for RTA.",
                  "nullable": true
                },
                "minDaysForRTA": {
                  "type": "integer",
                  "description": "Minimum days for RTA.",
                  "nullable": true
                },
                "maxDaysForRecoveryAfterFailure": {
                  "type": "integer",
                  "description": "Maximum days for recovery after failure.",
                  "nullable": true
                },
                "maxDaystoReachMinSources": {
                  "type": "integer",
                  "description": "Maximum days to reach minimum sources.",
                  "nullable": true
                },
                "minNewPassesInRecoveryWindow": {
                  "type": "integer",
                  "description": "Minimum new passes in recovery window.",
                  "nullable": true
                },
                "maxDaysToMaintainRTA": {
                  "type": "integer",
                  "description": "Maximum days to maintain RTA.",
                  "nullable": true
                },
                "maxRepackageDistanceFromSource": {
                  "type": "integer",
                  "description": "Maximum repackage distance from source.",
                  "nullable": true
                },
                "maxDaysWithoutTestedSource": {
                  "type": "integer",
                  "description": "Maximum days without a tested source.",
                  "nullable": true
                },
                "facilityTypes": {
                  "type": "array",
                  "description": "List of facility types for this item category.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "productCategoryId": {
                        "type": "integer",
                        "description": "Unique identifier of the product category.",
                        "example": 301
                      },
                      "facilityTypeId": {
                        "type": "integer",
                        "description": "Unique identifier of the facility type.",
                        "example": 201
                      },
                      "facilityTypeName": {
                        "type": "string",
                        "description": "Name of the facility type.",
                        "example": "Comprehensive Cultivator"
                      },
                      "canCreateFromProductionBatch": {
                        "type": "boolean",
                        "description": "Indicates if items can be created from a production batch.",
                        "example": true
                      },
                      "canCreateFromHarvestBatch": {
                        "type": "boolean",
                        "description": "Indicates if items can be created from a harvest batch.",
                        "example": true
                      },
                      "includeInItemCatalog": {
                        "type": "boolean",
                        "description": "Indicates if the item is included in the item catalog.",
                        "example": false
                      }
                    }
                  }
                },
                "requiresProductPDFDocuments": {
                  "type": "integer",
                  "description": "Number of product PDF documents required.",
                  "example": 0
                }
              }
            }
          },
          "processingJobCategories": {
            "type": "array",
            "description": "List of processing job categories.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "processingJobTypes": {
            "type": "array",
            "description": "List of processing job types.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "strains": {
            "type": "array",
            "description": "List of available strains for item creation.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "Unique identifier of the strain.",
                  "example": 12345
                },
                "name": {
                  "type": "string",
                  "description": "Name of the strain.",
                  "example": "Pineapple Express"
                },
                "testingStatus": {
                  "type": "string",
                  "description": "Testing status of the strain.",
                  "example": "ThirdParty"
                },
                "thcLevel": {
                  "type": "number",
                  "description": "THC level of the strain.",
                  "nullable": true
                },
                "cbdLevel": {
                  "type": "number",
                  "description": "CBD level of the strain.",
                  "nullable": true
                },
                "indicaPercentage": {
                  "type": "number",
                  "description": "Indica percentage of the strain.",
                  "example": 100
                },
                "sativaPercentage": {
                  "type": "number",
                  "description": "Sativa percentage of the strain.",
                  "example": 0
                },
                "isUsed": {
                  "type": "boolean",
                  "description": "Indicates if the strain is in use.",
                  "example": true
                },
                "isArchived": {
                  "type": "boolean",
                  "description": "Indicates if the strain is archived.",
                  "example": false
                }
              }
            }
          },
          "unitsOfMeasure": {
            "type": "array",
            "description": "List of available units of measure for item creation.",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "productBrands": {
            "type": "array",
            "description": "List of available product brands.",
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "List of item details.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcCreateItemsPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "The name of the item",
              "example": "Blue Dream Flower"
            },
            "productCategoryId": {
              "type": "integer",
              "description": "The product category ID",
              "example": 1
            },
            "strainId": {
              "type": "integer",
              "description": "The strain ID",
              "example": 737
            },
            "unitOfMeasureId": {
              "type": "integer",
              "description": "The unit of measure ID",
              "example": 2
            },
            "administrationMethod": {
              "type": "string",
              "description": "The administration method. Required whenever the chosen category reports requiresAdministrationMethod in GET /v2/items/create/inputs; Metrc rejects the create without it.",
              "example": "Inhalation"
            },
            "allergens": {
              "type": "string",
              "description": "Allergens information",
              "example": ""
            },
            "description": {
              "type": "string",
              "description": "The item description",
              "example": ""
            },
            "itemBrandId": {
              "type": "integer",
              "description": "The item brand ID",
              "example": null
            },
            "numberOfDoses": {
              "type": "integer",
              "description": "The number of doses",
              "example": null
            },
            "publicIngredients": {
              "type": "string",
              "description": "Public ingredients information",
              "example": ""
            },
            "servingSize": {
              "type": "string",
              "description": "The serving size",
              "example": ""
            },
            "supplyDurationDays": {
              "type": "integer",
              "description": "The supply duration in days",
              "example": null
            },
            "unitCbdAContent": {
              "type": "number",
              "description": "CBD-A content of one unit, in unitCbdAContentUoMId. Required whenever the chosen category reports requiresUnitCbdAContent in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitCbdAContentDose": {
              "type": "number",
              "description": "CBD-A content of one dose, in unitCbdAContentDoseUoMId. Required whenever the chosen category reports requiresUnitCbdAContentDose in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitCbdAContentDoseUoMId": {
              "type": "integer",
              "description": "The unit CBD-A content dose unit of measure ID",
              "example": null
            },
            "unitCbdAContentUoMId": {
              "type": "integer",
              "description": "The unit CBD-A content unit of measure ID",
              "example": null
            },
            "unitCbdAPercent": {
              "type": "number",
              "description": "CBD-A percentage of one unit, from 0 to 100. Required whenever the chosen category reports requiresUnitCbdAPercent in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitCbdContent": {
              "type": "number",
              "description": "CBD content of one unit, in unitCbdContentUoMId. Required whenever the chosen category reports requiresUnitCbdContent in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitCbdContentDose": {
              "type": "number",
              "description": "CBD content of one dose, in unitCbdContentDoseUoMId. Required whenever the chosen category reports requiresUnitCbdContentDose in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitCbdContentDoseUoMId": {
              "type": "integer",
              "description": "The unit CBD content dose unit of measure ID",
              "example": null
            },
            "unitCbdContentUoMId": {
              "type": "integer",
              "description": "The unit CBD content unit of measure ID",
              "example": null
            },
            "unitCbdPercent": {
              "type": "number",
              "description": "CBD percentage of one unit, from 0 to 100. Required whenever the chosen category reports requiresUnitCbdPercent in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitThcAContent": {
              "type": "number",
              "description": "THC-A content of one unit, in unitThcAContentUoMId. Required whenever the chosen category reports requiresUnitThcAContent in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitThcAContentDose": {
              "type": "number",
              "description": "THC-A content of one dose, in unitThcAContentDoseUoMId. Required whenever the chosen category reports requiresUnitThcAContentDose in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitThcAContentDoseUoMId": {
              "type": "integer",
              "description": "The unit THC-A content dose unit of measure ID",
              "example": null
            },
            "unitThcAContentUoMId": {
              "type": "integer",
              "description": "The unit THC-A content unit of measure ID",
              "example": null
            },
            "unitThcAPercent": {
              "type": "number",
              "description": "THC-A percentage of one unit, from 0 to 100. Required whenever the chosen category reports requiresUnitThcAPercent in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitThcContent": {
              "type": "number",
              "description": "THC content of one whole unit, in unitThcContentUoMId. For a 10-piece 100mg edible this is 100; the per-piece amount goes in unitThcContentDose. Required whenever the chosen category reports requiresUnitThcContent in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitThcContentDose": {
              "type": "number",
              "description": "THC content of one dose, in unitThcContentDoseUoMId. For a 10-piece 100mg edible this is 10. Required whenever the chosen category reports requiresUnitThcContentDose in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitThcContentDoseUoMId": {
              "type": "integer",
              "description": "The unit THC content dose unit of measure ID",
              "example": null
            },
            "unitThcContentUoMId": {
              "type": "integer",
              "description": "The unit THC content unit of measure ID",
              "example": null
            },
            "unitThcPercent": {
              "type": "number",
              "description": "THC percentage of one unit, from 0 to 100. Required whenever the chosen category reports requiresUnitThcPercent in GET /v2/items/create/inputs.",
              "example": null
            },
            "unitVolume": {
              "type": "number",
              "description": "The unit volume",
              "example": null
            },
            "unitVolumeUoMId": {
              "type": "integer",
              "description": "The unit volume unit of measure ID",
              "example": null
            },
            "unitWeight": {
              "type": "number",
              "description": "The unit weight",
              "example": null
            },
            "unitWeightUoMId": {
              "type": "integer",
              "description": "The unit weight unit of measure ID",
              "example": null
            },
            "productPhotoDescription": {
              "type": "string",
              "description": "Description for the product photo",
              "example": ""
            },
            "productPhotos": {
              "type": "array",
              "description": "Product photos to attach to the item",
              "items": {
                "$ref": "#/components/schemas/MetrcItemImageReference"
              }
            },
            "labelPhotoDescription": {
              "type": "string",
              "description": "Description for the label photo",
              "example": ""
            },
            "labelPhotos": {
              "type": "array",
              "description": "Label photos to attach to the item",
              "items": {
                "$ref": "#/components/schemas/MetrcItemImageReference"
              }
            },
            "packagingPhotoDescription": {
              "type": "string",
              "description": "Description for the packaging photo",
              "example": ""
            },
            "packagingPhotos": {
              "type": "array",
              "description": "Packaging photos to attach to the item",
              "items": {
                "$ref": "#/components/schemas/MetrcItemImageReference"
              }
            },
            "itemIngredients": {
              "type": "array",
              "description": "Ingredients for the item",
              "items": {
                "$ref": "#/components/schemas/MetrcItemIngredientEntry"
              }
            }
          },
          "required": [
            "name",
            "productCategoryId",
            "unitOfMeasureId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePackageInputsResponse": {
        "type": "object",
        "properties": {
          "allowedProductionLabTestingStates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LabTestingStates"
            }
          },
          "allowedProductionProductCategoryIds": {
            "type": "array",
            "items": {
              "type": "integer"
            },
            "example": [
              1,
              2,
              3
            ]
          },
          "details": {
            "type": "string",
            "nullable": true
          },
          "harvestBatches": {
            "type": "string",
            "nullable": true
          },
          "growthPhase": {
            "type": "integer",
            "format": "int32",
            "example": 0
          },
          "isProductDestruction": {
            "type": "boolean",
            "example": false
          },
          "itemCategoryIds": {
            "type": "string",
            "nullable": true
          },
          "items": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": []
          },
          "labTestBatches": {
            "type": "string",
            "nullable": true
          },
          "locations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          },
          "packages": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": []
          },
          "patientAffiliations": {
            "type": "string",
            "nullable": true
          },
          "plantBatches": {
            "type": "string",
            "nullable": true
          },
          "plants": {
            "type": "string",
            "nullable": true
          },
          "remediationMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcRemediationMethod"
            }
          },
          "submitForTesting": {
            "type": "boolean",
            "example": false
          },
          "tags": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "unitsOfMeasure": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          }
        }
      },
      "MetrcCreatePackagesFromHarvestsInputsResponse": {
        "type": "object",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the new package.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations, where the state supports them.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "unitsOfMeasure": {
            "type": "array",
            "description": "Units of measure available for the package and its ingredients.",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "remediationMethods": {
            "type": "array",
            "description": "Remediation methods available to this licence. Empty in states that do not\noffer remediation on package creation.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcRemediationMethod"
            }
          },
          "itemCategoryIds": {
            "type": "array",
            "description": "Item category IDs recognised by this licence.",
            "nullable": true,
            "items": {
              "type": "integer"
            }
          },
          "allowedProductionProductCategoryIds": {
            "type": "array",
            "description": "Item category IDs eligible to be marked as a production batch.",
            "nullable": true,
            "items": {
              "type": "integer"
            }
          },
          "harvestBatches": {
            "type": "array",
            "description": "Pre-selected harvests, when the modal is opened from a harvest selection.\nEmpty in the modal-only fetch used by this endpoint.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "string",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true
          }
        }
      },
      "MetrcCreatePackagesFromHarvestsPayload": {
        "type": "array",
        "description": "Batch of packages to create from harvest material. Each entry consumes\nquantity from one or more harvests via its `ingredients` array.\n\n**The property set is a union across states.** Metrc's Create Packages modal\ndoes not offer the same fields everywhere: California has no location or\nremediation fields, Missouri has no sublocation, and trade sample and donation\nflags appear in some states only. Send what your state supports; T3 supplies\nthe defaults Metrc's own form would send and omits the rest.\n",
        "items": {
          "type": "object",
          "properties": {
            "tagId": {
              "type": "integer",
              "description": "Tag ID for the new package.\n\nTo find eligible tags, use\n[Create Packages from Harvests Source Tags](#/Harvests/get_v2_harvests_create_packages_source_tags).\n",
              "example": 987654
            },
            "itemId": {
              "type": "integer",
              "description": "Item ID for the new package.\n\nTo find eligible items, use\n[Create Packages from Harvests Source Items](#/Harvests/get_v2_harvests_create_packages_source_items).\n",
              "example": 12345
            },
            "unitOfMeasureId": {
              "type": "integer",
              "description": "Numeric ID of the package's unit of measure. Metrc applies this to every\ningredient row as well, so `ingredients[].unitOfMeasureId` may be\nomitted.\n",
              "example": 4
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID for the new package. Not used in every state \u2014 California's\nmodal has no location field.\n\nTo find eligible locations, use\n[Create Packages from Harvests Inputs](#/Harvests/get_v2_harvests_create_packages_inputs).\n",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation ID within the location. Only used by states that model\nsublocations.\n",
              "example": 678
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the package was created.",
              "example": "2026-05-14"
            },
            "note": {
              "type": "string",
              "description": "Free-text note on the package.",
              "example": "First pull off the drying rack"
            },
            "expirationDate": {
              "type": "string",
              "format": "date",
              "description": "Expiration date. Required only where the item's configuration demands\nit; Metrc's form gates the field on the selected item.\n",
              "example": "2027-05-14"
            },
            "sellByDate": {
              "type": "string",
              "format": "date",
              "description": "Sell-by date. Required only where the item's configuration demands it.\n",
              "example": "2027-05-14"
            },
            "useByDate": {
              "type": "string",
              "format": "date",
              "description": "Use-by date. Required only where the item's configuration demands it.\n",
              "example": "2027-05-14"
            },
            "isProductionBatch": {
              "type": "boolean",
              "description": "Marks the package as a production batch. Set automatically when\n`productionBatchNumber` is supplied.\n",
              "example": false
            },
            "productionBatchNumber": {
              "type": "string",
              "description": "Production batch identifier. Required when `isProductionBatch` is true.\n",
              "example": "PB-2026-05-14-001"
            },
            "remediateProduct": {
              "type": "boolean",
              "description": "Marks the package as remediated. Only used by states that offer\nremediation on package creation.\n",
              "example": false
            },
            "remediationMethodId": {
              "type": "integer",
              "description": "Numeric ID of the remediation method. Required when `remediateProduct`\nis true.\n\nTo find eligible methods, use\n[Create Packages from Harvests Inputs](#/Harvests/get_v2_harvests_create_packages_inputs).\n",
              "example": 3
            },
            "remediationDate": {
              "type": "string",
              "format": "date",
              "description": "Date the remediation was performed. Required when `remediateProduct` is\ntrue.\n",
              "example": "2026-05-14"
            },
            "remediationSteps": {
              "type": "string",
              "description": "Description of the remediation performed. Required when\n`remediateProduct` is true.\n",
              "example": "Re-tested after drying to spec"
            },
            "productRequiresRemediation": {
              "type": "boolean",
              "description": "Flags the product as requiring remediation. Maine only among the\nindexed states.\n",
              "example": false
            },
            "isDonation": {
              "type": "boolean",
              "description": "Marks the package as a donation. Not offered in every state.\n",
              "example": false
            },
            "isTradeSample": {
              "type": "boolean",
              "description": "Marks the package as a trade sample. Not offered in every state.\n",
              "example": false
            },
            "ingredients": {
              "type": "array",
              "description": "The harvest material consumed by this package. At least one entry is\nrequired.\n",
              "items": {
                "type": "object",
                "properties": {
                  "harvestId": {
                    "type": "integer",
                    "description": "Harvest ID to draw material from.\n\nTo find eligible harvests, use\n[Create Packages from Harvests Source Harvests](#/Harvests/get_v2_harvests_create_packages_source_harvests).\nThat endpoint returns Metrc's own eligible set; the general\nharvest listings are not a substitute.\n",
                    "example": 304
                  },
                  "quantity": {
                    "type": "number",
                    "format": "float",
                    "minimum": 0.0001,
                    "description": "Quantity drawn from this harvest.",
                    "example": 100.5
                  },
                  "unitOfMeasureId": {
                    "type": "integer",
                    "description": "Numeric ID of the unit of measure for this ingredient. Defaults to\nthe package's own `unitOfMeasureId`, which is what Metrc's form\nsends.\n",
                    "example": 4
                  }
                },
                "required": [
                  "harvestId",
                  "quantity"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "tagId",
            "itemId",
            "unitOfMeasureId",
            "actualDate",
            "ingredients"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePackagesFromPackagesPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date of the package creation.",
              "example": "2024-08-08"
            },
            "ingredients": {
              "type": "array",
              "description": "List of package ingredients used to create this new package.",
              "items": {
                "type": "object",
                "properties": {
                  "finishDate": {
                    "type": "string",
                    "format": "date",
                    "description": "If you are using the rest of an ingredient package and wish to finish it, pass a finish date.\n",
                    "example": "2024-08-08"
                  },
                  "packageId": {
                    "type": "integer",
                    "format": "int32",
                    "description": "Package ID of the source ingredient package\nTo find source ingredient packages, use the [Source Packages](#/Create%20Package/get_v2_packages_create_source_packages) endpoint.\n",
                    "example": 5077333
                  },
                  "quantity": {
                    "type": "number",
                    "format": "float",
                    "description": "Quantity used from the ingredient package.",
                    "example": 56.3
                  },
                  "unitOfMeasureId": {
                    "type": "integer",
                    "description": "Unit of measure for the quantity",
                    "example": 4
                  }
                },
                "required": [
                  "packageId",
                  "quantity",
                  "unitOfMeasureId"
                ],
                "additionalProperties": false
              }
            },
            "itemId": {
              "type": "integer",
              "description": "Item ID of the item for the new package\n\nTo find eligible items, use the [Source Items](#/Create%20Package/get_v2_packages_create_source_items)\nendpoint.\n\nAlternately, if `useSameItem` is true, the `itemId` must be copied from the source package.\n",
              "example": 1160223
            },
            "useSameItem": {
              "type": "boolean",
              "description": "Indicates if the source package's item should be used for the new package.\n\nUsed when this license does not own the item, but needs to create new sublot packages. \n\n**Note:** you must still pass the `itemId` field with the item ID from the source package.\n"
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID of the location for the new package\nTo find eligible source locations, use the [Create Package Inputs](#/Create%20Package/get_v2_packages_create_inputs) endpoint.\n**Note**: This is not required in some states. ",
              "example": 50901
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation ID of the sublocation for the new package\n\nTo find eligible source sublocations, use the [Create Package Inputs](#/Create%20Package/get_v2_packages_create_inputs)\nendpoint.\n\n**Note**: This is not used in some states, and not required in some states.\n",
              "example": 30123
            },
            "note": {
              "type": "string",
              "description": "Notes about the package creation, if needed.\n",
              "example": "This is a package note"
            },
            "productionBatchNumber": {
              "type": "string",
              "description": "The production batch number of the new package, if needed. Sending one\nmarks the package as a production batch.\n",
              "example": "BATCH 1234"
            },
            "remediationMethodId": {
              "type": "integer",
              "description": "Remediates the new package with this method. Applies only to a\nproduction batch, so send `productionBatchNumber` too, along with\n`remediationDate` and `remediationSteps`. Omit all three to leave the\npackage unremediated. Metrc refuses it unless the source product is in\na failed lab testing state. Not used in California.\n\nTo find remediation methods, use the\n[Create Packages Inputs](#/Packages/get_v2_packages_create_inputs)\nendpoint.\n",
              "example": 1
            },
            "remediationDate": {
              "type": "string",
              "format": "date",
              "description": "The date the package was remediated. Sent with `remediationMethodId`.",
              "example": "2026-05-14"
            },
            "remediationSteps": {
              "type": "string",
              "description": "How the package was remediated. Sent with `remediationMethodId`.",
              "example": "Dried and cured for an additional week."
            },
            "quantity": {
              "type": "number",
              "format": "float",
              "description": "Quantity of the new package.",
              "example": 123.45
            },
            "tagId": {
              "type": "integer",
              "description": "Tag ID of the tag used for the new package\nTo find eligible source tags, use the [Create Package Inputs](#/Create%20Package/get_v2_packages_create_inputs) endpoint.\n",
              "example": 1527333
            },
            "unitOfMeasureId": {
              "type": "integer",
              "description": "Unit of measure identifier for the package.",
              "example": 1
            },
            "expirationDate": {
              "type": "string",
              "format": "date",
              "description": "The expiration date of the package, if needed. \n*Only applicable in some Metrc states*\n",
              "example": ""
            },
            "useByDate": {
              "type": "string",
              "format": "date",
              "description": "The use by date of the package, if needed.\n*Only applicable in some Metrc states*\n",
              "example": ""
            },
            "isDonation": {
              "type": "boolean",
              "description": "Indicates if the package is a donation.\n\n*Only applicable in some Metrc states.* Do not set this value if not needed.\n",
              "example": true
            },
            "isTradeSample": {
              "type": "boolean",
              "description": "Indicates if the package is a trade sample.\n\n*Only applicable in some Metrc states.* Do not set this value if not needed.\n",
              "example": true
            },
            "sellByDate": {
              "type": "string",
              "format": "date",
              "description": "The sell by date of the package, if needed.\n*Only applicable in some Metrc states*\n",
              "example": "2024-08-08"
            }
          },
          "required": [
            "actualDate",
            "ingredients",
            "quantity",
            "tagId",
            "unitOfMeasureId",
            "itemId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePackagesFromPlantBatchesInputsResponse": {
        "type": "object",
        "description": "Reference data for creating a package from a plant batch.\n",
        "properties": {
          "items": {
            "type": "array",
            "description": "Items the new package can be created as.",
            "items": {
              "$ref": "#/components/schemas/MetrcItem"
            }
          },
          "tags": {
            "type": "array",
            "description": "Package tags available for the new package.",
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the new package. Null in California, whose\nmodal carries no location field.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Populated only where the state\nmodels sublocations; Maine and Michigan among the indexed states.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches, when the modal is opened from a grid\nselection. Empty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcCreatePackagesFromPlantBatchesPayload": {
        "type": "array",
        "description": "Create packages of immature plants from one or more plant batches.\n\n`locationId` is carried everywhere except California; `sublocationId` in\nMaine and Michigan only. `isDonation` (California, Michigan),\n`isTradeSample` (Maine, Michigan) and `isFromMotherPlant` (California) are\ncheckboxes: send `true` to set one, and omit it otherwise. Metrc's own form\nomits an unchecked box entirely, so sending `false` is not equivalent.\n\n`isFromMotherPlant` is what distinguishes a package cut from a mother plant\nbatch from an ordinary immature-plant package on the same endpoint.\n\nThe three date fields are shown only for items configured to require them,\nso none is required here.\n",
        "items": {
          "type": "object",
          "properties": {
            "plantBatchId": {
              "type": "integer",
              "description": "Plant batch ID the package is cut from.\n\nTo find eligible plant batches, use the\n[Create Packages from Plant Batches Source Plant Batches](#/Plant%20Batches/get_v2_plantbatches_create_packages_source_plantbatches)\nendpoint.\n",
              "example": 8891
            },
            "count": {
              "type": "integer",
              "minimum": 1,
              "description": "How many immature plants go into the package.",
              "example": 25
            },
            "itemId": {
              "type": "integer",
              "description": "Item ID for the new package.\n\nTo find eligible items, use the\n[Create Packages from Plant Batches Source Items](#/Plant%20Batches/get_v2_plantbatches_create_packages_source_items)\nendpoint.\n",
              "example": 7316223
            },
            "tagId": {
              "type": "integer",
              "description": "Package tag ID for the new package.\n\nTo find eligible tags, use the\n[Create Packages from Plant Batches Source Tags](#/Plant%20Batches/get_v2_plantbatches_create_packages_source_tags)\nendpoint.\n",
              "example": 442199
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID for the new package. Carried in every state except\nCalifornia.\n\nTo find eligible locations, use the\n[Create Packages from Plant Batches Inputs](#/Plant%20Batches/get_v2_plantbatches_create_packages_inputs)\nendpoint.\n",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation within the location. Maine and Michigan only.",
              "example": 678
            },
            "note": {
              "type": "string",
              "description": "Free text recorded against the package.",
              "example": "Cut for propagation"
            },
            "isDonation": {
              "type": "boolean",
              "description": "Mark the package as a donation. California and Michigan. Send `true`\nor omit; `false` is not the same as omitting it.\n",
              "example": true
            },
            "isTradeSample": {
              "type": "boolean",
              "description": "Mark the package as a trade sample. Maine and Michigan. Send `true` or\nomit.\n",
              "example": true
            },
            "isFromMotherPlant": {
              "type": "boolean",
              "description": "Mark the package as cut from a mother plant batch. California. Send\n`true` or omit.\n",
              "example": true
            },
            "expirationDate": {
              "type": "string",
              "format": "date",
              "description": "Expiration date. Required only for items Metrc configures to demand one.\n",
              "example": "2027-05-14"
            },
            "sellByDate": {
              "type": "string",
              "format": "date",
              "description": "Sell-by date. Required only for items Metrc configures to demand one.\n",
              "example": "2027-05-14"
            },
            "useByDate": {
              "type": "string",
              "format": "date",
              "description": "Use-by date. Required only for items Metrc configures to demand one.\n",
              "example": "2027-05-14"
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the package was created.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "plantBatchId",
            "count",
            "itemId",
            "tagId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePackagesFromPlantsInputsResponse": {
        "type": "object",
        "description": "Reference data for packaging vegetative plants.\n",
        "properties": {
          "items": {
            "type": "array",
            "description": "Items the new package can be created as.",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcItem"
            }
          },
          "tags": {
            "type": "array",
            "description": "Tags the modal preloaded. Often null: Metrc serves most tag lists\nthrough the companion source endpoint rather than with the modal.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the plant.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Populated only where the state\nmodels them; Maine and Michigan among the indexed states.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcCreatePackagesFromPlantsPayload": {
        "type": "array",
        "description": "Create packages from one or more vegetative plants.\n\nNot available in California, whose vegetative grid does not exist. Each\nentry packages the plants named in its `ingredients` array.\n\n`isDonation` (Michigan), `isTradeSample` (Maine, Michigan) and\n`isFromMotherPlant` are checkboxes: send `true` to set one and omit it\notherwise. Metrc's own form omits an unchecked box entirely, so sending\n`false` is not equivalent.\n\nThe three date fields are shown only for items configured to require them,\nso none is required here.\n",
        "items": {
          "type": "object",
          "properties": {
            "tagId": {
              "type": "integer",
              "description": "Package tag for the new package.\n\nTo find eligible tags, use the\n[Create Packages from Plants Source Tags](#/Plants/get_v2_plants_create_packages_source_tags)\nendpoint.\n",
              "example": 442199
            },
            "itemId": {
              "type": "integer",
              "description": "Item for the new package.\n\nTo find eligible items, use the\n[Create Packages from Plants Source Items](#/Plants/get_v2_plants_create_packages_source_items)\nendpoint.\n",
              "example": 7316223
            },
            "locationId": {
              "type": "integer",
              "description": "Location for the new package.",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation within the location. Maine and Michigan only.",
              "example": 678
            },
            "ingredients": {
              "type": "array",
              "minItems": 1,
              "description": "The plants going into the package. Find eligible plants with the\n[Create Packages from Plants Source Plants](#/Plants/get_v2_plants_create_packages_source_plants)\nendpoint.\n",
              "items": {
                "type": "object",
                "properties": {
                  "plantId": {
                    "type": "integer",
                    "description": "Plant ID.",
                    "example": 90210
                  },
                  "quantity": {
                    "type": "number",
                    "minimum": 1,
                    "description": "How much of the plant goes into the package. Carried by Maine\nalone; omit it elsewhere.\n",
                    "example": 1
                  }
                },
                "required": [
                  "plantId"
                ],
                "additionalProperties": false
              }
            },
            "note": {
              "type": "string",
              "description": "Free text recorded against the package.",
              "example": "Cut for propagation"
            },
            "isDonation": {
              "type": "boolean",
              "description": "Mark as a donation. Michigan. Send `true` or omit.",
              "example": true
            },
            "isTradeSample": {
              "type": "boolean",
              "description": "Mark as a trade sample. Maine and Michigan. Send `true` or omit.",
              "example": true
            },
            "isFromMotherPlant": {
              "type": "boolean",
              "description": "Mark as cut from a mother plant. Send `true` or omit.",
              "example": true
            },
            "expirationDate": {
              "type": "string",
              "format": "date",
              "description": "Required only for items Metrc configures to demand one.",
              "example": "2027-05-14"
            },
            "sellByDate": {
              "type": "string",
              "format": "date",
              "description": "Required only for items Metrc configures to demand one.",
              "example": "2027-05-14"
            },
            "useByDate": {
              "type": "string",
              "format": "date",
              "description": "Required only for items Metrc configures to demand one.",
              "example": "2027-05-14"
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the package was created.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "tagId",
            "itemId",
            "locationId",
            "ingredients",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePlantBatchPackageFromPlantInputsResponse": {
        "type": "object",
        "description": "Reference data for creating an immature plant package from a mother plant.\n",
        "properties": {
          "plantBatchTypes": {
            "type": "array",
            "description": "Plant batch types, such as Clone and Seed.",
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcCreatePlantBatchPackageFromPlantPayload": {
        "type": "array",
        "description": "Create a package of immature plants cut from a mother plant.\n\n**California only.** Elsewhere Metrc offers no such modal; the equivalent is\n[Create Packages from Plant Batches](#/Plant%20Batches/post_v2_plantbatches_create_packages)\nwith `isFromMotherPlant`.\n\nOpened from the flowering grid, so the plant named here is a flowering plant\nbeing used as a mother. The three date fields are shown only for items Metrc\nconfigures to require them, so none is required here.\n",
        "items": {
          "type": "object",
          "properties": {
            "plantId": {
              "type": "integer",
              "description": "The mother plant the clones are cut from.\n\nTo find eligible plants, use the\n[Create Plant Batch Package Source Plants](#/Plants/get_v2_plants_create_plantbatch_package_source_plants)\nendpoint.\n",
              "example": 90210
            },
            "plantsCount": {
              "type": "integer",
              "minimum": 1,
              "description": "How many immature plants the package holds.",
              "example": 25
            },
            "plantBatchTypeId": {
              "type": "integer",
              "description": "Numeric ID of the plant batch type, such as Clone or Seed.\n\nTo find valid types, use the\n[Create Plant Batch Package Inputs](#/Plants/get_v2_plants_create_plantbatch_package_inputs)\nendpoint.\n",
              "example": 1
            },
            "itemId": {
              "type": "integer",
              "description": "Item for the new package.\n\nTo find eligible items, use the\n[Create Plant Batch Package Source Items](#/Plants/get_v2_plants_create_plantbatch_package_source_items)\nendpoint.\n",
              "example": 7316223
            },
            "tagId": {
              "type": "integer",
              "description": "Package tag for the new package.\n\nTo find eligible tags, use the\n[Create Plant Batch Package Source Tags](#/Plants/get_v2_plants_create_plantbatch_package_source_tags)\nendpoint.\n",
              "example": 442199
            },
            "note": {
              "type": "string",
              "description": "Free text recorded against the package.",
              "example": "Cut for propagation"
            },
            "isDonation": {
              "type": "boolean",
              "description": "Mark the package as a donation. Send `true` or omit; `false` is not\nthe same as omitting it, because Metrc's own form omits an unchecked\nbox entirely.\n",
              "example": true
            },
            "expirationDate": {
              "type": "string",
              "format": "date",
              "description": "Required only for items Metrc configures to demand one.",
              "example": "2027-05-14"
            },
            "sellByDate": {
              "type": "string",
              "format": "date",
              "description": "Required only for items Metrc configures to demand one.",
              "example": "2027-05-14"
            },
            "useByDate": {
              "type": "string",
              "format": "date",
              "description": "Required only for items Metrc configures to demand one.",
              "example": "2027-05-14"
            },
            "packageDate": {
              "type": "string",
              "format": "date",
              "description": "The date the package was created.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "plantId",
            "plantsCount",
            "plantBatchTypeId",
            "itemId",
            "tagId",
            "packageDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePlantBatchesFromPackagesInputsResponse": {
        "type": "object",
        "description": "Option lists for building a\n[Create Plant Batches From Packages](#/Plant%20Batches/post_v2_plantbatches_create_from_packages)\npayload.\n\nSeveral fields are `null` in most states. Metrc populates them only where the\nstate's workflow uses them \u2014 notably `tags`, which is populated in California,\nwhere a plant batch is identified by a tag, and null elsewhere.\n",
        "properties": {
          "plantBatchTypes": {
            "type": "array",
            "description": "Plant batch types valid for this license, supplying `plantBatchTypeId`.\n",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "Numeric ID of the plant batch type.",
                  "example": 1
                },
                "name": {
                  "type": "string",
                  "description": "Display name of the plant batch type.",
                  "example": "Clone"
                },
                "canBeCloned": {
                  "type": "boolean",
                  "description": "Whether plants of this type may be cloned.",
                  "example": true
                },
                "lastModified": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the plant batch type was last modified."
                }
              }
            }
          },
          "strains": {
            "type": "array",
            "description": "Strains available to plant, supplying `strainId`.",
            "items": {
              "$ref": "#/components/schemas/MetrcStrain"
            }
          },
          "locations": {
            "type": "array",
            "description": "Locations available to the new plant batch, supplying `locationId`.\nFilter on `forPlantBatches` to exclude locations that cannot hold one.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "unitsOfMeasure": {
            "type": "array",
            "description": "Units available for `quantity`, supplying `unitOfMeasureId`.",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "packages": {
            "type": "array",
            "description": "Source packages the plants may be drawn from.",
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "Default values Metrc pre-populates the form with.",
            "items": {
              "type": "object"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "Numeric ID of the growth phase new plantings enter.",
            "example": 0
          },
          "tags": {
            "type": "array",
            "nullable": true,
            "description": "Plant batch tags. **Populated in California only**, where\n`plantBatchName` is a tag's label. `null` in states where\n`plantBatchName` is free text.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "plants": {
            "type": "array",
            "nullable": true,
            "description": "Unused by this modal in most states.",
            "items": {
              "type": "object"
            }
          },
          "plantBatches": {
            "type": "array",
            "nullable": true,
            "description": "Unused by this modal in most states.",
            "items": {
              "type": "object"
            }
          },
          "sublocations": {
            "type": "array",
            "nullable": true,
            "description": "Sublocations, where the state and facility use them.",
            "items": {
              "type": "object"
            }
          },
          "patientAffiliations": {
            "type": "array",
            "nullable": true,
            "description": "Patient affiliations, where the state uses them.",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcCreatePlantBatchesFromPackagesPayload": {
        "type": "array",
        "description": "Batch of plant batches to create. Each entry draws from a source package and\ncreates an immature plant batch of `plantsCount` plants.\n\n**How much is drawn depends on the source package.** When the source is a\nPlant Package, `plantsCount` is the draw and `quantity` is not used. For any\nother package Metrc requires an explicit `quantity` and `unitOfMeasureId`,\nand rejects the request without them:\n\n> Package ABCDEF0100000200000000041 is a non-Plant Package and requires an\n> Adjustment Amount to be specified.\n\nSupplying both is always safe, so pass them unless the source is known to be\na Plant Package.\n\nThe new plants are **immature**. To reach the Vegetative or Flowering state,\nfollow with [Promote Immature Plants](#/Plant%20Batches/post_v2_plantbatches_promote),\nwhich assigns a plant tag to each promoted plant.\n",
        "items": {
          "type": "object",
          "properties": {
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plant batch was created.",
              "example": "2026-08-26"
            },
            "plantedDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plants were planted.",
              "example": "2026-08-26"
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID for the new plant batch.\n\nTo find eligible locations, use the [Active Locations](#/Locations/get_v2_locations_active)\nendpoint.\n",
              "example": 12345
            },
            "packageId": {
              "type": "integer",
              "description": "Package ID of the source package the plants are drawn from.\n\nTo find eligible packages, use the [Active Packages](#/Packages/get_v2_packages_active)\nendpoint.\n",
              "example": 5077333
            },
            "plantBatchName": {
              "type": "string",
              "minLength": 1,
              "description": "Name for the new plant batch.\n\nWhere a state identifies a plant batch by tag, pass that tag's label,\nwhich you can read from the [Available Tags](#/Tags/get_v2_tags_available)\nendpoint. Elsewhere this is free text. Metrc takes a string either way.\n",
              "example": "AAAFF03000001F9000000003"
            },
            "plantBatchTypeId": {
              "type": "integer",
              "description": "Numeric ID of the plant batch type, such as Clone or Seed.",
              "example": 1
            },
            "plantsCount": {
              "type": "integer",
              "minimum": 1,
              "description": "How many plants the new batch contains. Also the amount drawn from the\nsource package when that package is a Plant Package.\n",
              "example": 25
            },
            "strainId": {
              "type": "integer",
              "description": "Strain ID for the new plants.\n\nTo find eligible strains, use the [Strains](#/Strains/get_v2_strains)\nendpoint.\n",
              "example": 737
            },
            "quantity": {
              "type": "number",
              "format": "float",
              "minimum": 0,
              "exclusiveMinimum": true,
              "description": "Amount drawn from the source package, called the Adjustment Amount by\nMetrc.\n\n**Required unless the source is a Plant Package**, where the draw comes\nfrom `plantsCount` instead. Omitting it for any other package type is\nrejected.\n",
              "example": 25
            },
            "unitOfMeasureId": {
              "type": "integer",
              "description": "Unit of measure for `quantity`, which must be the source package's own\nunit. Required whenever `quantity` is.\n",
              "example": 4
            }
          },
          "required": [
            "actualDate",
            "plantedDate",
            "locationId",
            "packageId",
            "plantBatchName",
            "plantBatchTypeId",
            "plantsCount",
            "strainId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePlantBatchesInputsResponse": {
        "type": "object",
        "description": "Reference data for creating a plant batch from an existing plant batch.\n",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the plant batch.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Populated only where the state\nmodels sublocations; Maine and Michigan among the indexed states.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "strains": {
            "type": "array",
            "description": "Strains that can be assigned.",
            "items": {
              "$ref": "#/components/schemas/MetrcStrain"
            }
          },
          "plantBatchTypes": {
            "type": "array",
            "description": "Plant batch types, such as Clone and Seed.",
            "items": {
              "type": "object"
            }
          },
          "tags": {
            "type": "array",
            "description": "Tags available to identify the new plant batch. Populated in California,\nthe only indexed state that identifies a plant batch by tag; null\nelsewhere, where `plantBatchName` is used instead.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches, when the modal is opened from a grid\nselection. Empty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcCreatePlantBatchesPayload": {
        "type": "array",
        "description": "Batch of plant batches to create from an existing plant batch.\n\n**How a new batch is identified differs by state.** California carries a tag\nand no name, so pass `tagId`. Maine, Michigan and Missouri carry a free-text\nname and no tag, so pass `plantBatchName`. Unlike\n[Create Plant Batches from Packages](#/Plant%20Batches/post_v2_plantbatches_create_from_packages),\nwhere one string field serves every state, these two are genuinely different\nfields on genuinely different modals.\n\n`sublocationId` applies only in Maine and Michigan.\n",
        "items": {
          "type": "object",
          "properties": {
            "plantBatchTypeId": {
              "type": "integer",
              "description": "Numeric ID of the plant batch type, such as Clone or Seed.\n\nTo find valid types, use the\n[Create Plant Batches Inputs](#/Plant%20Batches/get_v2_plantbatches_create_from_plantbatches_inputs)\nendpoint.\n",
              "example": 1
            },
            "plantsCount": {
              "type": "integer",
              "minimum": 1,
              "description": "How many plants the new batch contains.",
              "example": 25
            },
            "strainId": {
              "type": "integer",
              "description": "Strain ID for the new plants.\n\nTo find eligible strains, use the\n[Create Plant Batches Inputs](#/Plant%20Batches/get_v2_plantbatches_create_from_plantbatches_inputs)\nendpoint.\n",
              "example": 737
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID for the new plant batch.\n\nTo find eligible locations, use the\n[Create Plant Batches Inputs](#/Plant%20Batches/get_v2_plantbatches_create_from_plantbatches_inputs)\nendpoint.\n",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation within the new location. Maine and Michigan only.\n",
              "example": 678
            },
            "plantBatchName": {
              "type": "string",
              "minLength": 1,
              "description": "Name for the new plant batch. Maine, Michigan and Missouri; pass\n`tagId` instead in California.\n",
              "example": "Reserve Stock 0426"
            },
            "tagId": {
              "type": "integer",
              "description": "Tag ID identifying the new plant batch. California only; pass\n`plantBatchName` instead elsewhere.\n\nTo find eligible tags, use the\n[Create Plant Batches Inputs](#/Plant%20Batches/get_v2_plantbatches_create_from_plantbatches_inputs)\nendpoint.\n",
              "example": 442199
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plant batch was created.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "plantBatchTypeId",
            "plantsCount",
            "strainId",
            "locationId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePlantHarvestPayload": {
        "type": "array",
        "description": "Batch of plants to harvest. Each plant is removed from the Flowering state\nand rolled up into the harvest record identified by `harvestName`. Plants\nin the same batch \u2014 or in subsequent requests within the state-specific\nreuse window (typically 24 hours) \u2014 that share a `harvestName` are joined\ninto a single harvest on the Metrc side.\n",
        "items": {
          "type": "object",
          "properties": {
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the harvest occurred.",
              "example": "2026-05-14"
            },
            "harvestName": {
              "type": "string",
              "description": "Name of the harvest batch. Use the same `harvestName` across rows (or\nacross requests, within the reuse window) to combine plants into a\nsingle harvest record.\n",
              "example": "MyHarvest-2026-05-14"
            },
            "id": {
              "type": "integer",
              "description": "Plant ID of a plant currently in the Flowering state.\n\nTo find eligible plants, use the [Flowering Plants](#/Plants/get_v2_plants_flowering)\nendpoint.\n",
              "example": 987654
            },
            "weight": {
              "type": "number",
              "format": "float",
              "minimum": 0,
              "exclusiveMinimum": true,
              "description": "Wet weight harvested from this plant.",
              "example": 1234.5
            },
            "dryingLocationId": {
              "type": "integer",
              "description": "Location ID of the drying-room location.\n\nTo find eligible locations, use the [Active Locations](#/Locations/get_v2_locations_active)\nendpoint.\n",
              "example": 12345
            },
            "unitOfWeightId": {
              "type": "integer",
              "description": "Numeric ID of the weight unit (grams, kilograms, ounces, pounds).",
              "example": 1
            }
          },
          "required": [
            "actualDate",
            "harvestName",
            "id",
            "weight",
            "dryingLocationId",
            "unitOfWeightId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePlantManicurePayload": {
        "type": "array",
        "description": "Batch of plants to manicure (partial harvest). Each plant remains alive in\nthe Flowering state and can be harvested or manicured again later. The\nmanicured material is rolled up into the harvest record identified by\n`harvestName`. Plants in the same batch \u2014 or in subsequent requests within\nthe state-specific reuse window (typically 24 hours) \u2014 that share a\n`harvestName` are joined into a single harvest on the Metrc side.\n",
        "items": {
          "type": "object",
          "properties": {
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the manicure occurred.",
              "example": "2026-05-14"
            },
            "harvestName": {
              "type": "string",
              "description": "Name of the harvest batch the manicured material rolls up under. Use\nthe same `harvestName` across rows (or across requests, within the\nreuse window) to combine plants into a single harvest record.\n",
              "example": "MyManicure-2026-05-14"
            },
            "id": {
              "type": "integer",
              "description": "Plant ID of a plant currently in the Flowering state. The plant\nremains in Flowering after the manicure.\n\nTo find eligible plants, use the [Flowering Plants](#/Plants/get_v2_plants_flowering)\nendpoint.\n",
              "example": 987654
            },
            "weight": {
              "type": "number",
              "format": "float",
              "minimum": 0,
              "exclusiveMinimum": true,
              "description": "Wet weight of the material manicured from this plant.",
              "example": 120.0
            },
            "dryingLocationId": {
              "type": "integer",
              "description": "Location ID of the drying-room location.\n\nTo find eligible locations, use the [Active Locations](#/Locations/get_v2_locations_active)\nendpoint.\n",
              "example": 12345
            },
            "unitOfWeightId": {
              "type": "integer",
              "description": "Numeric ID of the weight unit (grams, kilograms, ounces, pounds).",
              "example": 1
            }
          },
          "required": [
            "actualDate",
            "harvestName",
            "id",
            "weight",
            "dryingLocationId",
            "unitOfWeightId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePlantingsFromPlantsInputsResponse": {
        "type": "object",
        "description": "Reference data for creating a plant batch from a plant.\n",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the plant.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Populated only where the state\nmodels them; Maine and Michigan among the indexed states.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "strains": {
            "type": "array",
            "description": "Strains that can be assigned.",
            "items": {
              "$ref": "#/components/schemas/MetrcStrain"
            }
          },
          "plantBatchTypes": {
            "type": "array",
            "description": "Plant batch types, such as Clone and Seed.",
            "items": {
              "type": "object"
            }
          },
          "tags": {
            "type": "array",
            "description": "Tags the modal preloaded. Often null: Metrc serves most tag lists\nthrough the companion source endpoint rather than with the modal.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcCreatePlantingsFromPlantsPayload": {
        "type": "array",
        "description": "Create plant batches from one or more plants, for example when taking clones\nfrom a mother.\n\n**How a new batch is identified differs by state.** California carries a tag\nand no name, so pass `tagId`. Maine, Michigan and Missouri carry a free-text\nname, so pass `plantBatchName`.\n\n`sublocationId` applies only in Maine and Michigan.\n",
        "items": {
          "type": "object",
          "properties": {
            "plantId": {
              "type": "integer",
              "description": "Plant the clones are taken from.\n\nTo find eligible plants, use the\n[Create Plantings Source Plants](#/Plants/get_v2_plants_create_plantings_source_plants) endpoint.\n",
              "example": 90210
            },
            "plantBatchTypeId": {
              "type": "integer",
              "description": "Numeric ID of the plant batch type, such as Clone or Seed.",
              "example": 1
            },
            "plantsCount": {
              "type": "integer",
              "minimum": 1,
              "description": "How many plants the new batch contains.",
              "example": 25
            },
            "strainId": {
              "type": "integer",
              "description": "Strain ID for the new plants.",
              "example": 737
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID for the new plant batch.",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation within the location. Maine and Michigan only.",
              "example": 678
            },
            "plantBatchName": {
              "type": "string",
              "minLength": 1,
              "description": "Name for the new plant batch. Maine, Michigan and Missouri; pass\n`tagId` instead in California.\n",
              "example": "Spring Clones A"
            },
            "tagId": {
              "type": "integer",
              "description": "Tag identifying the new plant batch. California only.\n",
              "example": 442199
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plant batch was created.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "plantId",
            "plantBatchTypeId",
            "plantsCount",
            "strainId",
            "locationId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreatePlantsFromPackagesInputsResponse": {
        "type": "object",
        "description": "Option lists for building a\n[Create Plants From Packages](#/Modify%20Plants/post_v2_plants_create_from_packages)\npayload.\n",
        "properties": {
          "plantBatchTypes": {
            "type": "array",
            "description": "Plant batch types, supplying `plantBatchTypeId`.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "Numeric ID of the plant batch type.",
                  "example": 1
                },
                "name": {
                  "type": "string",
                  "description": "Display name of the plant batch type.",
                  "example": "Clone"
                },
                "canBeCloned": {
                  "type": "boolean",
                  "description": "Whether plants of this type may be cloned.",
                  "example": true
                },
                "lastModified": {
                  "type": "string",
                  "format": "date-time",
                  "description": "When the plant batch type was last modified."
                }
              }
            }
          },
          "tagTypes": {
            "type": "array",
            "description": "Tag types, supplying `tagTypeId` in Maine.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "example": 2
                },
                "name": {
                  "type": "string",
                  "example": "Cannabis Plant"
                },
                "tagInventoryType": {
                  "type": "string",
                  "example": "CannabisPlant"
                },
                "maxGroupSize": {
                  "type": "integer",
                  "example": 1
                }
              }
            }
          },
          "strains": {
            "type": "array",
            "description": "Strains, supplying `strainId`.",
            "items": {
              "$ref": "#/components/schemas/MetrcStrain"
            }
          },
          "locations": {
            "type": "array",
            "description": "Locations, supplying `locationId`.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "nullable": true,
            "description": "Sublocations, supplying `sublocationId` where the state uses them.",
            "items": {
              "type": "object"
            }
          },
          "unitsOfMeasure": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "tags": {
            "type": "array",
            "nullable": true,
            "description": "Empty in the selection-free fetch this endpoint performs.",
            "items": {
              "type": "object"
            }
          },
          "groupTags": {
            "type": "array",
            "nullable": true,
            "description": "Empty in the selection-free fetch this endpoint performs.",
            "items": {
              "type": "object"
            }
          },
          "packages": {
            "type": "array",
            "nullable": true,
            "description": "Empty in the selection-free fetch this endpoint performs.",
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "nullable": true,
            "description": "Empty in the selection-free fetch this endpoint performs.",
            "items": {
              "type": "object"
            }
          },
          "patientAffiliations": {
            "type": "array",
            "nullable": true,
            "description": "Patient affiliations, where the state uses them.",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcCreatePlantsFromPackagesPayload": {
        "type": "array",
        "description": "Packages of vegetative plants to unpack into plants, the reverse of\n[Create Packages From Plants](#/Plants/post_v2_plants_create_packages). Metrc\ncalls this Unpack Plants. A package of immature plants cut from a plant batch\nis not offered. Not available in California.\n",
        "items": {
          "type": "object",
          "properties": {
            "packageId": {
              "type": "integer",
              "description": "Package ID of the package of plants.\n\nTo find eligible packages, use the\n[Create Plants From Packages Source Packages](#/Modify%20Plants/get_v2_plants_create_from_packages_source_packages)\nendpoint.\n",
              "example": 12345
            },
            "plantBatchTypeId": {
              "type": "integer",
              "description": "Plant batch type ID, from `plantBatchTypes` on the\n[Create Plants From Packages Inputs](#/Modify%20Plants/get_v2_plants_create_from_packages_inputs)\nendpoint.\n",
              "example": 1
            },
            "tagTypeId": {
              "type": "integer",
              "description": "Tag type ID, from `tagTypes` on the inputs endpoint. Required in Maine;\nnot used in other states.\n",
              "example": 2
            },
            "plantsCount": {
              "type": "integer",
              "description": "How many plants to unpack.",
              "example": 10
            },
            "startingTagId": {
              "type": "integer",
              "description": "Tag ID of the first plant tag.\n\nTo find eligible tags, use the\n[Create Plants From Packages Source Tags](#/Modify%20Plants/get_v2_plants_create_from_packages_source_tags)\nendpoint.\n",
              "example": 54321
            },
            "endingTagId": {
              "type": "integer",
              "description": "Tag ID of the last plant tag in the range.",
              "example": 54330
            },
            "strainId": {
              "type": "integer",
              "description": "Strain ID, from `strains` on the inputs endpoint.",
              "example": 1009
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID, from `locations` on the inputs endpoint.",
              "example": 505
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation ID, from `sublocations` on the inputs endpoint. Maine and\nMichigan only.\n",
              "example": 12
            },
            "plantedDate": {
              "type": "string",
              "format": "date",
              "example": "2026-05-14"
            },
            "vegetativeDate": {
              "type": "string",
              "format": "date",
              "example": "2026-05-14"
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "example": "2026-05-14"
            }
          },
          "required": [
            "packageId",
            "plantBatchTypeId",
            "plantsCount",
            "strainId",
            "locationId",
            "plantedDate",
            "vegetativeDate",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreateStrainsPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "description": "The name of the strain",
              "example": "Blue Dream"
            },
            "cbdLevel": {
              "type": "number",
              "format": "int8",
              "description": "The strain's CBD Level",
              "example": 5
            },
            "thcLevel": {
              "type": "number",
              "format": "int8",
              "description": "The strain's THC Level",
              "example": 5
            },
            "indicaPercentage": {
              "type": "number",
              "format": "float",
              "description": "The percentage of indica in the strain",
              "example": 60.0
            },
            "sativaPercentage": {
              "type": "number",
              "format": "float",
              "description": "The percentage of sativa in the strain",
              "example": 40.0
            },
            "testingStatus": {
              "type": "string",
              "enum": [
                "None",
                "InHouse",
                "ThirdParty"
              ],
              "description": "The current testing status of the strain",
              "example": "None"
            }
          },
          "required": [
            "name",
            "cbdLevel",
            "thcLevel",
            "indicaPercentage",
            "sativaPercentage",
            "testingStatus"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreateTestingPackagesPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date of the package creation.",
              "example": "2026-03-12"
            },
            "ingredients": {
              "type": "array",
              "description": "List of package ingredients used to create this new testing package.",
              "items": {
                "type": "object",
                "properties": {
                  "finishDate": {
                    "type": "string",
                    "format": "date",
                    "description": "If you are using the rest of an ingredient package and wish\nto finish it, pass a finish date.\n",
                    "example": "2026-03-12"
                  },
                  "packageId": {
                    "type": "integer",
                    "format": "int32",
                    "description": "Package ID of the source ingredient package.\n\nTo find source ingredient packages, use the [Source Packages](#/Package%20Testing/get_v2_packages_create_testing_source_packages)\nendpoint.\n",
                    "example": 27301
                  },
                  "quantity": {
                    "type": "number",
                    "format": "float",
                    "description": "Quantity used from the ingredient package.",
                    "example": 1
                  },
                  "unitOfMeasureId": {
                    "type": "integer",
                    "description": "Unit of measure for the quantity.",
                    "example": 4
                  }
                },
                "required": [
                  "packageId",
                  "quantity",
                  "unitOfMeasureId"
                ],
                "additionalProperties": false
              }
            },
            "itemId": {
              "type": "integer",
              "description": "Item ID of the item for the new testing package.\n\nTo find eligible items, use the [Source Items](#/Package%20Testing/get_v2_packages_create_testing_source_items)\nendpoint.\n\nIf `useSameItem` is true, pass the source package's item ID.\n",
              "example": 6645
            },
            "useSameItem": {
              "type": "boolean",
              "description": "Indicates if the source package's item should be used for the new testing package.\n\nRecommended for testing packages, since a sample represents its source. Metrc's own\nSubmit for Testing form sends it.\n\n**Note:** you must still pass the `itemId` field with the item ID from the source package.\n",
              "example": true
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID of the location for the new testing package.\n\nTo find eligible source locations, use the [Create Testing Package Inputs](#/Package%20Testing/get_v2_packages_create_testing_inputs)\nendpoint.\n",
              "example": 505
            },
            "note": {
              "type": "string",
              "description": "Notes about the package creation, if needed.",
              "example": ""
            },
            "quantity": {
              "type": "number",
              "format": "float",
              "description": "Quantity of the new testing package.",
              "example": 1
            },
            "tagId": {
              "type": "integer",
              "description": "Tag ID of the tag used for the new testing package.\n\nTo find eligible source tags, use the [Source Tags](#/Package%20Testing/get_v2_packages_create_testing_source_tags)\nendpoint.\n",
              "example": 513154
            },
            "unitOfMeasureId": {
              "type": "integer",
              "description": "Unit of measure identifier for the package.",
              "example": 4
            },
            "expirationDate": {
              "type": "string",
              "format": "date",
              "description": "The expiration date of the package, if needed.",
              "example": "2026-09-22"
            },
            "sellByDate": {
              "type": "string",
              "format": "date",
              "description": "The sell by date of the package, if needed.",
              "example": "2026-09-22"
            },
            "useByDate": {
              "type": "string",
              "format": "date",
              "description": "The use by date of the package, if needed.",
              "example": "2026-09-22"
            },
            "requiredLabTestBatches": {
              "type": "array",
              "description": "List of lab test batch IDs required for this testing package.\n\nTo find eligible lab test batches, use the [Lab Batches](#/Package%20Testing/get_v2_packages_create_testing_lab_batches)\nendpoint.\n",
              "items": {
                "type": "integer"
              },
              "example": [
                1
              ]
            }
          },
          "required": [
            "actualDate",
            "ingredients",
            "quantity",
            "tagId",
            "unitOfMeasureId",
            "itemId",
            "requiredLabTestBatches"
          ],
          "additionalProperties": false
        }
      },
      "MetrcCreateTransferInputsResponse": {
        "type": "object",
        "properties": {
          "adding": {
            "type": "boolean",
            "description": "Indicates if the entity is being added.",
            "example": true
          },
          "daysWholesalePriceCanEdit": {
            "type": "integer",
            "description": "Number of days the wholesale price can be edited.",
            "example": 0
          },
          "defaultPhoneNumberForQuestions": {
            "type": "string",
            "description": "Default phone number for questions.",
            "example": "5555551234"
          },
          "destinationFacilities": {
            "type": "array",
            "description": "List of destination facilities.",
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "object",
            "description": "Additional details.",
            "nullable": true
          },
          "drivers": {
            "type": "array",
            "description": "List of drivers associated with the entity.",
            "items": {
              "$ref": "#/components/schemas/MetrcDriver"
            }
          },
          "editDeliveryDetailsOnly": {
            "type": "boolean",
            "description": "Indicates if only delivery details can be edited.",
            "example": false
          },
          "editWholesalePriceOnly": {
            "type": "boolean",
            "description": "Indicates if only the wholesale price can be edited.",
            "example": false
          },
          "facilities": {
            "type": "object",
            "description": "Details of the facilities."
          },
          "isOutgoingInactive": {
            "type": "boolean",
            "description": "Indicates if the outgoing status is inactive.",
            "example": false
          },
          "items": {
            "type": "object",
            "description": "List of items.",
            "nullable": true
          },
          "packages": {
            "type": "array",
            "description": "List of packages.",
            "items": {
              "type": "object"
            }
          },
          "selectedDeliveryIds": {
            "type": "array",
            "description": "List of selected delivery IDs.",
            "items": {
              "type": "integer"
            }
          },
          "selectedTransferIds": {
            "type": "array",
            "description": "List of selected transfer IDs.",
            "items": {
              "type": "integer"
            }
          },
          "selectedTransferTemplateIds": {
            "type": "object",
            "description": "List of selected transfer template IDs.",
            "nullable": true
          },
          "transferTypes": {
            "type": "array",
            "description": "List of transfer types.",
            "items": {
              "type": "object",
              "properties": {
                "facilityTypes": {
                  "type": "array",
                  "description": "List of facility types.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "facilityTypeId": {
                        "type": "integer",
                        "description": "Unique identifier of the facility type.",
                        "example": 1
                      },
                      "facilityTypeName": {
                        "type": "string",
                        "description": "Name of the facility type.",
                        "example": "Medical Cultivation"
                      }
                    }
                  }
                },
                "forExternalIncomingShipments": {
                  "type": "boolean",
                  "description": "Indicates if the transfer type is for external incoming shipments.",
                  "example": false
                },
                "forExternalOutgoingShipments": {
                  "type": "boolean",
                  "description": "Indicates if the transfer type is for external outgoing shipments.",
                  "example": false
                },
                "forLicensedShipments": {
                  "type": "boolean",
                  "description": "Indicates if the transfer type is for licensed shipments.",
                  "example": true
                },
                "id": {
                  "type": "integer",
                  "description": "Unique identifier of the transfer type.",
                  "example": 1
                },
                "maxDiscrepancyPercentage": {
                  "type": "number",
                  "description": "Maximum allowable discrepancy percentage.",
                  "nullable": true
                },
                "maximumWholesalePrice": {
                  "type": "number",
                  "description": "Maximum wholesale price allowed.",
                  "nullable": true
                },
                "minimumWholesalePrice": {
                  "type": "number",
                  "description": "Minimum wholesale price allowed.",
                  "nullable": true
                },
                "name": {
                  "type": "string",
                  "description": "Name of the transfer type.",
                  "example": "Affiliated Transfer"
                },
                "recipientAddressFieldsEnabled": {
                  "type": "boolean",
                  "description": "Indicates if recipient address fields are enabled.",
                  "example": true
                },
                "recipientLicenseNameFieldEnabled": {
                  "type": "boolean",
                  "description": "Indicates if the recipient license name field is enabled.",
                  "example": true
                },
                "recipientLicenseNumberFieldEnabled": {
                  "type": "boolean",
                  "description": "Indicates if the recipient license number field is enabled.",
                  "example": true
                },
                "recipientLicenseNumberFieldLabel": {
                  "type": "string",
                  "description": "Label for the recipient license number field.",
                  "example": "License No."
                },
                "requiresDestinationGrossWeight": {
                  "type": "boolean",
                  "description": "Indicates if the destination gross weight is required.",
                  "example": false
                },
                "requiresInvoiceNumber": {
                  "type": "boolean",
                  "description": "Whether `invoiceNumber` is required on each destination that uses this\ntransfer type.\n",
                  "example": false
                },
                "requiresPackagesGrossWeight": {
                  "type": "boolean",
                  "description": "Indicates if the package gross weight is required.",
                  "example": true
                },
                "requiresVehicleRegistrationNumber": {
                  "type": "boolean",
                  "description": "Whether `vehicleRegistrationNumber` is required on each entry in\na transporter's `transporterDetails`. Only this transfer type's\nflag decides it \u2014 the field is accepted either way.\n",
                  "example": false
                },
                "shipperAddressFieldsEnabled": {
                  "type": "boolean",
                  "description": "Indicates if the shipper address fields are enabled.",
                  "example": true
                },
                "shipperLicenseNameFieldEnabled": {
                  "type": "boolean",
                  "description": "Indicates if the shipper license name field is enabled.",
                  "example": true
                },
                "shipperLicenseNumberFieldEnabled": {
                  "type": "boolean",
                  "description": "Indicates if the shipper license number field is enabled.",
                  "example": true
                },
                "shipperLicenseNumberFieldLabel": {
                  "type": "string",
                  "description": "Label for the shipper license number field.",
                  "example": "License No."
                },
                "transactionType": {
                  "type": "string",
                  "description": "Type of transaction.",
                  "example": "Standard"
                },
                "transactionTypeName": {
                  "type": "string",
                  "description": "Name of the transaction type.",
                  "example": "Standard"
                },
                "transporterFieldsEnabled": {
                  "type": "boolean",
                  "description": "Indicates if transporter fields are enabled.",
                  "example": true
                }
              }
            }
          },
          "transporterFacilities": {
            "type": "array",
            "description": "List of transporter facilities.",
            "items": {
              "type": "object"
            },
            "example": []
          },
          "unitsOfMeasure": {
            "type": "array",
            "description": "List of units of measure.",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "vehicles": {
            "type": "array",
            "description": "List of vehicles associated with the facility.",
            "items": {
              "$ref": "#/components/schemas/MetrcVehicle"
            }
          }
        }
      },
      "MetrcCreateTransferLikeData": {
        "type": "object",
        "description": "A schema representing a shipment with details about destinations, transporters, and packages.",
        "required": [
          "destinations"
        ],
        "additionalProperties": false,
        "properties": {
          "destinations": {
            "type": "array",
            "description": "List of destinations for the shipment.",
            "items": {
              "type": "object",
              "required": [
                "estimatedArrivalDateTime",
                "estimatedDepartureDateTime",
                "plannedRoute",
                "recipientId",
                "transferTypeId"
              ],
              "additionalProperties": false,
              "properties": {
                "recipientId": {
                  "type": "number",
                  "format": "int32",
                  "description": "Facility ID of the destination facility.\n\nTo find eligible destination facilities, use the [Destinations](#/Create%20Transfer/get_v2_packages_create_transfer_destination_list)\nendpoint.\n",
                  "example": 123456
                },
                "plannedRoute": {
                  "type": "string",
                  "description": "Planned route for the shipment.",
                  "example": "Keep going, you can't miss it"
                },
                "transferTypeId": {
                  "type": "number",
                  "format": "int32",
                  "description": "Identifier for the type of transfer.",
                  "example": 8
                },
                "invoiceNumber": {
                  "type": "string",
                  "description": "Invoice number for this delivery. *Not all transfer types require this value.*\n\nThis value is only required if the `transferType` has `requiresInvoiceNumber=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                  "example": "123456-ABC"
                },
                "estimatedDepartureDateTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Estimated departure date and time.",
                  "example": "2023-05-23T21:22:35"
                },
                "estimatedArrivalDateTime": {
                  "type": "string",
                  "format": "date-time",
                  "description": "Estimated arrival date and time.",
                  "example": "2023-05-23T21:22:35"
                },
                "grossWeight": {
                  "type": "number",
                  "format": "float",
                  "description": "Gross weight of the transfer. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresDestinationGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                  "example": 123.45
                },
                "grossUnitOfWeightId": {
                  "type": "number",
                  "format": "int32",
                  "description": "Identifier for the unit of weight. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresDestinationGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                  "example": 4
                },
                "transporters": {
                  "type": "array",
                  "description": "List of transporters for the transfer.\n\n**Oregon:** a transfer has one transporter, driver and vehicle for all of its\ndestinations. Send at most one transporter with one `transporterDetails` entry;\nif several destinations include one, they must be identical. Layovers are not\nsupported.\n",
                  "items": {
                    "type": "object",
                    "required": [
                      "transporterId",
                      "phoneNumberForQuestions",
                      "transporterDetails"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "transporterId": {
                        "type": "number",
                        "format": "int32",
                        "description": "Facility ID of the transporter facility. \n\nTo find eligible transporter facilities, use the [Transporters](#/Create%20Transfer/get_v2_packages_create_transfer_transporter_list) endpoint.\n",
                        "example": 12345
                      },
                      "phoneNumberForQuestions": {
                        "type": "string",
                        "description": "Phone number for inquiries.",
                        "example": "5555551234"
                      },
                      "isLayover": {
                        "type": "boolean",
                        "default": false,
                        "description": "Whether this leg stops at a layover point, where the shipment is held\nbefore continuing on to the destination.\n\nA layover makes three otherwise-optional things required:\n`estimatedArrivalDateTime` and `estimatedDepartureDateTime` below, and a\n`driverLayoverLeg` on every entry in `transporterDetails`.\n\nMetrc only offers the layover checkbox when the transfer type has\n`transporterFieldsEnabled=true`. See the\n[create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs)\nendpoint.\n",
                        "example": false
                      },
                      "estimatedDepartureDateTime": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Estimated **check-out** from the layover point. *Layover legs only* \u2014\nrequired when `isLayover=true`, and dropped from the request otherwise,\nbecause Metrc's own form does not render the field on a non-layover leg.\n\nNot the same field as the destination's `estimatedDepartureDateTime`,\nwhich is departure from the origin facility.\n",
                        "example": "2023-05-23T21:22:35"
                      },
                      "estimatedArrivalDateTime": {
                        "type": "string",
                        "format": "date-time",
                        "description": "Estimated **check-in** at the layover point. *Layover legs only* \u2014 the\nsame condition as `estimatedDepartureDateTime` above.\n\nNot the same field as the destination's `estimatedArrivalDateTime`,\nwhich is arrival at the recipient facility.\n",
                        "example": "2023-05-23T20:22:35"
                      },
                      "transporterDetails": {
                        "type": "array",
                        "description": "Details of the transporter.",
                        "items": {
                          "type": "object",
                          "required": [
                            "driverName",
                            "driverOccupationalLicenseNumber",
                            "driverLicenseNumber",
                            "vehicleMake",
                            "vehicleModel",
                            "vehicleLicensePlateNumber"
                          ],
                          "additionalProperties": false,
                          "properties": {
                            "driverName": {
                              "type": "string",
                              "description": "Name of the driver.",
                              "example": "Jane Doe"
                            },
                            "driverOccupationalLicenseNumber": {
                              "type": "string",
                              "description": "Occupational license number of the driver.",
                              "example": "LIC12345"
                            },
                            "driverLicenseNumber": {
                              "type": "string",
                              "description": "Driver's license number.",
                              "example": "D1234567"
                            },
                            "driverLayoverLeg": {
                              "type": "string",
                              "description": "Which leg of a layover this driver covers. *Required on every entry\nwhen the transporter has `isLayover=true`*, and left empty otherwise.\n\n| Value | Leg |\n|---|---|\n| `ToLayover` | Origin to the layover point |\n| `FromLayover` | Layover point to the destination |\n| `FromAndToLayover` | Both legs, one driver |\n\nTwo entries \u2014 one `ToLayover` and one `FromLayover` \u2014 describe a driver\nswap at the layover point. A single `FromAndToLayover` entry describes\none driver running the whole route.\n",
                              "example": "",
                              "nullable": true
                            },
                            "vehicleMake": {
                              "type": "string",
                              "description": "Make of the vehicle.",
                              "example": "Ford"
                            },
                            "vehicleModel": {
                              "type": "string",
                              "description": "Model of the vehicle.",
                              "example": "GT"
                            },
                            "vehicleLicensePlateNumber": {
                              "type": "string",
                              "description": "License plate number of the vehicle.",
                              "example": "ABC1234"
                            },
                            "vehicleRegistrationNumber": {
                              "type": "string",
                              "description": "Vehicle registration number. *Not all transfer types require this\nvalue.*\n\nOnly required if the `transferType` has\n`requiresVehicleRegistrationNumber=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs)\nendpoint for details.\n",
                              "example": "REG12345"
                            }
                          }
                        }
                      }
                    }
                  }
                },
                "packages": {
                  "type": "array",
                  "description": "List of packages in the transfer.",
                  "items": {
                    "type": "object",
                    "required": [
                      "id"
                    ],
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "number",
                        "format": "int32",
                        "description": "Identifier of the package.",
                        "example": 123456
                      },
                      "wholesalePrice": {
                        "type": "number",
                        "format": "float",
                        "description": "Wholesale price of the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `transactionType=\"Wholesale\"`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                        "example": 200.0
                      },
                      "grossWeight": {
                        "type": "number",
                        "format": "float",
                        "description": "Gross weight of the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresPackagesGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                        "example": 123.45
                      },
                      "grossUnitOfWeightId": {
                        "type": "number",
                        "format": "int32",
                        "description": "Unit of weight identifier for the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresPackagesGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                        "example": 5
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "MetrcCreateTransferNoteInputsResponse": {
        "type": "object",
        "description": "The option lists Metrc's Add Notes modal loads. The only ID a\n[note](#/Transfers/post_v2_transfers_notes_create) payload needs is\nthe reason.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Reasons available when adding a note. Filter to\n`forTransferNotes: true`, and check `requiresNote` \u2014 it is true for most\nof them, and Metrc rejects a note without text.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcActionReason"
            }
          },
          "details": {
            "type": "array",
            "description": "The transfer the modal was opened against. Empty from this endpoint,\nwhich opens the modal with no transfer selected.\n",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcCreateTransferNotesPayload": {
        "type": "array",
        "description": "One entry per note. A note is attached to a shipment plan, is visible to both\nparties, and cannot be edited \u2014 only voided and replaced.\n",
        "items": {
          "type": "object",
          "required": [
            "shipmentPlanId",
            "reasonId",
            "note"
          ],
          "additionalProperties": false,
          "properties": {
            "shipmentPlanId": {
              "type": "integer",
              "description": "The transfer the note is attached to. This is the transfer's own `id`\nas it appears in the outgoing and incoming listings.\n",
              "example": 12345
            },
            "reasonId": {
              "type": "integer",
              "description": "Why the note is being added. From `actionReasons` on the\n[note inputs](#/Transfers/get_v2_transfers_notes_inputs)\nendpoint, filtered to `forTransferNotes: true`.\n",
              "example": 14
            },
            "note": {
              "type": "string",
              "description": "The note text.",
              "example": "Driver rerouted around a road closure on I-70"
            }
          }
        }
      },
      "MetrcCreateTransferTemplatesPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "description": "A schema representing a shipment with details about destinations, transporters, and packages.",
          "required": [
            "name",
            "destinations"
          ],
          "additionalProperties": false,
          "properties": {
            "name": {
              "type": "string",
              "example": "My template"
            },
            "destinations": {
              "type": "array",
              "description": "List of destinations for the shipment.",
              "items": {
                "type": "object",
                "required": [
                  "estimatedArrivalDateTime",
                  "estimatedDepartureDateTime",
                  "plannedRoute",
                  "recipientId",
                  "transferTypeId"
                ],
                "additionalProperties": false,
                "properties": {
                  "recipientId": {
                    "type": "number",
                    "format": "int32",
                    "description": "Facility ID of the destination facility.\n\nTo find eligible destination facilities, use the [Destinations](#/Create%20Transfer/get_v2_packages_create_transfer_destination_list)\nendpoint.\n",
                    "example": 123456
                  },
                  "plannedRoute": {
                    "type": "string",
                    "description": "Planned route for the shipment.",
                    "example": "Keep going, you can't miss it"
                  },
                  "transferTypeId": {
                    "type": "number",
                    "format": "int32",
                    "description": "Identifier for the type of transfer.",
                    "example": 8
                  },
                  "invoiceNumber": {
                    "type": "string",
                    "description": "Invoice number for this delivery. *Not all transfer types require this value.*\n\nThis value is only required if the `transferType` has `requiresInvoiceNumber=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                    "example": "123456-ABC"
                  },
                  "estimatedDepartureDateTime": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Estimated departure date and time.",
                    "example": "2023-05-23T21:22:35"
                  },
                  "estimatedArrivalDateTime": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Estimated arrival date and time.",
                    "example": "2023-05-23T21:22:35"
                  },
                  "grossWeight": {
                    "type": "number",
                    "format": "float",
                    "description": "Gross weight of the transfer. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresDestinationGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                    "example": 123.45
                  },
                  "grossUnitOfWeightId": {
                    "type": "number",
                    "format": "int32",
                    "description": "Identifier for the unit of weight. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresDestinationGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                    "example": 4
                  },
                  "transporters": {
                    "type": "array",
                    "description": "List of transporters for the transfer.\n\n**Oregon:** a transfer has one transporter, driver and vehicle for all of its\ndestinations. Send at most one transporter with one `transporterDetails` entry;\nif several destinations include one, they must be identical. Layovers are not\nsupported.\n",
                    "items": {
                      "type": "object",
                      "required": [
                        "transporterId",
                        "phoneNumberForQuestions",
                        "transporterDetails"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "transporterId": {
                          "type": "number",
                          "format": "int32",
                          "description": "Facility ID of the transporter facility. \n\nTo find eligible transporter facilities, use the [Transporters](#/Create%20Transfer/get_v2_packages_create_transfer_transporter_list) endpoint.\n",
                          "example": 12345
                        },
                        "phoneNumberForQuestions": {
                          "type": "string",
                          "description": "Phone number for inquiries.",
                          "example": "5555551234"
                        },
                        "isLayover": {
                          "type": "boolean",
                          "default": false,
                          "description": "Whether this leg stops at a layover point, where the shipment is held\nbefore continuing on to the destination.\n\nA layover makes three otherwise-optional things required:\n`estimatedArrivalDateTime` and `estimatedDepartureDateTime` below, and a\n`driverLayoverLeg` on every entry in `transporterDetails`.\n\nMetrc only offers the layover checkbox when the transfer type has\n`transporterFieldsEnabled=true`. See the\n[create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs)\nendpoint.\n",
                          "example": false
                        },
                        "estimatedDepartureDateTime": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Estimated **check-out** from the layover point. *Layover legs only* \u2014\nrequired when `isLayover=true`, and dropped from the request otherwise,\nbecause Metrc's own form does not render the field on a non-layover leg.\n\nNot the same field as the destination's `estimatedDepartureDateTime`,\nwhich is departure from the origin facility.\n",
                          "example": "2023-05-23T21:22:35"
                        },
                        "estimatedArrivalDateTime": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Estimated **check-in** at the layover point. *Layover legs only* \u2014 the\nsame condition as `estimatedDepartureDateTime` above.\n\nNot the same field as the destination's `estimatedArrivalDateTime`,\nwhich is arrival at the recipient facility.\n",
                          "example": "2023-05-23T20:22:35"
                        },
                        "transporterDetails": {
                          "type": "array",
                          "description": "Details of the transporter.",
                          "items": {
                            "type": "object",
                            "required": [
                              "driverName",
                              "driverOccupationalLicenseNumber",
                              "driverLicenseNumber",
                              "vehicleMake",
                              "vehicleModel",
                              "vehicleLicensePlateNumber"
                            ],
                            "additionalProperties": false,
                            "properties": {
                              "driverName": {
                                "type": "string",
                                "description": "Name of the driver.",
                                "example": "Jane Doe"
                              },
                              "driverOccupationalLicenseNumber": {
                                "type": "string",
                                "description": "Occupational license number of the driver.",
                                "example": "LIC12345"
                              },
                              "driverLicenseNumber": {
                                "type": "string",
                                "description": "Driver's license number.",
                                "example": "D1234567"
                              },
                              "driverLayoverLeg": {
                                "type": "string",
                                "description": "Which leg of a layover this driver covers. *Required on every entry\nwhen the transporter has `isLayover=true`*, and left empty otherwise.\n\n| Value | Leg |\n|---|---|\n| `ToLayover` | Origin to the layover point |\n| `FromLayover` | Layover point to the destination |\n| `FromAndToLayover` | Both legs, one driver |\n\nTwo entries \u2014 one `ToLayover` and one `FromLayover` \u2014 describe a driver\nswap at the layover point. A single `FromAndToLayover` entry describes\none driver running the whole route.\n",
                                "example": "",
                                "nullable": true
                              },
                              "vehicleMake": {
                                "type": "string",
                                "description": "Make of the vehicle.",
                                "example": "Ford"
                              },
                              "vehicleModel": {
                                "type": "string",
                                "description": "Model of the vehicle.",
                                "example": "GT"
                              },
                              "vehicleLicensePlateNumber": {
                                "type": "string",
                                "description": "License plate number of the vehicle.",
                                "example": "ABC1234"
                              },
                              "vehicleRegistrationNumber": {
                                "type": "string",
                                "description": "Vehicle registration number. *Not all transfer types require this\nvalue.*\n\nOnly required if the `transferType` has\n`requiresVehicleRegistrationNumber=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs)\nendpoint for details.\n",
                                "example": "REG12345"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "packages": {
                    "type": "array",
                    "description": "List of packages in the transfer.",
                    "items": {
                      "type": "object",
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "number",
                          "format": "int32",
                          "description": "Identifier of the package.",
                          "example": 123456
                        },
                        "wholesalePrice": {
                          "type": "number",
                          "format": "float",
                          "description": "Wholesale price of the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `transactionType=\"Wholesale\"`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                          "example": 200.0
                        },
                        "grossWeight": {
                          "type": "number",
                          "format": "float",
                          "description": "Gross weight of the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresPackagesGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                          "example": 123.45
                        },
                        "grossUnitOfWeightId": {
                          "type": "number",
                          "format": "int32",
                          "description": "Unit of weight identifier for the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresPackagesGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                          "example": 5
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "MetrcCreateTransfersPayload": {
        "type": "array",
        "items": {
          "$ref": "#/components/schemas/MetrcCreateTransferLikeData"
        }
      },
      "MetrcCredentialAuthPayload": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "Your Metrc username",
            "example": "user123"
          },
          "password": {
            "type": "string",
            "description": "Your Metrc password",
            "example": "secretpassword"
          },
          "hostname": {
            "$ref": "#/components/schemas/MetrcHostname"
          },
          "email": {
            "type": "string",
            "format": "email",
            "nullable": true,
            "description": "(Colorado only) Your Metrc login email",
            "example": "user@example.com"
          },
          "otp": {
            "type": "string",
            "pattern": "^[0-9]{6}$",
            "nullable": true,
            "description": "(Michigan only) a valid one-time password. 6 digit number.",
            "example": 123456
          }
        },
        "required": [
          "username",
          "password",
          "hostname"
        ],
        "additionalProperties": false
      },
      "MetrcDataimportCsvDocumentation": {
        "type": "object",
        "description": "CSV column documentation for a data import template",
        "properties": {
          "displayColumns": {
            "type": "array",
            "description": "List of column descriptors with name and optional flag",
            "items": {
              "$ref": "#/components/schemas/MetrcDataimportCsvDocumentationColumn"
            }
          },
          "csvFields": {
            "type": "array",
            "nullable": true,
            "description": "List of CSV field names, if available",
            "items": {
              "type": "string"
            }
          },
          "columnNames": {
            "type": "string",
            "description": "Comma-separated list of all column names",
            "example": "Label,Quantity,UnitOfMeasure,AdjustmentReason,ReasonNote,AdjustmentDate,EmployeeLicenseNumber"
          },
          "optionalColumns": {
            "type": "array",
            "description": "List of optional column names",
            "items": {
              "type": "string"
            }
          },
          "exampleLines": {
            "type": "string",
            "description": "Example CSV lines as a single string with line breaks"
          },
          "displayingHeaderRowMessage": {
            "type": "boolean",
            "description": "Whether to display a header row message"
          },
          "exampleLinesArray": {
            "type": "array",
            "description": "Example CSV lines as an array of strings",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "displayColumns",
          "columnNames",
          "optionalColumns",
          "exampleLines",
          "displayingHeaderRowMessage",
          "exampleLinesArray"
        ]
      },
      "MetrcDataimportCsvDocumentationColumn": {
        "type": "object",
        "description": "A column descriptor in the CSV documentation",
        "properties": {
          "name": {
            "type": "string",
            "description": "Column name",
            "example": "Label"
          },
          "optional": {
            "type": "boolean",
            "description": "Whether this column is optional",
            "example": false
          }
        },
        "required": [
          "name",
          "optional"
        ]
      },
      "MetrcDataimportTemplate": {
        "type": "object",
        "description": "A data import CSV template definition",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the template",
            "example": 21
          },
          "enumName": {
            "type": "string",
            "description": "The enum name for the template type",
            "example": "PackageAdjustment"
          },
          "csvMapClassName": {
            "type": "string",
            "description": "The CSV map class name used for parsing",
            "example": "AdjustPackagesImportCsvMap"
          },
          "csvMap": {
            "type": "string",
            "nullable": true,
            "description": "The CSV map definition, if available"
          },
          "name": {
            "type": "string",
            "description": "Human-readable name for the template",
            "example": "Package Adjustment"
          }
        },
        "required": [
          "id",
          "enumName",
          "csvMapClassName",
          "name"
        ]
      },
      "MetrcDeliveryPackage": {
        "type": "object",
        "properties": {
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model\n\nNote: This cannot be used to sort or filter.\n",
            "example": "MetrcPackage"
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc\n\nNote: This cannot be used to sort or filter.\n"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object\n\nNote: This cannot be used to sort or filter.\n"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. \n\nNote: This cannot be used to sort or filter.\n",
            "example": "TRANSFERRED_PACKAGE",
            "enum": [
              "TRANSFERRED_PACKAGE"
            ]
          },
          "containsRemediatedProduct": {
            "type": "boolean",
            "example": false
          },
          "donationFacilityLicenseNumber": {
            "type": "string",
            "nullable": true
          },
          "donationFacilityName": {
            "type": "string",
            "nullable": true
          },
          "grossUnitOfWeightAbbreviation": {
            "type": "string",
            "example": "g"
          },
          "grossWeight": {
            "type": "number",
            "nullable": true
          },
          "isDonation": {
            "type": "boolean",
            "example": false
          },
          "isTestingSample": {
            "type": "boolean",
            "example": false
          },
          "isTradeSample": {
            "type": "boolean",
            "example": false
          },
          "isTradeSamplePersistent": {
            "type": "boolean",
            "example": false
          },
          "itemBrandName": {
            "type": "string",
            "nullable": true
          },
          "itemServingSize": {
            "type": "string",
            "example": ""
          },
          "itemStrainName": {
            "type": "string",
            "nullable": true
          },
          "itemSupplyDurationDays": {
            "type": "number",
            "nullable": true
          },
          "itemUnitCbdContent": {
            "type": "number",
            "nullable": true
          },
          "itemUnitCbdContentDose": {
            "type": "number",
            "nullable": true
          },
          "itemUnitCbdContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitCbdContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitCbdPercent": {
            "type": "number",
            "nullable": true
          },
          "itemUnitQuantity": {
            "type": "number",
            "nullable": true
          },
          "itemUnitQuantityUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitThcContent": {
            "type": "number",
            "nullable": true
          },
          "itemUnitThcContentDose": {
            "type": "number",
            "nullable": true
          },
          "itemUnitThcContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitThcContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitThcPercent": {
            "type": "number",
            "nullable": true
          },
          "itemUnitVolume": {
            "type": "number",
            "nullable": true
          },
          "itemUnitVolumeUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitWeight": {
            "type": "number",
            "nullable": true
          },
          "itemUnitWeightUnitOfMeasureAbbreviation": {
            "type": "string",
            "example": "g"
          },
          "labTestingStateName": {
            "type": "string",
            "example": "TestPassed"
          },
          "multiHarvest": {
            "type": "boolean",
            "example": true
          },
          "multiPackage": {
            "type": "boolean",
            "example": false
          },
          "packageId": {
            "type": "number",
            "example": 123456
          },
          "packageLabel": {
            "type": "string",
            "example": "1A4000000000000000000001"
          },
          "packageType": {
            "type": "string",
            "example": "Product"
          },
          "packagedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "productCategoryName": {
            "type": "string",
            "example": "Infused-Edible"
          },
          "productName": {
            "type": "string",
            "example": "Edible Gummy 20mg (Sativa)"
          },
          "productRequiresRemediation": {
            "type": "boolean",
            "example": false
          },
          "productionBatchNumber": {
            "type": "string",
            "nullable": true
          },
          "receivedQuantity": {
            "type": "number",
            "example": 100
          },
          "receivedUnitOfMeasureAbbreviation": {
            "type": "string",
            "example": "g"
          },
          "receiverWholesalePrice": {
            "type": "number",
            "nullable": true
          },
          "remediationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "shipmentPackageState": {
            "type": "string",
            "example": "Accepted"
          },
          "shippedQuantity": {
            "type": "number",
            "example": 50
          },
          "shippedUnitOfMeasureAbbreviation": {
            "type": "string",
            "example": "g"
          },
          "shipperWholesalePrice": {
            "type": "number",
            "nullable": true
          },
          "sourceHarvestNames": {
            "type": "string",
            "example": "HARVEST 1, HARVEST 2"
          },
          "sourcePackageIsDonation": {
            "type": "boolean",
            "example": false
          },
          "sourcePackageIsTradeSample": {
            "type": "boolean",
            "example": false
          },
          "sourcePackageLabels": {
            "type": "string",
            "example": "1A4000000000000000000528, 1A4000000000000000000529"
          },
          "tradeSampleFacilityLicenseNumber": {
            "type": "string",
            "nullable": true
          },
          "tradeSampleFacilityName": {
            "type": "string",
            "nullable": true
          },
          "sellByDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "processingJobTypeId": {
            "type": "number",
            "nullable": true
          },
          "inTransitStatus": {
            "type": "string",
            "example": "InTransit"
          },
          "isInTransit": {
            "type": "boolean",
            "example": true
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "retailIdQrCount": {
            "type": "number",
            "nullable": true
          },
          "labTestStageId": {
            "type": "number",
            "nullable": true
          },
          "useByDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "productLabel": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "number",
            "nullable": true
          },
          "itemUnitThcAContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitCbdAContent": {
            "type": "number",
            "nullable": true
          },
          "itemUnitCbdAContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitThcAContent": {
            "type": "number",
            "nullable": true
          },
          "itemUnitCbdAContentDose": {
            "type": "number",
            "nullable": true
          },
          "itemUnitCbdAContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitThcAContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "itemUnitThcAPercent": {
            "type": "number",
            "nullable": true
          },
          "itemUnitThcAContentDose": {
            "type": "number",
            "nullable": true
          },
          "itemUnitCbdAPercent": {
            "type": "number",
            "nullable": true
          }
        }
      },
      "MetrcDestroyPlantBatchesInputsResponse": {
        "type": "object",
        "description": "Reference data for destroying immature plants from a plant batch.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Valid waste reasons. Each records whether it requires a waste weight,\nwhich is what makes `wasteWeight` and its companions conditionally\nrequired on the request.\n",
            "items": {
              "type": "object"
            }
          },
          "plantWasteMethods": {
            "type": "array",
            "description": "Valid disposal methods for the destroyed material.",
            "items": {
              "type": "object"
            }
          },
          "unitsOfWeight": {
            "type": "array",
            "description": "Units of measure accepted for the waste weight.",
            "items": {
              "type": "object"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches, when the modal is opened from a grid\nselection. Empty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcDestroyPlantBatchesPayload": {
        "type": "array",
        "description": "Destroy immature plants from one or more plant batches.\n\n**The waste fields are conditionally required.** Metrc's form reveals\n`wasteWeight`, `wasteUnitOfMeasureId`, `plantWasteMethodId` and\n`materialMixed` only when the chosen `wasteReasonId` is one that demands a\nweight, so they are not required here. Supply them whenever the reason calls\nfor them; Metrc rejects the request otherwise.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant batch ID.\n\nTo find eligible plant batches, use the\n[Destroy Plant Batches Source Plant Batches](#/Plant%20Batches/get_v2_plantbatches_destroy_source_plantbatches)\nendpoint.\n",
              "example": 8891
            },
            "countToDestroy": {
              "type": "integer",
              "minimum": 1,
              "description": "How many immature plants to destroy from the batch.",
              "example": 5
            },
            "wasteReasonId": {
              "type": "integer",
              "description": "Numeric ID of the waste reason.\n\nTo find valid reasons, and which of them require a weight, use the\n[Destroy Plant Batches Inputs](#/Plant%20Batches/get_v2_plantbatches_destroy_inputs) endpoint.\n",
              "example": 3
            },
            "reasonNote": {
              "type": "string",
              "minLength": 1,
              "description": "Free text explaining the destruction.",
              "example": "Failed phenotype"
            },
            "wasteWeight": {
              "type": "number",
              "minimum": 0.0001,
              "description": "Weight of the destroyed material. Required when `wasteReasonId` is a\nreason that demands a weight.\n",
              "example": 1.5
            },
            "wasteUnitOfMeasureId": {
              "type": "integer",
              "description": "Unit of measure for `wasteWeight`. Required whenever `wasteWeight` is.\n",
              "example": 4
            },
            "plantWasteMethodId": {
              "type": "integer",
              "description": "Numeric ID of the disposal method. Required whenever `wasteWeight` is.\n",
              "example": 2
            },
            "materialMixed": {
              "type": "string",
              "description": "What the waste was mixed with to render it unusable. Required whenever\n`wasteWeight` is.\n",
              "example": "Soil"
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plants were destroyed.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "countToDestroy",
            "wasteReasonId",
            "reasonNote",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcDestroyPlantsInputsResponse": {
        "type": "object",
        "description": "Reference data for destroying a plant.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Valid waste reasons. Each records whether it requires a waste weight,\nwhich is what makes `wasteWeight` and its companions conditionally\nrequired on the request.\n",
            "items": {
              "type": "object"
            }
          },
          "plantWasteMethods": {
            "type": "array",
            "description": "Valid disposal methods for the destroyed material.",
            "items": {
              "type": "object"
            }
          },
          "unitsOfWeight": {
            "type": "array",
            "description": "Units of measure accepted for the waste weight.",
            "items": {
              "type": "object"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcDestroyPlantsPayload": {
        "type": "array",
        "description": "Destroy one or more plants.\n\n**The waste fields are conditionally required.** Metrc's form reveals\n`wasteWeight`, `wasteUnitOfMeasureId`, `plantWasteMethodId` and\n`materialMixed` only when the chosen `wasteReasonId` demands a weight, so\nthey are not required here. Supply them whenever the reason calls for them.\n\n`countToDestroy` is carried by Maine alone; every other state destroys the\nwhole plant.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant ID.\n\nTo find eligible plants, use the\n[Destroy Plants Source Plants](#/Plants/get_v2_plants_destroy_source_plants) endpoint.\n",
              "example": 90210
            },
            "countToDestroy": {
              "type": "integer",
              "minimum": 1,
              "description": "How many plants to destroy. Maine only.",
              "example": 1
            },
            "wasteReasonId": {
              "type": "integer",
              "description": "Numeric ID of the waste reason.\n\nTo find valid reasons, and which require a weight, use the\n[Destroy Plants Inputs](#/Plants/get_v2_plants_destroy_inputs) endpoint.\n",
              "example": 3
            },
            "reasonNote": {
              "type": "string",
              "minLength": 1,
              "description": "Free text explaining the destruction.",
              "example": "Failed phenotype"
            },
            "wasteWeight": {
              "type": "number",
              "minimum": 0.0001,
              "description": "Weight destroyed. Required for weight-bearing reasons.",
              "example": 1.5
            },
            "wasteUnitOfMeasureId": {
              "type": "integer",
              "description": "Unit for `wasteWeight`. Required whenever it is.",
              "example": 4
            },
            "plantWasteMethodId": {
              "type": "integer",
              "description": "Disposal method. Required whenever `wasteWeight` is.",
              "example": 2
            },
            "materialMixed": {
              "type": "string",
              "description": "What the waste was mixed with. Required whenever `wasteWeight` is.",
              "example": "Soil"
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plants were destroyed.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "wasteReasonId",
            "reasonNote",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcDiscontinueHarvestWastePayload": {
        "type": "object",
        "description": "The waste entry to discontinue. `id` is the waste entry's own id, **not** the\nharvest's \u2014 read it from\n[Harvest Waste](#/Harvests/get_v2_harvests_waste).\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID of the harvest waste entry to discontinue.\n\nTake this from the `id` field of a\n[Harvest Waste](#/Harvests/get_v2_harvests_waste) row. Passing a harvest\nID here will discontinue an unrelated waste entry or fail.\n",
            "example": 4321
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "MetrcDiscontinueItemPayload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The item ID",
            "example": 12345
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "MetrcDiscontinuePackagePayload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The package ID",
            "example": 12345
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "MetrcDiscontinueStrainPayload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The strain ID",
            "example": 12345
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "MetrcDonationPackagesInputsResponse": {
        "type": "object",
        "description": "Reference data for flagging or unflagging packages for donation.\n",
        "properties": {
          "adding": {
            "type": "boolean",
            "description": "True on the flag form, false on the unflag form.",
            "example": true
          },
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "description": "One row per pre-selected package. Empty in the selection-free fetch this\nendpoint performs.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcDownloadProductLabelsInputsResponse": {
        "type": "object",
        "description": "Reference data for downloading Retail ID labels, for packages or for tags.\n",
        "properties": {
          "isStaged": {
            "type": "boolean",
            "description": "False on the product labels form, true on the staged form.",
            "example": false
          },
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "tags": {
            "type": "array",
            "description": "Pre-selected tags on the staged form. Empty in the selection-free fetch\nthis endpoint performs.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "complianceLabelTemplates": {
            "type": "array",
            "description": "California only, and only for a pre-selected package. Use the\n`compliance-templates` endpoint beside this one to read them for a\npackage or tag.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcProductLabelComplianceTemplate"
            }
          },
          "alreadyRequestComplianceTemplates": {
            "type": "boolean",
            "description": "Whether Metrc looked up compliance templates for this form.",
            "example": false
          },
          "details": {
            "type": "array",
            "description": "One row per pre-selected package or tag. Empty or null in the\nselection-free fetch this endpoint performs.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcDownloadProductLabelsPayload": {
        "type": "array",
        "description": "One entry per package to issue Retail ID labels for. To fetch labels already\nissued, use the redownload endpoint.\n",
        "items": {
          "type": "object",
          "properties": {
            "packageId": {
              "type": "integer",
              "description": "The package to label, from\n`/v2/packages/product-labels/download/source-packages`.\n",
              "example": 12345
            },
            "labelQuantity": {
              "type": "integer",
              "minimum": 1,
              "maximum": 350000,
              "description": "How many labels to issue. Metrc's form allows up to 30,000, or 350,000\nin California.\n",
              "example": 10
            },
            "format": {
              "type": "string",
              "enum": [
                "pdf",
                "csv"
              ],
              "description": "The file format Metrc prepares the labels in. Read the labels back\nwith the print endpoint matching the `format` in Metrc's answer. Metrc's\nown page also handles a `format` of `newPdf` there, read like `pdf`.\n",
              "example": "csv"
            },
            "complianceLabelTemplate": {
              "type": "string",
              "description": "California only, and optional: a template's `template`, sent\nunchanged from the compliance templates endpoint.\n"
            },
            "templateId": {
              "type": "integer",
              "description": "California only, and sent with `complianceLabelTemplate`.",
              "example": 83
            }
          },
          "required": [
            "packageId",
            "labelQuantity",
            "format"
          ],
          "additionalProperties": false
        }
      },
      "MetrcDownloadStagedProductLabelsPayload": {
        "type": "array",
        "description": "One entry per tag to issue Retail ID labels for, ahead of the package that\nwill carry the tag. California and Michigan only.\n",
        "items": {
          "type": "object",
          "properties": {
            "tagId": {
              "type": "integer",
              "description": "The tag to label, from\n`/v2/packages/staged-product-labels/download/source-tags`.\n",
              "example": 12345
            },
            "labelQuantity": {
              "type": "integer",
              "minimum": 1,
              "maximum": 350000,
              "description": "How many labels to issue. Metrc's form allows up to 30,000, or 350,000\nin California.\n",
              "example": 10
            },
            "format": {
              "type": "string",
              "enum": [
                "pdf",
                "csv"
              ],
              "description": "The file format Metrc prepares the labels in. Read the labels back\nwith the print endpoint matching the `format` in Metrc's answer. Metrc's\nown page also handles a `format` of `newPdf` there, read like `pdf`.\n",
              "example": "csv"
            },
            "complianceLabelTemplate": {
              "type": "string",
              "description": "California only, and optional: a template's `template`, sent\nunchanged from the compliance templates endpoint.\n"
            },
            "templateId": {
              "type": "integer",
              "description": "California only, and sent with `complianceLabelTemplate`.",
              "example": 83
            }
          },
          "required": [
            "tagId",
            "labelQuantity",
            "format"
          ],
          "additionalProperties": false
        }
      },
      "MetrcDriver": {
        "type": "object",
        "properties": {
          "driversLicenseNumber": {
            "type": "string",
            "description": "Driver's license number.",
            "example": "DL-12345"
          },
          "employeeId": {
            "type": "string",
            "description": "Employee identifier.",
            "example": "EMP00001"
          },
          "facilityId": {
            "type": "integer",
            "description": "Facility identifier.",
            "example": 12345
          },
          "id": {
            "type": "integer",
            "description": "Unique identifier for the driver.",
            "example": 12345
          },
          "isArchived": {
            "type": "boolean",
            "description": "Indicates if the driver is archived.",
            "example": false
          },
          "lastModified": {
            "type": "string",
            "description": "Date and time the driver information was last modified.",
            "format": "date-time",
            "example": "2023-02-07T15:27:12+00:00"
          },
          "name": {
            "type": "string",
            "description": "Name of the driver.",
            "example": "Jane Doe"
          }
        }
      },
      "MetrcFacility": {
        "type": "object",
        "description": "A schema representing a facility with various details including license, address, and contact information.",
        "properties": {
          "licenseNumber": {
            "type": "string",
            "description": "License number of the facility.",
            "example": "LIC00001"
          },
          "facilityName": {
            "type": "string",
            "description": "Name of the facility.",
            "example": "Example Facility LLC"
          },
          "id": {
            "type": "integer",
            "description": "Unique identifier of the facility.",
            "example": 1234,
            "format": "int32"
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "index": {
            "type": "string",
            "description": "The current state of this object.",
            "enum": [
              "TRANSPORTER",
              "DESTINATION"
            ]
          },
          "facilityTypeName": {
            "type": "string",
            "description": "Type of the facility.",
            "example": "Example Cultivator"
          },
          "facilityType": {
            "type": "string",
            "description": "Type code of the facility.",
            "nullable": true
          },
          "physicalAddress": {
            "type": "object",
            "description": "Physical address of the facility.",
            "properties": {
              "id": {
                "type": "integer",
                "description": "Unique identifier of the address.",
                "example": 12345,
                "format": "int32"
              },
              "licenseId": {
                "type": "integer",
                "description": "License identifier associated with the address.",
                "example": 0,
                "format": "int32"
              },
              "addressType": {
                "type": "string",
                "description": "Type of the address (e.g., Physical).",
                "example": "Physical"
              },
              "recipient": {
                "type": "string",
                "description": "Name of the recipient at the address.",
                "example": ""
              },
              "contactPhoneNumber": {
                "type": "string",
                "description": "Contact phone number for the address.",
                "nullable": true
              },
              "street1": {
                "type": "string",
                "description": "First line of the street address.",
                "example": "1 EXAMPLE DR"
              },
              "street2": {
                "type": "string",
                "description": "Second line of the street address (optional).",
                "example": ""
              },
              "street3": {
                "type": "string",
                "description": "Third line of the street address (optional).",
                "example": ""
              },
              "street4": {
                "type": "string",
                "description": "Fourth line of the street address (optional).",
                "example": ""
              },
              "city": {
                "type": "string",
                "description": "City of the address.",
                "example": "DETROIT"
              },
              "county": {
                "type": "string",
                "description": "County of the address.",
                "example": "Detroit"
              },
              "state": {
                "type": "string",
                "description": "State of the address.",
                "example": "MI"
              },
              "postalCode": {
                "type": "string",
                "description": "Postal code of the address.",
                "example": "12345"
              },
              "country": {
                "type": "string",
                "description": "Country of the address (optional).",
                "example": ""
              },
              "assessorParcelNumber": {
                "type": "string",
                "description": "Assessor parcel number for the address (optional).",
                "example": ""
              },
              "isDefaultShippingAddress": {
                "type": "boolean",
                "description": "Indicates whether the address is the default shipping address.",
                "example": false
              },
              "isValidated": {
                "type": "boolean",
                "description": "Indicates whether the address has been validated.",
                "example": false
              },
              "isArchived": {
                "type": "boolean",
                "description": "Indicates whether the address is archived.",
                "example": false
              }
            }
          },
          "mainPhoneNumber": {
            "type": "string",
            "description": "Main phone number of the facility.",
            "example": "5555551234"
          },
          "mobilePhoneNumber": {
            "type": "string",
            "description": "Mobile phone number of the facility.",
            "nullable": true
          }
        }
      },
      "MetrcFinishHarvestsPayload": {
        "type": "array",
        "description": "Batch of harvests to finish. A finished harvest is closed out and moves to the\nInactive tab; it can be reopened with\n[Unfinish Harvests](#/Harvests/post_v2_harvests_unfinish).\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Harvest ID of an active harvest.\n\nTo find eligible harvests, use the [Active Harvests](#/Harvests/get_v2_harvests_active)\nendpoint.\n",
              "example": 304
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the harvest was finished.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcFinishPackagesInputsResponse": {
        "type": "object",
        "description": "Reference data for finishing packages.\n",
        "properties": {
          "finish": {
            "type": "boolean",
            "description": "Always true. Metrc serves Finish and Unfinish from one form.",
            "example": true
          },
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "description": "One row per pre-selected package. Empty in the selection-free fetch this\nendpoint performs.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcFinishPackagesPayload": {
        "type": "array",
        "description": "Packages to finish.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Package ID.\n\nTo find packages, use the\n[Active Packages](#/Packages/get_v2_packages_active) endpoint.\n",
              "example": 12345
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the package is finished.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcFlagDonationPackagesPayload": {
        "type": "array",
        "description": "Flag packages for donation. Available in California and Michigan.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Package ID.\n\nTo find eligible packages, use the\n[Flag Donation Source Packages](#/Modify%20Packages/get_v2_packages_donation_flag_source_packages)\nendpoint.\n",
              "example": 12345
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      },
      "MetrcFlagTradeSamplePackagesPayload": {
        "type": "array",
        "description": "Flag packages as trade sample. Available in California, Maine and Michigan.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Package ID.\n\nTo find eligible packages, use the\n[Flag Trade Sample Source Packages](#/Modify%20Packages/get_v2_packages_trade_sample_flag_source_packages)\nendpoint.\n",
              "example": 12345
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      },
      "MetrcFloweringPlantChangesByLocationInputsResponse": {
        "type": "object",
        "description": "Reference data for Metrc's page-level Changes by Location form, for flowering plants.\n",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the plant.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Populated only where the state\nmodels them; Maine and Michigan among the indexed states.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "growthPhases": {
            "type": "array",
            "description": "Growth phases a plant may be moved into. The set depends on the phase\nthe form was opened for: only a vegetative plant may become a Mother.\n",
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcFloweringPlantChangesByLocationPayload": {
        "type": "array",
        "description": "Apply location and growth phase changes to flowering plants, from Metrc's\npage-level Changes by Location form.\n\nUnlike every other plant write this one is **not driven by a grid\nselection** -- Metrc's own form opens without one. Each entry still names\nthe plant it changes.\n\nEvery change column is optional: send only the ones this row changes.\n`sublocationId` and `newSublocationId` apply in Maine and Michigan only.\n\n`newGrowthPhase` is not carried by California's flowering form.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant ID.",
              "example": 90210
            },
            "changeDate": {
              "type": "string",
              "format": "date",
              "description": "The date the change took effect.",
              "example": "2026-05-14"
            },
            "newLocationId": {
              "type": "integer",
              "description": "Location to move the plant to. Omit to leave it where it is.",
              "example": 12345
            },
            "newGrowthPhase": {
              "type": "string",
              "description": "Growth phase to move the plant into. Omit to leave it unchanged.\n",
              "example": "Flowering"
            },
            "sublocationId": {
              "type": "integer",
              "description": "The plant's current sublocation. Maine and Michigan only.",
              "example": 678
            },
            "newSublocationId": {
              "type": "integer",
              "description": "Sublocation to move the plant to. Maine and Michigan only.",
              "example": 679
            }
          },
          "required": [
            "id",
            "changeDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcHarvest": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the harvest",
            "example": 1234567,
            "nullable": false
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_HARVEST",
            "enum": [
              "ACTIVE_HARVEST",
              "ONHOLD_HARVEST",
              "INACTIVE_HARVEST"
            ]
          },
          "facilityLicenseNumber": {
            "type": "string",
            "description": "License number of the facility",
            "example": "LIC-00001",
            "nullable": true
          },
          "facilityName": {
            "type": "string",
            "description": "Name of the facility",
            "example": "Example Farms",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name of the harvest",
            "example": "PNXPRESS010124",
            "nullable": false
          },
          "harvestType": {
            "type": "string",
            "description": "Type of the harvest",
            "example": "WholePlant",
            "nullable": false,
            "enum": [
              "WholePlant",
              "PartialPlant",
              "Other"
            ]
          },
          "harvestTypeName": {
            "type": "string",
            "description": "Name of the harvest type",
            "example": "Harvest Batch",
            "nullable": false
          },
          "sourceStrainCount": {
            "type": "integer",
            "description": "Number of source strains",
            "example": 1,
            "nullable": false
          },
          "sourceStrainNames": {
            "type": "string",
            "description": "Names of source strains",
            "example": "Northern Lights",
            "nullable": false
          },
          "multiStrain": {
            "type": "boolean",
            "description": "Indicates if the harvest includes multiple strains",
            "example": false,
            "nullable": false
          },
          "dryingLocationName": {
            "type": "string",
            "description": "Name of the drying location",
            "example": "Drying Room 001",
            "nullable": false
          },
          "dryingSublocationName": {
            "type": "string"
          },
          "dryingLocationTypeName": {
            "type": "string",
            "description": "Type of the drying location",
            "example": "Default Location Type",
            "nullable": false
          },
          "patientLicenseNumber": {
            "type": "string",
            "description": "License number of the patient, if applicable",
            "example": "",
            "nullable": true
          },
          "currentWeight": {
            "type": "number",
            "format": "float",
            "description": "Current weight of the harvest",
            "example": 1915.0,
            "nullable": false
          },
          "totalWasteWeight": {
            "type": "number",
            "format": "float",
            "description": "Total waste weight",
            "example": 740.0,
            "nullable": false
          },
          "plantCount": {
            "type": "integer",
            "description": "Number of plants in the harvest",
            "example": 60,
            "nullable": false
          },
          "totalWetWeight": {
            "type": "number",
            "format": "float",
            "description": "Total wet weight of the harvest",
            "example": 81123.0,
            "nullable": false
          },
          "totalRestoredWeight": {
            "type": "number",
            "format": "float",
            "description": "Total restored weight",
            "example": 0.0,
            "nullable": false
          },
          "packageCount": {
            "type": "integer",
            "description": "Number of packages in the harvest",
            "example": 0,
            "nullable": false
          },
          "totalPackagedWeight": {
            "type": "number",
            "format": "float",
            "description": "Total packaged weight",
            "example": 0.0,
            "nullable": false
          },
          "unitOfWeightId": {
            "type": "integer",
            "description": "Identifier for the unit of weight",
            "example": 4,
            "nullable": false
          },
          "unitOfWeightAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the unit of weight",
            "example": "g",
            "nullable": false
          },
          "labTestingStateName": {
            "type": "string",
            "description": "Lab testing state of the harvest",
            "example": "NotSubmitted",
            "nullable": false,
            "enum": [
              "NotSubmitted",
              "Submitted",
              "InTesting",
              "Passed",
              "Failed"
            ]
          },
          "labTestingStateDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date of the lab testing state",
            "example": "2024-07-26T20:00:00+00:00",
            "nullable": true
          },
          "isOnHold": {
            "type": "boolean",
            "description": "Indicates if the harvest is on hold",
            "example": false,
            "nullable": false
          },
          "isOnInvestigation": {
            "type": "boolean",
            "description": "Indicates if the harvest is under investigation.",
            "example": false,
            "nullable": false
          },
          "isOnInvestigationHold": {
            "type": "boolean",
            "description": "Indicates if the harvest is on hold due to investigation.",
            "example": false,
            "nullable": false
          },
          "isOnInvestigationRecall": {
            "type": "boolean",
            "description": "Indicates if the harvest is under investigation for recall.",
            "example": false,
            "nullable": false
          },
          "isOnHoldCombined": {
            "type": "boolean",
            "description": "Combined hold status indicator.",
            "example": false,
            "nullable": false
          },
          "harvestStartDate": {
            "type": "string",
            "format": "date",
            "description": "Start date of the harvest",
            "example": "2024-07-18",
            "nullable": false
          },
          "isFinished": {
            "type": "boolean",
            "description": "Indicates if the harvest is finished",
            "example": false,
            "nullable": false
          },
          "finishedDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date when the harvest was finished",
            "nullable": true
          },
          "isArchived": {
            "type": "boolean",
            "description": "Indicates if the harvest is archived",
            "example": false,
            "nullable": false
          },
          "archivedDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date when the harvest was archived",
            "nullable": true
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "Last modified date of the harvest",
            "example": "2024-07-26T20:00:00+00:00",
            "nullable": false
          }
        }
      },
      "MetrcHarvestLabResult": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "mo.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcHarvestLabResult"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "testPerformedDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the test was performed.",
            "example": "2024-01-01"
          },
          "overallPassed": {
            "type": "boolean",
            "description": "Indicates if the overall test was passed.",
            "example": true
          },
          "testTypeName": {
            "type": "string",
            "description": "Name of the test type.",
            "example": "Alpha-Bisabolol (%) Mandatory Terpenes"
          },
          "testInformationalOnly": {
            "type": "boolean",
            "description": "Indicates if the test result is for informational purposes only.",
            "example": false
          },
          "testPassed": {
            "type": "boolean",
            "description": "Indicates if the specific test was passed.",
            "example": true
          },
          "testResultLevel": {
            "type": "number",
            "format": "float",
            "description": "Level of the test result.",
            "example": 0.0234
          },
          "testComment": {
            "type": "string",
            "description": "Comments on the test result.",
            "example": "No significant findings."
          },
          "resultReleased": {
            "type": "boolean",
            "description": "Indicates if the test result has been released.",
            "example": true
          },
          "resultReleaseDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the test result was released.",
            "example": "2024-01-01T18:00:00+00:00"
          },
          "sourcePackageLabel": {
            "type": "string",
            "description": "Label of the package the sample was taken from.",
            "example": "1A4000000000000000000001"
          },
          "productName": {
            "type": "string",
            "description": "Name of the product.",
            "example": "Blue Dream Flower"
          },
          "productCategoryName": {
            "type": "string",
            "description": "Category name of the product.",
            "example": "Bud/Flower"
          },
          "labTestDetailIsRevoked": {
            "type": "boolean",
            "description": "Indicates if the detailed lab test result has been revoked.",
            "example": false
          },
          "labTestDetailRevokedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date when the detailed lab test result was revoked, if applicable."
          }
        }
      },
      "MetrcHarvestPackage": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "packageId": {
            "type": "integer",
            "description": "Unique identifier for the package.",
            "example": 123456
          },
          "label": {
            "type": "string",
            "description": "Unique label identifier for the package.",
            "example": "1A4000000000000000000001"
          },
          "packageType": {
            "type": "string",
            "description": "Type of the package.",
            "example": "Product"
          },
          "productName": {
            "type": "string",
            "description": "Name of the product associated with the package.",
            "example": "Blue Dream Flower | Blue Dream"
          },
          "productCategoryName": {
            "type": "string",
            "description": "Category of the product.",
            "example": "Bud/Flower"
          },
          "quantity": {
            "type": "number",
            "format": "float",
            "description": "Quantity of the package contents.",
            "example": 13040.0
          },
          "unitOfMeasureName": {
            "type": "string",
            "description": "Full name of the unit of measure.",
            "example": "Grams"
          },
          "unitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation for the unit of measure.",
            "example": "g"
          },
          "isProductionBatch": {
            "type": "boolean",
            "description": "Indicates whether the package is part of a production batch.",
            "example": true
          },
          "productionBatchNumber": {
            "type": "string",
            "description": "Identifier for the production batch.",
            "example": "Blue Dream Flower | Blue Dream"
          },
          "actualDate": {
            "type": "string",
            "format": "date",
            "description": "Date the package was created or became active.",
            "example": "2025-04-15"
          },
          "expirationDate": {
            "type": "string",
            "format": "date",
            "description": "Expiration date of the package, if applicable.",
            "nullable": true
          },
          "sellByDate": {
            "type": "string",
            "format": "date",
            "description": "Sell-by date of the package, if applicable.",
            "nullable": true
          },
          "useByDate": {
            "type": "string",
            "format": "date",
            "description": "Use-by date of the package, if applicable.",
            "nullable": true
          },
          "isArchived": {
            "type": "boolean",
            "description": "Indicates whether the package is archived.",
            "example": false
          },
          "isFinished": {
            "type": "boolean",
            "description": "Indicates whether the package is finished.",
            "example": false
          }
        }
      },
      "MetrcHarvestPlant": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "harvestId": {
            "type": "integer",
            "description": "Unique identifier for the harvest.",
            "example": 123456
          },
          "plantId": {
            "type": "integer",
            "description": "Unique identifier for the plant.",
            "example": 234567
          },
          "harvestCount": {
            "type": "integer",
            "description": "Number of times this plant has been harvested.",
            "example": 1
          },
          "label": {
            "type": "string",
            "description": "Unique label identifier for the package.",
            "example": "1A4000000000000000000001"
          },
          "locationName": {
            "type": "string",
            "description": "Name of the location where the plant was located during harvest.",
            "example": "Row 01"
          },
          "sublocationName": {
            "type": "string",
            "nullable": true
          },
          "locationTypeName": {
            "type": "string",
            "description": "Type of the location.",
            "example": "Default Location Type",
            "enum": [
              "Default Location Type",
              "Greenhouse",
              "Outdoor"
            ]
          },
          "patientLicenseNumber": {
            "type": "string",
            "description": "License number of the patient, if applicable.",
            "nullable": true,
            "example": ""
          },
          "plantBatchName": {
            "type": "string",
            "description": "Name of the plant batch.",
            "example": "01012025BLUEDREAM"
          },
          "plantBatchTypeName": {
            "type": "string",
            "description": "Type of the plant batch.",
            "example": "Clone",
            "enum": [
              "Clone",
              "Seed"
            ]
          },
          "harvestSpecificPlantCount": {
            "type": "integer",
            "description": "Number of plants specifically in this harvest package.",
            "example": 1
          },
          "totalPlantCount": {
            "type": "integer",
            "description": "Total number of plants associated with the package.",
            "example": 1
          },
          "strainName": {
            "type": "string",
            "description": "Name of the plant strain.",
            "example": "Blue Dream"
          },
          "isOnHold": {
            "type": "boolean",
            "description": "Indicates if the plant is on hold.",
            "example": false
          },
          "isOnInvestigation": {
            "type": "boolean",
            "description": "Indicates if the plant is under investigation.",
            "example": false
          },
          "isOnInvestigationHold": {
            "type": "boolean",
            "description": "Indicates if the plant is on hold due to investigation.",
            "example": false
          },
          "isOnInvestigationRecall": {
            "type": "boolean",
            "description": "Indicates if the plant is under investigation for recall.",
            "example": false
          },
          "plantedDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant was planted.",
            "example": "2024-11-21"
          },
          "vegetativeDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant entered the vegetative stage.",
            "example": "2024-12-11"
          },
          "floweringDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant entered the flowering stage.",
            "example": "2025-01-24"
          },
          "destroyedDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant was destroyed, if applicable.",
            "nullable": true
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The last time the record was modified.",
            "example": "2025-03-28T17:42:00+00:00"
          }
        }
      },
      "MetrcHarvestPlantsInputsResponse": {
        "type": "object",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to act as the drying location for the harvest.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "unitsOfMeasure": {
            "type": "array",
            "description": "Units of measure available when entering the harvest weight.",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a plant selection.\nEmpty in the modal-only fetch used by this endpoint.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations, where the state supports them.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "patientAffiliations": {
            "type": "string",
            "description": "Patient affiliations, where the state supports them.",
            "nullable": true
          },
          "details": {
            "type": "string",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true
          }
        }
      },
      "MetrcHarvestReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "name__endswith:0003",
              "name__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcHarvest"
            }
          }
        }
      },
      "MetrcHarvestSchedule": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "mo.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcHarvestSchedule"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "id": {
            "type": "integer",
            "description": "Unique identifier for the schedule. This is the value to pass when voiding\nthe schedule.\n",
            "example": 77
          },
          "batchNumber": {
            "type": "string",
            "description": "Metrc's identifier for the scheduled harvest batch.",
            "example": "0000000077"
          },
          "locationName": {
            "type": "string",
            "description": "Name of the location the harvest is scheduled for.",
            "example": "SBX Default Location Type Location 1"
          },
          "scheduledDate": {
            "type": "string",
            "format": "date",
            "description": "The date the harvest is scheduled to occur.",
            "example": "2026-05-14"
          }
        }
      },
      "MetrcHarvestWaste": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "mo.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcHarvestWaste"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "id": {
            "type": "integer",
            "description": "Unique identifier for the harvest waste entry. This is the value to pass as\n`harvestWasteId` when discontinuing the entry or reading its history.\n",
            "example": 4321
          },
          "facilityLicenseNumber": {
            "type": "string",
            "description": "License number of the facility that recorded the waste.",
            "example": "SF-SBX-MO-1-501"
          },
          "facilityName": {
            "type": "string",
            "description": "Name of the facility that recorded the waste.",
            "example": "SBX Cultivator"
          },
          "harvestName": {
            "type": "string",
            "description": "Name of the harvest the waste was recorded against.",
            "example": "2025-12-16-SBX Default Location Type Location 1-H"
          },
          "harvestWasteNumber": {
            "type": "string",
            "description": "Metrc's identifier for the waste entry.",
            "example": "0000000123"
          },
          "wasteTypeName": {
            "type": "string",
            "description": "Name of the waste type selected when the waste was reported.",
            "example": "Plant Material"
          },
          "wasteWeight": {
            "type": "number",
            "format": "float",
            "description": "Weight of the reported waste.",
            "example": 12.5
          },
          "quantity": {
            "type": "number",
            "format": "float",
            "description": "Quantity of the reported waste.",
            "example": 12.5
          },
          "unitOfWeightAbbreviation": {
            "type": "string",
            "description": "Abbreviation for the unit of weight.",
            "example": "g"
          },
          "actualDate": {
            "type": "string",
            "format": "date",
            "description": "Date the waste occurred.",
            "example": "2025-12-16"
          },
          "recordedDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time the waste entry was recorded in Metrc.",
            "example": "2025-12-16T18:00:00+00:00"
          },
          "userName": {
            "type": "string",
            "description": "User who recorded the waste entry.",
            "example": "Matt Smith"
          },
          "isArchived": {
            "type": "boolean",
            "description": "Indicates whether the waste entry has been discontinued. Discontinued\nentries are only returned when `includeDiscontinued=true`.\n",
            "example": false
          },
          "archivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date and time the waste entry was discontinued, if applicable."
          }
        }
      },
      "MetrcHistory": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "descriptions": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "Packaged 4,800 Grams of Blue Dream Flower from 1 Harvest",
              "- Took 4,800 Grams from Harvest \"BLUEDREAM0101\"",
              "- Package Type: Product",
              "- Location: Drying Room",
              "- Location Type: Default Location Type",
              "- Production Batch No: BD0001"
            ]
          },
          "userName": {
            "type": "string",
            "example": "Jane Doe (JDoe001)"
          },
          "actualDate": {
            "type": "string",
            "format": "date",
            "example": "2024-01-01"
          },
          "recordedDateTime": {
            "type": "string",
            "format": "date-time",
            "example": "2024-01-01T13:07:00.719384Z"
          },
          "inputSourcesNames": {
            "type": "string",
            "description": "Name of the user responsible for this event",
            "example": "User"
          },
          "externalSourceName": {
            "type": "string",
            "description": "Name of the third party software source, if applicable",
            "nullable": true
          }
        }
      },
      "MetrcHostname": {
        "type": "string",
        "description": "The Metrc hostname you use to login. For example, a California user would use ca.metrc.com.",
        "pattern": "^([a-zA-Z0-9-]+\\.)*metrc\\.com$",
        "example": "ca.metrc.com"
      },
      "MetrcHubSuperTransfer": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcHubTransfer"
          },
          {
            "type": "object",
            "description": "A hub transfer with its optional sub-collections attached. There is no transporterDetails include: MetrcHubTransfer already embeds those as shipmentTransporterDetails.",
            "properties": {
              "packages": {
                "type": "array",
                "description": "A list of this transfer delivery's packages",
                "items": {
                  "$ref": "#/components/schemas/MetrcTransferredPackage"
                }
              },
              "history": {
                "type": "array",
                "description": "A list of this transfer's history entries",
                "items": {
                  "$ref": "#/components/schemas/MetrcHistory"
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcHubTransfer": {
        "type": "object",
        "description": "A transfer this license is the transporter for, as shown on Metrc's \"Transfers Hub\" page. Unlike MetrcIncomingTransfer and MetrcOutgoingTransfer, this record arrives pre-flattened: the transfer, one of its deliveries and one of that delivery's transporters are merged onto a single object, and the driver legs are embedded as shipmentTransporterDetails rather than fetched separately. It also carries facility contact and address blocks for all three parties, which no other transfer model returns.",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "mo.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcHubTransfer"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "HUB_TRANSFER",
            "enum": [
              "HUB_TRANSFER"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the transfer",
            "example": 2018358
          },
          "manifestNumber": {
            "type": "string",
            "description": "Unique manifest number associated with the transfer",
            "example": "0002018358"
          },
          "shipmentLicenseType": {
            "type": "string",
            "description": "Type of license for the shipment. Note this is the raw value; the other transfer models expose the display form as shipmentLicenseTypeName.",
            "example": "Licensed"
          },
          "shipperFacilityId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the shipper's facility",
            "example": 15802
          },
          "shipperFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the shipper's facility",
            "example": "MAN000030"
          },
          "shipperFacilityName": {
            "type": "string",
            "description": "Name of the shipper's facility",
            "example": "Sample Manufacturing, Inc."
          },
          "shipperFacilityMainPhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Main phone number for the shipper's facility",
            "example": "5015551587"
          },
          "shipperFacilityMobilePhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Mobile phone number for the shipper's facility"
          },
          "shipperFacilityAddressStreet1": {
            "type": "string",
            "nullable": true,
            "description": "First street line of the shipper's facility address",
            "example": "5301 Paris Road"
          },
          "shipperFacilityAddressStreet2": {
            "type": "string",
            "nullable": true,
            "description": "Second street line of the shipper's facility address",
            "example": ""
          },
          "shipperFacilityAddressStreet3": {
            "type": "string",
            "nullable": true,
            "description": "Third street line of the shipper's facility address",
            "example": ""
          },
          "shipperFacilityAddressStreet4": {
            "type": "string",
            "nullable": true,
            "description": "Fourth street line of the shipper's facility address",
            "example": ""
          },
          "shipperFacilityAddressCity": {
            "type": "string",
            "nullable": true,
            "description": "City of the shipper's facility address",
            "example": "Columbia"
          },
          "shipperFacilityAddressCounty": {
            "type": "string",
            "nullable": true,
            "description": "County of the shipper's facility address",
            "example": "Boone"
          },
          "shipperFacilityAddressState": {
            "type": "string",
            "nullable": true,
            "description": "State of the shipper's facility address",
            "example": "MO"
          },
          "shipperFacilityAddressPostalCode": {
            "type": "string",
            "nullable": true,
            "description": "Postal code of the shipper's facility address",
            "example": "65202"
          },
          "shipperFacilityAddressCountry": {
            "type": "string",
            "nullable": true,
            "description": "Country of the shipper's facility address",
            "example": ""
          },
          "shipperFacilityAddressAssessorParcelNumber": {
            "type": "string",
            "nullable": true,
            "description": "Assessor parcel number of the shipper's facility address",
            "example": ""
          },
          "deliveryCount": {
            "type": "integer",
            "description": "Number of deliveries on this transfer",
            "example": 1
          },
          "receivedDeliveryCount": {
            "type": "integer",
            "description": "Number of deliveries on this transfer that have been received",
            "example": 1
          },
          "packageCount": {
            "type": "integer",
            "description": "Number of packages on this transfer",
            "example": 170
          },
          "receivedPackageCount": {
            "type": "integer",
            "description": "Number of packages on this transfer that have been received",
            "example": 170
          },
          "canEdit": {
            "type": "boolean",
            "description": "Whether this transfer can currently be edited",
            "example": false
          },
          "isVoided": {
            "type": "boolean",
            "description": "Whether this transfer has been voided",
            "example": false
          },
          "createdDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "When the transfer was created",
            "example": "2024-07-25T18:47:20+00:00"
          },
          "createdByUserId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier of the user who created the transfer",
            "example": 241333
          },
          "createdByUserName": {
            "type": "string",
            "description": "Name of the user who created the transfer",
            "example": "Jane Doe"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "When the transfer was last modified",
            "example": "2024-07-26T13:49:29+00:00"
          },
          "deliveryId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the delivery this row represents. Sub-collections such as packages are addressed by this id rather than by the transfer id.",
            "example": 2019158
          },
          "recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient's facility",
            "example": "MAN000038"
          },
          "recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient's facility",
            "example": "Example Dispensary LLC"
          },
          "recipientFacilityMainPhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Main phone number for the recipient's facility",
            "example": "8705553222"
          },
          "recipientFacilityMobilePhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Mobile phone number for the recipient's facility"
          },
          "recipientFacilityAddressStreet1": {
            "type": "string",
            "nullable": true,
            "description": "First street line of the recipient's facility address",
            "example": "1755 State Highway DD"
          },
          "recipientFacilityAddressStreet2": {
            "type": "string",
            "nullable": true,
            "description": "Second street line of the recipient's facility address",
            "example": ""
          },
          "recipientFacilityAddressStreet3": {
            "type": "string",
            "nullable": true,
            "description": "Third street line of the recipient's facility address",
            "example": ""
          },
          "recipientFacilityAddressStreet4": {
            "type": "string",
            "nullable": true,
            "description": "Fourth street line of the recipient's facility address",
            "example": ""
          },
          "recipientFacilityAddressCity": {
            "type": "string",
            "nullable": true,
            "description": "City of the recipient's facility address",
            "example": "Moberly"
          },
          "recipientFacilityAddressCounty": {
            "type": "string",
            "nullable": true,
            "description": "County of the recipient's facility address",
            "example": "Randolph"
          },
          "recipientFacilityAddressState": {
            "type": "string",
            "nullable": true,
            "description": "State of the recipient's facility address",
            "example": "MO"
          },
          "recipientFacilityAddressPostalCode": {
            "type": "string",
            "nullable": true,
            "description": "Postal code of the recipient's facility address",
            "example": "65270"
          },
          "recipientFacilityAddressCountry": {
            "type": "string",
            "nullable": true,
            "description": "Country of the recipient's facility address",
            "example": ""
          },
          "recipientFacilityAddressAssessorParcelNumber": {
            "type": "string",
            "nullable": true,
            "description": "Assessor parcel number of the recipient's facility address",
            "example": ""
          },
          "recipientApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the recipient approved this delivery"
          },
          "recipientAutoApproval": {
            "type": "boolean",
            "description": "Whether the recipient approval was automatic",
            "example": false
          },
          "shipmentTypeId": {
            "type": "integer",
            "description": "Unique identifier for the shipment type",
            "example": 3
          },
          "shipmentTypeName": {
            "type": "string",
            "description": "Name of the shipment type",
            "example": "Unaffiliated Transfer"
          },
          "shipmentTransactionType": {
            "type": "string",
            "description": "Transaction type of the shipment. Note this is the raw value; the display form is shipmentTransactionTypeName.",
            "example": "Wholesale"
          },
          "shipmentTransactionTypeName": {
            "type": "string",
            "description": "Name of the shipment transaction type",
            "example": "Wholesale"
          },
          "estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated departure date and time for the delivery",
            "example": "2024-07-25T10:56:00.000"
          },
          "actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual departure date and time for the delivery"
          },
          "estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated arrival date and time for the delivery",
            "example": "2024-07-25T17:00:00.000"
          },
          "actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual arrival date and time for the delivery"
          },
          "plannedRoute": {
            "type": "string",
            "nullable": true,
            "description": "The planned route for this delivery, as free text",
            "example": "Head south toward Paris Rd\nTurn right to merge onto US-63 N"
          },
          "deliveryPackageCount": {
            "type": "integer",
            "description": "Number of packages on this delivery",
            "example": 170
          },
          "deliveryReceivedPackageCount": {
            "type": "integer",
            "description": "Number of packages on this delivery that have been received",
            "example": 170
          },
          "receivedById": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Unique identifier of the user who received the delivery",
            "example": 221082
          },
          "receivedByName": {
            "type": "string",
            "nullable": true,
            "description": "Name of the user who received the delivery",
            "example": "John Smith"
          },
          "receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the delivery was received",
            "example": "2024-07-26T13:49:18+00:00"
          },
          "estimatedReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated return departure date and time"
          },
          "actualReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual return departure date and time"
          },
          "estimatedReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated return arrival date and time"
          },
          "actualReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual return arrival date and time"
          },
          "rejectedPackagesReturned": {
            "type": "boolean",
            "description": "Whether rejected packages have been returned",
            "example": false
          },
          "transporterAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When all transporters were approved",
            "example": "2024-07-25T16:00:18+00:00"
          },
          "destinationsAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When all destinations were approved",
            "example": "2024-07-25T16:00:18+00:00"
          },
          "transportersAutomaticallyApproved": {
            "type": "boolean",
            "description": "Whether the transporters were automatically approved",
            "example": true
          },
          "destinationsAutomaticallyApproved": {
            "type": "boolean",
            "description": "Whether the destinations were automatically approved",
            "example": true
          },
          "transporterFacilityId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the transporter facility",
            "example": 15101
          },
          "transporterFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the transporter facility",
            "example": "DIS000038"
          },
          "transporterFacilityName": {
            "type": "string",
            "description": "Name of the transporter facility",
            "example": "Transport Co"
          },
          "transporterFacilityMainPhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Main phone number for the transporter facility"
          },
          "transporterFacilityMobilePhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Mobile phone number for the transporter facility"
          },
          "transporterFacilityAddressStreet1": {
            "type": "string",
            "nullable": true,
            "description": "First street line of the transporter facility address"
          },
          "transporterFacilityAddressStreet2": {
            "type": "string",
            "nullable": true,
            "description": "Second street line of the transporter facility address"
          },
          "transporterFacilityAddressStreet3": {
            "type": "string",
            "nullable": true,
            "description": "Third street line of the transporter facility address"
          },
          "transporterFacilityAddressStreet4": {
            "type": "string",
            "nullable": true,
            "description": "Fourth street line of the transporter facility address"
          },
          "transporterFacilityAddressCity": {
            "type": "string",
            "nullable": true,
            "description": "City of the transporter facility address"
          },
          "transporterFacilityAddressCounty": {
            "type": "string",
            "nullable": true,
            "description": "County of the transporter facility address"
          },
          "transporterFacilityAddressState": {
            "type": "string",
            "nullable": true,
            "description": "State of the transporter facility address"
          },
          "transporterFacilityAddressPostalCode": {
            "type": "string",
            "nullable": true,
            "description": "Postal code of the transporter facility address"
          },
          "transporterFacilityAddressCountry": {
            "type": "string",
            "nullable": true,
            "description": "Country of the transporter facility address"
          },
          "transporterFacilityAddressAssessorParcelNumber": {
            "type": "string",
            "nullable": true,
            "description": "Assessor parcel number of the transporter facility address"
          },
          "transporterApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this transporter was approved",
            "example": "2024-07-25T16:00:18+00:00"
          },
          "transporterAutoApproval": {
            "type": "boolean",
            "description": "Whether this transporter was automatically approved",
            "example": true
          },
          "transporterDirection": {
            "type": "string",
            "description": "Direction of the transporter. Note this is the raw value; the display form is transporterDirectionName.",
            "example": "Outbound"
          },
          "transporterDirectionName": {
            "type": "string",
            "description": "Name of the transporter direction",
            "example": "Outbound"
          },
          "phoneNumberForQuestions": {
            "type": "string",
            "nullable": true,
            "description": "Phone number to call with questions about this transfer",
            "example": "13145555180"
          },
          "driverName": {
            "type": "string",
            "nullable": true,
            "description": "Name of the driver. Metrc hoists this from the first entry of shipmentTransporterDetails; when multiVehicle is true, the remaining legs are only visible in that array.",
            "example": "Jane Doe"
          },
          "driverOccupationalLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "Occupational license number of the driver",
            "example": "AGT015324"
          },
          "driverVehicleLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "Vehicle license number of the driver",
            "example": "045E289001"
          },
          "driverLayoverLeg": {
            "type": "string",
            "nullable": true,
            "description": "Layover leg details for the driver, if applicable"
          },
          "multiVehicle": {
            "type": "boolean",
            "description": "Whether this transfer uses more than one vehicle. When true, the hoisted driver and vehicle fields describe only the first leg and shipmentTransporterDetails holds the rest.",
            "example": false
          },
          "vehicleMake": {
            "type": "string",
            "nullable": true,
            "description": "Make of the vehicle",
            "example": "Ford"
          },
          "vehicleModel": {
            "type": "string",
            "nullable": true,
            "description": "Model of the vehicle",
            "example": "Transit"
          },
          "vehicleLicensePlateNumber": {
            "type": "string",
            "nullable": true,
            "description": "License plate number of the vehicle",
            "example": "XYZ-1234"
          },
          "vehicleRegistrationNumber": {
            "type": "string",
            "nullable": true,
            "description": "Registration number of the vehicle",
            "example": ""
          },
          "transporterAcceptedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the transporter accepted this transfer"
          },
          "isLayover": {
            "type": "boolean",
            "description": "Whether this row is a layover leg. Most rows returned by this endpoint are not layovers, despite the underlying Metrc path being named for them.",
            "example": false
          },
          "transporterEstimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated departure date and time for this transporter's leg"
          },
          "transporterActualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual departure date and time for this transporter's leg"
          },
          "transporterEstimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated arrival date and time for this transporter's leg"
          },
          "transporterActualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual arrival date and time for this transporter's leg"
          },
          "shipmentTransporterDetails": {
            "type": "array",
            "description": "The driver legs for this transfer. Metrc embeds these in the response rather than requiring a second request, so they are always present -- there is no `include` for them. The same objects are served standalone by /v2/transfers/transporter-details. Note that the embedded copies do not carry the hostname, dataModel, retrievedAt and licenseNumber envelope fields, since they never pass through per-object normalization.",
            "items": {
              "$ref": "#/components/schemas/MetrcTransferTransporterDetails"
            }
          }
        }
      },
      "MetrcHubTransferReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "manifestNumber__endswith:0003",
              "driverName__contains:doe"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "createdDateTime:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcHubTransfer"
            }
          }
        }
      },
      "MetrcHubTransporterStatusPayload": {
        "type": "object",
        "description": "Names one leg of one delivery. Every transfer hub transition \u2014 accept,\ndepart, check in, check out, arrive \u2014 takes exactly this, and carries no\nother data: the timestamp is whenever Metrc receives the call.\n",
        "properties": {
          "deliveryId": {
            "type": "integer",
            "description": "The delivery being moved. Read it from the `deliveryId` field on the\n[hub transfers](#/Transfers/get_v2_transfers_hub) listing \u2014 **not** the\ntransfer's `id`, which is a different number on some rows.\n",
            "example": 744
          },
          "direction": {
            "type": "string",
            "enum": [
              "Outbound",
              "Return"
            ],
            "description": "Which leg of the delivery this is. `Outbound` is the trip to the\nrecipient; `Return` is the trip back with rejected packages. Read it from\n`transporterDirectionName` on the same hub listing row.\n",
            "example": "Outbound"
          }
        },
        "required": [
          "deliveryId",
          "direction"
        ],
        "additionalProperties": false
      },
      "MetrcHubUpdateTransfersPayload": {
        "type": "array",
        "description": "One entry per delivery whose transport details are being corrected.\n\nThis is the transporter's edit, not the shipper's: it changes route, times,\ndrivers and vehicles on a delivery already in flight. It cannot change what\nis being shipped \u2014 use [update](#/Transfers/post_v2_transfers_update)\nfor that.\n",
        "items": {
          "type": "object",
          "required": [
            "id",
            "shipmentDeliveryId",
            "transporterDirection",
            "estimatedDepartureDateTime",
            "estimatedArrivalDateTime",
            "plannedRoute",
            "transporterDetails"
          ],
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The transfer ID, from the [hub transfers](#/Transfers/get_v2_transfers_hub) listing.",
              "example": 744
            },
            "shipmentDeliveryId": {
              "type": "integer",
              "description": "The delivery being edited.",
              "example": 744
            },
            "transporterDirection": {
              "type": "string",
              "enum": [
                "Outbound",
                "Return"
              ],
              "description": "Which leg of the delivery these details apply to.",
              "example": "Outbound"
            },
            "estimatedDepartureDateTime": {
              "type": "string",
              "format": "date-time",
              "description": "When the delivery is expected to leave.",
              "example": "2026-05-23T21:22:35"
            },
            "estimatedArrivalDateTime": {
              "type": "string",
              "format": "date-time",
              "description": "When the delivery is expected to arrive.",
              "example": "2026-05-24T09:00:00"
            },
            "transporterEstimatedDepartureDateTime": {
              "type": "string",
              "format": "date-time",
              "description": "Departure from the layover point. Metrc's form only shows the field \u2014\nand only requires it \u2014 on a layover delivery whose actual departure is\nnot yet set.\n",
              "example": "2026-05-24T06:00:00"
            },
            "transporterEstimatedArrivalDateTime": {
              "type": "string",
              "format": "date-time",
              "description": "Arrival at the layover point. Same layover-only condition as\n`transporterEstimatedDepartureDateTime`.\n",
              "example": "2026-05-23T23:30:00"
            },
            "plannedRoute": {
              "type": "string",
              "description": "The route the delivery will take.",
              "example": "I-70 west to Columbia, then US-63 north"
            },
            "transporterDetails": {
              "type": "array",
              "description": "One entry per driver/vehicle pair on this leg. Saved drivers and\nvehicles are available from `drivers` and `vehicles` on the\n[create transfer inputs](#/Transfers/get_v2_transfers_create_inputs)\nendpoint, but every field here is free text \u2014 a driver who is not on\nfile can still be entered.\n",
              "items": {
                "type": "object",
                "required": [
                  "driverName",
                  "driverOccupationalLicenseNumber",
                  "driverLicenseNumber",
                  "vehicleMake",
                  "vehicleModel",
                  "vehicleLicensePlateNumber"
                ],
                "additionalProperties": false,
                "properties": {
                  "driverName": {
                    "type": "string",
                    "maxLength": 100,
                    "example": "Jane Doe"
                  },
                  "driverOccupationalLicenseNumber": {
                    "type": "string",
                    "maxLength": 100,
                    "example": "LIC12345"
                  },
                  "driverLicenseNumber": {
                    "type": "string",
                    "maxLength": 100,
                    "example": "D1234567"
                  },
                  "driverLayoverLeg": {
                    "type": "string",
                    "description": "Which layover leg this driver covers. Metrc's form shows the\nfield only on a layover delivery.\n",
                    "example": "",
                    "nullable": true
                  },
                  "vehicleMake": {
                    "type": "string",
                    "maxLength": 100,
                    "example": "Ford"
                  },
                  "vehicleModel": {
                    "type": "string",
                    "maxLength": 100,
                    "example": "Transit"
                  },
                  "vehicleLicensePlateNumber": {
                    "type": "string",
                    "maxLength": 100,
                    "example": "ABC1234"
                  },
                  "vehicleRegistrationNumber": {
                    "type": "string",
                    "maxLength": 100,
                    "description": "Required only for shipment types Metrc flags as needing it; its\nown form asks\n`getRequiresVehicleRegistrationNumber(shipmentTypeId)`.\n",
                    "example": "REG-99871"
                  }
                }
              }
            }
          }
        }
      },
      "MetrcIncomingSuperTransfer": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcIncomingTransfer"
          },
          {
            "type": "object",
            "properties": {
              "packages": {
                "type": "array",
                "description": "A list of this transfer delivery's packages",
                "items": {
                  "$ref": "#/components/schemas/MetrcTransferredPackage"
                }
              },
              "transporters": {
                "type": "array",
                "description": "A list of this transfer delivery's transporters",
                "items": {
                  "$ref": "#/components/schemas/MetrcTransferTransporter"
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcIncomingTransfer": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_INCOMING_TRANSFER",
            "enum": [
              "ACTIVE_INCOMING_TRANSFER",
              "INACTIVE_INCOMING_TRANSFER"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the transfer",
            "example": 1234567
          },
          "manifestNumber": {
            "type": "string",
            "description": "Unique manifest number associated with the transfer",
            "example": "0001234567"
          },
          "shipmentLicenseTypeName": {
            "type": "string",
            "description": "Type of license for the shipment",
            "example": "Licensed"
          },
          "shipperFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the shipper's facility",
            "example": "LIC-00002"
          },
          "shipperFacilityName": {
            "type": "string",
            "description": "Name of the shipper's facility",
            "example": "Sample Manufacturing, Inc."
          },
          "shipperFacilityInfo": {
            "type": "string",
            "description": "License number and name of the shipper's facility",
            "example": "LIC-00002 (Sample Manufacturing, Inc.)"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the transfer"
          },
          "transporterFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the transporter facility",
            "example": ""
          },
          "transporterFacilityName": {
            "type": "string",
            "description": "Name of the transporter facility",
            "example": ""
          },
          "driverName": {
            "type": "string",
            "description": "Name of the driver",
            "example": ""
          },
          "driverOccupationalLicenseNumber": {
            "type": "string",
            "description": "Occupational license number of the driver",
            "example": ""
          },
          "driverVehicleLicenseNumber": {
            "type": "string",
            "description": "License number of the vehicle used by the driver",
            "example": ""
          },
          "vehicleMake": {
            "type": "string",
            "description": "Make of the vehicle used for transport",
            "example": ""
          },
          "vehicleModel": {
            "type": "string",
            "description": "Model of the vehicle used for transport",
            "example": ""
          },
          "vehicleLicensePlateNumber": {
            "type": "string",
            "description": "License plate number of the vehicle",
            "example": ""
          },
          "deliveryFacilities": {
            "type": "string",
            "description": "Details of the delivery facilities",
            "example": "LIC-00001 (Example Dispensary LLC)"
          },
          "deliveryCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of deliveries in the transfer",
            "example": 1
          },
          "receivedDeliveryCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of deliveries received",
            "example": 0
          },
          "packageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Total number of packages in the transfer",
            "example": 8
          },
          "receivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages received",
            "example": 0
          },
          "containsPlantPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains plant packages",
            "example": false
          },
          "containsProductPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains product packages",
            "example": true
          },
          "containsTradeSample": {
            "type": "boolean",
            "description": "Indicates if the transfer contains trade samples",
            "example": false
          },
          "containsDonation": {
            "type": "boolean",
            "description": "Indicates if the transfer contains donations",
            "example": false
          },
          "containsTestingSample": {
            "type": "boolean",
            "description": "Indicates if the transfer contains testing samples",
            "example": false
          },
          "containsProductRequiresRemediation": {
            "type": "boolean",
            "description": "Indicates if the transfer contains products that require remediation",
            "example": false
          },
          "containsRemediatedProductPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains remediated product packages",
            "example": false
          },
          "editCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of times the transfer record has been edited",
            "example": 1
          },
          "canEdit": {
            "type": "boolean",
            "description": "Indicates if the transfer record can be edited",
            "example": true
          },
          "canEditOutgoingInactive": {
            "type": "boolean",
            "description": "Indicates if the transfer record can be edited when outgoing and inactive",
            "example": false
          },
          "isVoided": {
            "type": "boolean",
            "description": "Indicates if the transfer has been voided",
            "example": false
          },
          "createdDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transfer was created",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "createdByUserName": {
            "type": "string",
            "description": "Username of the person who created the transfer record",
            "example": "Jane Doe"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transfer was last modified",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "deliveryId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the delivery associated with the transfer",
            "example": 1234566
          },
          "recipientFacilityId": {
            "type": "integer",
            "format": "int32",
            "description": "The ID of the recipient facility.",
            "example": 456
          },
          "recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient facility",
            "example": "LIC-00001"
          },
          "recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient facility",
            "example": "Example Dispensary LLC"
          },
          "recipientFacilityInfo": {
            "type": "string",
            "example": ""
          },
          "shipmentTypeName": {
            "type": "string",
            "description": "Type of shipment",
            "example": "Unaffiliated Transfer"
          },
          "shipmentTransactionTypeName": {
            "type": "string",
            "description": "Type of shipment transaction",
            "example": "Wholesale"
          },
          "estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date and time of departure",
            "example": "2024-07-26T06:00:00.000"
          },
          "actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of departure"
          },
          "estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date and time of arrival",
            "example": "2024-07-26T17:00:00.000"
          },
          "actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of arrival"
          },
          "deliveryPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages in the delivery",
            "example": 8
          },
          "deliveryReceivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages received in the delivery",
            "example": 0
          },
          "receivedByName": {
            "type": "string",
            "nullable": true,
            "description": "Name of the person who received the delivery"
          },
          "receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date and time when the delivery was received"
          },
          "estimatedReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated date and time of return departure"
          },
          "actualReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of return departure"
          },
          "estimatedReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated date and time of return arrival"
          },
          "actualReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of return arrival"
          },
          "rejectedPackagesReturned": {
            "type": "boolean",
            "description": "Indicates if rejected packages were returned",
            "example": false
          },
          "transporterAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when all transporters were approved",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "destinationsAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when all destinations were approved",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "transportersAutomaticallyApproved": {
            "type": "boolean",
            "description": "Indicates if transporters were automatically approved",
            "example": true
          },
          "destinationsAutomaticallyApproved": {
            "type": "boolean",
            "description": "Indicates if destinations were automatically approved",
            "example": true
          },
          "approvalRejectDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date and time when the approval was rejected"
          },
          "approvalRejectedByUser": {
            "type": "string",
            "description": "Username of the person who rejected the approval",
            "example": "Jane Doe"
          },
          "approvalRejectedFacilityLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "License number of the facility where approval was rejected"
          },
          "approvalRejectReasonId": {
            "type": "string",
            "nullable": true,
            "description": "Reason ID for the approval rejection"
          },
          "PDFDocumentFileSystemId": {
            "type": "number",
            "example": 0
          },
          "invoiceNumber": {
            "type": "string",
            "example": ""
          },
          "lineNumber": {
            "type": "integer",
            "format": "int32",
            "example": ""
          }
        }
      },
      "MetrcIncomingTransferReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "manifestNumber__endswith:0003",
              "shipperFacilityName__contains:farms"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "createdDateTime:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcIncomingTransfer"
            }
          }
        }
      },
      "MetrcItem": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "The item ID",
            "example": 12345
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_ITEM",
            "enum": [
              "ACTIVE_ITEM"
            ]
          },
          "facilityLicenseNumber": {
            "type": "string",
            "description": "The facility license number",
            "example": "LIC-00001",
            "nullable": true
          },
          "facilityName": {
            "type": "string",
            "description": "The facility name",
            "example": "Example Growers",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "The item name",
            "example": "Pineapple Express Flower"
          },
          "productCategoryId": {
            "type": "number",
            "description": "The product category ID",
            "example": 401
          },
          "productCategoryName": {
            "type": "string",
            "description": "The product category name",
            "example": "Bud/Flower (Final Packaging)"
          },
          "productCategoryTypeName": {
            "type": "string",
            "description": "The product category type name",
            "example": "Cannabis"
          },
          "expirationDateConfiguration": {
            "type": "string",
            "enum": [
              "Off",
              "Optional"
            ],
            "description": "The expiration date configuration",
            "example": "Off"
          },
          "expirationConfigurationState": {
            "type": "string",
            "enum": [
              "Off"
            ],
            "description": "The expiration configuration state",
            "example": "Off"
          },
          "expirationDateDaysInAdvance": {
            "type": "number",
            "description": "The number of days in advance for the expiration date",
            "nullable": true
          },
          "sellByDateConfiguration": {
            "type": "string",
            "enum": [
              "Off",
              "Optional"
            ],
            "description": "The sell by date configuration",
            "example": "Off"
          },
          "sellByConfigurationState": {
            "type": "string",
            "enum": [
              "Off"
            ],
            "description": "The sell by configuration state",
            "example": "Off"
          },
          "sellByDateDaysInAdvance": {
            "type": "number",
            "description": "The number of days in advance for the sell by date",
            "nullable": true
          },
          "useByDateConfiguration": {
            "type": "string",
            "enum": [
              "Off",
              "Optional"
            ],
            "description": "The use by date configuration",
            "example": "Off"
          },
          "useByConfigurationState": {
            "type": "string",
            "enum": [
              "Off"
            ],
            "description": "The use by configuration state",
            "example": "Off"
          },
          "useByDateDaysInAdvance": {
            "type": "number",
            "description": "The number of days in advance for the use by date",
            "nullable": true
          },
          "quantityTypeName": {
            "type": "string",
            "enum": [
              "WeightBased",
              "CountBased",
              "VolumeBased"
            ],
            "description": "The quantity type name",
            "example": "WeightBased"
          },
          "defaultLabTestingStateName": {
            "type": "string",
            "enum": [
              "NotRequired",
              "NotSubmitted"
            ],
            "description": "The default lab testing state name",
            "example": "NotSubmitted"
          },
          "unitOfMeasureId": {
            "type": "number",
            "description": "The unit of measure ID",
            "example": 4
          },
          "unitOfMeasureName": {
            "type": "string",
            "description": "The unit of measure name",
            "example": "Grams"
          },
          "approvalStatusName": {
            "type": "string",
            "enum": [
              "Approved",
              "Revoked"
            ],
            "description": "The approval status name",
            "example": "Approved"
          },
          "approvalStatusDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time of approval status",
            "example": "2023-08-17T22:20:30+00:00"
          },
          "strainName": {
            "type": "string",
            "description": "The strain name",
            "example": "Pineapple Express",
            "nullable": true
          },
          "itemBrandId": {
            "type": "number",
            "description": "The item brand ID",
            "example": 0
          },
          "itemBrandName": {
            "type": "string",
            "description": "The item brand name",
            "example": "BrandName",
            "nullable": true
          },
          "administrationMethod": {
            "type": "string",
            "description": "The method of administration",
            "example": "N/A"
          },
          "unitCbdPercent": {
            "type": "number",
            "description": "The unit CBD percentage",
            "nullable": true
          },
          "unitCbdContentDose": {
            "type": "number",
            "description": "The unit CBD content dose",
            "nullable": true
          },
          "unitCbdContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "The unit CBD content dose unit of measure abbreviation",
            "nullable": true
          },
          "unitThcPercent": {
            "type": "number",
            "description": "The unit THC percentage",
            "nullable": true
          },
          "unitThcContentUnitOfMeasureId": {
            "type": "number",
            "description": "The unit THC content unit of measure ID",
            "nullable": true
          },
          "unitThcContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "The unit THC content dose unit of measure abbreviation",
            "nullable": true
          },
          "unitWeight": {
            "type": "number",
            "description": "The unit weight",
            "nullable": true
          },
          "servingSize": {
            "type": "string",
            "description": "The serving size",
            "example": "1g"
          },
          "numberOfDoses": {
            "type": "number",
            "description": "The number of doses",
            "example": 28,
            "nullable": true
          },
          "unitQuantity": {
            "type": "number",
            "description": "The unit quantity",
            "nullable": true
          },
          "unitQuantityUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "The unit quantity unit of measure abbreviation",
            "nullable": true
          },
          "publicIngredients": {
            "type": "string",
            "description": "The public ingredients",
            "example": "Cannabis Flower"
          },
          "description": {
            "type": "string",
            "description": "The item description",
            "example": ""
          },
          "allergens": {
            "type": "string",
            "description": "The allergens present in the item",
            "example": ""
          },
          "productImages": {
            "type": "array",
            "description": "A list of product image references",
            "items": {
              "type": "object",
              "properties": {
                "productImageFileId": {
                  "type": "integer",
                  "description": "Unique ID for this product image file"
                },
                "fileType": {
                  "type": "string",
                  "enum": [
                    "ItemProductImage"
                  ]
                },
                "productId": {
                  "type": "integer",
                  "description": "ID of the associated product"
                },
                "fileName": {
                  "type": "string",
                  "nullable": true,
                  "description": "Path or name of the file"
                },
                "encodedImageBase64": {
                  "type": "string",
                  "nullable": true,
                  "description": "Base64-encoded image data"
                },
                "fileSystemId": {
                  "type": "integer",
                  "description": "File system ID"
                }
              }
            }
          },
          "productPhotoDescription": {
            "type": "string",
            "description": "Description of the product photo",
            "example": ""
          },
          "labelImages": {
            "type": "array",
            "description": "A list of label image references",
            "items": {
              "type": "object",
              "properties": {
                "labelImageFileId": {
                  "type": "integer",
                  "description": "Unique ID for this label image file"
                },
                "fileType": {
                  "type": "string",
                  "enum": [
                    "ItemLabelImage"
                  ]
                },
                "productId": {
                  "type": "integer",
                  "description": "ID of the associated product"
                },
                "fileName": {
                  "type": "string",
                  "nullable": true,
                  "description": "Path or name of the file"
                },
                "encodedImageBase64": {
                  "type": "string",
                  "nullable": true,
                  "description": "Base64-encoded image data"
                },
                "fileSystemId": {
                  "type": "integer",
                  "description": "File system ID"
                }
              }
            }
          },
          "labelPhotoDescription": {
            "type": "string",
            "description": "Description of the label photo",
            "example": ""
          },
          "packagingImages": {
            "type": "array",
            "description": "A list of packaging image references",
            "items": {
              "type": "object",
              "properties": {
                "packagingImageFileId": {
                  "type": "integer",
                  "description": "Unique ID for this packaging image file"
                },
                "fileType": {
                  "type": "string",
                  "enum": [
                    "ItemPackagingImage"
                  ]
                },
                "productId": {
                  "type": "integer",
                  "description": "ID of the associated product"
                },
                "fileName": {
                  "type": "string",
                  "nullable": true,
                  "description": "Path or name of the file"
                },
                "encodedImageBase64": {
                  "type": "string",
                  "nullable": true,
                  "description": "Base64-encoded image data"
                },
                "fileSystemId": {
                  "type": "integer",
                  "description": "File system ID"
                }
              }
            }
          },
          "packagingPhotoDescription": {
            "type": "string",
            "description": "Description of the packaging photo",
            "example": ""
          },
          "productPDFDocuments": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "A list of product PDF documents"
          },
          "isUsed": {
            "type": "boolean",
            "description": "Indicates if the item is used",
            "example": false
          },
          "isArchived": {
            "type": "boolean",
            "description": "Indicates if the item is archived",
            "example": false
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The last modified date and time",
            "nullable": true
          },
          "processingJobCategoryId": {
            "type": "number",
            "description": "The processing job category ID",
            "nullable": true
          },
          "processingJobCategoryName": {
            "type": "string",
            "description": "The processing job category name",
            "nullable": true
          },
          "supplyDurationDays": {
            "type": "number",
            "description": "The supply duration in days",
            "nullable": true
          },
          "unitCbdPercentOverride": {
            "type": "number",
            "description": "Override value for the unit CBD percentage",
            "nullable": true
          },
          "unitCbdContent": {
            "type": "number",
            "description": "The unit CBD content",
            "nullable": true
          },
          "unitCbdContentOverride": {
            "type": "number",
            "description": "Override value for the unit CBD content",
            "nullable": true
          },
          "unitCbdContentDoseUoMId": {
            "type": "number",
            "description": "The unit CBD content dose UoM ID",
            "nullable": true
          },
          "unitCbdContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "The unit CBD content unit of measure abbreviation",
            "nullable": true
          },
          "unitCbdContentUnitOfMeasureId": {
            "type": "number",
            "description": "The unit CBD content unit of measure ID",
            "nullable": true
          },
          "unitCbdContentUoMId": {
            "type": "number",
            "description": "The unit CBD content UoM ID",
            "nullable": true
          },
          "unitThcContent": {
            "type": "number",
            "description": "The unit THC content",
            "nullable": true
          },
          "unitThcContentOverride": {
            "type": "number",
            "description": "Override value for the unit THC content",
            "nullable": true
          },
          "unitThcContentDose": {
            "type": "number",
            "description": "The unit THC content dose",
            "nullable": true
          },
          "unitThcContentDoseUnitOfMeasureId": {
            "type": "number",
            "description": "The unit THC content dose unit of measure ID",
            "nullable": true
          },
          "unitThcContentDoseUoMId": {
            "type": "number",
            "description": "The unit THC content dose UoM ID",
            "nullable": true
          },
          "unitThcContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "The unit THC content unit of measure abbreviation",
            "nullable": true
          },
          "unitThcContentUoMId": {
            "type": "number",
            "description": "The unit THC content UoM ID",
            "nullable": true
          },
          "unitWeightUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "The unit weight unit of measure abbreviation",
            "nullable": true
          },
          "unitWeightUnitOfMeasureId": {
            "type": "number",
            "description": "The unit weight unit of measure ID",
            "nullable": true
          },
          "unitWeightUoMId": {
            "type": "number",
            "description": "The unit weight UoM ID",
            "nullable": true
          },
          "unitVolume": {
            "type": "number",
            "description": "The unit volume",
            "nullable": true
          },
          "unitVolumeUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "The unit volume unit of measure abbreviation",
            "nullable": true
          },
          "unitVolumeUnitOfMeasureId": {
            "type": "number",
            "description": "The unit volume unit of measure ID",
            "nullable": true
          },
          "unitVolumeUoMId": {
            "type": "number",
            "description": "The unit volume UoM ID",
            "nullable": true
          },
          "publicIngredientsOverride": {
            "type": "string",
            "description": "Override value for the public ingredients",
            "nullable": true
          },
          "allergensOverride": {
            "type": "string",
            "description": "Override value for the allergens present in the item",
            "nullable": true
          },
          "descriptionOverride": {
            "type": "string",
            "description": "Override value for the item description",
            "nullable": true
          },
          "globalProductName": {
            "type": "string",
            "description": "The global product name",
            "nullable": true
          },
          "globalProductNumber": {
            "type": "number",
            "nullable": true
          },
          "productBrandName": {
            "type": "string",
            "description": "The product brand name",
            "nullable": true
          },
          "administrationMethodOverride": {
            "type": "string",
            "description": "Override value for the method of administration",
            "nullable": true
          },
          "unitCbdContentDoseUnitOfMeasureId": {
            "type": "number",
            "description": "The unit CBD content dose unit of measure ID",
            "nullable": true
          },
          "strainId": {
            "type": "number",
            "description": "The strain ID",
            "example": 1234567
          },
          "productCategoryRequiresApproval": {
            "type": "boolean",
            "description": "Indicates if the item's product category requires approval",
            "example": false
          },
          "packagingPhotoDescriptionOverride": {
            "type": "string",
            "nullable": true
          },
          "packagingPhotoOverride": {
            "type": "string",
            "nullable": true
          },
          "labelPhotoDescriptionOverride": {
            "type": "string",
            "nullable": true
          },
          "productPhotoDescriptionOverride": {
            "type": "string",
            "nullable": true
          },
          "brandName": {
            "type": "string",
            "nullable": true
          },
          "productPhotoOverride": {
            "type": "string",
            "nullable": true
          },
          "globalProductId": {
            "type": "number",
            "nullable": true
          },
          "labelPhotoOverride": {
            "type": "string",
            "nullable": true
          },
          "processingJobTypeId": {
            "type": "string",
            "nullable": true
          },
          "processingJobTypeName": {
            "type": "string",
            "nullable": true
          },
          "unitThcPercentOverride": {
            "type": "number",
            "nullable": true
          },
          "unitThcAContentUoMId": {
            "type": "number",
            "nullable": true
          },
          "unitThcAContent": {
            "type": "number",
            "nullable": true
          },
          "unitThcAContentDose": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "unitThcAContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "unitCbdAPercentOverride": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAContent": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAContentDoseUnitOfMeasureId": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAPercent": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "unitThcAPercentOverride": {
            "type": "number",
            "nullable": true
          },
          "unitThcAContentDoseUnitOfMeasureId": {
            "type": "number",
            "nullable": true
          },
          "unitThcAPercent": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAContentOverride": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAContentDose": {
            "type": "number",
            "nullable": true
          },
          "unitThcAContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "unitThcAContentDoseUoMId": {
            "type": "number",
            "nullable": true
          },
          "unitThcAContentUnitOfMeasureId": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAContentDoseUoMId": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAContentUnitOfMeasureId": {
            "type": "number",
            "nullable": true
          },
          "unitCbdAContentUoMId": {
            "type": "number",
            "nullable": true
          },
          "unitThcAContentOverride": {
            "type": "number",
            "nullable": true
          }
        }
      },
      "MetrcItemImage": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcItemImage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "fileName": {
            "type": "string",
            "description": "Path or name of the file",
            "example": "Photos/Product photo-Cannabis Flower.png"
          },
          "productId": {
            "type": "integer",
            "description": "ID of the associated product",
            "example": 234567
          },
          "imageFileId": {
            "type": "integer",
            "description": "Unique ID for this image file",
            "example": 123456
          },
          "fileType": {
            "$ref": "#/components/schemas/ItemImageFileType"
          }
        }
      },
      "MetrcItemImageReference": {
        "type": "object",
        "description": "A reference to an uploaded item image",
        "properties": {
          "imageFileId": {
            "type": "integer",
            "description": "The ID of the uploaded image file",
            "example": 202
          },
          "fileType": {
            "$ref": "#/components/schemas/ItemImageFileType"
          }
        },
        "required": [
          "imageFileId",
          "fileType"
        ],
        "additionalProperties": false
      },
      "MetrcItemIngredient": {
        "type": "object",
        "properties": {
          "ingredient": {
            "type": "string",
            "description": "The ingredient name or description",
            "example": "Cannabis Flower"
          }
        }
      },
      "MetrcItemIngredientEntry": {
        "type": "object",
        "description": "An ingredient entry for an item",
        "properties": {
          "ingredient": {
            "type": "string",
            "description": "The ingredient name or description",
            "example": "example ingredient"
          }
        },
        "required": [
          "ingredient"
        ],
        "additionalProperties": false
      },
      "MetrcItemNote": {
        "type": "object",
        "properties": {
          "note": {
            "type": "string",
            "description": "A note associated with the item",
            "example": "This item requires special handling"
          }
        }
      },
      "MetrcItemReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "name__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "name:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcItem"
            }
          }
        }
      },
      "MetrcLabBatch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The lab batch ID.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "The name of the lab batch.",
            "example": "Additional - Mandatory Cannabinoid % and Totals"
          },
          "labTestTypeCount": {
            "type": "integer",
            "description": "The number of lab test types in this batch.",
            "example": 12
          },
          "labTestTypes": {
            "type": "array",
            "description": "List of lab test types in this batch.",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "description": "The lab test type ID.",
                  "example": 153
                },
                "name": {
                  "type": "string",
                  "description": "The name of the lab test type.",
                  "example": "CBD (%) Mandatory Cannabinoid % and Totals"
                },
                "requiresTestResult": {
                  "type": "boolean",
                  "description": "Whether this test type requires a result.",
                  "example": true
                },
                "informationalOnly": {
                  "type": "boolean",
                  "description": "Whether this test type is informational only.",
                  "example": false
                },
                "researchAndDevelopment": {
                  "type": "boolean",
                  "description": "Whether this test type is for research and development.",
                  "example": false
                },
                "alwaysPasses": {
                  "type": "boolean",
                  "description": "Whether this test type always passes.",
                  "example": false
                },
                "maxAllowedFailureCount": {
                  "type": "integer",
                  "description": "Maximum allowed failure count.",
                  "example": 0
                },
                "passingCountAfterFail": {
                  "type": "integer",
                  "description": "Number of passing results needed after a failure.",
                  "example": 2
                },
                "passingCountAfterRemediation": {
                  "type": "integer",
                  "description": "Number of passing results needed after remediation.",
                  "example": 1
                },
                "passingCountAfterDecontamination": {
                  "type": "integer",
                  "description": "Number of passing results needed after decontamination.",
                  "example": 0
                },
                "labTestResultMode": {
                  "type": "string",
                  "description": "The lab test result mode.",
                  "example": "None"
                },
                "labTestResultModeName": {
                  "type": "string",
                  "description": "The display name of the lab test result mode.",
                  "example": "None"
                },
                "labTestResultMinimum": {
                  "type": "number",
                  "nullable": true,
                  "description": "The minimum lab test result value, if applicable."
                },
                "labTestResultMaximum": {
                  "type": "number",
                  "nullable": true,
                  "description": "The maximum lab test result value, if applicable."
                },
                "labTestResultExpirationDays": {
                  "type": "integer",
                  "nullable": true,
                  "description": "Number of days until the lab test result expires, if applicable."
                },
                "dependencyMode": {
                  "type": "string",
                  "description": "The dependency mode for this test type.",
                  "example": "RequiresAll"
                },
                "dependencyModeName": {
                  "type": "string",
                  "description": "The display name of the dependency mode.",
                  "example": "RequiresAll"
                }
              }
            }
          }
        }
      },
      "MetrcLabTestDocumentHistory": {
        "type": "object",
        "description": "One document uploaded for a lab test result. Fetch it with\n`GET /v2/packages/labresults/document?packageId=&labTestResultDocumentFileId=`,\npassing this row's `documentFileId`.\n",
        "properties": {
          "documentFileId": {
            "type": "integer",
            "example": 301
          },
          "fileName": {
            "type": "string",
            "example": "coa.pdf"
          },
          "userName": {
            "type": "string",
            "nullable": true
          },
          "recordedDateTime": {
            "type": "string",
            "nullable": true
          },
          "labTestResultId": {
            "type": "integer",
            "description": "The recording the document belongs to, the one asked about.",
            "example": 601
          },
          "packageId": {
            "type": "integer",
            "description": "The sample package the results were recorded on.",
            "example": 122901
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "mo.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcLabTestDocumentHistory"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          }
        }
      },
      "MetrcLicense": {
        "type": "object",
        "properties": {
          "licenseName": {
            "type": "string",
            "description": "The facility name for this license",
            "example": "Stinky Farms"
          },
          "licenseNumber": {
            "type": "string",
            "description": "The license number",
            "example": "LIC-00001"
          }
        }
      },
      "MetrcLocation": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the location record.",
            "example": 123456
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_LOCATION",
            "enum": [
              "ACTIVE_LOCATION"
            ]
          },
          "forHarvests": {
            "type": "boolean",
            "example": true
          },
          "forPackages": {
            "type": "boolean",
            "example": true
          },
          "forPlantBatches": {
            "type": "boolean",
            "example": true
          },
          "forPlants": {
            "type": "boolean",
            "example": true
          },
          "isArchived": {
            "type": "boolean",
            "example": false
          },
          "locationTypeId": {
            "type": "integer",
            "example": 1
          },
          "locationTypeName": {
            "type": "string",
            "example": "Default Location Type"
          },
          "name": {
            "type": "string",
            "example": "Row 01"
          }
        }
      },
      "MetrcManicurePlantsInputsResponse": {
        "type": "object",
        "description": "The manicure inputs response. Identical to\n[MetrcHarvestPlantsInputsResponse](#/components/schemas/MetrcHarvestPlantsInputsResponse)\napart from `growthPhase`, which Metrc's manicure page echoes back and the\nharvest page does not return at all.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcHarvestPlantsInputsResponse"
          },
          {
            "type": "object",
            "properties": {
              "growthPhase": {
                "type": "string",
                "description": "The growth phase Metrc rendered the modal for. T3 always requests\n`Flowering`, so this is always `Flowering`.\n\n**It is not a constraint on what you may manicure.** Metrc allows\nmanicuring both Flowering and Vegetative plants in most states\n(California is Flowering-only), and the phase changes only which plant\nrows the page pre-populates for its own autocomplete \u2014 never the\ndrying locations, the units of weight, or the payload\n[Create Manicure](#/Harvests/post_v2_harvests_manicure) accepts. A\nVegetative manicure uses this response unchanged.\n",
                "example": "Flowering"
              }
            }
          }
        ]
      },
      "MetrcMergePlantGroupsInputsResponse": {
        "type": "object",
        "description": "Reference data for merging one plant group into another. Maine only.\n",
        "properties": {
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcMergePlantGroupsPayload": {
        "type": "array",
        "description": "Merge one plant group into another. **Maine only**; no other indexed state\nexposes this modal.\n\nMetrc's own form also submits a plant-count field whose HTML name is\nmalformed -- `modelPlantsCount`, with none of the array brackets every other\nfield carries -- and which is bound to a computed total rather than to\nanything a caller chooses. It is not offered here.\n",
        "items": {
          "type": "object",
          "properties": {
            "targetPlantGroupId": {
              "type": "integer",
              "description": "The group that survives the merge.\n\nTo find eligible groups, use the\n[Merge Source Plants](#/Plants/get_v2_plants_merge_source_plants) endpoint.\n",
              "example": 90210
            },
            "sourcePlantGroupId": {
              "type": "integer",
              "description": "The group merged into the target, which ceases to exist.",
              "example": 90211
            },
            "mergeDate": {
              "type": "string",
              "format": "date",
              "description": "The date the merge took effect.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "targetPlantGroupId",
            "sourcePlantGroupId",
            "mergeDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcMotherPlant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the plant record.",
            "example": 123456
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "VEGETATIVE_PLANT",
            "enum": [
              "ACTIVE_MOTHER_PLANT",
              "ONHOLD_MOTHER_PLANT",
              "INACTIVE_MOTHER_PLANT"
            ]
          },
          "label": {
            "type": "string",
            "description": "Unique label identifier for the plant.",
            "example": "1A4000000000000000000001"
          },
          "stateName": {
            "type": "string",
            "description": "The current state of the plant.",
            "example": "Tracked",
            "enum": [
              "Tracked",
              "Untracked",
              "Destroyed"
            ]
          },
          "growthPhaseName": {
            "type": "string",
            "description": "The growth phase of the plant.",
            "example": "Flowering",
            "enum": [
              "Germination",
              "Vegetative",
              "Flowering",
              "Harvest"
            ]
          },
          "plantCount": {
            "type": "integer",
            "description": "Number of plants in this record.",
            "example": 1
          },
          "groupTagTypeMax": {
            "type": "integer",
            "description": "Maximum type of group tag.",
            "example": 0
          },
          "tagTypeMax": {
            "type": "integer",
            "description": "Maximum type of tag.",
            "example": 1
          },
          "plantBatchName": {
            "type": "string",
            "description": "Name of the plant batch.",
            "example": "PNXPRESS010124"
          },
          "plantBatchTypeName": {
            "type": "string",
            "description": "Type of the plant batch.",
            "example": "Clone",
            "enum": [
              "Clone",
              "Seed"
            ]
          },
          "strainId": {
            "type": "integer",
            "example": 12345
          },
          "strainName": {
            "type": "string",
            "description": "Name of the plant strain.",
            "example": "Northern Lights"
          },
          "locationName": {
            "type": "string",
            "description": "Name of the location where the plant is situated.",
            "example": "Row 05"
          },
          "sublocationName": {
            "type": "string",
            "nullable": true
          },
          "locationTypeName": {
            "type": "string",
            "description": "Type of the location.",
            "example": "Default Location Type",
            "enum": [
              "Default Location Type",
              "Greenhouse",
              "Outdoor"
            ]
          },
          "patientLicenseNumber": {
            "type": "string",
            "description": "License number of the patient, if applicable.",
            "example": "",
            "nullable": true
          },
          "harvestCount": {
            "type": "integer",
            "description": "Number of times the plant has been harvested.",
            "example": 0
          },
          "isOnHold": {
            "type": "boolean",
            "description": "Indicates if the plant is on hold.",
            "example": false
          },
          "plantedDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant was planted.",
            "example": "2024-04-09"
          },
          "vegetativeDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant entered the vegetative stage.",
            "example": "2024-04-30"
          },
          "floweringDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant entered the flowering stage.",
            "example": "2024-06-14"
          },
          "destroyedDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant was destroyed, if applicable.",
            "nullable": true
          },
          "destroyedNote": {
            "type": "string",
            "description": "Note about the destruction of the plant, if applicable.",
            "nullable": true
          },
          "destroyedByUserName": {
            "type": "string",
            "description": "Username of the person who destroyed the plant, if applicable.",
            "nullable": true
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The last time the plant record was modified.",
            "example": "2024-07-26T13:00:00+00:00"
          },
          "survivedCount": {
            "type": "integer",
            "description": "Number of plants that survived from this record.",
            "example": 1
          },
          "motherPlantD ate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant was designated as a mother plant.",
            "example": "2024-05-01"
          },
          "descendedCount": {
            "type": "integer",
            "description": "Number of descendant plants from this plant.",
            "example": 3
          },
          "clonedCount": {
            "type": "integer",
            "description": "Number of clones taken from this plant.",
            "example": 2
          }
        }
      },
      "MetrcOutgoingSuperTransfer": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcOutgoingTransfer"
          },
          {
            "type": "object",
            "properties": {
              "deliveries": {
                "type": "array",
                "description": "A list of this transfer's deliveries, each with optional packages and transporters",
                "items": {
                  "allOf": [
                    {
                      "$ref": "#/components/schemas/MetrcTransferDelivery"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "packages": {
                          "type": "array",
                          "description": "A list of this delivery's packages",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTransferredPackage"
                          }
                        },
                        "transporters": {
                          "type": "array",
                          "description": "A list of this delivery's transporters",
                          "items": {
                            "$ref": "#/components/schemas/MetrcTransferTransporter"
                          }
                        }
                      }
                    }
                  ]
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcOutgoingTransfer": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_OUTGOING_TRANSFER",
            "enum": [
              "ACTIVE_OUTGOING_TRANSFER",
              "INACTIVE_OUTGOING_TRANSFER",
              "REJECTED_TRANSFER"
            ]
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the transfer",
            "example": 1234567
          },
          "manifestNumber": {
            "type": "string",
            "description": "Unique manifest number associated with the transfer",
            "example": "0001234567"
          },
          "shipmentLicenseTypeName": {
            "type": "string",
            "description": "Type of license for the shipment",
            "example": "Licensed"
          },
          "shipperFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the shipper's facility",
            "example": "LIC-00002"
          },
          "shipperFacilityName": {
            "type": "string",
            "description": "Name of the shipper's facility",
            "example": "Sample Manufacturing, Inc."
          },
          "shipperFacilityInfo": {
            "type": "string",
            "description": "License number and name of the shipper's facility",
            "example": "LIC-00002 (Sample Manufacturing, Inc.)"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the transfer"
          },
          "transporterFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the transporter facility",
            "example": ""
          },
          "transporterFacilityName": {
            "type": "string",
            "description": "Name of the transporter facility",
            "example": ""
          },
          "driverName": {
            "type": "string",
            "description": "Name of the driver",
            "example": ""
          },
          "driverOccupationalLicenseNumber": {
            "type": "string",
            "description": "Occupational license number of the driver",
            "example": ""
          },
          "driverVehicleLicenseNumber": {
            "type": "string",
            "description": "License number of the vehicle used by the driver",
            "example": ""
          },
          "vehicleMake": {
            "type": "string",
            "description": "Make of the vehicle used for transport",
            "example": ""
          },
          "vehicleModel": {
            "type": "string",
            "description": "Model of the vehicle used for transport",
            "example": ""
          },
          "vehicleLicensePlateNumber": {
            "type": "string",
            "description": "License plate number of the vehicle",
            "example": ""
          },
          "deliveryFacilities": {
            "type": "string",
            "description": "Details of the delivery facilities",
            "example": "LIC-00001 (Example Dispensary LLC)"
          },
          "deliveryCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of deliveries in the transfer",
            "example": 1
          },
          "receivedDeliveryCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of deliveries received",
            "example": 0
          },
          "packageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Total number of packages in the transfer",
            "example": 8
          },
          "receivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages received",
            "example": 0
          },
          "containsPlantPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains plant packages",
            "example": false
          },
          "containsProductPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains product packages",
            "example": true
          },
          "containsTradeSample": {
            "type": "boolean",
            "description": "Indicates if the transfer contains trade samples",
            "example": false
          },
          "containsDonation": {
            "type": "boolean",
            "description": "Indicates if the transfer contains donations",
            "example": false
          },
          "containsTestingSample": {
            "type": "boolean",
            "description": "Indicates if the transfer contains testing samples",
            "example": false
          },
          "containsProductRequiresRemediation": {
            "type": "boolean",
            "description": "Indicates if the transfer contains products that require remediation",
            "example": false
          },
          "containsRemediatedProductPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains remediated product packages",
            "example": false
          },
          "editCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of times the transfer record has been edited",
            "example": 1
          },
          "canEdit": {
            "type": "boolean",
            "description": "Indicates if the transfer record can be edited",
            "example": true
          },
          "canEditOutgoingInactive": {
            "type": "boolean",
            "description": "Indicates if the transfer record can be edited when outgoing and inactive",
            "example": false
          },
          "isVoided": {
            "type": "boolean",
            "description": "Indicates if the transfer has been voided",
            "example": false
          },
          "createdDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transfer was created",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "createdByUserName": {
            "type": "string",
            "description": "Username of the person who created the transfer record",
            "example": "Jane Doe"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transfer was last modified",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "deliveryId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the delivery associated with the transfer",
            "example": 1234566
          },
          "recipientFacilityId": {
            "type": "integer",
            "format": "int32",
            "description": "The ID of the recipient facility.",
            "example": 456
          },
          "recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient facility",
            "example": "LIC-00001"
          },
          "recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient facility",
            "example": "Example Dispensary LLC"
          },
          "recipientFacilityInfo": {
            "type": "string",
            "example": ""
          },
          "shipmentTypeName": {
            "type": "string",
            "description": "Type of shipment",
            "example": "Unaffiliated Transfer"
          },
          "shipmentTransactionTypeName": {
            "type": "string",
            "description": "Type of shipment transaction",
            "example": "Wholesale"
          },
          "estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date and time of departure",
            "example": "2024-07-26T06:00:00.000"
          },
          "actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of departure"
          },
          "estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date and time of arrival",
            "example": "2024-07-26T17:00:00.000"
          },
          "actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of arrival"
          },
          "deliveryPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages in the delivery",
            "example": 8
          },
          "deliveryReceivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages received in the delivery",
            "example": 0
          },
          "receivedByName": {
            "type": "string",
            "nullable": true,
            "description": "Name of the person who received the delivery"
          },
          "receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date and time when the delivery was received"
          },
          "estimatedReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated date and time of return departure"
          },
          "actualReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of return departure"
          },
          "estimatedReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated date and time of return arrival"
          },
          "actualReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of return arrival"
          },
          "rejectedPackagesReturned": {
            "type": "boolean",
            "description": "Indicates if rejected packages were returned",
            "example": false
          },
          "transporterAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when all transporters were approved",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "destinationsAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when all destinations were approved",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "transportersAutomaticallyApproved": {
            "type": "boolean",
            "description": "Indicates if transporters were automatically approved",
            "example": true
          },
          "destinationsAutomaticallyApproved": {
            "type": "boolean",
            "description": "Indicates if destinations were automatically approved",
            "example": true
          },
          "approvalRejectDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date and time when the approval was rejected"
          },
          "approvalRejectedByUser": {
            "type": "string",
            "description": "Username of the person who rejected the approval",
            "example": "Jane Doe"
          },
          "approvalRejectedFacilityLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "License number of the facility where approval was rejected"
          },
          "approvalRejectReasonId": {
            "type": "string",
            "nullable": true,
            "description": "Reason ID for the approval rejection"
          },
          "PDFDocumentFileSystemId": {
            "type": "number",
            "example": 0
          },
          "invoiceNumber": {
            "type": "string",
            "example": ""
          },
          "lineNumber": {
            "type": "integer",
            "format": "int32",
            "example": ""
          }
        }
      },
      "MetrcOutgoingTransferReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "manifestNumber__endswith:0003",
              "recipientFacilityName__contains:dispensary"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "createdDateTime:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcOutgoingTransfer"
            }
          }
        }
      },
      "MetrcPackage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The unique identifier for the package.",
            "example": 1234567
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "The grid the package was read from, such as ACTIVE, ONHOLD, INACTIVE, INTRANSIT, PRODUCT_LABEL for the Retail ID Product Labels grid, or LAB_SAMPLE for a testing lab's Lab Samples grid.",
            "enum": [
              "ACTIVE_PACKAGE",
              "ONHOLD_PACKAGE",
              "INACTIVE_PACKAGE",
              "INTRANSIT_PACKAGE",
              "PRODUCT_LABEL_PACKAGE",
              "LAB_SAMPLE_PACKAGE"
            ],
            "example": "ACTIVE_PACKAGE"
          },
          "archivedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the package was archived, if applicable."
          },
          "containsRemediatedProduct": {
            "type": "boolean",
            "description": "Indicates if the package contains remediated product.",
            "example": false
          },
          "donationFacilityLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "The license number of the facility where the donation occurred, if applicable."
          },
          "donationFacilityName": {
            "type": "string",
            "nullable": true,
            "description": "The name of the facility where the donation occurred, if applicable."
          },
          "facilityLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "The license number of the facility associated with the package."
          },
          "facilityName": {
            "type": "string",
            "nullable": true,
            "description": "The name of the facility associated with the package."
          },
          "finishedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the package was finished, if applicable."
          },
          "initialLabTestingState": {
            "description": "The initial state of lab testing for the package, such as NotRequired, TestPassed, or NotSubmitted.",
            "$ref": "#/components/schemas/LabTestingStates"
          },
          "isArchived": {
            "type": "boolean",
            "description": "Indicates if the package is archived.",
            "example": false
          },
          "isDonation": {
            "type": "boolean",
            "description": "Indicates if the package was a donation.",
            "example": false
          },
          "isDonationPersistent": {
            "type": "boolean",
            "description": "Indicates if the donation status of the package is persistent.",
            "example": false
          },
          "isFinished": {
            "type": "boolean",
            "description": "Indicates if the package is marked as finished.",
            "example": false
          },
          "isInTransit": {
            "type": "boolean",
            "description": "Indicates if the package is currently in transit.",
            "example": false
          },
          "isOnHold": {
            "type": "boolean",
            "description": "Indicates if the package is on hold.",
            "example": false
          },
          "isOnInvestigation": {
            "type": "boolean",
            "description": "Indicates if the package is under investigation.",
            "example": false
          },
          "isOnInvestigationHold": {
            "type": "boolean",
            "description": "Indicates if the package is on hold due to investigation.",
            "example": false
          },
          "isOnInvestigationRecall": {
            "type": "boolean",
            "description": "Indicates if the package is under investigation for recall.",
            "example": false
          },
          "investigation": {
            "type": "string",
            "nullable": true,
            "description": "Investigation details or status, if applicable."
          },
          "isOnHoldCombined": {
            "type": "boolean",
            "description": "Combined hold status indicator.",
            "example": false
          },
          "isOnRecallCombined": {
            "type": "boolean",
            "description": "Combined recall status indicator.",
            "example": false
          },
          "isProcessValidationTestingSample": {
            "type": "boolean",
            "description": "Indicates if the package is a sample for process validation testing.",
            "example": false
          },
          "isProductionBatch": {
            "type": "boolean",
            "description": "Indicates if the package is part of a production batch.",
            "example": false
          },
          "isTestingSample": {
            "type": "boolean",
            "description": "Indicates if the package is a testing sample.",
            "example": false
          },
          "isTradeSample": {
            "type": "boolean",
            "description": "Indicates if the package is a trade sample.",
            "example": false
          },
          "isTradeSamplePersistent": {
            "type": "boolean",
            "description": "Indicates if the trade sample status of the package is persistent.",
            "example": false
          },
          "item": {
            "$ref": "#/components/schemas/MetrcItem",
            "description": "Details of the item associated with the package."
          },
          "itemFromFacilityLicenseNumber": {
            "type": "string",
            "description": "The license number of the facility from which the item originated.",
            "example": "LIC-00001"
          },
          "itemFromFacilityName": {
            "type": "string",
            "description": "The name of the facility from which the item originated.",
            "example": "Example Dispensary LLC"
          },
          "labTestingStateDate": {
            "type": "string",
            "format": "date-time",
            "description": "The date when the lab testing state was last updated.",
            "example": "2024-07-24"
          },
          "labTestingStateName": {
            "type": "string",
            "description": "The current state of lab testing for the package.",
            "example": "TestPassed"
          },
          "labTestingRecordedDate": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the lab testing results were recorded.",
            "example": "2024-07-24T19:00:00+00:00"
          },
          "labTestingPerformedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the lab testing was performed."
          },
          "labTestStageId": {
            "type": "integer",
            "nullable": true,
            "description": "The identifier for the stage of the lab test, if applicable."
          },
          "labTestResultExpirationDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The expiration date and time of the lab test result, if applicable."
          },
          "label": {
            "type": "string",
            "description": "The label identifier for the package.",
            "example": "1A4000000000000000000001"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the package details were last modified.",
            "example": "2024-07-24T19:00:00+00:00"
          },
          "locationName": {
            "type": "string",
            "nullable": true,
            "description": "The name of the location where the package is stored.",
            "example": "Packaging Room"
          },
          "sublocationName": {
            "type": "string",
            "nullable": true
          },
          "locationTypeName": {
            "type": "string",
            "nullable": true,
            "description": "The type of location where the package is stored.",
            "example": "Default Location Type"
          },
          "multiHarvest": {
            "type": "boolean",
            "description": "Indicates if the package contains material from multiple harvests.",
            "example": false
          },
          "multiPackage": {
            "type": "boolean",
            "description": "Indicates if the package is part of multiple packages.",
            "example": false
          },
          "multiProductionBatch": {
            "type": "boolean",
            "description": "Indicates if the package is part of multiple production batches.",
            "example": false
          },
          "note": {
            "type": "string",
            "description": "Additional notes or comments about the package.",
            "example": ""
          },
          "packageType": {
            "type": "string",
            "description": "The type of package, such as ImmaturePlant or Product.",
            "enum": [
              "ImmaturePlant",
              "Product"
            ],
            "example": "Product"
          },
          "packagedByFacilityLicenseNumber": {
            "type": "string",
            "description": "The license number of the facility where the package was created.",
            "example": "LIC-00001"
          },
          "packagedByFacilityName": {
            "type": "string",
            "description": "The name of the facility where the package was created.",
            "example": "Example Dispensary LLC"
          },
          "packagedDate": {
            "type": "string",
            "format": "date-time",
            "description": "The date when the package was created.",
            "example": "2024-07-24"
          },
          "patientLicenseNumber": {
            "type": "string",
            "description": "The license number of the patient, if applicable.",
            "example": ""
          },
          "productRequiresRemediation": {
            "type": "boolean",
            "description": "Indicates if the product in the package requires remediation.",
            "example": false
          },
          "productionBatchNumber": {
            "type": "string",
            "description": "The number of the production batch associated with the package.",
            "example": "PB00001"
          },
          "quantity": {
            "type": "number",
            "description": "The quantity of the product in the package.",
            "example": 1130.7
          },
          "receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the package was received, if applicable."
          },
          "receivedFromFacilityLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "The license number of the facility from which the package was received, if applicable."
          },
          "receivedFromFacilityName": {
            "type": "string",
            "nullable": true,
            "description": "The name of the facility from which the package was received, if applicable."
          },
          "receivedFromManifestNumber": {
            "type": "string",
            "nullable": true,
            "description": "The manifest number associated with the received package, if applicable."
          },
          "remediationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date when the product in the package was remediated, if applicable."
          },
          "sourceHarvestNames": {
            "type": "string",
            "description": "The names of the harvests from which the package was created.",
            "example": "HARVEST0001"
          },
          "sourcePackageIsDonation": {
            "type": "boolean",
            "description": "Indicates if the source package was a donation.",
            "example": false
          },
          "sourcePackageIsTradeSample": {
            "type": "boolean",
            "description": "Indicates if the source package was a trade sample.",
            "example": false
          },
          "sourcePackageLabels": {
            "type": "string",
            "description": "The labels of the source packages used to create the current package.",
            "example": "1A4000000000000000000002"
          },
          "sourceProductionBatchNumbers": {
            "type": "string",
            "description": "The numbers of the production batches from which the package was created.",
            "example": "HARVEST0003"
          },
          "tradeSampleFacilityName": {
            "type": "string",
            "nullable": true,
            "description": "The name of the facility where the trade sample was created, if applicable."
          },
          "tradeSampleFacilityLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "The license number of the facility where the trade sample was created, if applicable."
          },
          "transferManifestNumber": {
            "type": "string",
            "description": "The manifest number associated with the transfer of the package.",
            "example": ""
          },
          "unitOfMeasureAbbreviation": {
            "$ref": "#/components/schemas/UnitOfMeasureAbbreviation",
            "description": "The abbreviation for the unit of measure used for the package quantity.",
            "example": "g"
          },
          "unitOfMeasureId": {
            "type": "number",
            "description": "The ID of the unit of measure used for the package quantity.",
            "example": 4
          },
          "unitOfMeasureQuantityType": {
            "type": "string",
            "description": "The type of quantity measurement used, such as WeightBased, CountBased, or VolumeBased.",
            "enum": [
              "WeightBased",
              "CountBased",
              "VolumeBased"
            ],
            "example": "WeightBased"
          },
          "sourceHarvestCount": {
            "type": "number",
            "description": "The number of harvests from which the package was created.",
            "example": 1
          },
          "sourcePackageCount": {
            "type": "number",
            "description": "The number of source packages used to create the current package.",
            "example": 1
          },
          "sourceProcessingJobCount": {
            "type": "number",
            "description": "The number of processing jobs involved in creating the package.",
            "example": 0
          },
          "sourceProcessingJobNumbers": {
            "type": "string",
            "description": "The numbers of the processing jobs involved in creating the package.",
            "example": ""
          },
          "sourceProcessingJobNames": {
            "type": "string",
            "description": "The names of the processing jobs involved in creating the package.",
            "example": ""
          },
          "multiProcessingJob": {
            "type": "boolean",
            "description": "Indicates if multiple processing jobs were involved in creating the package.",
            "example": false
          },
          "expirationDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The expiration date of the product in the package, if applicable."
          },
          "sellByDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The sell-by date of the product in the package, if applicable."
          },
          "useByDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The use-by date of the product in the package, if applicable."
          },
          "labTestResultDocumentFileId": {
            "type": "number",
            "nullable": true,
            "description": "The file ID of the lab test result document, if available."
          },
          "isOnRetailerDelivery": {
            "type": "boolean",
            "description": "Indicates if the package is on a retailer delivery.",
            "example": false
          },
          "packageForProductDestruction": {
            "type": "boolean",
            "nullable": true,
            "description": "Indicates if the package is intended for product destruction."
          },
          "hasPartial": {
            "type": "boolean",
            "description": "Indicates if the package has partial status.",
            "example": false
          },
          "isPartial": {
            "type": "boolean",
            "description": "Indicates if the package is a partial package.",
            "example": false
          },
          "inTransitStatus": {
            "type": "string",
            "description": "The current transit status of the package.",
            "example": "None"
          },
          "processingJobTypeId": {
            "type": "integer",
            "nullable": true,
            "description": "The identifier for the type of processing job, if applicable."
          },
          "isOnRecall": {
            "type": "boolean",
            "example": false
          },
          "decontaminationDate": {
            "type": "string",
            "nullable": true
          },
          "containsDecontaminatedProduct": {
            "type": "boolean",
            "example": false
          },
          "productRequiresDecontamination": {
            "type": "boolean",
            "example": false
          },
          "productLabel": {
            "type": "string",
            "nullable": true
          },
          "labTestStage": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "number",
            "nullable": true
          },
          "labelsLastGeneratedDateTime": {
            "type": "string",
            "nullable": true
          },
          "hasBeenSampled": {
            "type": "boolean",
            "example": false
          }
        }
      },
      "MetrcPackageLabResult": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "packageId": {
            "type": "integer",
            "description": "Unique identifier for the package.",
            "example": 123456
          },
          "labTestResultId": {
            "type": "integer",
            "description": "Unique identifier for the lab test result.",
            "example": 654321
          },
          "labFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the lab facility.",
            "example": "TES000011"
          },
          "labFacilityName": {
            "type": "string",
            "description": "Name of the lab facility.",
            "example": "Green Precision Analytics Inc."
          },
          "sourcePackageLabel": {
            "type": "string",
            "description": "Label of the source package.",
            "example": "1A4000000000000000000001"
          },
          "productName": {
            "type": "string",
            "description": "Name of the product.",
            "example": "Blue Dream Flower"
          },
          "productCategoryName": {
            "type": "string",
            "description": "Category name of the product.",
            "example": "Bud/Flower"
          },
          "testPerformedDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the test was performed.",
            "example": "2024-01-01"
          },
          "overallPassed": {
            "type": "boolean",
            "description": "Indicates if the overall test was passed.",
            "example": true
          },
          "isRevoked": {
            "type": "boolean",
            "description": "Indicates if the test result has been revoked.",
            "example": false
          },
          "revokedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date when the test result was revoked, if applicable."
          },
          "labTestResultDocumentFileId": {
            "type": "integer",
            "description": "Identifier for the document file of the lab test result.",
            "example": 123456
          },
          "resultReleased": {
            "type": "boolean",
            "description": "Indicates if the test result has been released.",
            "example": true
          },
          "resultReleaseDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the test result was released.",
            "example": "2024-01-01T18:00:00+00:00"
          },
          "expirationDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Expiration date and time for the test result, if applicable."
          },
          "labTestDetailId": {
            "type": "integer",
            "description": "Identifier for the detailed lab test result.",
            "example": 4321234
          },
          "testTypeName": {
            "type": "string",
            "description": "Name of the test type.",
            "example": "Alpha-Bisabolol (%) Mandatory Terpenes"
          },
          "testPassed": {
            "type": "boolean",
            "description": "Indicates if the specific test was passed.",
            "example": true
          },
          "testResultLevel": {
            "type": "number",
            "format": "float",
            "description": "Level of the test result.",
            "example": 0.0234
          },
          "testComment": {
            "type": "string",
            "description": "Comments on the test result.",
            "example": "No significant findings."
          },
          "testInformationalOnly": {
            "type": "boolean",
            "description": "Indicates if the test result is for informational purposes only.",
            "example": false
          },
          "labTestDetailIsRevoked": {
            "type": "boolean",
            "description": "Indicates if the detailed lab test result has been revoked.",
            "example": false
          },
          "labTestDetailRevokedDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date when the detailed lab test result was revoked, if applicable."
          },
          "labTestResultLastModified": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the lab test result was last modified.",
            "example": "2024-01-01T18:01:00+00:00"
          },
          "labTestBatchName": {
            "type": "string",
            "nullable": true,
            "description": "The lab test batch the test belongs to.",
            "example": "Additional - Mandatory Cannabinoid % and Totals"
          },
          "labTestTypeId": {
            "type": "integer",
            "nullable": true,
            "example": 153
          },
          "sourcePackageId": {
            "type": "integer",
            "nullable": true
          },
          "testResultQualifier": {
            "type": "string",
            "nullable": true
          },
          "testingFacilityId": {
            "type": "integer",
            "nullable": true,
            "description": "The facility id of the lab that recorded the test.",
            "example": 514
          },
          "testingGroupName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "MetrcPackageLabResultBatch": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from.",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "The name of the object's data model.",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The timestamp of when this object was pulled from Metrc."
          },
          "licenseNumber": {
            "type": "string",
            "description": "The license number used to access this object."
          },
          "id": {
            "type": "integer",
            "description": "The unique identifier of the test result.",
            "example": 1234567
          },
          "name": {
            "type": "string",
            "description": "The name of the test panel or category.",
            "example": "Additional - Mandatory Terpenes"
          },
          "testTypesRequired": {
            "type": "integer",
            "description": "The number of test types required for this item.",
            "example": 29
          },
          "testTypesPerformed": {
            "type": "integer",
            "description": "The number of test types actually performed.",
            "example": 29
          },
          "testsPassed": {
            "type": "integer",
            "description": "The number of tests that passed.",
            "example": 58
          },
          "testsFailed": {
            "type": "integer",
            "description": "The number of tests that failed.",
            "example": 0
          },
          "isFullyRevoked": {
            "type": "boolean",
            "nullable": true,
            "description": "Whether the item is fully revoked; may be null."
          },
          "tests": {
            "type": "array",
            "description": "A list of individual test result entries.",
            "items": {
              "$ref": "#/components/schemas/MetrcPackageLabResult"
            }
          }
        }
      },
      "MetrcPackageLabSample": {
        "description": "One row of a testing lab's Lab Samples grid: one test on one sample package\nthe lab holds. Each row is the sample's package record with that test's\nfields added, so a sample with twelve recorded tests is listed in twelve\nrows, all carrying the sample's package `id`. `labTestDetailId` names the\ntest. A sample is not listed until results are recorded for it.\n",
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcPackage"
          },
          {
            "type": "object",
            "properties": {
              "labTestDetailId": {
                "type": "integer",
                "description": "Identifies this row's test. Object lookups are keyed on it.",
                "example": 1302
              },
              "labTestResultId": {
                "type": "integer",
                "description": "Identifies the recording this test belongs to, shared by every test\nrecorded on the sample at once.\n",
                "example": 602
              },
              "labTestTypeId": {
                "type": "integer",
                "example": 153
              },
              "testTypeName": {
                "type": "string",
                "nullable": true,
                "description": "The test this row reports.",
                "example": "CBD (%) Mandatory Cannabinoid % and Totals"
              },
              "testPassed": {
                "type": "boolean",
                "nullable": true,
                "description": "Whether this row's test passed."
              },
              "overallPassed": {
                "type": "boolean",
                "nullable": true,
                "description": "Whether the sample passed every test."
              },
              "testInformationalOnly": {
                "type": "boolean",
                "nullable": true
              },
              "testResultLevel": {
                "type": "number",
                "nullable": true
              },
              "testResultQualifier": {
                "type": "string",
                "nullable": true
              },
              "testComment": {
                "type": "string",
                "nullable": true
              },
              "testPerformedDate": {
                "type": "string",
                "nullable": true,
                "example": "2026-10-23"
              },
              "resultReleased": {
                "type": "boolean",
                "nullable": true
              },
              "resultReleaseDateTime": {
                "type": "string",
                "nullable": true,
                "example": "2026-10-23T15:42:00+00:00"
              },
              "testingFacilityId": {
                "type": "integer",
                "nullable": true
              },
              "labFacilityLicenseNumber": {
                "type": "string",
                "nullable": true
              },
              "labFacilityName": {
                "type": "string",
                "nullable": true
              },
              "labTestResultExpirationDays": {
                "type": "integer",
                "nullable": true
              },
              "packagedQuantityAtCreation": {
                "type": "number",
                "nullable": true,
                "example": 0.5
              },
              "minimumSampleSizeAtCreation": {
                "type": "number",
                "nullable": true
              },
              "minimumSampleSizeUnitOfMeasureAbbreviationAtCreation": {
                "type": "string",
                "nullable": true
              },
              "minimumSampleSizeUnitOfMeasureIdAtCreation": {
                "type": "integer",
                "nullable": true
              },
              "requiredLabTestBatches": {
                "type": "array",
                "description": "Empty on every row captured so far.",
                "items": {}
              }
            }
          }
        ]
      },
      "MetrcPackageLabSampleReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "label__contains:0003"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "name:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcPackageLabSample"
            }
          }
        }
      },
      "MetrcPackageReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "label__endswith:0003",
              "item.name__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          }
        }
      },
      "MetrcPackageRequiredLabtestBatch": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackageRequiredLabtestBatch"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "packageId": {
            "type": "integer",
            "description": "Unique identifier for the package.",
            "example": 123456
          },
          "labTestBatchId": {
            "type": "integer",
            "description": "Unique identifier for the lab test batch.",
            "example": 123456
          },
          "labTestBatchName": {
            "type": "integer",
            "description": "Lab test batch name.",
            "example": "Raw Plant Material"
          }
        }
      },
      "MetrcPackageSourceHarvest": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "harvestedByFacilityLicenseNumber": {
            "type": "string",
            "example": "EX000001"
          },
          "harvestedByFacilityName": {
            "type": "string",
            "example": "Example Facility LLC"
          },
          "name": {
            "type": "string",
            "example": "01012025 - Northern Lights"
          },
          "harvestTypeName": {
            "type": "string",
            "example": "Harvest Batch"
          },
          "labTestingStateName": {
            "type": "string",
            "example": "Not Submitted"
          },
          "labTestingStateDate": {
            "type": "string",
            "nullable": true
          },
          "isOnHold": {
            "type": "boolean"
          },
          "isOnInvestigation": {
            "type": "boolean",
            "description": "Indicates if the harvest is under investigation.",
            "example": false
          },
          "isOnInvestigationHold": {
            "type": "boolean",
            "description": "Indicates if the harvest is on hold due to investigation.",
            "example": false
          },
          "isOnInvestigationRecall": {
            "type": "boolean",
            "description": "Indicates if the harvest is under investigation for recall.",
            "example": false
          },
          "isOnHoldCombined": {
            "type": "boolean",
            "description": "Combined hold status indicator.",
            "example": false
          },
          "harvestStartDate": {
            "type": "string",
            "format": "date",
            "example": "2025-01-01"
          }
        }
      },
      "MetrcPagesResponse": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The Metrc hostname the links are built on, from the session.",
            "example": "ca.metrc.com"
          },
          "licenseNumber": {
            "type": "string",
            "description": "The license the links open.",
            "example": "LIC-00001"
          },
          "pages": {
            "type": "array",
            "description": "Every Metrc page, in the order of Metrc's navigation menu.",
            "items": {
              "type": "object",
              "properties": {
                "key": {
                  "type": "string",
                  "description": "A stable identifier for the page.",
                  "example": "transfers-licensed-templates"
                },
                "group": {
                  "type": "string",
                  "description": "The Metrc navigation menu the page is listed under.",
                  "enum": [
                    "Plants",
                    "Packages",
                    "Transfers",
                    "Sales",
                    "Patients",
                    "Reports",
                    "Admin"
                  ],
                  "example": "Transfers"
                },
                "title": {
                  "type": "string",
                  "description": "The page's link text in that menu.",
                  "example": "Templates"
                },
                "path": {
                  "type": "string",
                  "description": "The path that opens the page for the license.",
                  "example": "/industry/LIC-00001/transfers/licensed/templates"
                },
                "url": {
                  "type": "string",
                  "description": "The full URL that opens the page for the license.",
                  "example": "https://ca.metrc.com/industry/LIC-00001/transfers/licensed/templates"
                },
                "tables": {
                  "type": "array",
                  "description": "The page's tables, in the order its tab strip shows them. Empty for a page with no tables.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "key": {
                        "type": "string",
                        "description": "The table's name, unique within its page. Also its sub-view name in `GET /v2/permissions`.",
                        "example": "plantbatchesonhold"
                      },
                      "title": {
                        "type": "string",
                        "description": "A name for the table, unique within its page. Metrc's own tab labels repeat.",
                        "example": "Immature On Hold"
                      },
                      "label": {
                        "type": "string",
                        "nullable": true,
                        "description": "The text of the table's tab in Metrc. Null when Metrc renders no tab for it.",
                        "example": "On Hold"
                      },
                      "gridSelector": {
                        "type": "string",
                        "description": "The grid's selector, as written in the Metrc tab's `data-grid-selector` attribute.",
                        "example": "#plantbatchesonhold-grid"
                      },
                      "hasTab": {
                        "type": "boolean",
                        "description": "Whether Metrc renders a tab carrying `gridSelector`. When false, link to the page itself.",
                        "example": true
                      },
                      "t3EndpointId": {
                        "type": "string",
                        "nullable": true,
                        "description": "The collection the table lists, matching the `t3EndpointId` of a search result. Null when T3 does not serve the collection.",
                        "example": "METRC_ONHOLD_PLANTBATCHES"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "MetrcPlant": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the plant record.",
            "example": 123456
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "facilityId": {
            "type": "integer",
            "description": "Metrc's internal id for the facility holding the plant.",
            "example": 512
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "VEGETATIVE_PLANT",
            "enum": [
              "VEGETATIVE_PLANT",
              "FLOWERING_PLANT",
              "ONHOLD_PLANT",
              "INACTIVE_PLANT",
              "ACTIVE_MOTHER_PLANT",
              "ONHOLD_MOTHER_PLANT",
              "INACTIVE_MOTHER_PLANT"
            ]
          },
          "label": {
            "type": "string",
            "description": "Unique label identifier for the plant.",
            "example": "1A4000000000000000000001"
          },
          "tagId": {
            "type": "integer",
            "description": "Id of the tag whose label identifies the plant.",
            "example": 519715
          },
          "tagTypeId": {
            "type": "integer",
            "description": "Id of the plant tag's type.",
            "example": 0
          },
          "stateName": {
            "type": "string",
            "description": "The current state of the plant.",
            "example": "Tracked",
            "enum": [
              "Tracked",
              "Untracked",
              "Destroyed"
            ]
          },
          "state": {
            "type": "string",
            "description": "Same value as stateName.",
            "example": "Tracked"
          },
          "growthPhaseName": {
            "type": "string",
            "description": "The growth phase of the plant.",
            "example": "Flowering",
            "enum": [
              "Germination",
              "Vegetative",
              "Flowering",
              "Harvest"
            ]
          },
          "growthPhase": {
            "type": "string",
            "description": "Same value as growthPhaseName.",
            "example": "Flowering"
          },
          "plantCount": {
            "type": "integer",
            "description": "Number of plants in this record.",
            "example": 1
          },
          "groupTagTypeMax": {
            "type": "integer",
            "description": "Maximum type of group tag.",
            "example": 0
          },
          "tagTypeMax": {
            "type": "integer",
            "description": "Maximum type of tag.",
            "example": 1
          },
          "plantBatchName": {
            "type": "string",
            "description": "Name of the plant batch.",
            "example": "PNXPRESS010124"
          },
          "plantBatchId": {
            "type": "integer",
            "description": "Id of the plant batch named by plantBatchName.",
            "example": 11901
          },
          "plantBatchTypeName": {
            "type": "string",
            "description": "Type of the plant batch.",
            "example": "Clone",
            "enum": [
              "Clone",
              "Seed"
            ]
          },
          "plantBatchTypeId": {
            "type": "integer",
            "description": "Id of the plant batch type named by plantBatchTypeName.",
            "example": 1
          },
          "strainId": {
            "type": "integer",
            "example": 12345
          },
          "strainName": {
            "type": "string",
            "description": "Name of the plant strain.",
            "example": "Northern Lights"
          },
          "locationName": {
            "type": "string",
            "description": "Name of the location where the plant is situated.",
            "example": "Row 05"
          },
          "locationId": {
            "type": "integer",
            "description": "Id of the location named by locationName.",
            "example": 512
          },
          "sublocationName": {
            "type": "string",
            "nullable": true
          },
          "sublocationId": {
            "type": "integer",
            "description": "Id of the sublocation named by sublocationName.",
            "nullable": true
          },
          "locationTypeName": {
            "type": "string",
            "description": "Type of the location.",
            "example": "Default Location Type",
            "enum": [
              "Default Location Type",
              "Greenhouse",
              "Outdoor"
            ]
          },
          "patientLicenseNumber": {
            "type": "string",
            "description": "License number of the patient, if applicable.",
            "example": "",
            "nullable": true
          },
          "harvestCount": {
            "type": "integer",
            "description": "Number of times the plant has been harvested.",
            "example": 0
          },
          "harvestId": {
            "type": "integer",
            "description": "Id of the harvest the plant was last harvested into, if any.",
            "nullable": true
          },
          "harvestedDate": {
            "type": "string",
            "format": "date",
            "description": "Date the plant was last harvested, if it has been.",
            "nullable": true
          },
          "harvestedWetWeight": {
            "type": "number",
            "description": "Wet weight of the plant's last harvest, if it has been harvested.",
            "nullable": true
          },
          "harvestedUnitOfWeightId": {
            "type": "integer",
            "description": "Id of the unit harvestedWetWeight is measured in.",
            "nullable": true
          },
          "harvestedUnitOfWeightName": {
            "type": "string",
            "description": "Name of the unit harvestedWetWeight is measured in.",
            "example": "Grams",
            "nullable": true
          },
          "harvestedUnitOfWeightAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the unit harvestedWetWeight is measured in.",
            "example": "g",
            "nullable": true
          },
          "isOnHold": {
            "type": "boolean",
            "description": "Indicates if the plant is on hold.",
            "example": false
          },
          "administrativeHolds": {
            "type": "array",
            "description": "Administrative holds placed on the plant, if any.",
            "items": {
              "type": "object"
            },
            "nullable": true
          },
          "isOnInvestigation": {
            "type": "boolean",
            "description": "Indicates if the plant is under investigation.",
            "example": false
          },
          "isOnInvestigationHold": {
            "type": "boolean",
            "description": "Indicates if the plant is on hold due to investigation.",
            "example": false
          },
          "isOnInvestigationRecall": {
            "type": "boolean",
            "description": "Indicates if the plant is under investigation for recall.",
            "example": false
          },
          "plantedDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant was planted.",
            "example": "2024-04-09"
          },
          "vegetativeDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant entered the vegetative stage.",
            "example": "2024-04-30"
          },
          "floweringDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant entered the flowering stage.",
            "example": "2024-06-14"
          },
          "destroyedDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant was destroyed, if applicable.",
            "nullable": true
          },
          "destroyedNote": {
            "type": "string",
            "description": "Note about the destruction of the plant, if applicable.",
            "nullable": true
          },
          "destroyedByUserName": {
            "type": "string",
            "description": "Username of the person who destroyed the plant, if applicable.",
            "nullable": true
          },
          "destroyedById": {
            "type": "integer",
            "description": "Id of the user who destroyed the plant, or 0 when it has not been destroyed.",
            "example": 0
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The last time the plant record was modified.",
            "example": "2024-07-26T13:00:00+00:00"
          },
          "survivedCount": {
            "type": "integer",
            "description": "Number of plants that survived from this record.",
            "example": 1
          },
          "motherPlantDate": {
            "type": "string",
            "format": "date",
            "description": "Date when the plant was designated as a mother plant.",
            "example": "2024-05-01"
          },
          "descendedCount": {
            "type": "integer",
            "description": "Number of descendant plants from this plant.",
            "example": 3
          },
          "clonedCount": {
            "type": "integer",
            "description": "Number of clones taken from this plant.",
            "example": 2
          }
        }
      },
      "MetrcPlantAdditive": {
        "type": "object",
        "description": "One recorded additive application.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Plant additive ID. Pass as `plantAdditiveId` to the sub-resources.\n",
            "example": 991
          },
          "additiveTypeName": {
            "type": "string",
            "description": "The kind of additive applied.",
            "example": "Fertilizer"
          },
          "productTradeName": {
            "type": "string",
            "description": "Trade name of the product.",
            "example": "GrowMore 20-20-20"
          },
          "epaRegistrationNumber": {
            "type": "string",
            "description": "EPA registration number, where the product carries one.",
            "nullable": true,
            "example": "12345-67"
          },
          "productSupplier": {
            "type": "string",
            "description": "Who supplied the product.",
            "example": "Valley Ag"
          },
          "applicationDevice": {
            "type": "string",
            "description": "How it was applied.",
            "example": "Backpack sprayer"
          },
          "totalAmountApplied": {
            "type": "number",
            "description": "How much was applied.",
            "example": 2.5
          },
          "plantCount": {
            "type": "number",
            "description": "How many plants it was applied to.",
            "example": 12
          },
          "plantBatchName": {
            "type": "string",
            "description": "The plant batch it was applied to, where there is one.",
            "nullable": true,
            "example": "Spring Batch A"
          },
          "applicationDate": {
            "type": "string",
            "format": "date",
            "description": "The date of application.",
            "example": "2026-05-14"
          }
        }
      },
      "MetrcPlantAdditiveActiveIngredient": {
        "type": "object",
        "description": "One active ingredient in a recorded additive application.",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the active ingredient.",
            "example": "Nitrogen"
          },
          "percentage": {
            "type": "number",
            "description": "Percentage of the product this ingredient makes up.",
            "example": 20
          }
        }
      },
      "MetrcPlantAdditiveReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "additiveTypeName__contains:Fertilizer"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "applicationDate:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantAdditive"
            }
          }
        }
      },
      "MetrcPlantBatch": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the plant batch.",
            "example": 123456,
            "nullable": false
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "facilityId": {
            "type": "integer",
            "description": "Metrc's internal id for the facility holding the plant batch.",
            "example": 512
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_PLANTBATCH",
            "enum": [
              "ACTIVE_PLANTBATCH",
              "ONHOLD_PLANTBATCH",
              "INACTIVE_PLANTBATCH"
            ]
          },
          "name": {
            "type": "string",
            "description": "The name of the plant batch. In CA, this is a plant tag label.",
            "example": "BATCH001_01.01.25",
            "nullable": false
          },
          "label": {
            "type": "string",
            "description": "Tag label of the plant batch, in states that tag batches.",
            "nullable": true
          },
          "tagId": {
            "type": "integer",
            "description": "Id of the tag identifying the plant batch, in states that tag batches.",
            "nullable": true
          },
          "plantBatchTypeName": {
            "type": "string",
            "description": "The type of the plant batch, typically a category or classification.",
            "example": "Clone",
            "nullable": false
          },
          "plantBatchTypeId": {
            "type": "integer",
            "description": "Id of the plant batch type named by plantBatchTypeName.",
            "example": 1
          },
          "type": {
            "type": "string",
            "description": "Same value as plantBatchTypeName.",
            "example": "Clone"
          },
          "typeName": {
            "type": "string",
            "description": "Same value as plantBatchTypeName.",
            "example": "Clone"
          },
          "locationName": {
            "type": "string",
            "description": "The name of the location where the plant batch is stored or processed.",
            "example": "Row 01",
            "nullable": false
          },
          "locationId": {
            "type": "integer",
            "description": "Id of the location named by locationName.",
            "example": 19301,
            "nullable": true
          },
          "roomId": {
            "type": "integer",
            "description": "Same value as locationId.",
            "example": 19301,
            "nullable": true
          },
          "roomName": {
            "type": "string",
            "description": "Same value as locationName.",
            "example": "Row 01",
            "nullable": true
          },
          "sublocationName": {
            "type": "string",
            "nullable": true
          },
          "sublocationId": {
            "type": "integer",
            "description": "Id of the sublocation named by sublocationName.",
            "nullable": true
          },
          "plantBatchSublocationIds": {
            "type": "array",
            "description": "Ids of the sublocations the plant batch occupies.",
            "items": {
              "type": "integer"
            },
            "nullable": true
          },
          "plantBatchSublocations": {
            "type": "array",
            "description": "The sublocations the plant batch occupies.",
            "items": {
              "type": "object"
            },
            "nullable": true
          },
          "locationTypeName": {
            "type": "string",
            "description": "The type of location.",
            "example": "Default Location Type",
            "nullable": false
          },
          "strainId": {
            "type": "integer",
            "example": 12345
          },
          "strainName": {
            "type": "string",
            "description": "The name of the strain of the plants.",
            "example": "Pineapple Express",
            "nullable": false
          },
          "patientLicenseNumber": {
            "type": "string",
            "description": "License number of the patient, if applicable.",
            "example": "",
            "nullable": true
          },
          "untrackedCount": {
            "type": "integer",
            "description": "Count of untracked plants in the batch.",
            "example": 6,
            "nullable": false
          },
          "trackedCount": {
            "type": "integer",
            "description": "Count of tracked plants in the batch.",
            "example": 0,
            "nullable": false
          },
          "packagedCount": {
            "type": "integer",
            "description": "Count of packaged plants in the batch.",
            "example": 0,
            "nullable": false
          },
          "destroyedCount": {
            "type": "integer",
            "description": "Count of destroyed plants in the batch.",
            "example": 0,
            "nullable": false
          },
          "harvestedCount": {
            "type": "integer",
            "description": "Count of harvested plants in the batch.",
            "example": 0
          },
          "originalCount": {
            "type": "integer",
            "description": "Count of plants the batch was created with.",
            "example": 100
          },
          "sourcePackageLabel": {
            "type": "string",
            "description": "Label of the source package, if available.",
            "nullable": true
          },
          "sourcePackageId": {
            "type": "integer",
            "description": "Id of the source package, if available.",
            "example": 100101,
            "nullable": true
          },
          "sourcePlantLabel": {
            "type": "string",
            "description": "Label of the source plant.",
            "example": "1A4000000000000000000001",
            "nullable": true
          },
          "sourcePlantId": {
            "type": "integer",
            "description": "Id of the source plant, if available.",
            "example": 174903,
            "nullable": true
          },
          "sourcePlantBatchNames": {
            "type": "string",
            "description": "Names of the source plant batches, if any.",
            "example": "",
            "nullable": true
          },
          "sourcePlantBatchId": {
            "type": "integer",
            "description": "Id of the source plant batch, or 0 when there is none.",
            "example": 0
          },
          "sourcePlantBatchIds": {
            "type": "array",
            "description": "Ids of the source plant batches, if any.",
            "items": {
              "type": "integer"
            },
            "example": [
              11901
            ],
            "nullable": true
          },
          "sourcePlantBatchName": {
            "type": "string",
            "description": "Name of the source plant batch, or empty when there is none.",
            "example": ""
          },
          "multiPlantBatch": {
            "type": "boolean",
            "description": "Indicates if the batch contains multiple plants.",
            "example": false,
            "nullable": false
          },
          "plantedDate": {
            "type": "string",
            "format": "date",
            "description": "The date the plants were planted.",
            "example": "2024-07-19",
            "nullable": false
          },
          "unpackagedDate": {
            "type": "string",
            "format": "date",
            "description": "Date the plant batch was unpackaged from its source package, if it came from one.",
            "example": "2026-08-27",
            "nullable": true
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The last modified timestamp for the plant batch data.",
            "example": "2024-07-26T13:00:00+00:00",
            "nullable": false
          },
          "isOnHold": {
            "type": "boolean",
            "description": "Indicates if the batch is currently on hold.",
            "example": false,
            "nullable": false
          },
          "administrativeHolds": {
            "type": "array",
            "description": "Administrative holds placed on the plant batch, if any.",
            "items": {
              "type": "object"
            },
            "nullable": true
          },
          "isOnInvestigation": {
            "type": "boolean",
            "description": "Indicates if the batch is under investigation.",
            "example": false,
            "nullable": false
          },
          "isOnInvestigationHold": {
            "type": "boolean",
            "description": "Indicates if the batch is on hold due to investigation.",
            "example": false,
            "nullable": false
          },
          "isOnInvestigationRecall": {
            "type": "boolean",
            "description": "Indicates if the batch is under investigation for recall.",
            "example": false,
            "nullable": false
          }
        }
      },
      "MetrcPlantBatchReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "name__endswith:0003",
              "strainName__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          }
        }
      },
      "MetrcPlantReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "label__endswith:0003",
              "item.name__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          }
        }
      },
      "MetrcPlantWaste": {
        "type": "object",
        "description": "One recorded plant waste event.\n\n`id` is not among the columns Metrc's own grid displays, but it is what the\nwaste sub-resources are addressed by, so it is published here.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Plant waste ID. Pass as `plantWasteId` to the sub-resources.",
            "example": 4471
          },
          "plantWasteNumber": {
            "type": "string",
            "description": "Metrc's own reference for the waste event.",
            "example": "0000004471"
          },
          "wasteMethodName": {
            "type": "string",
            "description": "The disposal method used.",
            "example": "Compost"
          },
          "materialMixed": {
            "type": "string",
            "description": "What the waste was mixed with.",
            "example": "Soil"
          },
          "wasteWeight": {
            "type": "number",
            "description": "Weight recorded.",
            "example": 1.5
          },
          "wasteUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Unit the weight is expressed in.",
            "example": "g"
          },
          "wasteReasonName": {
            "type": "string",
            "description": "The reason recorded.",
            "example": "Trimming/Pruning"
          },
          "plantCount": {
            "type": "number",
            "description": "How many plants the waste came off.",
            "example": 3
          },
          "plantBatchName": {
            "type": "string",
            "description": "The plant batch the waste is attributed to, where there is one.",
            "nullable": true,
            "example": "Spring Batch A"
          },
          "wasteDate": {
            "type": "string",
            "format": "date",
            "description": "The date the waste was recorded.",
            "example": "2026-05-14"
          }
        }
      },
      "MetrcPlantWasteReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "wasteReasonName__contains:Trim",
              "wasteWeight__gte:1"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "wasteDate:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantWaste"
            }
          }
        }
      },
      "MetrcProcessingJob": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 777
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcProcessingJob"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "The current state of the processing job, such as ACTIVE.",
            "enum": [
              "ACTIVE_PROCESSING_JOB",
              "INACTIVE_PROCESSING_JOB"
            ],
            "example": "ACTIVE_PROCESSING_JOB"
          },
          "facilityId": {
            "type": "integer",
            "example": 135901
          },
          "facilityLicenseNumber": {
            "type": "string",
            "description": "Metrc leaves this null on this endpoint; use the T3-supplied licenseNumber instead",
            "nullable": true
          },
          "facilityName": {
            "type": "string",
            "description": "Metrc leaves this null on this endpoint",
            "nullable": true
          },
          "name": {
            "type": "string",
            "description": "Name of the processing job",
            "example": "Example Extraction Job"
          },
          "number": {
            "type": "string",
            "description": "Metrc's identifier for this processing job",
            "example": "0000000777"
          },
          "jobTypeId": {
            "type": "integer",
            "example": 905
          },
          "jobTypeName": {
            "type": "string",
            "description": "The kind of processing performed, e.g. Cannabis Extract Job",
            "example": "Cannabis Extract Job"
          },
          "startDate": {
            "type": "string",
            "format": "date",
            "description": "Date the job was started",
            "example": "2026-04-02"
          },
          "totalCount": {
            "type": "integer",
            "nullable": true
          },
          "countUnitOfMeasureId": {
            "type": "integer",
            "nullable": true
          },
          "countUnitOfMeasureName": {
            "type": "string",
            "nullable": true
          },
          "countUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "totalVolume": {
            "type": "number",
            "nullable": true
          },
          "volumeUnitOfMeasureId": {
            "type": "integer",
            "nullable": true
          },
          "volumeUnitOfMeasureName": {
            "type": "string",
            "nullable": true
          },
          "volumeUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "totalWeight": {
            "type": "number",
            "example": 237.36
          },
          "weightUnitOfMeasureId": {
            "type": "integer",
            "example": 3
          },
          "weightUnitOfMeasureName": {
            "type": "string",
            "example": "Pounds"
          },
          "weightUnitOfMeasureAbbreviation": {
            "type": "string",
            "example": "lb"
          },
          "totalCountWaste": {
            "type": "integer",
            "nullable": true
          },
          "wasteCountUnitOfMeasureId": {
            "type": "integer",
            "nullable": true
          },
          "wasteCountUnitOfMeasureName": {
            "type": "string",
            "nullable": true
          },
          "wasteCountUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "totalVolumeWaste": {
            "type": "number",
            "nullable": true
          },
          "wasteVolumeUnitOfMeasureId": {
            "type": "integer",
            "nullable": true
          },
          "wasteVolumeUnitOfMeasureName": {
            "type": "string",
            "nullable": true
          },
          "wasteVolumeUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "totalWeightWaste": {
            "type": "number",
            "nullable": true
          },
          "wasteWeightUnitOfMeasureId": {
            "type": "integer",
            "nullable": true
          },
          "wasteWeightUnitOfMeasureName": {
            "type": "string",
            "nullable": true
          },
          "wasteWeightUnitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true
          },
          "packages": {
            "type": "array",
            "description": "Metrc's partial projection of the job's source packages, returned inline on the job record. Its entries carry `processingJobId: 0` rather than the real job id, so it is not a reliable join key. Prefer `include=sourcePackages`, which fetches the same packages fully populated.",
            "items": {
              "$ref": "#/components/schemas/MetrcProcessingJobPackage"
            }
          },
          "isFinished": {
            "type": "boolean",
            "description": "Whether the job has been finished",
            "example": false
          },
          "finishNote": {
            "type": "string",
            "description": "Free-text note recorded when the job was finished",
            "example": ""
          },
          "finishedDate": {
            "type": "string",
            "format": "date",
            "description": "Date the job was finished, if it has been",
            "nullable": true
          },
          "isArchived": {
            "type": "boolean",
            "description": "Whether the job has been archived",
            "example": false
          },
          "totalUnitOfMeasureId": {
            "type": "integer",
            "description": "Unit of measure backing totalQuantity",
            "example": 3
          },
          "totalQuantity": {
            "type": "number",
            "description": "The job's total in whichever unit applies -- mirrors totalCount, totalVolume or totalWeight depending on the job type",
            "example": 237.36
          }
        }
      },
      "MetrcProcessingJobPackage": {
        "type": "object",
        "properties": {
          "processingJobId": {
            "type": "integer",
            "description": "Id of the processing job this package belongs to. Note that the copies returned inline on the job record under `packages` carry `0` here rather than the real id; the ones fetched via `include=sourcePackages` or `include=createdPackages` are populated correctly.",
            "example": 777
          },
          "packageId": {
            "type": "integer",
            "example": 33819800
          },
          "label": {
            "type": "string",
            "example": "1A4000000000000000000777"
          },
          "quantity": {
            "type": "number",
            "example": 18.35
          },
          "unitOfMeasureId": {
            "type": "integer",
            "example": 3
          },
          "unitOfMeasureName": {
            "type": "string",
            "example": "Pounds"
          },
          "unitOfMeasureAbbreviation": {
            "type": "string",
            "example": "lb"
          },
          "itemId": {
            "type": "integer",
            "example": 7316223
          },
          "itemName": {
            "type": "string",
            "example": "Example Flower"
          },
          "itemCategoryName": {
            "type": "string",
            "example": "Buds (by strain)"
          },
          "labTestingState": {
            "type": "string",
            "example": "NotSubmitted"
          },
          "labTestingStateName": {
            "type": "string",
            "example": "NotSubmitted"
          },
          "isTradeSample": {
            "type": "boolean",
            "example": false
          },
          "isDonation": {
            "type": "boolean",
            "example": false
          },
          "isTestingSample": {
            "type": "boolean",
            "example": false
          },
          "productRequiresRemediation": {
            "type": "boolean",
            "example": false
          },
          "containsRemediatedProduct": {
            "type": "boolean",
            "example": false
          },
          "containsPreTreatedProduct": {
            "type": "boolean",
            "example": false
          },
          "hasPartial": {
            "type": "boolean",
            "example": false
          },
          "isRetailIdRelated": {
            "type": "boolean",
            "example": false
          }
        }
      },
      "MetrcProcessingJobReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "jobTypeName__contains:Extract",
              "isFinished__eq:false"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "startDate:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcProcessingJob"
            }
          }
        }
      },
      "MetrcProductLabelComplianceTemplate": {
        "type": "object",
        "description": "A label template Metrc offers in California's Download Labels form. Metrc's\nform sends `template` as `complianceLabelTemplate` and `templateId` with the\ndownload.\n",
        "properties": {
          "name": {
            "type": "string",
            "example": "2 x 1 Flower FGL CA"
          },
          "template": {
            "type": "string",
            "description": "The template body, as Metrc stores it: JSON text, HTML-escaped. Tens of\nkilobytes each.\n"
          },
          "templateId": {
            "type": "integer",
            "example": 83
          }
        }
      },
      "MetrcProductLabelDownloadHistory": {
        "type": "object",
        "description": "One set of Retail ID labels downloaded for a package or a tag. The fields are\nthe ones Metrc's download history grid shows.\n",
        "properties": {
          "labelSet": {
            "description": "Identifies this set of labels among the package's or tag's downloads."
          },
          "labelQuantity": {
            "type": "number",
            "description": "How many labels the set holds.",
            "example": 100
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the set was downloaded."
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcProductLabelDownloadHistory"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          }
        }
      },
      "MetrcProductLabelsCsv": {
        "type": "object",
        "description": "One issued set of labels as CSV rows, the first row being the header. Each\nfollowing row is one label. The header includes `reel`, which Metrc's page\nnames the saved file after; the example shows the columns T3's Label Studio\nsample file uses, where `Unit Code` is the QR value.\n",
        "properties": {
          "csv": {
            "type": "array",
            "items": {
              "type": "array",
              "items": {
                "type": "string"
              }
            },
            "example": [
              [
                "Unit Code",
                "index",
                "reel",
                "kind"
              ],
              [
                "HTTPS://1A4.COM/7J38DJ38D88J3I329XXVK",
                "0",
                "0",
                "each"
              ]
            ]
          }
        }
      },
      "MetrcProductLabelsWorkerJob": {
        "type": "object",
        "description": "The instructions Metrc's page uses to draw one issued set of labels as a PDF\nin the browser. Metrc never returns a PDF itself. Keys are returned exactly as\nMetrc sends them.\n\nFor a `pdf` set, `bundle` is the URL of the script that draws the labels and\n`options` holds the label content. For a `newPdf` set, `settings` holds the\ntemplate, label count, QR range and QR values.\n",
        "additionalProperties": true
      },
      "MetrcPromoteImmaturePlantsInputsResponse": {
        "type": "object",
        "description": "Reference data for promoting immature plants out of a plant batch.\n\nOne variant, not three: Metrc opens this modal without naming a growth\nphase, so there is nothing to serve per phase.\n",
        "properties": {
          "growthPhases": {
            "type": "array",
            "description": "The phases promoted plants may be moved into.",
            "items": {
              "type": "object"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for. Null, since Metrc opens this\nmodal without naming one.\n",
            "nullable": true
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches. Empty in the modal-only fetch.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants. Empty in the modal-only fetch.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "tags": {
            "type": "array",
            "description": "Plant tags the modal preloaded. Promotion consumes one tag per plant\nfrom a contiguous run, so the companion source endpoint is the\nsupported way to find them.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "groupTags": {
            "type": "array",
            "description": "Empty in the modal-only fetch.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "tagTypes": {
            "type": "array",
            "description": "Tag types the promoted plants' tags may be drawn from.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "locations": {
            "type": "array",
            "description": "Locations the promoted plants may be placed in.",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Populated only where the state\nmodels them; Maine and Michigan among the indexed states.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "patientAffiliations": {
            "type": "array",
            "description": "Patient affiliations, where the state uses them.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcPromoteImmaturePlantsPayload": {
        "type": "array",
        "description": "Batch of plant batches to promote. Each entry moves `plantsCount` plants out\nof an immature plant batch into a tracked growth phase, assigning one plant\ntag per plant.\n\n`startingTagId` and `endingTagId` bound a **contiguous** tag range. Every tag\nfrom start to end inclusive is consumed, and `plantsCount` must equal the\nsize of that range.\n",
        "items": {
          "type": "object",
          "properties": {
            "growthDate": {
              "type": "string",
              "format": "date",
              "description": "The date the plants entered the new growth phase.",
              "example": "2026-08-26"
            },
            "growthPhase": {
              "type": "string",
              "description": "Growth phase to promote into. Metrc supplies the valid display names\nper state; in practice `Vegetative` or `Flowering`.\n",
              "example": "Vegetative"
            },
            "id": {
              "type": "integer",
              "description": "Plant batch ID being promoted.\n\nTo find eligible plant batches, use the [Active Plant Batches](#/Plant%20Batches/get_v2_plantbatches_active)\nendpoint.\n",
              "example": 987654
            },
            "newLocationId": {
              "type": "integer",
              "description": "Location ID the promoted plants move into.\n\nTo find eligible locations, use the [Active Locations](#/Locations/get_v2_locations_active)\nendpoint.\n",
              "example": 12345
            },
            "plantsCount": {
              "type": "integer",
              "minimum": 1,
              "description": "How many plants to promote. Must equal the number of tags in the\n`startingTagId`..`endingTagId` range.\n",
              "example": 25
            },
            "startingTagId": {
              "type": "integer",
              "description": "First plant tag ID in the contiguous range consumed by this promotion.\n\nTo find eligible tags, use the [Available Tags](#/Tags/get_v2_tags_available)\nendpoint.\n",
              "example": 1527333
            },
            "endingTagId": {
              "type": "integer",
              "description": "Last plant tag ID in the contiguous range, inclusive.\n",
              "example": 1527357
            }
          },
          "required": [
            "growthDate",
            "growthPhase",
            "id",
            "newLocationId",
            "plantsCount",
            "startingTagId",
            "endingTagId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcReceiveRejectedTransferInputsResponse": {
        "type": "object",
        "description": "The option lists Metrc's Receive Rejected modal loads, and \u2014 when\n`transferId` and `deliveryId` are given \u2014 the returning packages themselves.\n\nThis is a different modal from\n[receive inputs](#/Transfers/get_v2_transfers_receive_inputs), and it is the\nonly source for the package ids\n[rejected/receive](#/Transfers/post_v2_transfers_rejected_receive) requires:\n`/v2/transfers/packages` serves the same packages with a null `id`, and the\nordinary receive modal does not list a rejected transfer at all.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Reasons the packages were rejected under, to be echoed back on the\ntake-back. Filter to `forRejectedTransferPackages: true`.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcActionReason"
            }
          },
          "locations": {
            "type": "array",
            "description": "Locations a returned package can be booked back into. Empty in\nCalifornia, whose form has no location field.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations, in the states that use them. Null elsewhere.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "unitsOfMeasure": {
            "type": "array",
            "description": "Units the returning quantities are expressed in.",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "receivingRejected": {
            "type": "boolean",
            "description": "Always true from this endpoint, which opens the rejected flow.",
            "example": true
          },
          "editingWholesalePrice": {
            "type": "boolean",
            "example": false
          },
          "transferTypes": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "patientAffiliations": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "tags": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "The transfer named by `transferId`, carrying its `shipmentDeliveryId`,\nits `lastModified`, and a `packages` array whose `id` is the\ndelivery-scoped package id the take-back payload needs. Empty when no\ntransfer was named.\n",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcReceiveRejectedTransfersPayload": {
        "type": "array",
        "description": "One entry per rejected transfer being taken back. This is the shipper's side\nof a rejection: packages the recipient refused come home, and the shipper\nbooks them back into a location.\n\nIt is a narrower form than [receive](#/Transfers/post_v2_transfers_receive) \u2014\nthere is no received quantity, unit, variance, or wholesale price, because\nnothing is being accepted. The reason fields also use different names on the\nwire (`receiverRejectedReasonId`, `receiverReasonNote`), so a payload built\nfor `receive` will not work here.\n",
        "items": {
          "type": "object",
          "required": [
            "id",
            "shipmentDeliveryId",
            "packages"
          ],
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The transfer ID, from the [rejected transfers](#/Transfers/get_v2_transfers_rejected)\nlisting.\n",
              "example": 12345
            },
            "shipmentDeliveryId": {
              "type": "integer",
              "description": "The delivery the rejected packages are returning on.",
              "example": 6789
            },
            "lastModified": {
              "type": "string",
              "format": "date-time",
              "description": "The transfer's `lastModified` stamp, echoed back from\n[receive inputs](#/Transfers/get_v2_transfers_receive_inputs) opened\nwith `transferId`. Metrc checks it optimistically and refuses the\npayload with *\"it has changed since the editing began\"* when it does\nnot match, so a stale or omitted value fails rather than overwriting.\n",
              "example": "2026-09-18T17:17:29+00:00"
            },
            "investigationConfirmation": {
              "type": "boolean",
              "description": "Acknowledgement that a flagged package has been investigated. Demanded\nonly for some licences and package states; send it only when a\nsubmission is rejected for want of it.\n",
              "example": true
            },
            "packages": {
              "type": "array",
              "description": "The rejected packages coming back.",
              "items": {
                "type": "object",
                "required": [
                  "id"
                ],
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "The delivery package ID being taken back.",
                    "example": 222333
                  },
                  "locationId": {
                    "type": "integer",
                    "description": "Where the returned package is stored. **Not sent in California.**\n",
                    "example": 505
                  },
                  "sublocationId": {
                    "type": "integer",
                    "description": "A sublocation within `locationId`. **Maine and Michigan only.**\n",
                    "example": 12
                  },
                  "receiverRejectedReasonId": {
                    "type": "integer",
                    "description": "Why the recipient rejected the package. From `actionReasons` on\nthe [rejected receive inputs](#/Transfers/get_v2_transfers_receive_inputs)\nendpoint, filtered to `forRejectedTransferPackages: true`.\n",
                    "example": 9
                  },
                  "receiverReasonNote": {
                    "type": "string",
                    "description": "Free text accompanying `receiverRejectedReasonId`. Required when\nthe chosen reason has `requiresNote: true`.\n",
                    "example": "Seal broken in transit"
                  },
                  "rIdQrScanned": {
                    "type": "boolean",
                    "description": "Whether the package's RFID/QR was scanned on return.\n**California and Michigan only.**\n",
                    "example": false
                  }
                }
              }
            }
          }
        }
      },
      "MetrcReceiveTransferInputsResponse": {
        "type": "object",
        "description": "The option lists Metrc's Receive modal loads. Everything a\n[receive](#/Transfers/post_v2_transfers_receive) payload needs an ID\nfor is here.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Reasons available when rejecting a package. Filter to\n`forRejectedTransferPackages: true`.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcActionReason"
            }
          },
          "locations": {
            "type": "array",
            "description": "Locations a received package can be stored in. Empty in California,\nwhere Metrc's receive form has no location field.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations, in the states that use them (Maine and Michigan among\nthose indexed). Null elsewhere.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "unitsOfMeasure": {
            "type": "array",
            "description": "Units `receivedQuantity` may be expressed in.",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "receivingRejected": {
            "type": "boolean",
            "description": "True when the modal was opened for the rejected-package flow. Always\nfalse from this endpoint, which opens it in the ordinary receive mode.\n",
            "example": false
          },
          "editingWholesalePrice": {
            "type": "boolean",
            "description": "True when the modal was opened to correct a wholesale price only.",
            "example": false
          },
          "transferTypes": {
            "type": "array",
            "description": "Transfer types, when the licence's receive form needs them.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "patientAffiliations": {
            "type": "array",
            "description": "Patient affiliations, in states that record them.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "tags": {
            "type": "array",
            "description": "Tags, in states whose receive form assigns them.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "The transfers the modal was opened against. Empty from this endpoint,\nwhich opens the modal with no selection.\n",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcReceiveTransfersPayload": {
        "type": "array",
        "description": "One entry per incoming transfer being received. Every package on the delivery\nmust appear in `packages` \u2014 Metrc receives the delivery as a whole, so a\npackage left out of the payload is not left untouched.\n",
        "items": {
          "type": "object",
          "required": [
            "id",
            "shipmentDeliveryId",
            "packages"
          ],
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The transfer ID, from the [incoming transfers](#/Transfers/get_v2_transfers_incoming_active)\nlisting.\n",
              "example": 12345
            },
            "shipmentDeliveryId": {
              "type": "integer",
              "description": "The delivery ID. One transfer can carry several deliveries; this names\nthe one being received. Read it from\n[deliveries](#/Single%20Transfer/get_v2_transfers_deliveries).\n",
              "example": 6789
            },
            "lastModified": {
              "type": "string",
              "format": "date-time",
              "description": "The transfer's `lastModified` stamp, echoed back from\n[receive inputs](#/Transfers/get_v2_transfers_receive_inputs) opened\nwith `transferId`. Metrc checks it optimistically and refuses the\npayload with *\"it has changed since the editing began\"* when it does\nnot match, so a stale or omitted value fails rather than overwriting.\n",
              "example": "2026-09-18T17:17:29+00:00"
            },
            "investigationConfirmation": {
              "type": "boolean",
              "description": "Acknowledgement that the receiver has investigated a flagged package.\nMetrc only demands it for some licences and package states, and its own\nform hides the checkbox entirely when it is not needed. Send it only\nwhen a submission is rejected for want of it.\n",
              "example": true
            },
            "packages": {
              "type": "array",
              "description": "The packages on the delivery, with what was actually received.",
              "items": {
                "type": "object",
                "required": [
                  "id"
                ],
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "The delivery package ID, from\n[transfer packages](#/Single%20Transfer/get_v2_transfers_packages). This\nis not the package's own ID in the packages listing.\n",
                    "example": 222333
                  },
                  "receivedQuantity": {
                    "type": "number",
                    "format": "float",
                    "description": "Quantity actually received. Required unless `rejected` is true.\nA value differing from the shipped quantity is a variance, and\nneeds `confirmVariance`.\n",
                    "example": 10.5
                  },
                  "receivedUnitOfMeasureId": {
                    "type": "integer",
                    "description": "Unit the received quantity is expressed in. Required unless\n`rejected` is true. From `unitsOfMeasure` on the\n[receive inputs](#/Transfers/get_v2_transfers_receive_inputs)\nendpoint.\n",
                    "example": 1
                  },
                  "locationId": {
                    "type": "integer",
                    "description": "Where the received package is stored. Required unless `rejected`\nis true. **Not sent in California** \u2014 Metrc's own form omits the\nfield there, and T3 strips it for California sessions.\n",
                    "example": 505
                  },
                  "sublocationId": {
                    "type": "integer",
                    "description": "A sublocation within `locationId`. **Maine and Michigan only** \u2014\nno other indexed state's form carries the field.\n",
                    "example": 12
                  },
                  "rejected": {
                    "type": "boolean",
                    "description": "Reject this package rather than receive it. A rejected package\nneeds `rejectedReasonId`, and `reasonNote` when the reason has\n`requiresNote`.\n",
                    "example": false
                  },
                  "confirmVariance": {
                    "type": "boolean",
                    "description": "Acknowledge that `receivedQuantity` differs from what was\nshipped. Metrc rejects an unconfirmed variance.\n",
                    "example": false
                  },
                  "wholesalePrice": {
                    "type": "number",
                    "format": "float",
                    "description": "Required only when the transfer type has\n`transactionType=\"Wholesale\"` and the package is not rejected.\n",
                    "example": 200.0
                  },
                  "rejectedReasonId": {
                    "type": "integer",
                    "description": "Why the package is rejected. Required when `rejected` is true.\nFrom `actionReasons` on the\n[receive inputs](#/Transfers/get_v2_transfers_receive_inputs)\nendpoint, filtered to `forRejectedTransferPackages: true`.\n",
                    "example": 9
                  },
                  "reasonNote": {
                    "type": "string",
                    "description": "Free text accompanying `rejectedReasonId`. Required when the\nchosen reason has `requiresNote: true`.\n",
                    "example": "Arrived short by 2 units"
                  },
                  "rIdQrScanned": {
                    "type": "boolean",
                    "description": "Whether the package's RFID/QR was scanned on receipt.\n**California and Michigan only.**\n",
                    "example": false
                  }
                }
              }
            }
          }
        }
      },
      "MetrcRecordLabTestsInputsResponse": {
        "type": "object",
        "description": "Reference data for recording lab tests: chiefly the test types a lab can\nrecord, with what each one requires.\n",
        "properties": {
          "labTestTypes": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer",
                  "example": 153
                },
                "name": {
                  "type": "string",
                  "example": "CBD (%) Mandatory Cannabinoid % and Totals"
                },
                "requiresTestResult": {
                  "type": "boolean",
                  "description": "Whether a result needs a `quantity`."
                },
                "informationalOnly": {
                  "type": "boolean"
                },
                "researchAndDevelopment": {
                  "type": "boolean"
                },
                "alwaysPasses": {
                  "type": "boolean"
                },
                "maxAllowedFailureCount": {
                  "type": "integer",
                  "nullable": true
                },
                "labTestResultModeName": {
                  "type": "string",
                  "nullable": true
                },
                "labTestResultMinimum": {
                  "type": "number",
                  "nullable": true
                },
                "labTestResultMaximum": {
                  "type": "number",
                  "nullable": true
                },
                "labTestResultExpirationDays": {
                  "type": "integer",
                  "nullable": true
                },
                "dependencyModeName": {
                  "type": "string",
                  "nullable": true
                }
              }
            }
          },
          "labTestBatches": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "isHigherPower": {
            "type": "boolean"
          },
          "facilityId": {
            "type": "integer",
            "nullable": true
          }
        }
      },
      "MetrcRecordLabTestsPayload": {
        "type": "array",
        "description": "One entry per sample package, each with its results. Only a testing lab can\nrecord tests.\n",
        "items": {
          "type": "object",
          "properties": {
            "packageId": {
              "type": "integer",
              "description": "The sample package, from `/v2/packages/labresults/record/source-packages`.\n",
              "example": 12345
            },
            "resultDate": {
              "type": "string",
              "format": "date",
              "example": "2026-10-23"
            },
            "documentFileId": {
              "type": "integer",
              "description": "Missouri only, and optional: the `documentFileId` that\n`POST /v2/packages/labresults/document/file` answered with.\n",
              "example": 301
            },
            "results": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "object",
                "properties": {
                  "labTestTypeId": {
                    "type": "integer",
                    "description": "A test type from `/v2/packages/labresults/record/inputs`.",
                    "example": 153
                  },
                  "quantity": {
                    "type": "number",
                    "minimum": 0,
                    "description": "The measured result. Required by Metrc for a test type whose\n`requiresTestResult` is true.\n",
                    "example": 21.5
                  },
                  "passed": {
                    "type": "boolean",
                    "example": true
                  },
                  "notes": {
                    "type": "string"
                  }
                },
                "required": [
                  "labTestTypeId",
                  "passed"
                ],
                "additionalProperties": false
              }
            }
          },
          "required": [
            "packageId",
            "resultDate",
            "results"
          ],
          "additionalProperties": false
        }
      },
      "MetrcRecordLocationWasteInputsResponse": {
        "type": "object",
        "description": "Reference data for recording waste against a location.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Valid waste reasons. Unlike the destroy forms, Record Waste requires a\nweight whatever reason is chosen, so the `requiresMatureWasteWeight` and\n`requiresImmatureWasteWeight` flags do not gate anything here.\n",
            "items": {
              "type": "object"
            }
          },
          "plantWasteMethods": {
            "type": "array",
            "description": "Valid disposal methods. Filter on `forPlants`.",
            "items": {
              "type": "object"
            }
          },
          "unitsOfWeight": {
            "type": "array",
            "description": "Units of measure accepted for the waste weight.",
            "items": {
              "type": "object"
            }
          },
          "locations": {
            "type": "array",
            "description": "Locations the waste can be attributed to.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations, where the state models them.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcRecordLocationWastePayload": {
        "type": "array",
        "description": "Record waste against every plant in a location.\n\nA page-level form: Metrc opens it without a grid selection, and the waste is\nattributed to the location rather than to named plants.\n\n`sublocationId` applies only in Maine and Michigan.\n",
        "items": {
          "type": "object",
          "properties": {
            "locationId": {
              "type": "integer",
              "description": "The location the waste came from.\n\nTo find eligible locations, use the\n[Record Waste by Location Inputs](#/Plants/get_v2_plants_waste_record_by_location_inputs)\nendpoint.\n",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation within the location. Maine and Michigan only.",
              "example": 678
            },
            "plantWasteMethodId": {
              "type": "integer",
              "description": "Numeric ID of the disposal method.\n\nTo find valid methods, use the matching inputs endpoint.\n",
              "example": 2
            },
            "materialMixed": {
              "type": "string",
              "description": "What the waste was mixed with to render it unusable.",
              "example": "Soil"
            },
            "wasteWeight": {
              "type": "number",
              "minimum": 0.0001,
              "description": "Weight of the waste recorded.",
              "example": 1.5
            },
            "wasteUnitOfMeasureId": {
              "type": "integer",
              "description": "Unit of measure for `wasteWeight`.",
              "example": 4
            },
            "wasteReasonId": {
              "type": "integer",
              "description": "Numeric ID of the waste reason.",
              "example": 3
            },
            "wasteReasonNote": {
              "type": "string",
              "minLength": 1,
              "description": "Free text explaining the waste. Note the field name: this form calls\nit `wasteReasonNote`, where the destroy forms call the same thing\n`reasonNote`.\n",
              "example": "Trimmings from pruning"
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the waste was recorded.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "plantWasteMethodId",
            "materialMixed",
            "wasteWeight",
            "wasteUnitOfMeasureId",
            "wasteReasonId",
            "wasteReasonNote",
            "actualDate",
            "locationId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcRecordPlantBatchWasteInputsResponse": {
        "type": "object",
        "description": "Reference data for recording waste against plant batches.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Valid waste reasons. Unlike the destroy forms, Record Waste requires a\nweight whatever reason is chosen, so the `requiresMatureWasteWeight` and\n`requiresImmatureWasteWeight` flags do not gate anything here.\n",
            "items": {
              "type": "object"
            }
          },
          "plantWasteMethods": {
            "type": "array",
            "description": "Valid disposal methods. Filter on `forPlants`.",
            "items": {
              "type": "object"
            }
          },
          "unitsOfWeight": {
            "type": "array",
            "description": "Units of measure accepted for the waste weight.",
            "items": {
              "type": "object"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches. Empty in the modal-only fetch.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcRecordPlantBatchWastePayload": {
        "type": "array",
        "description": "Record waste against one or more plant batches.\n\nThe same form as [Record Plant Waste](#/Plants/post_v2_plants_waste_record),\nopened from the plant batch grid, and posting to the same Metrc endpoint.\n",
        "items": {
          "type": "object",
          "properties": {
            "plantBatchId": {
              "type": "integer",
              "description": "Plant batch ID.\n\nTo find eligible plant batches, use the\n[Record Plant Batch Waste Source Plant Batches](#/Plant%20Batches/get_v2_plantbatches_waste_record_source_plantbatches)\nendpoint.\n",
              "example": 8891
            },
            "plantWasteMethodId": {
              "type": "integer",
              "description": "Numeric ID of the disposal method.\n\nTo find valid methods, use the matching inputs endpoint.\n",
              "example": 2
            },
            "materialMixed": {
              "type": "string",
              "description": "What the waste was mixed with to render it unusable.",
              "example": "Soil"
            },
            "wasteWeight": {
              "type": "number",
              "minimum": 0.0001,
              "description": "Weight of the waste recorded.",
              "example": 1.5
            },
            "wasteUnitOfMeasureId": {
              "type": "integer",
              "description": "Unit of measure for `wasteWeight`.",
              "example": 4
            },
            "wasteReasonId": {
              "type": "integer",
              "description": "Numeric ID of the waste reason.",
              "example": 3
            },
            "wasteReasonNote": {
              "type": "string",
              "minLength": 1,
              "description": "Free text explaining the waste. Note the field name: this form calls\nit `wasteReasonNote`, where the destroy forms call the same thing\n`reasonNote`.\n",
              "example": "Trimmings from pruning"
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the waste was recorded.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "plantWasteMethodId",
            "materialMixed",
            "wasteWeight",
            "wasteUnitOfMeasureId",
            "wasteReasonId",
            "wasteReasonNote",
            "actualDate",
            "plantBatchId"
          ],
          "additionalProperties": false
        }
      },
      "MetrcRecordPlantWasteInputsResponse": {
        "type": "object",
        "description": "Reference data for recording waste against plants.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Valid waste reasons. Unlike the destroy forms, Record Waste requires a\nweight whatever reason is chosen, so the `requiresMatureWasteWeight` and\n`requiresImmatureWasteWeight` flags do not gate anything here.\n",
            "items": {
              "type": "object"
            }
          },
          "plantWasteMethods": {
            "type": "array",
            "description": "Valid disposal methods. Filter on `forPlants`.",
            "items": {
              "type": "object"
            }
          },
          "unitsOfWeight": {
            "type": "array",
            "description": "Units of measure accepted for the waste weight.",
            "items": {
              "type": "object"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcRecordPlantWastePayload": {
        "type": "array",
        "description": "Record waste against one or more plants.\n\nUnlike [Destroy Plants](#/Plants/post_v2_plants_destroy), this records waste\nthe plant produced without ending it, so the plants named here stay in the\ngrid. **Every waste field is required**, because Metrc's Record Waste form\ngates none of them on the reason -- which is the opposite of the destroy\nforms.\n",
        "items": {
          "type": "object",
          "properties": {
            "plants": {
              "type": "array",
              "minItems": 1,
              "description": "The plants the waste came off. To find eligible plants, use the\n[Record Plant Waste Source Plants](#/Plants/get_v2_plants_waste_record_source_plants)\nendpoint.\n",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "Plant ID.",
                    "example": 90210
                  }
                },
                "required": [
                  "id"
                ],
                "additionalProperties": false
              }
            },
            "plantWasteMethodId": {
              "type": "integer",
              "description": "Numeric ID of the disposal method.\n\nTo find valid methods, use the matching inputs endpoint.\n",
              "example": 2
            },
            "materialMixed": {
              "type": "string",
              "description": "What the waste was mixed with to render it unusable.",
              "example": "Soil"
            },
            "wasteWeight": {
              "type": "number",
              "minimum": 0.0001,
              "description": "Weight of the waste recorded.",
              "example": 1.5
            },
            "wasteUnitOfMeasureId": {
              "type": "integer",
              "description": "Unit of measure for `wasteWeight`.",
              "example": 4
            },
            "wasteReasonId": {
              "type": "integer",
              "description": "Numeric ID of the waste reason.",
              "example": 3
            },
            "wasteReasonNote": {
              "type": "string",
              "minLength": 1,
              "description": "Free text explaining the waste. Note the field name: this form calls\nit `wasteReasonNote`, where the destroy forms call the same thing\n`reasonNote`.\n",
              "example": "Trimmings from pruning"
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the waste was recorded.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "plantWasteMethodId",
            "materialMixed",
            "wasteWeight",
            "wasteUnitOfMeasureId",
            "wasteReasonId",
            "wasteReasonNote",
            "actualDate",
            "plants"
          ],
          "additionalProperties": false
        }
      },
      "MetrcRedownloadProductLabelsPayload": {
        "type": "object",
        "description": "Fetches labels already issued, as the download buttons on Metrc's grid and\ndownload history rows do.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The `id` of a row in `/v2/packages/product-labels`, or in\n`/v2/packages/staged-product-labels` for the staged route.\n",
            "example": 12345
          },
          "format": {
            "type": "string",
            "enum": [
              "pdf",
              "csv"
            ],
            "example": "csv"
          },
          "labelSet": {
            "description": "A `labelSet` from the row's download history, to fetch that one set.\nOmit it to send none, as the grid row's own buttons do.\n",
            "oneOf": [
              {
                "type": "integer"
              },
              {
                "type": "string"
              }
            ]
          }
        },
        "required": [
          "id",
          "format"
        ],
        "additionalProperties": false
      },
      "MetrcRejectTransferInputsResponse": {
        "type": "object",
        "description": "The option lists Metrc's Reject modal loads. The only ID a\n[reject](#/Transfers/post_v2_transfers_reject) payload needs is the\nreason.\n",
        "properties": {
          "actionReasons": {
            "type": "array",
            "description": "Reasons available when refusing a transfer. Filter to\n`forRejectedTransferApprovals: true`.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcActionReason"
            }
          },
          "details": {
            "type": "array",
            "description": "The transfers the modal was opened against. Empty from this endpoint,\nwhich opens the modal with no selection.\n",
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcRejectTransfersPayload": {
        "type": "array",
        "description": "One entry per incoming transfer being refused outright.\n\nThis rejects the whole transfer at the approval step, before any of it is\nreceived. To refuse individual packages while accepting the rest, receive the\ntransfer and set `rejected` on those packages instead \u2014 see\n[receive](#/Transfers/post_v2_transfers_receive).\n",
        "items": {
          "type": "object",
          "required": [
            "id",
            "shipmentDeliveryId",
            "rejectReasonId",
            "rejectReasonNote"
          ],
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The transfer ID being rejected.",
              "example": 12345
            },
            "shipmentDeliveryId": {
              "type": "integer",
              "description": "The delivery being rejected.",
              "example": 6789
            },
            "rejectReasonId": {
              "type": "integer",
              "description": "Why the transfer is refused. From `actionReasons` on the\n[reject inputs](#/Transfers/get_v2_transfers_reject_inputs)\nendpoint, filtered to `forRejectedTransferApprovals: true`.\n",
              "example": 11
            },
            "rejectReasonNote": {
              "type": "string",
              "description": "Free text explaining the rejection. Metrc's form marks this required\nregardless of the chosen reason's `requiresNote` flag.\n",
              "example": "Manifest does not match the delivery"
            },
            "packages": {
              "type": "array",
              "description": "The packages on the delivery. Metrc's form submits their IDs so the\nrejection is recorded against each one; the rejection itself applies to\nthe whole transfer.\n",
              "items": {
                "type": "object",
                "required": [
                  "id"
                ],
                "additionalProperties": false,
                "properties": {
                  "id": {
                    "type": "integer",
                    "description": "The delivery package ID.",
                    "example": 222333
                  }
                }
              }
            }
          }
        }
      },
      "MetrcRemediatePackagesInputsResponse": {
        "type": "object",
        "description": "Reference data for remediating packages.\n",
        "properties": {
          "remediationMethods": {
            "type": "array",
            "description": "Remediation methods, supplying `remediationMethodId`.",
            "items": {
              "$ref": "#/components/schemas/MetrcRemediationMethod"
            }
          },
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "description": "One row per pre-selected package. Empty in the selection-free fetch this\nendpoint performs.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcRemediatePackagesPayload": {
        "type": "array",
        "description": "Packages to remediate. Metrc remediates only product in a failed lab testing\nstate.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Package ID.\n\nTo find eligible packages, use the\n[Remediate Packages Source Packages](#/Modify%20Packages/get_v2_packages_remediate_source_packages)\nendpoint.\n",
              "example": 12345
            },
            "remediationMethodId": {
              "type": "integer",
              "description": "Remediation method ID.\n\nTo find remediation methods, use the\n[Remediate Packages Inputs](#/Modify%20Packages/get_v2_packages_remediate_inputs)\nendpoint.\n",
              "example": 1
            },
            "remediationDate": {
              "type": "string",
              "format": "date",
              "example": "2026-05-14"
            },
            "remediationSteps": {
              "type": "string",
              "example": "Dried and cured for an additional week."
            }
          },
          "required": [
            "id",
            "remediationMethodId",
            "remediationDate",
            "remediationSteps"
          ],
          "additionalProperties": false
        }
      },
      "MetrcRemediationMethod": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "format": "int32",
            "description": "The unique identifier for the remediation method.",
            "example": 3
          },
          "name": {
            "type": "string",
            "description": "The name of the remediation method.",
            "example": "Repacking"
          }
        }
      },
      "MetrcRenameHarvestsPayload": {
        "type": "array",
        "description": "Batch of harvests to rename.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Harvest ID of an active harvest.\n\nTo find eligible harvests, use the [Active Harvests](#/Harvests/get_v2_harvests_active)\nendpoint.\n",
              "example": 304
            },
            "name": {
              "type": "string",
              "description": "The new harvest name.",
              "example": "2026-05-14-Drying Room A-H"
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        }
      },
      "MetrcRenamePlantBatchesInputsResponse": {
        "type": "object",
        "description": "Reference data for renaming a plant batch.\n",
        "properties": {
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches, when the modal is opened from a grid\nselection. Empty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcRenamePlantBatchesPayload": {
        "type": "array",
        "description": "Batch of plant batches to rename.\n\nNot available in California, whose plant batches are identified by tag rather\nthan by name.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant batch ID.\n\nTo find eligible plant batches, use the\n[Rename Plant Batches Source Plant Batches](#/Plant%20Batches/get_v2_plantbatches_rename_source_plantbatches)\nendpoint.\n",
              "example": 8891
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "description": "The new plant batch name.",
              "example": "Reserve Stock 0426"
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        }
      },
      "MetrcReplacePlantBatchTagsInputsResponse": {
        "type": "object",
        "description": "Reference data for moving a plant batch onto a replacement tag.\n",
        "properties": {
          "tags": {
            "type": "array",
            "description": "Tags available as a replacement.",
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches, when the modal is opened from a grid\nselection. Empty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants. Empty in the modal-only fetch this endpoint\nperforms.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcReplacePlantBatchTagsPayload": {
        "type": "array",
        "description": "Batch of plant batches to move onto a replacement tag.\n\nCalifornia only. Other states identify a plant batch by name and have no\nsuch modal.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant batch ID.\n\nTo find eligible plant batches, use the\n[Replace Plant Batch Tags Source Plant Batches](#/Plant%20Batches/get_v2_plantbatches_replace_tags_source_plantbatches)\nendpoint.\n",
              "example": 8891
            },
            "tagId": {
              "type": "integer",
              "description": "Tag ID of the replacement tag.\n\nTo find eligible tags, use the\n[Replace Plant Batch Tags Inputs](#/Plant%20Batches/get_v2_plantbatches_replace_tags_inputs) endpoint.\n",
              "example": 442199
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the tag was replaced.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "tagId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcReplacePlantTagsInputsResponse": {
        "type": "object",
        "description": "Reference data for moving a plant onto a replacement tag.\n",
        "properties": {
          "tags": {
            "type": "array",
            "description": "Tags the modal preloaded. Often null: Metrc serves most tag lists\nthrough the companion source endpoint rather than with the modal.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcReplacePlantTagsPayload": {
        "type": "array",
        "description": "Batch of plants to move onto a replacement tag.",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant ID.\n\nTo find eligible plants, use the\n[Replace Plant Tags Source Plants](#/Plants/get_v2_plants_replace_tags_source_plants) endpoint.\n",
              "example": 90210
            },
            "tagId": {
              "type": "integer",
              "description": "Tag ID of the replacement tag.\n\nTo find eligible tags, use the\n[Replace Plant Tags Source Tags](#/Plants/get_v2_plants_replace_tags_source_tags)\nendpoint.\n",
              "example": 442199
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the tag was replaced.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "tagId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcReportHarvestWasteInputsResponse": {
        "type": "object",
        "properties": {
          "unitsOfMeasure": {
            "type": "array",
            "description": "Units available when entering the waste weight.",
            "items": {
              "$ref": "#/components/schemas/UnitOfMeasure"
            }
          },
          "wasteTypes": {
            "type": "array",
            "description": "Waste types available for this licence. Only entries with\n`forHarvests: true` can be reported against a harvest.\n",
            "items": {
              "$ref": "#/components/schemas/WasteType"
            }
          },
          "harvestBatches": {
            "type": "array",
            "description": "Pre-selected harvests, when the modal is opened from a harvest selection.\nEmpty in the modal-only fetch used by this endpoint.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "string",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true
          }
        }
      },
      "MetrcReportHarvestWastePayload": {
        "type": "array",
        "description": "Batch of waste entries to record against harvests. Each entry reduces the\nharvest's current weight by `wasteWeight`.\n\nMetrc's own form shows a confirmation checkbox when the reported weight is\nunusually large relative to the harvest. That check is client-side only and\nhas no wire field, so it is not modelled here \u2014 Metrc may still reject an\nout-of-range weight server-side.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Harvest ID of an active harvest.\n\nTo find eligible harvests, use the [Active Harvests](#/Harvests/get_v2_harvests_active)\nendpoint.\n",
              "example": 304
            },
            "wasteWeight": {
              "type": "number",
              "format": "float",
              "minimum": 0.0001,
              "description": "Weight of the waste being reported.",
              "example": 12.5
            },
            "unitOfWeightId": {
              "type": "integer",
              "description": "Numeric ID of the weight unit. Metrc names this field `UnitOfWeightId`\non the wire even though the form control is labelled unit of measure.\n\nThe harvest's own `unitOfWeightId` is returned by\n[Active Harvests](#/Harvests/get_v2_harvests_active), and the full list\nis available from\n[Report Harvest Waste Inputs](#/Harvests/get_v2_harvests_waste_inputs).\n",
              "example": 4
            },
            "wasteTypeId": {
              "type": "integer",
              "description": "Numeric ID of the waste type.\n\nTo find eligible waste types, use\n[Report Harvest Waste Inputs](#/Harvests/get_v2_harvests_waste_inputs);\nonly entries with `forHarvests: true` are valid here.\n",
              "example": 1
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the waste occurred.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "wasteWeight",
            "unitOfWeightId",
            "wasteTypeId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcReturnPackagesInputsResponse": {
        "type": "object",
        "description": "Reference data for returning package quantity to a source package.\n",
        "properties": {
          "packages": {
            "type": "array",
            "description": "The packages named by `packageId`. Empty without one.",
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "description": "One row per named package Metrc will return quantity from. Each row\ncarries the `sourcePackage` and `childPackage` records and a\n`maxReturnQuantity`. Empty without a `packageId`, or when Metrc refuses\nthe package.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "isAnySelectedPackageInvalid": {
            "type": "boolean",
            "description": "True when Metrc will not return quantity from a named package, in which\ncase its row is missing from `details`.\n",
            "example": false
          }
        }
      },
      "MetrcReturnPackagesPayload": {
        "type": "array",
        "description": "Quantities to return from child packages to the package each was cut from.\n",
        "items": {
          "type": "object",
          "properties": {
            "sourcePackageId": {
              "type": "integer",
              "description": "Package ID of the source the quantity returns to.\n\nRead it from `details` on the\n[Return Packages Inputs](#/Modify%20Packages/get_v2_packages_return_inputs)\nendpoint, called with the child's `packageId`.\n",
              "example": 12344
            },
            "childPackageId": {
              "type": "integer",
              "description": "Package ID of the child the quantity is taken from.",
              "example": 12345
            },
            "returnQuantity": {
              "type": "number",
              "description": "How much to return, in the child's unit of measure. Metrc's form caps\nit at the row's `maxReturnQuantity`.\n",
              "example": 1.5
            }
          },
          "required": [
            "sourcePackageId",
            "childPackageId",
            "returnQuantity"
          ],
          "additionalProperties": false
        }
      },
      "MetrcSalesReceipt": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the sale",
            "example": 1234567,
            "nullable": false
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_SALES_RECEIPT",
            "enum": [
              "ACTIVE_SALES_RECEIPT",
              "INACTIVE_SALES_RECEIPT"
            ]
          },
          "receiptNumber": {
            "type": "string",
            "description": "The receipt number associated with the sale",
            "example": "001234567"
          },
          "salesDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the sale occurred",
            "example": "2024-09-05T16:35:00.123"
          },
          "salesCustomerType": {
            "type": "string",
            "description": "Type of customer for the sale",
            "example": "Consumer"
          },
          "salesCustomerTypeName": {
            "type": "string",
            "description": "Name of the customer type",
            "example": "Consumer"
          },
          "patientLicenseNumber": {
            "type": "string",
            "description": "License number of the patient (if applicable)",
            "example": "",
            "nullable": true
          },
          "caregiverLicenseNumber": {
            "type": "string",
            "description": "License number of the caregiver (if applicable)",
            "example": "",
            "nullable": true
          },
          "identificationMethod": {
            "type": "string",
            "description": "Method of identification for the customer",
            "example": "",
            "nullable": true
          },
          "patientRegistrationLocationId": {
            "type": "integer",
            "description": "Location ID for the patient registration",
            "nullable": true
          },
          "totalPackages": {
            "type": "integer",
            "description": "Total number of packages sold",
            "example": 4
          },
          "totalPrice": {
            "type": "number",
            "format": "float",
            "description": "Total price of the sale",
            "example": 113.0
          },
          "transactions": {
            "type": "array",
            "description": "List of transactions included in the sale",
            "items": {
              "type": "object"
            },
            "example": []
          },
          "isFinal": {
            "type": "boolean",
            "description": "Whether the sale is finalized",
            "example": false
          },
          "isArchived": {
            "type": "boolean",
            "description": "Whether the sale is archived",
            "example": false
          },
          "archivedDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date when the sale was archived, if applicable",
            "nullable": true
          },
          "recordedDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the sale was recorded",
            "example": "2024-09-05T21:00:00+00:00"
          },
          "recordedByUserName": {
            "type": "string",
            "description": "The username of the person who recorded the sale",
            "example": "Jane Doe"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the sale record was last modified",
            "example": "2024-09-05T21:00:00+00:00"
          }
        }
      },
      "MetrcSalesReceiptReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "receiptNumber__endswith:0003"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "receiptNumber:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSalesReceipt"
            }
          }
        }
      },
      "MetrcSecretKeyCredentialsPayload": {
        "type": "object",
        "description": "The Metrc credentials a secret key stands for.\n\nNote: The `email` field is only needed if you are authenticating in Colorado.\nOtherwise, omit this property.\n\nNote: The `otpSeed` field is only needed if you are authenticating in Michigan.\nOtherwise, omit this property.\n",
        "properties": {
          "username": {
            "type": "string",
            "minLength": 1,
            "description": "Your Metrc username",
            "example": "user123"
          },
          "password": {
            "type": "string",
            "minLength": 1,
            "description": "Your Metrc password",
            "example": "secretpassword"
          },
          "hostname": {
            "$ref": "#/components/schemas/MetrcHostname"
          },
          "email": {
            "type": "string",
            "format": "email",
            "nullable": true,
            "description": "(Colorado only) Your Metrc login email",
            "example": "user@example.com"
          },
          "otpSeed": {
            "type": "string",
            "pattern": "^[A-Za-z2-7]+=*$",
            "nullable": true,
            "description": "(Michigan only) the base32 seed string for your Metrc multi-factor authentication",
            "example": "J3G5KD7W6ZT2LV5X"
          }
        },
        "required": [
          "username",
          "password",
          "hostname"
        ],
        "additionalProperties": false
      },
      "MetrcSessionAuthPayload": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "description": "Your Metrc username",
            "example": "user123"
          },
          "hostname": {
            "$ref": "#/components/schemas/MetrcHostname"
          },
          "cookies": {
            "type": "object",
            "additionalProperties": {
              "type": "string"
            },
            "description": "Session cookies for authentication",
            "example": {
              "metrc_session": "abc123xyz"
            }
          },
          "facilities": {
            "type": "array",
            "description": "Ignored. The session's facilities are read from Metrc.",
            "items": {
              "type": "object",
              "properties": {
                "facility_license_number": {
                  "type": "string",
                  "description": "The license number of the facility",
                  "example": "LIC-00001"
                },
                "facility_name": {
                  "type": "string",
                  "description": "The name of the facility",
                  "example": "Example Dispensary"
                }
              }
            }
          },
          "apiVerificationToken": {
            "type": "string",
            "description": "Verification token used for API authentication",
            "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
          }
        },
        "required": [
          "username",
          "hostname",
          "cookies",
          "apiVerificationToken"
        ]
      },
      "MetrcSplitPlantBatchesInputsResponse": {
        "type": "object",
        "description": "Reference data for splitting a plant batch.\n",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the plant batch.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Populated only where the state\nmodels sublocations; Maine and Michigan among the indexed states.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "strains": {
            "type": "array",
            "description": "Strains that can be assigned.",
            "items": {
              "$ref": "#/components/schemas/MetrcStrain"
            }
          },
          "plantBatchTypes": {
            "type": "array",
            "description": "Plant batch types, such as Clone and Seed.",
            "items": {
              "type": "object"
            }
          },
          "tags": {
            "type": "array",
            "description": "Tags available to identify the new plant batch. Populated in California,\nthe only indexed state that identifies a plant batch by tag; null\nelsewhere, where `plantBatchName` is used instead.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "plantBatches": {
            "type": "array",
            "description": "Pre-selected plant batches, when the modal is opened from a grid\nselection. Empty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlantBatch"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcSplitPlantBatchesPayload": {
        "type": "array",
        "description": "Split plants out of an existing plant batch into a new one. Each entry\ncreates one new batch drawn from `sourcePlantBatchId`.\n\n**How a new batch is identified differs by state.** California carries a tag\nand no name, so pass `tagId`. Maine, Michigan and Missouri carry a free-text\nname and no tag, so pass `plantBatchName`. Unlike\n[Create Plant Batches from Packages](#/Plant%20Batches/post_v2_plantbatches_create_from_packages),\nwhere one string field serves every state, these two are genuinely different\nfields on genuinely different modals.\n\n`sublocationId` applies only in Maine and Michigan.\n",
        "items": {
          "type": "object",
          "properties": {
            "sourcePlantBatchId": {
              "type": "integer",
              "description": "Plant batch ID the plants are drawn from.\n\nTo find eligible plant batches, use the\n[Split Plant Batches Source Plant Batches](#/Plant%20Batches/get_v2_plantbatches_split_source_plantbatches)\nendpoint.\n",
              "example": 8891
            },
            "plantsCount": {
              "type": "integer",
              "minimum": 1,
              "description": "How many plants move into the new batch.",
              "example": 10
            },
            "strainId": {
              "type": "integer",
              "description": "Strain ID for the new batch.\n\nTo find eligible strains, use the\n[Split Plant Batches Inputs](#/Plant%20Batches/get_v2_plantbatches_split_inputs) endpoint.\n",
              "example": 737
            },
            "locationId": {
              "type": "integer",
              "description": "Location ID for the new batch.\n\nTo find eligible locations, use the\n[Split Plant Batches Inputs](#/Plant%20Batches/get_v2_plantbatches_split_inputs) endpoint.\n",
              "example": 12345
            },
            "sublocationId": {
              "type": "integer",
              "description": "Sublocation within the new location. Maine and Michigan only.",
              "example": 678
            },
            "plantBatchName": {
              "type": "string",
              "minLength": 1,
              "description": "Name for the new plant batch. Maine, Michigan and Missouri; pass\n`tagId` instead in California.\n",
              "example": "Reserve Stock 0426-A"
            },
            "tagId": {
              "type": "integer",
              "description": "Tag ID identifying the new plant batch. California only.\n\nTo find eligible tags, use the\n[Split Plant Batches Source Tags](#/Plant%20Batches/get_v2_plantbatches_split_source_tags)\nendpoint.\n",
              "example": 442199
            },
            "actualDate": {
              "type": "string",
              "format": "date",
              "description": "The date the split took effect.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "sourcePlantBatchId",
            "plantsCount",
            "strainId",
            "locationId",
            "actualDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcSplitPlantsInputsResponse": {
        "type": "object",
        "description": "Reference data for splitting a plant group. Maine only.\n",
        "properties": {
          "strains": {
            "type": "array",
            "description": "Strains that can be assigned.",
            "items": {
              "$ref": "#/components/schemas/MetrcStrain"
            }
          },
          "tags": {
            "type": "array",
            "description": "Tags the modal preloaded. Often null: Metrc serves most tag lists\nthrough the companion source endpoint rather than with the modal.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          },
          "plants": {
            "type": "array",
            "description": "Pre-selected plants, when the modal is opened from a grid selection.\nEmpty in the modal-only fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPlant"
            }
          },
          "growthPhase": {
            "type": "integer",
            "description": "The growth phase the modal was opened for.",
            "nullable": true
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcSplitPlantsPayload": {
        "type": "array",
        "description": "Split plants out of a plant group into a new one. **Maine only**; no other\nindexed state exposes this modal.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "The plant group being split.\n\nTo find eligible groups, use the\n[Split Source Plants](#/Plants/get_v2_plants_split_source_plants) endpoint.\n",
              "example": 90210
            },
            "plantCount": {
              "type": "integer",
              "minimum": 1,
              "description": "How many plants move into the new group.",
              "example": 5
            },
            "tagId": {
              "type": "integer",
              "description": "Tag identifying the new plant group.\n\nTo find eligible tags, use the\n[Split Source Tags](#/Plants/get_v2_plants_split_source_tags) endpoint.\n",
              "example": 442199
            },
            "strainId": {
              "type": "integer",
              "description": "Strain for the new group.",
              "example": 737
            },
            "splitDate": {
              "type": "string",
              "format": "date",
              "description": "The date the split took effect.",
              "example": "2026-05-14"
            }
          },
          "required": [
            "id",
            "plantCount",
            "tagId",
            "strainId",
            "splitDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcState": {
        "type": "object",
        "properties": {
          "abbreviation": {
            "type": "string",
            "description": "The state abbreviation",
            "example": "CA"
          },
          "name": {
            "type": "string",
            "description": "The state name",
            "example": "California"
          },
          "hostname": {
            "type": "string",
            "description": "The Metrc hostname for this state",
            "example": "ca.metrc.com"
          }
        }
      },
      "MetrcStrain": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "The item ID",
            "example": 12345
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_STRAIN",
            "enum": [
              "ACTIVE_STRAIN"
            ]
          },
          "name": {
            "type": "string",
            "description": "The strain name",
            "example": "Pineapple Express"
          },
          "sativaPercentage": {
            "type": "number",
            "example": 25
          },
          "indicaPercentage": {
            "type": "number",
            "example": 25
          },
          "cbdLevel": {
            "type": "number",
            "example": 25
          },
          "thcLevel": {
            "type": "number",
            "example": 25
          },
          "testingStatus": {
            "type": "string",
            "example": 25,
            "nullable": true
          },
          "isUsed": {
            "type": "boolean"
          },
          "isArchived": {
            "type": "boolean"
          }
        }
      },
      "MetrcStrainReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "name__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "name:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcStrain"
            }
          }
        }
      },
      "MetrcSuperPackageLabSample": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcPackageLabSample"
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperPackageLabSampleReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "label__endswith:0",
              "label__contains:ABC"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperPackageLabSample"
            }
          }
        }
      },
      "MetrcSuperPlantAdditive": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcPlantAdditive"
          },
          {
            "type": "object",
            "properties": {
              "plants": {
                "type": "array",
                "description": "The plants this additive was applied to (populated via include=plants).",
                "items": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              },
              "activeIngredients": {
                "type": "array",
                "description": "The active ingredients in the product applied (populated via\ninclude=activeIngredients).\n",
                "items": {
                  "$ref": "#/components/schemas/MetrcPlantAdditiveActiveIngredient"
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperPlantAdditiveReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "additiveTypeName__contains:Fertilizer"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "applicationDate:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperPlantAdditive"
            }
          }
        }
      },
      "MetrcSuperPlantWaste": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcPlantWaste"
          },
          {
            "type": "object",
            "properties": {
              "plants": {
                "type": "array",
                "description": "The plants this waste was recorded against (populated via include=plants).",
                "items": {
                  "$ref": "#/components/schemas/MetrcPlant"
                }
              },
              "packages": {
                "type": "array",
                "description": "The packages this waste event produced (populated via include=packages).",
                "items": {
                  "$ref": "#/components/schemas/MetrcPackage"
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperPlantWasteReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "wasteReasonName__contains:Trim",
              "wasteWeight__gte:1"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "wasteDate:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperPlantWaste"
            }
          }
        }
      },
      "MetrcSuperProcessingJob": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcProcessingJob"
          },
          {
            "type": "object",
            "properties": {
              "createdPackages": {
                "type": "array",
                "description": "The packages this job produced (populated via include=createdPackages).",
                "items": {
                  "$ref": "#/components/schemas/MetrcProcessingJobPackage"
                }
              },
              "sourcePackages": {
                "type": "array",
                "description": "The packages this job consumed (populated via include=sourcePackages).",
                "items": {
                  "$ref": "#/components/schemas/MetrcProcessingJobPackage"
                }
              },
              "history": {
                "type": "array",
                "description": "A list of this processing job's history records (populated via include=history).",
                "items": {
                  "$ref": "#/components/schemas/MetrcHistory"
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperProcessingJobReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "jobTypeName__contains:Extract",
              "isFinished__eq:false"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "startDate:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperProcessingJob"
            }
          }
        }
      },
      "MetrcSuperTagOrder": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcTagOrder"
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperTagOrderReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "orderNumber__contains:2026",
              "statusName__eq:Received"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "orderDate:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperTagOrder"
            }
          }
        }
      },
      "MetrcSuperTransferredPackage": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcTransferredPackage"
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperTransferredPackageReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "productName__contains:Flower"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "manifestNumber:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperTransferredPackage"
            }
          }
        }
      },
      "MetrcSuperharvest": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcHarvest"
          },
          {
            "type": "object",
            "properties": {
              "history": {
                "type": "array",
                "description": "A list of this harvest's history records (populated via include=history).",
                "items": {
                  "$ref": "#/components/schemas/MetrcHistory"
                }
              },
              "plants": {
                "type": "array",
                "description": "A list of this harvest's source plants (populated via include=plants).",
                "items": {
                  "$ref": "#/components/schemas/MetrcHarvestPlant"
                }
              },
              "packages": {
                "type": "array",
                "description": "A list of packages created from this harvest (populated via include=packages).",
                "items": {
                  "$ref": "#/components/schemas/MetrcHarvestPackage"
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperharvestReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "name__contains:a",
              "name__endswith:harvest"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "name:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperharvest"
            }
          }
        }
      },
      "MetrcSuperitem": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcItem"
          },
          {
            "type": "object",
            "properties": {
              "images": {
                "type": "array",
                "description": "A list of this item's images",
                "items": {
                  "$ref": "#/components/schemas/MetrcItemImage"
                }
              },
              "ingredients": {
                "type": "array",
                "description": "A list of this item's ingredients\n",
                "items": {
                  "$ref": "#/components/schemas/MetrcItemIngredient"
                }
              },
              "notes": {
                "type": "array",
                "description": "A list of this item's notes\n",
                "items": {
                  "$ref": "#/components/schemas/MetrcItemNote"
                }
              },
              "history": {
                "type": "array",
                "description": "A list of this item's history",
                "items": {
                  "$ref": "#/components/schemas/MetrcHistory"
                }
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SupercollectionMetadata"
                  },
                  {
                    "type": "object",
                    "description": "`approvalNumber` and `itemImages` are populated when available. The\n`include=images` parameter can load additional image data.\n",
                    "properties": {
                      "approvalNumber": {
                        "type": "string",
                        "description": "The approval number for this item, if applicable.\n",
                        "example": "M000303083393"
                      },
                      "itemImages": {
                        "type": "array",
                        "description": "A list of image metadata for this item\n",
                        "items": {
                          "type": "object",
                          "properties": {
                            "fileName": {
                              "type": "string",
                              "description": "Path or name of the file",
                              "example": "Product photo-Cannabis Flower.png"
                            },
                            "fileType": {
                              "$ref": "#/components/schemas/ItemImageFileType"
                            },
                            "imageFileId": {
                              "type": "integer",
                              "description": "Unique ID for this image file",
                              "example": 123456
                            },
                            "imageUrl": {
                              "type": "string",
                              "description": "URL to access the image",
                              "example": "https://example.com/images/123456.png"
                            }
                          }
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        ]
      },
      "MetrcSuperitemReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "name__contains:kush",
              "name__endswith:OG"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "name:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperitem"
            }
          }
        }
      },
      "MetrcSuperlocation": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcLocation"
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperlocationReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "name__contains:e",
              "name__endswith:room"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "name:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperlocation"
            }
          }
        }
      },
      "MetrcSuperpackage": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcPackage"
          },
          {
            "type": "object",
            "properties": {
              "sourceHarvests": {
                "type": "array",
                "description": "A list of this package's source harvests",
                "items": {
                  "$ref": "#/components/schemas/MetrcPackageSourceHarvest"
                }
              },
              "labResults": {
                "type": "array",
                "description": "A list of this package's lab results\n\nNote: these are the raw values passed back from Metrc. For extracted lab results,\nrefer to the metadata property.\n",
                "items": {
                  "$ref": "#/components/schemas/MetrcPackageLabResult"
                }
              },
              "labResultBatches": {
                "type": "array",
                "description": "A list of this package's lab result batches\n\nNote: these are the raw values passed back from Metrc. For extracted lab results,\nrefer to the metadata property.\n",
                "items": {
                  "$ref": "#/components/schemas/MetrcPackageLabResultBatch"
                }
              },
              "history": {
                "type": "array",
                "description": "A list of this package's history",
                "items": {
                  "$ref": "#/components/schemas/MetrcHistory"
                }
              },
              "coaResults": {
                "type": "array",
                "description": "This package's COA results, one row per analyte and unit, populated by the\n`coaResults` include. The same values as `metadata.indexedCoaResults`, flattened\nso a CSV report has one row per result.\n",
                "items": {
                  "type": "object",
                  "properties": {
                    "key": {
                      "type": "string",
                      "description": "The analyte's key in `metadata.indexedCoaResults`.",
                      "example": "totalTHC"
                    },
                    "unitKey": {
                      "type": "string",
                      "description": "The unit's key under `byUnit`.",
                      "example": "percent"
                    },
                    "name": {
                      "type": "string",
                      "description": "The analyte as the COA prints it.",
                      "example": "Total THC"
                    },
                    "value": {
                      "type": "number",
                      "example": 25.32
                    },
                    "unit": {
                      "type": "string",
                      "example": "%"
                    },
                    "qualifier": {
                      "type": "string",
                      "description": "The non-detect text the COA printed, when it printed one instead of a number.",
                      "example": "ND"
                    },
                    "full": {
                      "type": "string",
                      "example": "Total THC: 25.32 %"
                    },
                    "labTestResultDocumentFileId": {
                      "type": "integer",
                      "description": "The COA document this result was read from.",
                      "example": 9001
                    }
                  }
                }
              },
              "metadata": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/SupercollectionMetadata"
                  },
                  {
                    "type": "object",
                    "description": "The fields below are conditionally populated based on the `includes` param\nsent with the request.\n",
                    "properties": {
                      "harvestDates": {
                        "description": "All source harvest dates for this package, duplicates removed.\n",
                        "example": [
                          "01-01-2024",
                          "01-03-2024"
                        ],
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "initialQuantity": {
                        "type": "number",
                        "format": "float",
                        "description": "The quantity this package was initially created with, extracted from history\n"
                      },
                      "initialQuantityUnitOfMeasure": {
                        "type": "string",
                        "description": "The unit of measure this package was initially created with, extracted from history\n"
                      },
                      "quantityLedger": {
                        "type": "array",
                        "description": "How this package's quantity changed over time, extracted from history.\nOne entry per history line that states or changes the quantity, oldest first,\nin the order Metrc recorded them. Lines that leave the quantity alone\n(moves, manifests, lab results, finishes) are left out.\n\nFollowing `quantityAfter` to the last entry gives the package's `quantity`.\n",
                        "items": {
                          "type": "object",
                          "properties": {
                            "historyIndex": {
                              "type": "integer",
                              "description": "Position in this package's `history` array of the entry this was read from.\n",
                              "example": 4
                            },
                            "kind": {
                              "type": "string",
                              "description": "What happened. `accepted` states the quantity a transfer arrived with,\nso its change is normally zero. `unrecognized` marks a history line\nthat could not be read; its change and balance are null.\n",
                              "enum": [
                                "created",
                                "used",
                                "restored",
                                "adjusted",
                                "unpacked",
                                "sold",
                                "saleRemoved",
                                "saleReturned",
                                "accepted",
                                "unrecognized"
                              ],
                              "example": "sold"
                            },
                            "actualDate": {
                              "type": "string",
                              "nullable": true,
                              "description": "The date the user gave for the change, as Metrc returned it.\nNull for the kinds Metrc does not date, such as `accepted`.\n",
                              "example": "2025-09-23"
                            },
                            "recordedDateTime": {
                              "type": "string",
                              "description": "When Metrc recorded the change, as Metrc returned it.\nAn entry can be recorded later than its `actualDate`.\n",
                              "example": "2025-09-23T18:50:42.826531Z"
                            },
                            "quantityChange": {
                              "type": "number",
                              "format": "float",
                              "nullable": true,
                              "description": "How much the quantity moved, negative for a decrease.\n",
                              "example": -1
                            },
                            "quantityAfter": {
                              "type": "number",
                              "format": "float",
                              "nullable": true,
                              "description": "The quantity once this change was recorded. Can be negative:\nMetrc allows more to be taken from a package than it holds.\n",
                              "example": 23
                            },
                            "unitOfMeasureAbbreviation": {
                              "type": "string",
                              "nullable": true,
                              "description": "The unit `quantityChange` and `quantityAfter` are in.\n",
                              "example": "ea"
                            }
                          }
                        }
                      },
                      "manifestNumber": {
                        "type": "string",
                        "description": "The manifest number for this package's most recent transfer, extracted from history.\nOnly present for intransit packages.\n"
                      },
                      "destinationFacilityLicenseNumber": {
                        "type": "string",
                        "description": "The destination facility license number for this package's most recent transfer, extracted from history.\nOnly present for intransit packages.\n"
                      },
                      "destinationFacilityName": {
                        "type": "string",
                        "description": "The destination facility name for this package's most recent transfer, extracted from history.\nOnly present for intransit packages.\n"
                      },
                      "transferType": {
                        "type": "string",
                        "description": "The transfer type for this package's most recent transfer, extracted from history.\nOnly present for intransit packages.\n"
                      },
                      "netWeightOrVolume": {
                        "type": "number",
                        "format": "float",
                        "description": "The net weight/volume for this package.\n\n- If package unit is already weight/volume, returns the package quantity\n- If package unit is \"each\", returns `quantity * unit weight/volume`\n- If package has no measureable weight, returns quantitiy. (Only occurs in rare cases, such as with seeds)\n"
                      },
                      "netWeightOrVolumeUnitOfMeasure": {
                        "type": "string",
                        "description": "The unit of measure for this package's net weight/volume, specified in netWeightOrVolume\n"
                      },
                      "testSamplePackageLabels": {
                        "type": "array",
                        "description": "A list of all test sample package labels associated with this package, duplicates removed.\n\nThis list is typically length 1.\n",
                        "items": {
                          "type": "string",
                          "example": "1A4400001234000000005678"
                        }
                      },
                      "extractedLabResults": {
                        "type": "array",
                        "description": "An array of lab results, with values and tags extracted.\n\nThis array is populated via the labResults or labResultBatches mixin. Duplicates will be removed.\n",
                        "items": {
                          "$ref": "#/components/schemas/ExtractedLabResult"
                        }
                      },
                      "labResultPdfs": {
                        "type": "array",
                        "items": {
                          "type": "string",
                          "format": "uri"
                        },
                        "description": "A list of T3 API URLs to this package's lab result PDF files.\n\nThese files can be accessed by sending an authenticated GET request.\n"
                      },
                      "indexedLabResults": {
                        "type": "object",
                        "description": "A simplified dictionary of lab results intended for use in label templates.\n\nEach test is keyed by its normalized name, the same in every state\nhowever the lab spelled it: `Total THC` and `Total Delta-9 THC` are\nboth `totalTHC`, and `THCa` is `THCA`. Listed tests have camelCase\nkeys with acronyms kept in capitals; a test not on the list is keyed\nby its name in lowercase with everything but letters and digits\nremoved. Keys are case-sensitive in JSON.\nThe full list is at https://wiki.trackandtrace.tools/t3-api/lab-result-keys/\n\nExample use:\n\n```\n{{ package.metadata.indexedLabResults.totalTHC.name }}:\n{{ package.metadata.indexedLabResults.totalTHC.value }}\n{{ package.metadata.indexedLabResults.totalTHC.unit }}\n```\n\nor\n\n```\n{{ package.metadata.indexedLabResults.totalTHC.full }}\n```\n\nThis would show something like:\n`Total THC: 12.5 %`\n\nWhen a package reports a test more than once, the entry holds one\nresult: a real result over a lab quality-control figure (RPD),\nthen a `%` result over any other unit, then a nonzero value over\nzero, then the most recently performed test. `byUnit` keeps the\nwinning result for each unit, so a per-serving and a per-package\nresult both stay reachable:\n\n```\n{{ package.metadata.indexedLabResults.totalTHC.byUnit.mgPerServing.full }}\n```\n\nAlso indexed are topTerpene1,topTerpene2,...\n\nThese rank the package's individual terpenes by descending value.\nRollup results such as Total Terpenes and Other Terpenes are excluded,\nsince they summarize the individual terpenes rather than being one.\n",
                        "example": {
                          "totalTHC": {
                            "full": "Total THC: 12.5 %",
                            "name": "Total THC",
                            "value": 12.5,
                            "unit": "%"
                          },
                          "totalCBD": {
                            "full": "Total CBD: 0.7 %",
                            "name": "Total CBD",
                            "value": 0.7,
                            "unit": "%"
                          }
                        },
                        "additionalProperties": {
                          "type": "object",
                          "description": "One entry per lab result.",
                          "additionalProperties": false,
                          "required": [
                            "full",
                            "name",
                            "value",
                            "unit"
                          ],
                          "properties": {
                            "byUnit": {
                              "type": "object",
                              "description": "The winning result for each unit this test was reported in,\nkeyed by the unit in camelCase: `percent`, `mgPerG`,\n`mgPerServing`, `mgPerPackage`, `ppm`. Each value has the\nsame `full`, `name`, `value` and `unit` fields as the entry.\nAbsent on the `topTerpeneN` entries.\n",
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "full": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "number"
                                  },
                                  "unit": {
                                    "type": "string"
                                  }
                                }
                              }
                            },
                            "full": {
                              "type": "string",
                              "description": "Name, value, and unit all combined into one value"
                            },
                            "name": {
                              "type": "string",
                              "description": "The test name as the lab printed it (e.g., \"Total THC\")."
                            },
                            "value": {
                              "oneOf": [
                                {
                                  "type": "number"
                                },
                                {
                                  "type": "string"
                                }
                              ],
                              "description": "Parsed numeric value when available; may be a string for non-detects or qualifiers\n(e.g., \"ND\", \"<LOQ\").\n"
                            },
                            "unit": {
                              "type": "string",
                              "description": "Measurement unit (e.g., \"%\", \"mg/g\", \"ppm\")."
                            }
                          }
                        }
                      },
                      "hasTerpeneResults": {
                        "type": "boolean",
                        "description": "Whether this package has any individual terpene results.\n\nThis is `true` exactly when `indexedLabResults.topTerpene1` is\npresent, so a label template can toggle an entire terpene section\nwithout probing for the numbered keys:\n\n```\n{% if package.metadata.hasTerpeneResults %}\n  Terpenes\n  {{ package.metadata.indexedLabResults.topTerpene1.full }}\n  {{ package.metadata.indexedLabResults.topTerpene2.full }}\n{% endif %}\n```\n\nRollup results such as Total Terpenes and Other Terpenes do not\ncount, matching the topTerpeneN exclusion. A package whose terpenes\nwere all measured at zero still reports `true`, since those results\nwere reported and are indexed.\n",
                        "example": true
                      },
                      "indexedCoaResults": {
                        "type": "object",
                        "description": "Results read from this package's COA PDFs, populated by the `coaResults`\ninclude. Keys and shape match `indexedLabResults`, so a template can read\neither:\n\n```\n{{ package.metadata.indexedCoaResults.totalTHC.full }}\n{{ package.metadata.indexedCoaResults.delta9THC.byUnit.mgPerG.value }}\n```\n\nWhen a package has several COAs, the most recently tested one wins each\nresult, and older ones fill in what it lacks. A non-detect has `value`\n0 and a `qualifier` such as `ND`, which `full` shows in place of the\nvalue.\n",
                        "example": {
                          "totalTHC": {
                            "full": "Total THC: 25.32 %",
                            "name": "Total THC",
                            "value": 25.32,
                            "unit": "%",
                            "byUnit": {
                              "percent": {
                                "full": "Total THC: 25.32 %",
                                "name": "Total THC",
                                "value": 25.32,
                                "unit": "%"
                              }
                            }
                          }
                        },
                        "additionalProperties": {
                          "type": "object",
                          "properties": {
                            "full": {
                              "type": "string"
                            },
                            "name": {
                              "type": "string"
                            },
                            "value": {
                              "type": "number"
                            },
                            "unit": {
                              "type": "string"
                            },
                            "qualifier": {
                              "type": "string"
                            },
                            "byUnit": {
                              "type": "object",
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "full": {
                                    "type": "string"
                                  },
                                  "name": {
                                    "type": "string"
                                  },
                                  "value": {
                                    "type": "number"
                                  },
                                  "unit": {
                                    "type": "string"
                                  },
                                  "qualifier": {
                                    "type": "string"
                                  }
                                }
                              }
                            }
                          }
                        }
                      },
                      "coaDocuments": {
                        "type": "array",
                        "description": "The COA documents behind `indexedCoaResults`, populated by the\n`coaResults` include. A `FAILED` document could not be read and\ncontributes no results.\n",
                        "items": {
                          "type": "object",
                          "properties": {
                            "labTestResultDocumentFileId": {
                              "type": "integer",
                              "example": 9001
                            },
                            "status": {
                              "type": "string",
                              "enum": [
                                "READY",
                                "FAILED"
                              ]
                            },
                            "publicPdfUrl": {
                              "type": "string",
                              "format": "uri",
                              "nullable": true,
                              "description": "Unauthenticated, permanent link to the PDF."
                            },
                            "testPerformedDate": {
                              "type": "string",
                              "example": "2026-09-14"
                            },
                            "failureReason": {
                              "type": "string",
                              "example": "ALL_MODELS_FAILED"
                            }
                          }
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        ]
      },
      "MetrcSuperpackageReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "label__endswith:0003",
              "label__contains:ABC"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperpackage"
            }
          }
        }
      },
      "MetrcSuperplant": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcPlant"
          },
          {
            "type": "object",
            "properties": {
              "history": {
                "type": "array",
                "description": "A list of this plant's history records (populated via include=history).",
                "items": {
                  "$ref": "#/components/schemas/MetrcHistory"
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperplantReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "label__endswith:03",
              "label__contains:ABC"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperplant"
            }
          }
        }
      },
      "MetrcSuperplantbatch": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcPlantBatch"
          },
          {
            "type": "object",
            "properties": {
              "history": {
                "type": "array",
                "description": "A list of this plant batch's history records (populated via include=history).",
                "items": {
                  "$ref": "#/components/schemas/MetrcHistory"
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperplantbatchReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "name__contains:1",
              "name__endswith:batch"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "name:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperplantbatch"
            }
          }
        }
      },
      "MetrcSupersalesReceipt": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcSalesReceipt"
          },
          {
            "type": "object",
            "properties": {
              "transactions": {
                "type": "array",
                "description": "A list of this receipt's transactions (populated via include=transactions).",
                "items": {
                  "$ref": "#/components/schemas/MetrcTransaction"
                }
              },
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSupersalesReceiptReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "receiptNumber__endswith:03",
              "receiptNumber__contains:001"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "salesDateTime:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSupersalesReceipt"
            }
          }
        }
      },
      "MetrcSuperstrain": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcStrain"
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSuperstrainReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "name__contains:as",
              "name__endswith:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "name:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSuperstrain"
            }
          }
        }
      },
      "MetrcSupertag": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcTag"
          },
          {
            "type": "object",
            "properties": {
              "metadata": {
                "$ref": "#/components/schemas/SupercollectionMetadata"
              }
            }
          }
        ]
      },
      "MetrcSupertagReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "label__endswith:0",
              "label__contains:ABC"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcSupertag"
            }
          }
        }
      },
      "MetrcTag": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 12345
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "The current state of the tag, such as AVAILALBE.",
            "enum": [
              "AVAILABLE_TAG",
              "USED_TAG",
              "VOID_TAG",
              "STAGED_PRODUCT_LABEL_TAG"
            ],
            "example": "AVAILABLE_TAG"
          },
          "commissionedDateTime": {
            "type": "string",
            "format": "date-time",
            "example": "2022-01-19T07:00:00+00:00"
          },
          "detachedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "facilityId": {
            "type": "integer",
            "example": 12345
          },
          "groupTagTypeId": {
            "type": "string",
            "example": "TagType-6"
          },
          "groupTagTypeName": {
            "type": "string",
            "example": "Medical Package"
          },
          "isArchived": {
            "type": "boolean",
            "example": false
          },
          "isUsed": {
            "type": "boolean",
            "example": false
          },
          "label": {
            "type": "string",
            "example": "1A4000000000000000000011"
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "example": "2023-08-29T01:00:00+00:00"
          },
          "maxGroupSize": {
            "type": "integer",
            "example": 1
          },
          "statusName": {
            "type": "string",
            "example": "Received"
          },
          "tagInventoryTypeName": {
            "type": "string",
            "example": "MedicalPackage"
          },
          "tagTypeId": {
            "type": "string",
            "example": "TagType-6"
          },
          "tagTypeName": {
            "type": "string",
            "example": "Medical Package"
          },
          "usedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "productLabel": {
            "type": "string",
            "example": "1A4000000000000000000011",
            "nullable": true
          },
          "isStaged": {
            "type": "boolean",
            "example": false
          }
        }
      },
      "MetrcTagOrder": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 594
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcTagOrder"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "The current state of the tag order, such as CURRENT.",
            "enum": [
              "CURRENT_TAG_ORDER",
              "HISTORY_TAG_ORDER"
            ],
            "example": "HISTORY_TAG_ORDER"
          },
          "orderNumber": {
            "type": "string",
            "description": "Metrc's identifier for this tag order",
            "example": "SBX-MO-2026-035-0594"
          },
          "orderDate": {
            "type": "string",
            "format": "date-time",
            "example": "2026-02-04T13:19:28-06:00"
          },
          "status": {
            "type": "string",
            "example": "Received"
          },
          "statusName": {
            "type": "string",
            "example": "Received"
          },
          "orderedById": {
            "type": "integer",
            "example": 333
          },
          "orderedByName": {
            "type": "string",
            "description": "Name of the user who placed the order",
            "example": "Jane Doe"
          },
          "includeStraps": {
            "type": "boolean",
            "example": true
          },
          "facilityId": {
            "type": "integer",
            "example": 505
          },
          "facilityName": {
            "type": "string",
            "example": "Sandbox Comprehensive Cultivator"
          },
          "facilityLicenseNumber": {
            "type": "string",
            "description": "License number of the facility the tags were ordered for",
            "example": "LIC000001"
          },
          "facilityAddressStreet1": {
            "type": "string",
            "example": "5151 Fall Trail"
          },
          "facilityAddressStreet2": {
            "type": "string",
            "example": ""
          },
          "facilityAddressStreet3": {
            "type": "string",
            "example": ""
          },
          "facilityAddressStreet4": {
            "type": "string",
            "example": ""
          },
          "facilityAddressCity": {
            "type": "string",
            "example": "Lakeland"
          },
          "facilityAddressState": {
            "type": "string",
            "example": "FL"
          },
          "facilityAddressPostalCode": {
            "type": "string",
            "example": "33801"
          },
          "facilityAddressCountry": {
            "type": "string",
            "example": ""
          },
          "addressValidationOverridden": {
            "type": "boolean",
            "example": false
          },
          "facilityContactName": {
            "type": "string",
            "example": "Facility 505 Contact"
          },
          "facilityPhoneNumber": {
            "type": "string",
            "example": "+1-800-420-0246"
          },
          "shippingCharge": {
            "type": "number",
            "example": 0.0
          },
          "boxingMatrixShippingRate": {
            "type": "number",
            "nullable": true
          },
          "expeditedServiceRequested": {
            "type": "boolean",
            "example": false
          },
          "expeditedServiceCharge": {
            "type": "number",
            "example": 0.0
          },
          "shippingCarrier": {
            "type": "string",
            "example": "Metrc Drones"
          },
          "shippingCarrierId": {
            "type": "string",
            "example": ""
          },
          "shippingSpeedId": {
            "type": "integer",
            "nullable": true
          },
          "shippingWeightPounds": {
            "type": "number",
            "example": 0.0
          },
          "trackingNumber": {
            "type": "string",
            "description": "Carrier tracking number for the shipment",
            "example": "1A400y6ecuvzjc02fydu"
          },
          "payer": {
            "type": "string",
            "example": "Industry"
          },
          "paymentType": {
            "type": "string",
            "example": "Check"
          },
          "paymentTypeName": {
            "type": "string",
            "example": "Check"
          },
          "orderAmount": {
            "type": "number",
            "example": 0.0
          },
          "salesTaxAmount": {
            "type": "number",
            "example": 0.0
          },
          "salesTaxCancellationDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "salesTaxPostedDateTime": {
            "type": "string",
            "format": "date-time",
            "example": "2026-02-04T13:19:28.407-06:00"
          },
          "salesTaxProvider": {
            "type": "string",
            "example": "VERTEX"
          },
          "paymentAmount": {
            "type": "number",
            "example": 0.0
          },
          "paymentDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "shippingDate": {
            "type": "string",
            "example": "2026-02-03"
          },
          "processingOption": {
            "type": "string",
            "example": "None"
          },
          "receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "example": "2026-02-03T19:19:29+00:00"
          },
          "voidedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true
          },
          "lastStatusDateTime": {
            "type": "string",
            "format": "date-time",
            "example": "2026-02-04T19:19:29+00:00"
          },
          "purchaseOrderNumber": {
            "type": "string",
            "example": "SBX-G-SandboxSetupRequest-501-9"
          },
          "paymentProcessor": {
            "type": "string",
            "nullable": true
          },
          "paymentProcessorAuthorizationCode": {
            "type": "string",
            "nullable": true
          },
          "paymentProcessorResponseCode": {
            "type": "string",
            "nullable": true
          },
          "paymentProcessorResponseText": {
            "type": "string",
            "nullable": true
          },
          "paymentNumber": {
            "type": "string",
            "nullable": true
          },
          "paymentStatus": {
            "type": "string",
            "nullable": true
          },
          "paymentError": {
            "type": "string",
            "nullable": true
          },
          "printingPriority": {
            "type": "string",
            "example": "None"
          },
          "printingPriorityName": {
            "type": "string",
            "example": "None"
          },
          "requestedShippingService": {
            "type": "string",
            "example": "None"
          },
          "requestedShippingServiceName": {
            "type": "string",
            "example": "None"
          },
          "details": {
            "type": "array",
            "description": "The tag order's line items, one per tag type ordered. Returned with the tag order itself; this is not an include.",
            "items": {
              "$ref": "#/components/schemas/MetrcTagOrderDetail"
            }
          }
        }
      },
      "MetrcTagOrderDetail": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "example": 1457
          },
          "tagOrderId": {
            "type": "integer",
            "description": "Id of the tag order this line item belongs to",
            "example": 594
          },
          "lineNumber": {
            "type": "integer",
            "example": 1
          },
          "facilityId": {
            "type": "integer",
            "example": 505
          },
          "facilityName": {
            "type": "string",
            "nullable": true
          },
          "tagType": {
            "type": "string",
            "example": "CannabisPackage"
          },
          "tagInventoryType": {
            "type": "string",
            "example": "CannabisPackage"
          },
          "groupTagTypeId": {
            "type": "string",
            "example": "TagType-1"
          },
          "tagTypeId": {
            "type": "string",
            "example": "TagType-1"
          },
          "tagTypeName": {
            "type": "string",
            "nullable": true
          },
          "quantity": {
            "type": "integer",
            "description": "Number of tags ordered on this line",
            "example": 26
          },
          "shippingWeightPounds": {
            "type": "number",
            "example": 6.95
          },
          "unitPrice": {
            "type": "number",
            "example": 0.46
          },
          "maxGroupSize": {
            "type": "integer",
            "example": 1
          },
          "skuNumber": {
            "type": "string",
            "example": "USG-CANN-MTRC-PKG-ADULT-INDV-RFID"
          },
          "listPrice": {
            "type": "number",
            "example": 0.46
          }
        }
      },
      "MetrcTagOrderReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "orderNumber__contains:2026",
              "statusName__eq:Received"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "orderDate:desc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcTagOrder"
            }
          }
        }
      },
      "MetrcTagReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "label__contains:0003"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "name:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcTag"
            }
          }
        }
      },
      "MetrcTradeSamplePackagesInputsResponse": {
        "type": "object",
        "description": "Reference data for flagging or unflagging packages as trade sample.\n",
        "properties": {
          "adding": {
            "type": "boolean",
            "description": "True on the flag form, false on the unflag form.",
            "example": true
          },
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "nullable": true,
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "description": "One row per pre-selected package. Empty in the selection-free fetch this\nendpoint performs.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcTransaction": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the harvest",
            "example": 123467,
            "nullable": false
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "packageId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the package",
            "example": 123466,
            "nullable": false
          },
          "tripId": {
            "type": "integer",
            "description": "Identifier for the trip (nullable)",
            "nullable": true
          },
          "tripManifestNumber": {
            "type": "string",
            "description": "Trip manifest number (nullable)",
            "nullable": true
          },
          "packageLabel": {
            "type": "string",
            "description": "Label associated with the package",
            "example": "1A4000000000000000000023",
            "nullable": false
          },
          "isPartial": {
            "type": "boolean",
            "description": "Whether the package is partial (nullable)",
            "nullable": true
          },
          "hasPartial": {
            "type": "boolean",
            "description": "Whether the package has a partial item",
            "example": false,
            "nullable": false
          },
          "packageType": {
            "type": "string",
            "description": "Type of the package",
            "example": "Product",
            "nullable": false
          },
          "productName": {
            "type": "string",
            "description": "Name of the product",
            "example": " Pre-Roll - (2pk) 0.5g - Gelato",
            "nullable": false
          },
          "productCategoryName": {
            "type": "string",
            "description": "Category of the product",
            "example": "Raw Preroll (Final Packaging)",
            "nullable": false
          },
          "itemStrainName": {
            "type": "string",
            "description": "Strain name of the product (nullable)",
            "nullable": true
          },
          "itemBrandName": {
            "type": "string",
            "description": "Brand name of the product (nullable)",
            "nullable": true
          },
          "itemUnitCbdPercent": {
            "type": "number",
            "format": "float",
            "description": "Percentage of CBD in the item (nullable)",
            "nullable": true
          },
          "itemUnitCbdContent": {
            "type": "number",
            "format": "float",
            "description": "CBD content in the item (nullable)",
            "nullable": true
          },
          "itemUnitCbdContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the CBD content unit of measure (nullable)",
            "nullable": true
          },
          "itemUnitCbdContentDose": {
            "type": "number",
            "format": "float",
            "description": "CBD content dose of the item (nullable)",
            "nullable": true
          },
          "itemUnitCbdContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the CBD dose content unit of measure (nullable)",
            "nullable": true
          },
          "itemUnitThcPercent": {
            "type": "number",
            "format": "float",
            "description": "Percentage of THC in the item (nullable)",
            "nullable": true
          },
          "itemUnitThcContent": {
            "type": "number",
            "format": "float",
            "description": "THC content in the item (nullable)",
            "nullable": true
          },
          "itemUnitThcContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the THC content unit of measure (nullable)",
            "nullable": true
          },
          "itemUnitThcContentDose": {
            "type": "number",
            "format": "float",
            "description": "THC content dose of the item (nullable)",
            "nullable": true
          },
          "itemUnitThcContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the THC dose content unit of measure (nullable)",
            "nullable": true
          },
          "itemUnitVolume": {
            "type": "number",
            "format": "float",
            "description": "Volume of the item (nullable)",
            "nullable": true
          },
          "itemUnitVolumeUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the volume unit of measure (nullable)",
            "nullable": true
          },
          "itemUnitWeight": {
            "type": "number",
            "format": "float",
            "description": "Weight of the item",
            "example": 1.0,
            "nullable": false
          },
          "itemUnitWeightUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the weight unit of measure",
            "example": "g",
            "nullable": false
          },
          "itemServingSize": {
            "type": "string",
            "description": "Serving size of the item",
            "example": "0.5 grams",
            "nullable": false
          },
          "itemSupplyDurationDays": {
            "type": "integer",
            "description": "Supply duration in days (nullable)",
            "nullable": true
          },
          "itemUnitQuantity": {
            "type": "number",
            "format": "float",
            "description": "Quantity of the item (nullable)",
            "nullable": true
          },
          "itemUnitQuantityUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the quantity unit of measure (nullable)",
            "nullable": true
          },
          "quantitySold": {
            "type": "number",
            "format": "float",
            "description": "Quantity of the item sold",
            "example": 1.0,
            "nullable": false
          },
          "unitOfMeasureId": {
            "type": "integer",
            "description": "ID of the unit of measure",
            "example": 1,
            "nullable": false
          },
          "unitOfMeasureName": {
            "type": "string",
            "description": "Name of the unit of measure",
            "example": "Each",
            "nullable": false
          },
          "unitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the unit of measure",
            "example": "ea",
            "nullable": false
          },
          "unitThcPercent": {
            "type": "number",
            "format": "float",
            "description": "Percentage of THC in the unit (nullable)",
            "nullable": true
          },
          "unitThcContent": {
            "type": "number",
            "format": "float",
            "description": "THC content in the unit (nullable)",
            "nullable": true
          },
          "unitThcContentUnitOfMeasureId": {
            "type": "integer",
            "description": "Unit of measure ID for THC content (nullable)",
            "nullable": true
          },
          "unitWeight": {
            "type": "number",
            "format": "float",
            "description": "Weight of the unit",
            "example": 1.0,
            "nullable": false
          },
          "unitWeightUnitOfMeasureId": {
            "type": "integer",
            "description": "Unit of measure ID for weight",
            "example": 4,
            "nullable": false
          },
          "totalPrice": {
            "type": "number",
            "format": "float",
            "description": "Total price of the sale",
            "example": 0.01,
            "nullable": false
          },
          "salesDeliveryState": {
            "type": "string",
            "description": "Delivery state of the sale (nullable)",
            "nullable": true
          },
          "salesDeliveryStateName": {
            "type": "string",
            "description": "Name of the delivery state (nullable)",
            "nullable": true
          },
          "isTradeSample": {
            "type": "boolean",
            "description": "Whether the sale was a trade sample",
            "example": false,
            "nullable": false
          },
          "isDonation": {
            "type": "boolean",
            "description": "Whether the sale was a donation",
            "example": false,
            "nullable": false
          },
          "isTestingSample": {
            "type": "boolean",
            "description": "Whether the sale was a testing sample",
            "example": false,
            "nullable": false
          },
          "productRequiresRemediation": {
            "type": "boolean",
            "description": "Whether the product requires remediation",
            "example": false,
            "nullable": false
          },
          "containsRemediatedProduct": {
            "type": "boolean",
            "description": "Whether the product contains remediated items",
            "example": false,
            "nullable": false
          },
          "remediationDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date of product remediation (nullable)",
            "nullable": true
          },
          "isArchived": {
            "type": "boolean",
            "description": "Whether the sale is archived",
            "example": false,
            "nullable": false
          },
          "archivedDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date when the sale was archived (nullable)",
            "nullable": true
          },
          "recordedDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the sale was recorded",
            "example": "0001-01-01T00:00:00+00:00",
            "nullable": false
          },
          "recordedByUserName": {
            "type": "string",
            "description": "Username of the person who recorded the sale (nullable)",
            "nullable": true
          },
          "lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when the sale was last modified",
            "example": "2024-09-06T20:00:00+00:00",
            "nullable": false
          },
          "invoiceNumber": {
            "type": "string",
            "description": "Invoice number of the sale (nullable)",
            "nullable": true
          },
          "price": {
            "type": "number",
            "format": "float",
            "description": "Price of the sale (nullable)",
            "nullable": true
          },
          "exciseTax": {
            "type": "number",
            "format": "float",
            "description": "Excise tax applied to the sale (nullable)",
            "nullable": true
          },
          "cityTax": {
            "type": "number",
            "format": "float",
            "description": "City tax applied to the sale (nullable)",
            "nullable": true
          },
          "countyTax": {
            "type": "number",
            "format": "float",
            "description": "County tax applied to the sale (nullable)",
            "nullable": true
          },
          "municipalTax": {
            "type": "number",
            "format": "float",
            "description": "Municipal tax applied to the sale (nullable)",
            "nullable": true
          },
          "discountAmount": {
            "type": "number",
            "format": "float",
            "description": "Discount applied to the sale (nullable)",
            "nullable": true
          },
          "subTotal": {
            "type": "number",
            "format": "float",
            "description": "Subtotal of the sale (nullable)",
            "nullable": true
          },
          "salesTax": {
            "type": "number",
            "format": "float",
            "description": "Sales tax applied to the sale (nullable)",
            "nullable": true
          },
          "tradeSampleSaleVerified": {
            "type": "boolean",
            "description": "Whether the trade sample sale was verified (nullable)",
            "nullable": true
          },
          "productSaleVerified": {
            "type": "boolean",
            "description": "Whether the product sale was verified (nullable)",
            "nullable": true
          },
          "qrCodeDocument": {
            "type": "string",
            "nullable": true
          },
          "itemUnitThcAPercent": {
            "type": "number",
            "format": "float",
            "description": "Alternate percentage of THC in the item (nullable)",
            "nullable": true
          },
          "itemUnitThcAContent": {
            "type": "number",
            "format": "float",
            "description": "Alternate THC content in the item (nullable)",
            "nullable": true
          },
          "itemUnitThcAContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the alternate THC content unit of measure (nullable)",
            "nullable": true
          },
          "itemUnitThcAContentDose": {
            "type": "number",
            "format": "float",
            "description": "Alternate THC content dose of the item (nullable)",
            "nullable": true
          },
          "itemUnitThcAContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the alternate THC dose content unit of measure (nullable)",
            "nullable": true
          },
          "itemUnitCbdAPercent": {
            "type": "number",
            "format": "float",
            "description": "Alternate percentage of CBD in the item (nullable)",
            "nullable": true
          },
          "itemUnitCbdAContent": {
            "type": "number",
            "format": "float",
            "description": "Alternate CBD content in the item (nullable)",
            "nullable": true
          },
          "itemUnitCbdAContentUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the alternate CBD content unit of measure (nullable)",
            "nullable": true
          },
          "itemUnitCbdAContentDose": {
            "type": "number",
            "format": "float",
            "description": "Alternate CBD content dose of the item (nullable)",
            "nullable": true
          },
          "itemUnitCbdAContentDoseUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Abbreviation of the alternate CBD dose content unit of measure (nullable)",
            "nullable": true
          }
        }
      },
      "MetrcTransferDelivery": {
        "type": "object",
        "properties": {
          "id": {
            "type": "number",
            "description": "The transfer delivery ID",
            "example": 12345
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "manifestNumber": {
            "type": "integer",
            "format": "int32",
            "example": 1234567
          },
          "deliveryNumber": {
            "type": "integer",
            "format": "int32",
            "example": 1234567
          },
          "actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual arrival date and time."
          },
          "actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual departure date and time."
          },
          "actualReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual return arrival date and time."
          },
          "actualReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual return departure date and time."
          },
          "deliveryPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "The number of packages delivered.",
            "example": 5
          },
          "deliveryReceivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "The number of packages received.",
            "example": 4
          },
          "estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The estimated arrival date and time.",
            "example": "2024-07-25T15:30:00Z"
          },
          "estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The estimated departure date and time.",
            "example": "2024-07-25T13:30:00Z"
          },
          "estimatedReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated return arrival date and time."
          },
          "estimatedReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated return departure date and time."
          },
          "grossUnitOfWeightAbbreviation": {
            "type": "string",
            "nullable": true,
            "description": "The abbreviation for the unit of gross weight.",
            "example": "kg"
          },
          "grossUnitOfWeightId": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "The ID for the unit of gross weight.",
            "example": 1
          },
          "grossWeight": {
            "type": "number",
            "format": "float",
            "nullable": true,
            "description": "The gross weight.",
            "example": 100.5
          },
          "plannedRoute": {
            "type": "string",
            "description": "The planned route for the transfer.",
            "example": "Route A"
          },
          "receivedByName": {
            "type": "string",
            "nullable": true,
            "description": "The name of the person who received the shipment."
          },
          "receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the shipment was received."
          },
          "recipientFacilityId": {
            "type": "integer",
            "format": "int32",
            "description": "The ID of the recipient facility.",
            "example": 456
          },
          "recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "The license number of the recipient facility.",
            "example": "AB12345"
          },
          "recipientFacilityName": {
            "type": "string",
            "description": "The name of the recipient facility.",
            "example": "Facility A"
          },
          "rejectedPackagesReturned": {
            "type": "boolean",
            "description": "Indicates whether rejected packages were returned.",
            "example": false
          },
          "shipmentTransactionTypeName": {
            "type": "string",
            "description": "The name of the shipment transaction type.",
            "example": "Regular"
          },
          "shipmentTypeName": {
            "type": "string",
            "description": "The name of the shipment type.",
            "example": "Transfer",
            "enum": [
              "Transfer"
            ]
          },
          "recipientApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the recipient approved the shipment upon receipt."
          },
          "recipientAutoApproval": {
            "type": "boolean",
            "description": "Indicates whether the recipient's approval of the shipment is automatically granted, typically when there are no issues with the received packages.",
            "example": false
          },
          "PDFDocumentFileSystemId": {
            "type": "number",
            "example": 0
          },
          "invoiceNumber": {
            "type": "string",
            "example": ""
          }
        }
      },
      "MetrcTransferTemplate": {
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcOutgoingTransfer"
          },
          {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "example": "My template"
              }
            }
          }
        ]
      },
      "MetrcTransferTransporter": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "transporterFacilityLicenseNumber": {
            "type": "string",
            "description": "The license number of the transporter's facility.",
            "example": "LIC-00001"
          },
          "transporterFacilityName": {
            "type": "string",
            "description": "The name of the transporter's facility.",
            "example": "Example Dispensary LLC"
          },
          "transporterDirectionName": {
            "type": "string",
            "enum": [
              "Outbound"
            ],
            "description": "The direction of the transporter.",
            "example": "Outbound"
          },
          "transporterApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transporter was approved.",
            "example": "2024-07-26T13:00:00+00:00"
          },
          "transporterAutoApproval": {
            "type": "boolean",
            "description": "Indicates if the transporter was automatically approved.",
            "example": true
          },
          "driverName": {
            "type": "string",
            "description": "The name of the driver.",
            "example": "Jane Doe"
          },
          "driverOccupationalLicenseNumber": {
            "type": "string",
            "description": "The occupational license number of the driver.",
            "example": "DL123456789"
          },
          "driverVehicleLicenseNumber": {
            "type": "string",
            "description": "The vehicle license number of the driver.",
            "example": "ABC1234"
          },
          "driverLayoverLeg": {
            "type": "string",
            "nullable": true,
            "description": "Information about the driver's layover leg."
          },
          "vehicleMake": {
            "type": "string",
            "description": "The make of the vehicle.",
            "example": "Ford"
          },
          "vehicleModel": {
            "type": "string",
            "description": "The model of the vehicle.",
            "example": "F-150"
          },
          "vehicleLicensePlateNumber": {
            "type": "string",
            "description": "The license plate number of the vehicle.",
            "example": "XYZ7890"
          },
          "acceptedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the transporter was accepted.",
            "example": "2024-07-26T13:00:00-05:00"
          },
          "isLayover": {
            "type": "boolean",
            "description": "Indicates if the transport includes a layover.",
            "example": false
          },
          "estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated date and time of departure.",
            "example": "2024-07-26T14:00:00+00:00"
          },
          "actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual date and time of departure."
          },
          "estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated date and time of arrival.",
            "example": "2024-07-26T15:00:00+00:00"
          },
          "actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual date and time of arrival."
          }
        }
      },
      "MetrcTransferTransporterDetails": {
        "type": "object",
        "properties": {
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "shipmentPlanId": {
            "type": "integer",
            "example": 12345,
            "description": "Unique identifier for the shipment plan."
          },
          "shipmentDeliveryId": {
            "type": "integer",
            "example": 67890,
            "description": "Unique identifier for the shipment delivery."
          },
          "transporterDirection": {
            "type": "string",
            "enum": [
              "Outbound"
            ],
            "example": "Outbound",
            "description": "Direction of the transporter."
          },
          "transporterFacilityId": {
            "type": "integer",
            "example": 54321,
            "description": "Unique identifier for the transporter facility."
          },
          "lineNumber": {
            "type": "integer",
            "example": 1,
            "description": "Line number in the shipment details."
          },
          "transporterDetailsTransporterLineNumber": {
            "type": "integer",
            "example": 0,
            "description": "Line number of the transporter this driver leg belongs to. Together with lineNumber this orders the legs of a multi-vehicle or layover transfer."
          },
          "vehicleRegistrationNumber": {
            "type": "string",
            "example": "",
            "description": "Registration number of the vehicle."
          },
          "driverName": {
            "type": "string",
            "example": "Jane Doe",
            "description": "Name of the driver."
          },
          "driverOccupationalLicenseNumber": {
            "type": "string",
            "example": "AB1234567",
            "description": "Occupational license number of the driver."
          },
          "driverVehicleLicenseNumber": {
            "type": "string",
            "example": "XYZ987654",
            "description": "Vehicle license number of the driver."
          },
          "driverLayoverLeg": {
            "type": "string",
            "nullable": true,
            "example": "Leg1",
            "description": "Layover leg details for the driver, if applicable."
          },
          "vehicleMake": {
            "type": "string",
            "example": "Ford",
            "description": "Make of the vehicle."
          },
          "vehicleModel": {
            "type": "string",
            "example": "Transit",
            "description": "Model of the vehicle."
          },
          "vehicleLicensePlateNumber": {
            "type": "string",
            "example": "XYZ-1234",
            "description": "License plate number of the vehicle."
          },
          "actualDriverStartDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2024-07-26T08:30:00Z",
            "description": "Actual start date and time for the driver."
          },
          "isVoided": {
            "type": "boolean",
            "example": false,
            "description": "Indicates if the record is voided."
          },
          "receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T18:47:20+00:00",
            "description": "The date and time when the shipment was received."
          },
          "receivedDeliveryCount": {
            "type": "integer",
            "example": 1,
            "description": "The number of deliveries received."
          }
        }
      },
      "MetrcTransferredPackage": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Unique identifier for the item",
            "example": 1234567,
            "nullable": false
          },
          "hostname": {
            "type": "string",
            "description": "The hostname this object was retrieved from",
            "example": "ca.metrc.com"
          },
          "dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "TRANSFERRED_PACKAGE",
            "enum": [
              "TRANSFERRED_PACKAGE"
            ]
          },
          "packageId": {
            "type": "integer",
            "description": "Identifier for the package",
            "example": 9876543,
            "nullable": false
          },
          "recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient facility",
            "example": "LIC-00001",
            "nullable": false
          },
          "recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient facility",
            "example": "Example Dispensary LLC",
            "nullable": false
          },
          "manifestNumber": {
            "type": "string",
            "description": "Manifest number associated with the shipment",
            "example": "0001234567",
            "nullable": false
          },
          "packageLabel": {
            "type": "string",
            "description": "Label of the package",
            "example": "1A4000000000000000000001",
            "nullable": false
          },
          "sourceHarvestNames": {
            "type": "string",
            "description": "Names of the source harvests",
            "example": "Blue Dream",
            "nullable": true
          },
          "sourcePackageLabels": {
            "type": "string",
            "description": "Labels of the source packages",
            "example": "1A4000000000000000000002",
            "nullable": true
          },
          "productName": {
            "type": "string",
            "description": "Name of the product",
            "example": "Blue Dream Flower | 3.5g",
            "nullable": false
          },
          "productCategoryName": {
            "type": "string",
            "description": "Category name of the product",
            "example": "Bud/Flower (Final Packaging)",
            "nullable": false
          },
          "itemStrainName": {
            "type": "string",
            "description": "Strain name of the item",
            "example": "Blue Dream",
            "nullable": false
          },
          "labTestingStateName": {
            "description": "Lab testing status of the item",
            "$ref": "#/components/schemas/LabTestingStates"
          },
          "shippedQuantity": {
            "type": "number",
            "description": "Quantity shipped",
            "format": "double",
            "example": 1224.0,
            "nullable": false
          },
          "shippedUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the shipped quantity",
            "example": "g",
            "nullable": false
          },
          "grossWeight": {
            "type": "number",
            "description": "Gross weight of the package",
            "format": "double",
            "example": 224.0,
            "nullable": false
          },
          "grossUnitOfWeightAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the gross weight",
            "example": "g",
            "nullable": false
          },
          "shipperWholesalePrice": {
            "type": "number",
            "description": "Wholesale price from the shipper",
            "format": "double",
            "nullable": true
          },
          "receivedQuantity": {
            "type": "number",
            "description": "Quantity received",
            "format": "double",
            "example": 1224.0,
            "nullable": false
          },
          "receivedUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the received quantity",
            "example": "g",
            "nullable": false
          },
          "receiverWholesalePrice": {
            "type": "number",
            "description": "Wholesale price to the receiver",
            "format": "double",
            "nullable": true
          },
          "shipmentPackageStateName": {
            "type": "string",
            "description": "State of the shipment package",
            "example": "Accepted",
            "enum": [
              "Accepted",
              "Rejected",
              "Pending"
            ],
            "nullable": false
          },
          "actualDepartureDateTime": {
            "type": "string",
            "description": "Actual departure date and time",
            "format": "date-time",
            "nullable": true
          },
          "receivedDateTime": {
            "type": "string",
            "description": "Date and time when the package was received",
            "format": "date-time",
            "example": "2024-07-26T00:00:00-05:00",
            "nullable": false
          },
          "processingJobTypeName": {
            "type": "string",
            "nullable": true
          },
          "externalId": {
            "type": "number",
            "nullable": true
          }
        },
        "required": [
          "grossUnitOfWeightAbbreviation",
          "grossWeight",
          "id",
          "itemStrainName",
          "labTestingStateName",
          "manifestNumber",
          "packageId",
          "packageLabel",
          "productCategoryName",
          "productName",
          "receivedDateTime",
          "receivedQuantity",
          "receivedUnitOfMeasureAbbreviation",
          "recipientFacilityLicenseNumber",
          "recipientFacilityName",
          "shipmentPackageStateName",
          "shippedQuantity",
          "shippedUnitOfMeasureAbbreviation"
        ]
      },
      "MetrcTransferredPackageReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "packageLabel__endswith:0003",
              "productName__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/MetrcTransferredPackage"
            }
          }
        }
      },
      "MetrcUnfinalizeSalesPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "The sales receipt ID",
              "example": 12345
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      },
      "MetrcUnfinishHarvestsPayload": {
        "type": "array",
        "description": "Batch of finished harvests to reopen. Unfinishing returns the harvest to the\nHarvested tab so further packages or waste can be recorded against it.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Harvest ID of a finished harvest.\n\nTo find eligible harvests, use the [Inactive Harvests](#/Harvests/get_v2_harvests_inactive)\nendpoint.\n",
              "example": 304
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      },
      "MetrcUnfinishPackagesInputsResponse": {
        "type": "object",
        "description": "Reference data for unfinishing packages.\n",
        "properties": {
          "finish": {
            "type": "boolean",
            "description": "Always false. Metrc serves Finish and Unfinish from one form.",
            "example": false
          },
          "packages": {
            "type": "array",
            "description": "Pre-selected packages, when the modal is opened from a grid selection.\nEmpty in the selection-free fetch this endpoint performs.\n",
            "items": {
              "$ref": "#/components/schemas/MetrcPackage"
            }
          },
          "details": {
            "type": "array",
            "description": "One row per pre-selected package. Empty in the selection-free fetch this\nendpoint performs.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcUnfinishPackagesPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "The package ID",
              "example": 12345
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      },
      "MetrcUnflagDonationPackagesPayload": {
        "type": "array",
        "description": "Unflag packages for donation. Available in California and Michigan.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Package ID.\n\nTo find eligible packages, use the\n[Unflag Donation Source Packages](#/Modify%20Packages/get_v2_packages_donation_unflag_source_packages)\nendpoint.\n",
              "example": 12345
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      },
      "MetrcUnflagTradeSamplePackagesPayload": {
        "type": "array",
        "description": "Unflag packages as trade sample. Available in California, Maine and Michigan.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Package ID.\n\nTo find eligible packages, use the\n[Unflag Trade Sample Source Packages](#/Modify%20Packages/get_v2_packages_trade_sample_unflag_source_packages)\nendpoint.\n",
              "example": 12345
            }
          },
          "required": [
            "id"
          ],
          "additionalProperties": false
        }
      },
      "MetrcUpdateTransferDestinationTransportersPayload": {
        "type": "array",
        "description": "One entry per delivery whose return-leg transporters are being set.\n\nWhen a recipient rejects packages they travel back to the shipper, and that\nreturn leg needs its own transporters. Metrc opens this modal with\n`direction: 'Return'` hard-coded, so the endpoint only ever addresses the\nreturn leg.\n\n!!! warning \"Field set is inferred, not observed\"\n    Every crawled state has zero rejected transfers, so the Metrc UI index\n    has never been able to open this modal and record its fields \u2014 it is the\n    one transfer write in T3 whose payload was not read off Metrc's own form.\n\n    The shape below is taken from the transporter block of\n    [update](#/Transfers/post_v2_transfers_update), which is the same\n    job against the same entity and is known to work. Treat a rejection from\n    Metrc as evidence the shape is wrong rather than as a problem with your\n    values, and please report it.\n",
        "items": {
          "type": "object",
          "required": [
            "deliveryId",
            "transporters"
          ],
          "additionalProperties": false,
          "properties": {
            "deliveryId": {
              "type": "integer",
              "description": "The delivery whose return leg is being crewed, from the\n[rejected transfers](#/Transfers/get_v2_transfers_rejected) listing.\n",
              "example": 6789
            },
            "transporters": {
              "type": "array",
              "description": "The transporters carrying the rejected packages home.",
              "items": {
                "type": "object",
                "required": [
                  "transporterId",
                  "phoneNumberForQuestions",
                  "transporterDetails"
                ],
                "additionalProperties": false,
                "properties": {
                  "transporterId": {
                    "type": "integer",
                    "description": "Facility ID of the transporter. Eligible facilities come from\n[transporters](#/Packages/get_v2_transfers_create_transporters).\n",
                    "example": 12345
                  },
                  "phoneNumberForQuestions": {
                    "type": "string",
                    "example": "5555551234"
                  },
                  "transporterDetails": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "required": [
                        "driverName",
                        "driverOccupationalLicenseNumber",
                        "driverLicenseNumber",
                        "vehicleMake",
                        "vehicleModel",
                        "vehicleLicensePlateNumber"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "driverName": {
                          "type": "string",
                          "example": "Jane Doe"
                        },
                        "driverOccupationalLicenseNumber": {
                          "type": "string",
                          "example": "LIC12345"
                        },
                        "driverLicenseNumber": {
                          "type": "string",
                          "example": "D1234567"
                        },
                        "driverLayoverLeg": {
                          "type": "string",
                          "example": "",
                          "nullable": true
                        },
                        "vehicleMake": {
                          "type": "string",
                          "example": "Ford"
                        },
                        "vehicleModel": {
                          "type": "string",
                          "example": "Transit"
                        },
                        "vehicleLicensePlateNumber": {
                          "type": "string",
                          "example": "ABC1234"
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "MetrcUpdateTransferTemplatesPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "description": "A schema representing a shipment with details about destinations, transporters, and packages.",
          "required": [
            "id",
            "name",
            "destinations"
          ],
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The transfer ID",
              "example": 12345
            },
            "name": {
              "type": "string",
              "example": "My template"
            },
            "destinations": {
              "type": "array",
              "description": "List of destinations for the shipment.",
              "items": {
                "type": "object",
                "required": [
                  "estimatedArrivalDateTime",
                  "estimatedDepartureDateTime",
                  "plannedRoute",
                  "recipientId",
                  "transferTypeId"
                ],
                "additionalProperties": false,
                "properties": {
                  "recipientId": {
                    "type": "number",
                    "format": "int32",
                    "description": "Facility ID of the destination facility.\n\nTo find eligible destination facilities, use the [Destinations](#/Create%20Transfer/get_v2_packages_create_transfer_destination_list)\nendpoint.\n",
                    "example": 123456
                  },
                  "plannedRoute": {
                    "type": "string",
                    "description": "Planned route for the shipment.",
                    "example": "Keep going, you can't miss it"
                  },
                  "transferTypeId": {
                    "type": "number",
                    "format": "int32",
                    "description": "Identifier for the type of transfer.",
                    "example": 8
                  },
                  "invoiceNumber": {
                    "type": "string",
                    "description": "Invoice number for this delivery. *Not all transfer types require this value.*\n\nThis value is only required if the `transferType` has `requiresInvoiceNumber=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                    "example": "123456-ABC"
                  },
                  "estimatedDepartureDateTime": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Estimated departure date and time.",
                    "example": "2023-05-23T21:22:35"
                  },
                  "estimatedArrivalDateTime": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Estimated arrival date and time.",
                    "example": "2023-05-23T21:22:35"
                  },
                  "grossWeight": {
                    "type": "number",
                    "format": "float",
                    "description": "Gross weight of the transfer. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresDestinationGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                    "example": 123.45
                  },
                  "grossUnitOfWeightId": {
                    "type": "number",
                    "format": "int32",
                    "description": "Identifier for the unit of weight. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresDestinationGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                    "example": 4
                  },
                  "transporters": {
                    "type": "array",
                    "description": "List of transporters for the transfer.\n\n**Oregon:** a transfer has one transporter, driver and vehicle for all of its\ndestinations. Send at most one transporter with one `transporterDetails` entry;\nif several destinations include one, they must be identical. Layovers are not\nsupported.\n",
                    "items": {
                      "type": "object",
                      "required": [
                        "transporterId",
                        "phoneNumberForQuestions",
                        "transporterDetails"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "transporterId": {
                          "type": "number",
                          "format": "int32",
                          "description": "Facility ID of the transporter facility. \n\nTo find eligible transporter facilities, use the [Transporters](#/Create%20Transfer/get_v2_packages_create_transfer_transporter_list) endpoint.\n",
                          "example": 12345
                        },
                        "phoneNumberForQuestions": {
                          "type": "string",
                          "description": "Phone number for inquiries.",
                          "example": "5555551234"
                        },
                        "isLayover": {
                          "type": "boolean",
                          "default": false,
                          "description": "Whether this leg stops at a layover point, where the shipment is held\nbefore continuing on to the destination.\n\nA layover makes three otherwise-optional things required:\n`estimatedArrivalDateTime` and `estimatedDepartureDateTime` below, and a\n`driverLayoverLeg` on every entry in `transporterDetails`.\n\nMetrc only offers the layover checkbox when the transfer type has\n`transporterFieldsEnabled=true`. See the\n[create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs)\nendpoint.\n",
                          "example": false
                        },
                        "estimatedDepartureDateTime": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Estimated **check-out** from the layover point. *Layover legs only* \u2014\nrequired when `isLayover=true`, and dropped from the request otherwise,\nbecause Metrc's own form does not render the field on a non-layover leg.\n\nNot the same field as the destination's `estimatedDepartureDateTime`,\nwhich is departure from the origin facility.\n",
                          "example": "2023-05-23T21:22:35"
                        },
                        "estimatedArrivalDateTime": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Estimated **check-in** at the layover point. *Layover legs only* \u2014 the\nsame condition as `estimatedDepartureDateTime` above.\n\nNot the same field as the destination's `estimatedArrivalDateTime`,\nwhich is arrival at the recipient facility.\n",
                          "example": "2023-05-23T20:22:35"
                        },
                        "transporterDetails": {
                          "type": "array",
                          "description": "Details of the transporter.",
                          "items": {
                            "type": "object",
                            "required": [
                              "driverName",
                              "driverOccupationalLicenseNumber",
                              "driverLicenseNumber",
                              "vehicleMake",
                              "vehicleModel",
                              "vehicleLicensePlateNumber"
                            ],
                            "additionalProperties": false,
                            "properties": {
                              "driverName": {
                                "type": "string",
                                "description": "Name of the driver.",
                                "example": "Jane Doe"
                              },
                              "driverOccupationalLicenseNumber": {
                                "type": "string",
                                "description": "Occupational license number of the driver.",
                                "example": "LIC12345"
                              },
                              "driverLicenseNumber": {
                                "type": "string",
                                "description": "Driver's license number.",
                                "example": "D1234567"
                              },
                              "driverLayoverLeg": {
                                "type": "string",
                                "description": "Which leg of a layover this driver covers. *Required on every entry\nwhen the transporter has `isLayover=true`*, and left empty otherwise.\n\n| Value | Leg |\n|---|---|\n| `ToLayover` | Origin to the layover point |\n| `FromLayover` | Layover point to the destination |\n| `FromAndToLayover` | Both legs, one driver |\n\nTwo entries \u2014 one `ToLayover` and one `FromLayover` \u2014 describe a driver\nswap at the layover point. A single `FromAndToLayover` entry describes\none driver running the whole route.\n",
                                "example": "",
                                "nullable": true
                              },
                              "vehicleMake": {
                                "type": "string",
                                "description": "Make of the vehicle.",
                                "example": "Ford"
                              },
                              "vehicleModel": {
                                "type": "string",
                                "description": "Model of the vehicle.",
                                "example": "GT"
                              },
                              "vehicleLicensePlateNumber": {
                                "type": "string",
                                "description": "License plate number of the vehicle.",
                                "example": "ABC1234"
                              },
                              "vehicleRegistrationNumber": {
                                "type": "string",
                                "description": "Vehicle registration number. *Not all transfer types require this\nvalue.*\n\nOnly required if the `transferType` has\n`requiresVehicleRegistrationNumber=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs)\nendpoint for details.\n",
                                "example": "REG12345"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "packages": {
                    "type": "array",
                    "description": "List of packages in the transfer.",
                    "items": {
                      "type": "object",
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "number",
                          "format": "int32",
                          "description": "Identifier of the package.",
                          "example": 123456
                        },
                        "wholesalePrice": {
                          "type": "number",
                          "format": "float",
                          "description": "Wholesale price of the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `transactionType=\"Wholesale\"`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                          "example": 200.0
                        },
                        "grossWeight": {
                          "type": "number",
                          "format": "float",
                          "description": "Gross weight of the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresPackagesGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                          "example": 123.45
                        },
                        "grossUnitOfWeightId": {
                          "type": "number",
                          "format": "int32",
                          "description": "Unit of weight identifier for the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresPackagesGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                          "example": 5
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "MetrcUpdateTransfersPayload": {
        "type": "array",
        "items": {
          "type": "object",
          "description": "A schema representing a shipment with details about destinations, transporters, and packages.",
          "required": [
            "id",
            "destinations"
          ],
          "additionalProperties": false,
          "properties": {
            "id": {
              "type": "integer",
              "description": "The transfer ID",
              "example": 12345
            },
            "lastModified": {
              "type": "string",
              "format": "date-time",
              "description": "The transfer's `lastModified` stamp, echoed back from the listing the\ntransfer was read from. Metrc checks it optimistically and refuses the\nedit with *\"Cannot update Transfer at this time as it has changed since\nthe editing began\"* when it does not match, so a stale or omitted value\nfails rather than overwriting someone else's change.\n",
              "example": "2026-09-18T17:17:29+00:00"
            },
            "destinations": {
              "type": "array",
              "description": "List of destinations for the shipment.",
              "items": {
                "type": "object",
                "required": [
                  "estimatedArrivalDateTime",
                  "estimatedDepartureDateTime",
                  "plannedRoute",
                  "recipientId",
                  "transferTypeId"
                ],
                "additionalProperties": false,
                "properties": {
                  "recipientId": {
                    "type": "number",
                    "format": "int32",
                    "description": "Facility ID of the destination facility.\n\nTo find eligible destination facilities, use the [Destinations](#/Create%20Transfer/get_v2_packages_create_transfer_destination_list)\nendpoint.\n",
                    "example": 123456
                  },
                  "plannedRoute": {
                    "type": "string",
                    "description": "Planned route for the shipment.",
                    "example": "Keep going, you can't miss it"
                  },
                  "transferTypeId": {
                    "type": "number",
                    "format": "int32",
                    "description": "Identifier for the type of transfer.",
                    "example": 8
                  },
                  "invoiceNumber": {
                    "type": "string",
                    "description": "Invoice number for this delivery. *Not all transfer types require this value.*\n\nThis value is only required if the `transferType` has `requiresInvoiceNumber=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                    "example": "123456-ABC"
                  },
                  "estimatedDepartureDateTime": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Estimated departure date and time.",
                    "example": "2023-05-23T21:22:35"
                  },
                  "estimatedArrivalDateTime": {
                    "type": "string",
                    "format": "date-time",
                    "description": "Estimated arrival date and time.",
                    "example": "2023-05-23T21:22:35"
                  },
                  "grossWeight": {
                    "type": "number",
                    "format": "float",
                    "description": "Gross weight of the transfer. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresDestinationGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                    "example": 123.45
                  },
                  "grossUnitOfWeightId": {
                    "type": "number",
                    "format": "int32",
                    "description": "Identifier for the unit of weight. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresDestinationGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                    "example": 4
                  },
                  "transporters": {
                    "type": "array",
                    "description": "List of transporters for the transfer.\n\n**Oregon:** a transfer has one transporter, driver and vehicle for all of its\ndestinations. Send at most one transporter with one `transporterDetails` entry;\nif several destinations include one, they must be identical. Layovers are not\nsupported.\n",
                    "items": {
                      "type": "object",
                      "required": [
                        "transporterId",
                        "phoneNumberForQuestions",
                        "transporterDetails"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "transporterId": {
                          "type": "number",
                          "format": "int32",
                          "description": "Facility ID of the transporter facility. \n\nTo find eligible transporter facilities, use the [Transporters](#/Create%20Transfer/get_v2_packages_create_transfer_transporter_list) endpoint.\n",
                          "example": 12345
                        },
                        "phoneNumberForQuestions": {
                          "type": "string",
                          "description": "Phone number for inquiries.",
                          "example": "5555551234"
                        },
                        "isLayover": {
                          "type": "boolean",
                          "default": false,
                          "description": "Whether this leg stops at a layover point, where the shipment is held\nbefore continuing on to the destination.\n\nA layover makes three otherwise-optional things required:\n`estimatedArrivalDateTime` and `estimatedDepartureDateTime` below, and a\n`driverLayoverLeg` on every entry in `transporterDetails`.\n\nMetrc only offers the layover checkbox when the transfer type has\n`transporterFieldsEnabled=true`. See the\n[create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs)\nendpoint.\n",
                          "example": false
                        },
                        "estimatedDepartureDateTime": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Estimated **check-out** from the layover point. *Layover legs only* \u2014\nrequired when `isLayover=true`, and dropped from the request otherwise,\nbecause Metrc's own form does not render the field on a non-layover leg.\n\nNot the same field as the destination's `estimatedDepartureDateTime`,\nwhich is departure from the origin facility.\n",
                          "example": "2023-05-23T21:22:35"
                        },
                        "estimatedArrivalDateTime": {
                          "type": "string",
                          "format": "date-time",
                          "description": "Estimated **check-in** at the layover point. *Layover legs only* \u2014 the\nsame condition as `estimatedDepartureDateTime` above.\n\nNot the same field as the destination's `estimatedArrivalDateTime`,\nwhich is arrival at the recipient facility.\n",
                          "example": "2023-05-23T20:22:35"
                        },
                        "transporterDetails": {
                          "type": "array",
                          "description": "Details of the transporter.",
                          "items": {
                            "type": "object",
                            "required": [
                              "driverName",
                              "driverOccupationalLicenseNumber",
                              "driverLicenseNumber",
                              "vehicleMake",
                              "vehicleModel",
                              "vehicleLicensePlateNumber"
                            ],
                            "additionalProperties": false,
                            "properties": {
                              "driverName": {
                                "type": "string",
                                "description": "Name of the driver.",
                                "example": "Jane Doe"
                              },
                              "driverOccupationalLicenseNumber": {
                                "type": "string",
                                "description": "Occupational license number of the driver.",
                                "example": "LIC12345"
                              },
                              "driverLicenseNumber": {
                                "type": "string",
                                "description": "Driver's license number.",
                                "example": "D1234567"
                              },
                              "driverLayoverLeg": {
                                "type": "string",
                                "description": "Which leg of a layover this driver covers. *Required on every entry\nwhen the transporter has `isLayover=true`*, and left empty otherwise.\n\n| Value | Leg |\n|---|---|\n| `ToLayover` | Origin to the layover point |\n| `FromLayover` | Layover point to the destination |\n| `FromAndToLayover` | Both legs, one driver |\n\nTwo entries \u2014 one `ToLayover` and one `FromLayover` \u2014 describe a driver\nswap at the layover point. A single `FromAndToLayover` entry describes\none driver running the whole route.\n",
                                "example": "",
                                "nullable": true
                              },
                              "vehicleMake": {
                                "type": "string",
                                "description": "Make of the vehicle.",
                                "example": "Ford"
                              },
                              "vehicleModel": {
                                "type": "string",
                                "description": "Model of the vehicle.",
                                "example": "GT"
                              },
                              "vehicleLicensePlateNumber": {
                                "type": "string",
                                "description": "License plate number of the vehicle.",
                                "example": "ABC1234"
                              },
                              "vehicleRegistrationNumber": {
                                "type": "string",
                                "description": "Vehicle registration number. *Not all transfer types require this\nvalue.*\n\nOnly required if the `transferType` has\n`requiresVehicleRegistrationNumber=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs)\nendpoint for details.\n",
                                "example": "REG12345"
                              }
                            }
                          }
                        }
                      }
                    }
                  },
                  "packages": {
                    "type": "array",
                    "description": "List of packages in the transfer.",
                    "items": {
                      "type": "object",
                      "required": [
                        "id"
                      ],
                      "additionalProperties": false,
                      "properties": {
                        "id": {
                          "type": "number",
                          "format": "int32",
                          "description": "Identifier of the package.",
                          "example": 123456
                        },
                        "wholesalePrice": {
                          "type": "number",
                          "format": "float",
                          "description": "Wholesale price of the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `transactionType=\"Wholesale\"`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                          "example": 200.0
                        },
                        "grossWeight": {
                          "type": "number",
                          "format": "float",
                          "description": "Gross weight of the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresPackagesGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                          "example": 123.45
                        },
                        "grossUnitOfWeightId": {
                          "type": "number",
                          "format": "int32",
                          "description": "Unit of weight identifier for the package. *Not all transfer types require this value.*\n\nOnly should be set if the `transferType` has `requiresPackagesGrossWeight=true`.\n\nSee the [create transfer inputs](#/Create%20Transfer/get_v2_transfers_create_inputs) endpoints for details.\n",
                          "example": 5
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "MetrcVegetativePlantChangesByLocationInputsResponse": {
        "type": "object",
        "description": "Reference data for Metrc's page-level Changes by Location form, for vegetative plants.\n",
        "properties": {
          "locations": {
            "type": "array",
            "description": "Locations eligible to hold the plant.",
            "items": {
              "$ref": "#/components/schemas/MetrcLocation"
            }
          },
          "sublocations": {
            "type": "array",
            "description": "Sublocations within the chosen location. Populated only where the state\nmodels them; Maine and Michigan among the indexed states.\n",
            "nullable": true,
            "items": {
              "type": "object"
            }
          },
          "growthPhases": {
            "type": "array",
            "description": "Growth phases a plant may be moved into. The set depends on the phase\nthe form was opened for: only a vegetative plant may become a Mother.\n",
            "items": {
              "type": "object"
            }
          },
          "details": {
            "type": "array",
            "description": "Additional state-specific detail rows. Unused in most states.",
            "nullable": true,
            "items": {
              "type": "object"
            }
          }
        }
      },
      "MetrcVegetativePlantChangesByLocationPayload": {
        "type": "array",
        "description": "Apply location and growth phase changes to vegetative plants, from Metrc's\npage-level Changes by Location form.\n\nUnlike every other plant write this one is **not driven by a grid\nselection** -- Metrc's own form opens without one. Each entry still names\nthe plant it changes.\n\nEvery change column is optional: send only the ones this row changes.\n`sublocationId` and `newSublocationId` apply in Maine and Michigan only.\n\nNot available in California, which has no vegetative plant grid.\n",
        "items": {
          "type": "object",
          "properties": {
            "id": {
              "type": "integer",
              "description": "Plant ID.",
              "example": 90210
            },
            "changeDate": {
              "type": "string",
              "format": "date",
              "description": "The date the change took effect.",
              "example": "2026-05-14"
            },
            "newLocationId": {
              "type": "integer",
              "description": "Location to move the plant to. Omit to leave it where it is.",
              "example": 12345
            },
            "newGrowthPhase": {
              "type": "string",
              "description": "Growth phase to move the plant into. Omit to leave it unchanged.\n",
              "example": "Flowering"
            },
            "sublocationId": {
              "type": "integer",
              "description": "The plant's current sublocation. Maine and Michigan only.",
              "example": 678
            },
            "newSublocationId": {
              "type": "integer",
              "description": "Sublocation to move the plant to. Maine and Michigan only.",
              "example": 679
            }
          },
          "required": [
            "id",
            "changeDate"
          ],
          "additionalProperties": false
        }
      },
      "MetrcVehicle": {
        "type": "object",
        "properties": {
          "facilityId": {
            "type": "integer",
            "description": "Facility identifier.",
            "example": 12345
          },
          "id": {
            "type": "integer",
            "description": "Unique identifier for the vehicle.",
            "example": 12345
          },
          "isArchived": {
            "type": "boolean",
            "description": "Indicates if the vehicle is archived.",
            "example": false
          },
          "lastModified": {
            "type": "string",
            "description": "Date and time the vehicle information was last modified.",
            "format": "date-time",
            "example": "2022-06-16T07:43:23-05:00"
          },
          "licensePlateNumber": {
            "type": "string",
            "description": "License plate number of the vehicle.",
            "example": "ABC1234"
          },
          "make": {
            "type": "string",
            "description": "Make of the vehicle.",
            "example": "Ford"
          },
          "model": {
            "type": "string",
            "description": "Model of the vehicle.",
            "example": "Transit Connect"
          }
        }
      },
      "MetrcVoidHarvestSchedulePayload": {
        "type": "object",
        "description": "The harvest schedule to void.\n\n**Missouri only.** Harvest scheduling is a state-specific Metrc feature.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "ID of the harvest schedule to void.\n\nTake this from the `id` field of a\n[Harvest Schedules](#/Harvests/get_v2_harvests_schedules) row.\n",
            "example": 77
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "MetrcVoidSalesReceiptPayload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The sales receipt ID",
            "example": 12345
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "MetrcVoidTransferNotePayload": {
        "type": "object",
        "description": "Voids one transfer note. Notes cannot be edited, so correcting one means\nvoiding it and adding a replacement.\n",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The note ID. Notes are listed on the transfer's detail row in Metrc's UI,\nserved by `/api/transfers/notes`; T3 does not expose that listing yet.\n",
            "example": 12345
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "MetrcVoidTransferPayload": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "The transfer ID",
            "example": 12345
          }
        },
        "required": [
          "id"
        ],
        "additionalProperties": false
      },
      "OutgoingTransferManifestReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "filters": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "example": [
              "manifestNumber__endswith:0003",
              "productName__contains:kush"
            ]
          },
          "filterLogic": {
            "type": "string",
            "description": "The filter logic specified for this report, if any",
            "example": "and",
            "nullable": true
          },
          "sort": {
            "type": "string",
            "description": "The sort order specified for this report, if any",
            "example": "label:asc",
            "nullable": true
          },
          "licenseNumber": {
            "type": "string",
            "description": "The unique identifier for the license associated with this request.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "description": "The transfers loaded for this report, nested. Requesting contentType=csv returns the flattened T3OutgoingTransferManifest columns instead, one row per package.",
            "items": {
              "$ref": "#/components/schemas/T3OutgoingTransferManifestRecord"
            }
          }
        }
      },
      "Pagination": {
        "type": "object",
        "properties": {
          "page": {
            "type": "integer",
            "example": 1
          },
          "totalPages": {
            "type": "integer",
            "example": 3
          },
          "pageSize": {
            "type": "integer",
            "example": 100
          },
          "total": {
            "type": "integer",
            "example": 235
          }
        }
      },
      "PointInTimePackageReportResponse": {
        "type": "object",
        "properties": {
          "generatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-08T00:00:00+00:00"
          },
          "licenseNumber": {
            "type": "string",
            "description": "The license the report is for.",
            "example": "LIC-00001"
          },
          "data": {
            "type": "array",
            "description": "Every package the license held as the requested moment began, and every one the report could not settle, one row each.",
            "items": {
              "$ref": "#/components/schemas/T3PointInTimePackage"
            }
          }
        }
      },
      "RefreshToken": {
        "type": "string",
        "description": "Refresh token used to acquire a new access token",
        "example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjoiYWJjMTIzIiwidXNlcm5hbWUiOiJleGFtcGxlVXNlciIsImV4cCI6MTYwOTM1OTAwMH0.HJbO67hFNph5t6KjKQ1T1-EKn9H7hvhb34bTft1zDsQ"
      },
      "RegisterPayload": {
        "type": "object",
        "description": "The organization's registration secret and the Metrc credentials to register.\n\nNote: The `email` field is only needed if you are authenticating in Colorado.\nOtherwise, omit this property.\n\nNote: The `otpSeed` field is only needed if you are authenticating in Michigan.\nOtherwise, omit this property.\n",
        "properties": {
          "registrationSecret": {
            "type": "string",
            "minLength": 1,
            "description": "The organization's registration secret (rotatable from the web UI)",
            "example": "rs-7f5c4e2b-8d1a-4f3c-9e6b-2a5d8c7f1e3b"
          },
          "username": {
            "type": "string",
            "minLength": 1,
            "description": "Your Metrc username",
            "example": "user123"
          },
          "password": {
            "type": "string",
            "minLength": 1,
            "description": "Your Metrc password",
            "example": "secretpassword"
          },
          "hostname": {
            "$ref": "#/components/schemas/MetrcHostname"
          },
          "email": {
            "type": "string",
            "format": "email",
            "nullable": true,
            "description": "(Colorado only) Your Metrc login email",
            "example": "user@example.com"
          },
          "otpSeed": {
            "type": "string",
            "pattern": "^[A-Za-z2-7]+=*$",
            "nullable": true,
            "description": "(Michigan only) the base32 seed string for your Metrc multi-factor authentication",
            "example": "J3G5KD7W6ZT2LV5X"
          }
        },
        "required": [
          "registrationSecret",
          "username",
          "password",
          "hostname"
        ],
        "additionalProperties": false
      },
      "ReportDeliveryResponse": {
        "type": "object",
        "description": "Returned by a report endpoint when `delivery=email`.\n\nThe response is sent before the report has been generated -- often before generation\nhas even started. It confirms that the request was accepted and names where the\nresult will go; it carries no data and no link.\n\nThere is no status endpoint and nothing to poll. The report arrives by email, and so\ndoes any failure: because the response has already been sent, errors that would\notherwise have been an HTTP status are emailed to the recipient with the same title\nand explanation.\n\nFor `contentType=googleSheets` the response carries no sheet URL because the sheet\ndoes not exist yet -- it is created by the worker after this receipt is sent. The\nlink is emailed to the recipient once it does, and Google sends its own share\nnotification alongside. To receive the URL in the response instead, drop\n`delivery=email`: an inline `googleSheets` request builds the sheet during the\nrequest and returns a `302` to it.\n",
        "required": [
          "status",
          "recipient",
          "contentType"
        ],
        "properties": {
          "status": {
            "type": "string",
            "description": "Always `processing`. The report is being generated and will be delivered when\nit is ready.\n",
            "enum": [
              "processing"
            ],
            "example": "processing"
          },
          "recipient": {
            "type": "string",
            "format": "email",
            "description": "The address the report will be delivered to.",
            "example": "you@example.com"
          },
          "contentType": {
            "type": "string",
            "description": "The format the report will be delivered in.",
            "enum": [
              "json",
              "csv",
              "xlsx",
              "googleSheets"
            ],
            "example": "xlsx"
          }
        }
      },
      "SavedReport": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "string",
            "format": "uuid",
            "description": "The saved report's identifier. Stable across every edit, so a client\nholding it keeps referring to the same saved report however the\ndefinition changes.\n",
            "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
          },
          "name": {
            "type": "string",
            "description": "User-supplied label. Unique per Metrc account.",
            "example": "Daily veg plant count"
          },
          "description": {
            "type": "string",
            "nullable": true,
            "description": "Optional note about what this report is for.",
            "example": "Feeds the cultivation team's morning dashboard"
          },
          "reportUrl": {
            "type": "string",
            "description": "The saved report as a URL: a report path plus its query string. This is\nwhat you request to get the report \u2014 saved reports are definitions, and\nthese endpoints never run one.\n\n**Origin-relative, and unauthenticated.** Two things are yours to add:\n\n- Prepend the API origin, e.g. `https://api.trackandtrace.tools`. The\n  origin is deliberately omitted so one saved report is correct in every\n  environment it might be read from.\n- Supply your `secretKey`, as a query parameter or an `X-T3-API-Key`\n  header. It is stripped before the report is saved and never stored, so\n  a saved report is not a credential.\n\nRendered from the stored configuration on every read rather than kept as\ntext, so it always names the endpoint's current published path. A URL\nsaved against a deprecated path therefore reads back as the current one.\n",
            "example": "/v2/plants/vegetative/report?licenseNumber=C11-0000001-LIC&contentType=csv"
          },
          "t3EndpointId": {
            "type": "string",
            "description": "Which report this is. Stored directly rather than inferred from a path,\nso a saved report is unaffected if a report endpoint's URL is ever\ncorrected.\n",
            "example": "VEGETATIVE_PLANTS_REPORT"
          },
          "licenseNumbers": {
            "type": "array",
            "description": "The licenses the report covers, in row order. Read out of the saved\nparameters, so it always matches what the report actually requests.\n",
            "items": {
              "type": "string"
            },
            "example": [
              "C11-0000001-LIC"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-08-09T12:34:56.789Z"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-08-09T12:34:56.789Z"
          }
        }
      },
      "SavedReportSchedule": {
        "type": "object",
        "properties": {
          "frequency": {
            "type": "string",
            "enum": [
              "every5Minutes",
              "every15Minutes",
              "every30Minutes",
              "hourly",
              "daily"
            ],
            "example": "daily"
          },
          "timeOfDay": {
            "type": "string",
            "nullable": true,
            "description": "Local run time as `HH:MM`, for `daily`; otherwise null.",
            "example": "06:00"
          },
          "timezone": {
            "type": "string",
            "nullable": true,
            "description": "IANA timezone of `timeOfDay`, for `daily`; otherwise null.",
            "example": "America/Denver"
          },
          "nextRunAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the report next runs. Runs can start up to about two minutes after\nthis. Still set while the schedule is paused, but nothing runs until it\nis saved again.\n",
            "example": "2026-10-07T12:00:00+00:00"
          },
          "lastRunAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the report last ran on this schedule.",
            "example": "2026-10-06T12:00:00+00:00"
          },
          "pausedReason": {
            "type": "string",
            "nullable": true,
            "enum": [
              "credential_failure",
              "secret_key_unavailable",
              "limit_exceeded",
              "consecutive_failures"
            ],
            "description": "Null while the schedule is active. Otherwise why it stopped:\n\n- `credential_failure`: Metrc rejected the secret key's credentials.\n  Paused at once to protect the account from repeated failed logins.\n- `secret_key_unavailable`: the linked secret key was deleted or\n  disabled.\n- `limit_exceeded`: the subscription no longer allows this schedule.\n- `consecutive_failures`: the report failed several runs in a row.\n\nFix the cause, then send the schedule again with PUT to resume it.\n",
            "example": null
          },
          "pausedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": null
          },
          "consecutiveFailures": {
            "type": "integer",
            "description": "Failed runs since the last success.",
            "example": 0
          },
          "secretKeyHint": {
            "type": "string",
            "nullable": true,
            "description": "Last four characters of the secret key the schedule runs with, or null\nif that key was deleted. The key itself is never returned.\n",
            "example": "9f3a"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-06T11:52:10.123+00:00"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-10-06T11:52:10.123+00:00"
          }
        }
      },
      "SavedReportScheduleRun": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "string",
            "format": "uuid",
            "example": "0b7d5a3e-6c1f-4e2a-9d8b-1a2b3c4d5e6f"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "description": "When the run finished.",
            "example": "2026-10-06T12:00:04.512+00:00"
          },
          "triggerSource": {
            "type": "string",
            "enum": [
              "schedule",
              "manual"
            ],
            "example": "schedule"
          },
          "status": {
            "type": "string",
            "enum": [
              "succeeded",
              "queued",
              "failed",
              "rate_limited"
            ],
            "description": "- `succeeded`: the report was generated.\n- `queued`: the report was accepted for delivery, for example by email.\n  It arrives by that channel, and so does any failure while generating\n  it.\n- `failed`: the report request failed; see `error`.\n- `rate_limited`: the run hit your subscription's report rate limit and\n  was skipped. It runs again at the next scheduled time.\n",
            "example": "queued"
          },
          "httpStatus": {
            "type": "integer",
            "nullable": true,
            "description": "Status the report URL returned, or null if it never responded.",
            "example": 200
          },
          "deliveryMode": {
            "type": "string",
            "nullable": true,
            "description": "The saved report's `delivery` parameter.",
            "example": "email"
          },
          "durationMs": {
            "type": "integer",
            "nullable": true,
            "example": 1840
          },
          "error": {
            "type": "object",
            "nullable": true,
            "description": "Null unless the run failed.",
            "properties": {
              "code": {
                "type": "string",
                "nullable": true,
                "example": "METRC_RESOURCE_UNAUTHORIZED"
              },
              "title": {
                "type": "string",
                "nullable": true,
                "example": "Metrc Resource Unauthorized"
              },
              "detail": {
                "type": "string",
                "nullable": true,
                "example": "The account cannot view this license's plants."
              }
            },
            "example": null
          }
        }
      },
      "ScanTagListPayload": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "handles"
        ],
        "properties": {
          "handles": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5000,
            "description": "The handles to mark as scanned, matched ignoring case and surrounding\nwhitespace, so `1a4...` marks an entry stored as `1A4...`. Repeats count\nonce. Handles not in the list are returned in `handlesNotFound`.\n",
            "items": {
              "type": "string",
              "minLength": 1
            },
            "example": [
              "1A4000000000000000000001",
              "1A4000000000000000000002"
            ],
            "x-errorMessage": "'handles' must be an array of 1 to 5000 non-empty strings."
          },
          "scannedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The time to set. Omit it to use the server's current time. Overwrites\nthe time on entries already scanned.\n",
            "example": "2026-11-05T12:34:56.789Z",
            "x-errorMessage": "'scannedAt' must be an ISO 8601 timestamp."
          }
        }
      },
      "SearchEndpointOutcome": {
        "type": "object",
        "description": "Where one endpoint of a search stands.",
        "properties": {
          "t3EndpointId": {
            "$ref": "#/components/schemas/SearchT3EndpointId"
          },
          "licenseNumber": {
            "type": "string",
            "example": "LIC-00001"
          },
          "tier": {
            "type": "integer",
            "description": "The tier of the collection, `1`, `2` or `3`. Tier 1 holds the collections most searches are answered by, tier 2 the remaining active ones, tier 3 on-hold, inactive and the rest.",
            "enum": [
              1,
              2,
              3
            ],
            "example": 1
          },
          "objectType": {
            "$ref": "#/components/schemas/SearchObjectType"
          },
          "status": {
            "type": "string",
            "description": "- `answered`: Metrc answered; its results are in `data`.\n- `skipped`: not sent; see `reason`.\n- `failed`: sent, but not answered; see `reason`.\n- `pending`: still running (stream events only).\n",
            "enum": [
              "answered",
              "skipped",
              "failed",
              "pending"
            ],
            "example": "answered"
          },
          "reason": {
            "type": "string",
            "nullable": true,
            "description": "Why the endpoint was not answered. Null when answered or pending.\n\n- `format`: skipped; the query's format fits none of its fields.\n- `forbidden`: the account cannot read this collection on this license.\n  Once known, from the license's Metrc views or an earlier refusal, the\n  endpoint is skipped without a Metrc call.\n- `timeout`: Metrc did not answer in time.\n- `metrc_error`: Metrc answered with an error, or could not be reached.\n  `metrcStatusCode` carries Metrc's status when it answered.\n- `session`: the Metrc session expired. Authenticate again.\n- `internal`: the server failed to handle Metrc's answer.\n",
            "enum": [
              "format",
              "forbidden",
              "timeout",
              "metrc_error",
              "session",
              "internal"
            ],
            "example": null
          },
          "metrcStatusCode": {
            "type": "integer",
            "nullable": true,
            "description": "Metrc's HTTP status for a failed endpoint, when Metrc answered.",
            "example": null
          },
          "resultCount": {
            "type": "integer",
            "description": "Results this endpoint contributed, at most `pageSize`.",
            "example": 1
          },
          "truncated": {
            "type": "boolean",
            "description": "Whether Metrc has more matches than were returned. Raise `pageSize` or narrow the query to see them.",
            "example": false
          },
          "totalAvailable": {
            "type": "integer",
            "nullable": true,
            "description": "Metrc's count of matches for the endpoint. Null unless answered.",
            "example": 1
          }
        }
      },
      "SearchEventStream": {
        "type": "string",
        "description": "Server-Sent Events stream emitted when `/v2/search` is called with\n`stream=true` or `Accept: text/event-stream`. Each message is an `event:`\nline, a `data:` line holding JSON, and a blank line. The events, in order:\n\n\n**`event: start`**: once, first. Every endpoint the search covers, skipped\nor pending, with the detected formats and the resolved request:\n\n```json\n{\n  \"endpoints\": [\n    { \"t3EndpointId\": \"METRC_ACTIVE_PACKAGES\", \"licenseNumber\": \"LIC-00001\", \"tier\": 1, \"objectType\": \"PACKAGE\", \"status\": \"pending\", \"reason\": null, \"metrcStatusCode\": null, \"resultCount\": 0, \"truncated\": false, \"totalAvailable\": null },\n    { \"t3EndpointId\": \"METRC_ACTIVE_ITEMS\", \"licenseNumber\": \"LIC-00001\", \"tier\": 1, \"objectType\": \"ITEM\", \"status\": \"skipped\", \"reason\": \"format\", \"metrcStatusCode\": null, \"resultCount\": 0, \"truncated\": false, \"totalAvailable\": null }\n  ],\n  \"detectedQueryFormats\": [\"HEX_STRING\", \"INTEGER\"],\n  \"request\": { \"query\": \"0042\", \"licenseNumber\": \"LIC-00001\", \"licenseNumbers\": [\"LIC-00001\"], \"pageSize\": 10, \"t3EndpointIds\": [\"METRC_ACTIVE_PACKAGES\", \"METRC_ACTIVE_ITEMS\"], \"tiers\": [1, 2] }\n}\n```\n\n\n**`event: result`**: once per sent endpoint, as it finishes. The endpoint's\noutcome, with the same fields as an `endpoints` entry, plus its `results`,\neach shaped like an entry of the JSON response's `data`, best first:\n\n```json\n{\n  \"t3EndpointId\": \"METRC_ACTIVE_PACKAGES\", \"licenseNumber\": \"LIC-00001\",\n  \"status\": \"answered\", \"reason\": null, \"metrcStatusCode\": null,\n  \"resultCount\": 1, \"truncated\": false, \"totalAvailable\": 1,\n  \"results\": [\n    { \"t3EndpointId\": \"METRC_ACTIVE_PACKAGES\", \"licenseNumber\": \"LIC-00001\", \"tier\": 1, \"objectType\": \"PACKAGE\", \"score\": 1.0, \"isExactMatch\": true, \"matchedFields\": [{ \"field\": \"label\", \"score\": 1.0, \"matchType\": \"EXACT\" }], \"matchedEntry\": { \"...\": \"...\" } }\n  ]\n}\n```\n\n\n**Heartbeat**: a comment line, `:`, written about every 250 ms while no\nendpoint has finished. Clients ignore it.\n\n\n**`event: done`**: once, last. Every endpoint's final state:\n`{ \"endpoints\": [ ... ] }`.\n\n\n**`event: error`**: instead of `done`, when the search cannot finish. The\nsame RFC 7807 problem the JSON mode would return (`type`, `title`, `status`,\n`detail`, `code`), plus `endpoints` as they stood. `code` is\n`METRC_SESSION_EXPIRED` when the Metrc session expired; authenticate again\nand retry.\n",
        "example": "event: start\ndata: {\"endpoints\":[{\"t3EndpointId\":\"METRC_ACTIVE_PACKAGES\",\"licenseNumber\":\"LIC-00001\",\"tier\":1,\"objectType\":\"PACKAGE\",\"status\":\"pending\",\"reason\":null,\"metrcStatusCode\":null,\"resultCount\":0,\"truncated\":false,\"totalAvailable\":null}],\"detectedQueryFormats\":[\"HEX_STRING\",\"INTEGER\"],\"request\":{\"query\":\"0042\",\"licenseNumber\":\"LIC-00001\",\"licenseNumbers\":[\"LIC-00001\"],\"pageSize\":10,\"t3EndpointIds\":[\"METRC_ACTIVE_PACKAGES\"],\"tiers\":null}}\n\n:\n\nevent: result\ndata: {\"t3EndpointId\":\"METRC_ACTIVE_PACKAGES\",\"licenseNumber\":\"LIC-00001\",\"tier\":1,\"objectType\":\"PACKAGE\",\"status\":\"answered\",\"reason\":null,\"metrcStatusCode\":null,\"resultCount\":1,\"truncated\":false,\"totalAvailable\":1,\"results\":[{\"t3EndpointId\":\"METRC_ACTIVE_PACKAGES\",\"licenseNumber\":\"LIC-00001\",\"tier\":1,\"objectType\":\"PACKAGE\",\"score\":1.0,\"isExactMatch\":true,\"matchedFields\":[{\"field\":\"label\",\"score\":1.0,\"matchType\":\"EXACT\"}],\"matchedEntry\":{\"...\":\"...\"}}]}\n\nevent: done\ndata: {\"endpoints\":[{\"t3EndpointId\":\"METRC_ACTIVE_PACKAGES\",\"licenseNumber\":\"LIC-00001\",\"tier\":1,\"objectType\":\"PACKAGE\",\"status\":\"answered\",\"reason\":null,\"metrcStatusCode\":null,\"resultCount\":1,\"truncated\":false,\"totalAvailable\":1}]}\n"
      },
      "SearchObjectType": {
        "type": "string",
        "description": "The kind of object a search collection holds, whatever its state. Active,\ninactive and on-hold packages, lab samples and transferred packages are all\n`PACKAGE`; mother plants are `PLANT`; hub transfers are `TRANSFER`.\n",
        "enum": [
          "PACKAGE",
          "PLANT",
          "PLANT_BATCH",
          "HARVEST",
          "HARVEST_SCHEDULE",
          "TRANSFER",
          "TRANSFER_TEMPLATE",
          "SALES_RECEIPT",
          "PROCESSING_JOB",
          "ITEM",
          "STRAIN",
          "LOCATION",
          "TAG",
          "TAG_ORDER"
        ],
        "example": "PACKAGE"
      },
      "SearchResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "description": "Every result across the answered endpoints, best first. Equal scores are ordered by `endpoints` order, so an object comes before the tag record that names it, then by each endpoint's own ranking. Each endpoint contributes at most `pageSize` results.",
            "items": {
              "type": "object",
              "properties": {
                "t3EndpointId": {
                  "$ref": "#/components/schemas/SearchT3EndpointId"
                },
                "licenseNumber": {
                  "type": "string",
                  "description": "The license the result was found on.",
                  "example": "LIC-00001"
                },
                "tier": {
                  "type": "integer",
                  "description": "The tier of the collection, `1`, `2` or `3`. Tier 1 holds the collections most searches are answered by, tier 2 the remaining active ones, tier 3 on-hold, inactive and the rest.",
                  "enum": [
                    1,
                    2,
                    3
                  ],
                  "example": 1
                },
                "objectType": {
                  "$ref": "#/components/schemas/SearchObjectType"
                },
                "score": {
                  "type": "number",
                  "format": "float",
                  "description": "How well the result matches the query, in `[0, 1]`, which is its best field's score. A field scores 1.0 when its whole value is the query, 0.8 when the query touches either end of the value (a tag tail, a name prefix), and 0.05 less for each character between the query and the nearer end, never below 0.2. That is times the field's weight, so secondary fields such as a package's location score lower.",
                  "example": 1.0
                },
                "isExactMatch": {
                  "type": "boolean",
                  "description": "Whether the result's own identifier (its tag, manifest number, receipt number or name) equals the query, ignoring case. Zero padding counts, so `123456` is not manifest `0000123456`.",
                  "example": true
                },
                "matchedFields": {
                  "type": "array",
                  "description": "Every field that matched the query, highest score first. Use it to highlight a match or explain why a result was returned.",
                  "items": {
                    "type": "object",
                    "properties": {
                      "field": {
                        "type": "string",
                        "description": "The matched field, as a dotted path into `matchedEntry`.",
                        "example": "label"
                      },
                      "score": {
                        "type": "number",
                        "format": "float",
                        "example": 1.0
                      },
                      "matchType": {
                        "type": "string",
                        "description": "Where the query falls in the field's value: `EXACT` is the\nwhole value, `PREFIX` its start, `SUFFIX` its end, `PARTIAL`\nsomewhere in between.\n",
                        "enum": [
                          "EXACT",
                          "PREFIX",
                          "SUFFIX",
                          "PARTIAL"
                        ],
                        "example": "EXACT"
                      }
                    }
                  }
                },
                "matchedEntry": {
                  "type": "object",
                  "description": "The Metrc object that matched. Its shape depends on `t3EndpointId`; a match from `METRC_ACTIVE_PACKAGES` is a Metrc package, a match from `METRC_INCOMING_ACTIVE_TRANSFERS` is a Metrc transfer."
                }
              }
            },
            "example": [
              {
                "t3EndpointId": "METRC_ACTIVE_PACKAGES",
                "licenseNumber": "LIC-00001",
                "score": 1.0,
                "isExactMatch": true,
                "matchedFields": [
                  {
                    "field": "label",
                    "score": 1.0,
                    "matchType": "EXACT"
                  }
                ],
                "matchedEntry": {
                  "id": 123456,
                  "label": "1A4FF0100000022000000123"
                }
              }
            ]
          },
          "endpoints": {
            "type": "array",
            "description": "Every endpoint the search covered, in display order, with how it ended.",
            "items": {
              "$ref": "#/components/schemas/SearchEndpointOutcome"
            },
            "example": [
              {
                "t3EndpointId": "METRC_ACTIVE_PACKAGES",
                "licenseNumber": "LIC-00001",
                "status": "answered",
                "reason": null,
                "metrcStatusCode": null,
                "resultCount": 1,
                "truncated": false,
                "totalAvailable": 1
              },
              {
                "t3EndpointId": "METRC_ACTIVE_ITEMS",
                "licenseNumber": "LIC-00001",
                "status": "skipped",
                "reason": "format",
                "metrcStatusCode": null,
                "resultCount": 0,
                "truncated": false,
                "totalAvailable": null
              },
              {
                "t3EndpointId": "METRC_INCOMING_ACTIVE_TRANSFERS",
                "licenseNumber": "LIC-00001",
                "status": "failed",
                "reason": "timeout",
                "metrcStatusCode": null,
                "resultCount": 0,
                "truncated": false,
                "totalAvailable": null
              }
            ]
          },
          "detectedQueryFormats": {
            "description": "The formats detected for the query. A query can have several; `\"12345\"` is both `HEX_STRING` and `INTEGER`. Formats decide which fields, and so which endpoints, are searched.",
            "type": "array",
            "example": [
              "HEX_STRING",
              "INTEGER"
            ],
            "items": {
              "type": "string",
              "enum": [
                "DATETIME",
                "HEX_STRING",
                "INTEGER",
                "BASIC_STRING"
              ]
            }
          },
          "request": {
            "description": "The request as the server resolved it, after defaults and trimming.",
            "type": "object",
            "properties": {
              "query": {
                "type": "string",
                "example": "1A4FF0100000022000000123"
              },
              "licenseNumber": {
                "type": "string",
                "description": "The first license searched. Kept for single-license readers; `licenseNumbers` lists every license.",
                "example": "LIC-00001"
              },
              "licenseNumbers": {
                "type": "array",
                "description": "Every license searched, in the order named.",
                "items": {
                  "type": "string"
                },
                "example": [
                  "LIC-00001"
                ]
              },
              "pageSize": {
                "type": "integer",
                "example": 10
              },
              "t3EndpointIds": {
                "type": "array",
                "description": "The endpoints covered, named or default, in display order.",
                "items": {
                  "$ref": "#/components/schemas/SearchT3EndpointId"
                }
              },
              "tiers": {
                "type": "array",
                "nullable": true,
                "description": "The tiers searched, `[1, 2]` when neither `tiers` nor `t3EndpointIds` was sent, and null when `t3EndpointIds` was.",
                "items": {
                  "type": "integer",
                  "enum": [
                    1,
                    2,
                    3
                  ]
                },
                "example": [
                  1,
                  2
                ]
              }
            }
          }
        }
      },
      "SearchT3EndpointId": {
        "type": "string",
        "description": "A collection `/v2/search` can query, named by the T3 endpoint id of its plain\ncollection route: the route its results come from. Listed in display order,\nwhich also breaks ties between equal scores.\n",
        "example": "METRC_ACTIVE_PACKAGES",
        "enum": [
          "METRC_ACTIVE_PACKAGES",
          "METRC_INTRANSIT_PACKAGES",
          "METRC_ONHOLD_PACKAGES",
          "METRC_INACTIVE_PACKAGES",
          "METRC_TRANSFERRED_PACKAGES",
          "METRC_LAB_SAMPLE_PACKAGES",
          "METRC_VEGETATIVE_PLANTS",
          "METRC_FLOWERING_PLANTS",
          "METRC_ONHOLD_PLANTS",
          "METRC_INACTIVE_PLANTS",
          "METRC_ACTIVE_MOTHER_PLANTS",
          "METRC_ONHOLD_MOTHER_PLANTS",
          "METRC_INACTIVE_MOTHER_PLANTS",
          "METRC_ACTIVE_PLANTBATCHES",
          "METRC_ONHOLD_PLANTBATCHES",
          "METRC_INACTIVE_PLANTBATCHES",
          "METRC_ACTIVE_HARVESTS",
          "METRC_ONHOLD_HARVESTS",
          "METRC_INACTIVE_HARVESTS",
          "METRC_HARVEST_SCHEDULES",
          "METRC_INCOMING_ACTIVE_TRANSFERS",
          "METRC_INCOMING_INACTIVE_TRANSFERS",
          "METRC_OUTGOING_ACTIVE_TRANSFERS",
          "METRC_OUTGOING_REJECTED_TRANSFERS",
          "METRC_OUTGOING_INACTIVE_TRANSFERS",
          "METRC_HUB_TRANSFERS",
          "METRC_TRANSFER_TEMPLATES",
          "METRC_ACTIVE_SALES",
          "METRC_INACTIVE_SALES",
          "METRC_ACTIVE_PROCESSING_JOBS",
          "METRC_INACTIVE_PROCESSING_JOBS",
          "METRC_ACTIVE_ITEMS",
          "METRC_ACTIVE_STRAINS",
          "METRC_ACTIVE_LOCATIONS",
          "METRC_AVAILABLE_TAGS",
          "METRC_USED_TAGS",
          "METRC_VOIDED_TAGS",
          "METRC_CURRENT_TAG_ORDERS",
          "METRC_HISTORY_TAG_ORDERS"
        ]
      },
      "SecretKey": {
        "type": "string",
        "description": "The generated secret key",
        "example": "2616ec56-fa2a-4c5b-86c0-acacf23c9ef7"
      },
      "SupercollectionMetadata": {
        "type": "object",
        "description": "Derived metadata fields attached to every supercollection item. `summary` and\n`description` are always populated, computed from the item's data with\nper-kind logic and a generic identifier-based fallback.\n",
        "properties": {
          "summary": {
            "type": "string",
            "description": "Short human-readable label (60 characters or fewer in the common case)\nsuitable for table cells, dropdowns, and other compact UI. Composed from\nprioritized required fragments (always rendered in full) plus truncatable\nfragments that are word-boundary-truncated with an ellipsis when they\noverflow the cap. May exceed 60 characters in rare cases when the\nrequired fragments alone do.\n"
          },
          "description": {
            "type": "string",
            "description": "Longer human-readable description (uncapped) suitable for detail views,\ntooltips, and search-result previews. Reads as a sentence or short\nparagraph composed from the item's populated fields.\n"
          }
        }
      },
      "SupportTicket": {
        "type": "object",
        "properties": {
          "publicId": {
            "type": "string",
            "format": "uuid",
            "description": "The ticket's identifier. Use it to read the ticket back.",
            "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
          },
          "status": {
            "type": "string",
            "enum": [
              "OPEN",
              "CLOSED"
            ],
            "description": "Where the ticket stands. Every ticket is created `OPEN`; T3 support\ncloses it. No endpoint changes this \u2014 poll the ticket to see it move.\n",
            "example": "OPEN"
          },
          "title": {
            "type": "string",
            "description": "One-line summary of the problem, as filed.",
            "example": "Scanning a package tag opens the wrong package"
          },
          "body": {
            "type": "string",
            "description": "The full description, as filed.",
            "example": "Scanning C11-0000001-LIC package tags opens the package above the one I scanned."
          },
          "contactEmail": {
            "type": "string",
            "nullable": true,
            "description": "The address T3 support will reply to, as filed. `null` only on tickets\nfiled before the field existed.\n",
            "example": "grower@example.com"
          },
          "pageUrl": {
            "type": "string",
            "nullable": true,
            "description": "The page the reporter was on, if the client reported one.",
            "example": "https://ca.metrc.com/industry/C11-0000001-LIC/packages"
          },
          "licenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "The license the ticket concerns, if one was given.",
            "example": "C11-0000001-LIC"
          },
          "clientVersion": {
            "type": "string",
            "nullable": true,
            "description": "The client version that filed the ticket, if it reported one.",
            "example": "3.2.1"
          },
          "stateContext": {
            "type": "object",
            "additionalProperties": true,
            "description": "The client-captured context submitted with the ticket, returned exactly\nas it was sent.\n",
            "example": {
              "route": "/packages/active",
              "selectedLicense": "C11-0000001-LIC"
            }
          },
          "resolutionNote": {
            "type": "string",
            "nullable": true,
            "description": "T3 support's reply, written when the ticket is worked. `null` until\nsomeone has said something. This is the only channel back to you, since\nno endpoint modifies a ticket \u2014 read it when `status` becomes `CLOSED`.\n",
            "example": "Fixed in extension 3.2.4. Update from the Chrome Web Store."
          },
          "attachments": {
            "type": "array",
            "description": "The files submitted with the ticket. Always present, empty when there are\nnone. Each entry describes a file without providing any way to fetch it.\n",
            "items": {
              "$ref": "#/components/schemas/SupportTicketAttachment"
            }
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-08-09T12:34:56.789Z"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-08-09T12:34:56.789Z"
          }
        }
      },
      "SupportTicketAttachment": {
        "type": "object",
        "description": "A file attached to a support ticket, described but not located.\n\nThere is deliberately no URL here and no endpoint that serves the bytes. The\nstorage bucket is private, and attachments are read by T3 support rather than\nfetched back by the client that uploaded them. What this tells you is that\nyour upload arrived and what it was.\n",
        "properties": {
          "publicId": {
            "type": "string",
            "format": "uuid",
            "description": "The attachment's identifier.",
            "example": "8c2f1b90-4d6e-4a11-9f03-6b1c2d3e4f50"
          },
          "filename": {
            "type": "string",
            "description": "The name the file had when it was uploaded. Kept for display only \u2014 it is\nnot used to build the stored object's path.\n",
            "example": "console.png"
          },
          "contentType": {
            "type": "string",
            "description": "What the file actually is, determined from its contents rather than from\nthe type the upload declared.\n",
            "example": "image/png"
          },
          "byteSize": {
            "type": "integer",
            "description": "The file's size in bytes.",
            "example": 412334
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2024-08-09T12:34:56.789Z"
          }
        }
      },
      "T3CreateLabelContentLayoutPayload": {
        "type": "object",
        "required": [
          "labelContentLayoutConfig"
        ],
        "properties": {
          "labelContentLayoutConfig": {
            "allOf": [
              {
                "$ref": "#/components/schemas/T3LabelContentLayoutConfig"
              },
              {
                "description": "The label content layout configuration. Must include a 'name' field."
              }
            ]
          },
          "description": {
            "type": "string",
            "description": "Optional description for the layout"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Optional tags for the layout"
          }
        }
      },
      "T3CreateLabelTemplateLayoutPayload": {
        "type": "object",
        "required": [
          "labelTemplateLayoutConfig"
        ],
        "properties": {
          "labelTemplateLayoutConfig": {
            "allOf": [
              {
                "$ref": "#/components/schemas/T3LabelTemplateLayoutConfig"
              },
              {
                "description": "The label template layout configuration. Must include a 'name' field."
              }
            ]
          },
          "description": {
            "type": "string",
            "description": "Optional description for the layout"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Optional tags for the layout"
          }
        }
      },
      "T3GenerateLabelsPayload": {
        "type": "object",
        "properties": {
          "labelTemplateLayoutConfig": {
            "type": "object",
            "description": "The identifier for the label template configuration",
            "$ref": "#/components/schemas/T3LabelTemplateLayoutConfig"
          },
          "labelContentLayoutConfig": {
            "type": "object",
            "description": "The identifier for the label content configuration.",
            "$ref": "#/components/schemas/T3LabelContentLayoutConfig"
          },
          "labelContentDataList": {
            "type": "array",
            "description": "A list of objects, each of which will be filled into one label. \n\nSuppose you were to pass the following data, which represents two distinct labels:\n\n```json\n[\n  {\n    \"package\": {\n      \"label\": \"12345\"\n    }\n  },\n  {\n    \"package\": {\n      \"label\": \"67890\"\n    }\n  }\n]\n```\n\nYou could access these values in the content layout template as follows:\n\n```\n{{ package.label }}\n```\n\nNote: The format of the objects is not validated.\n\nNote: Any values with `common` or `images` will be overwritten.\n",
            "items": {
              "type": "object",
              "additionalProperties": true
            },
            "example": [
              {
                "package": {
                  "label": "12345"
                }
              },
              {
                "package": {
                  "label": "67890"
                }
              }
            ]
          },
          "commonContentData": {
            "type": "object",
            "description": "A dictionary of values shared between all labels. Any supplied values\nwill be prefixed with `common.`\n\nSuppose you were to pass the following data:\n\n```json\n{\n  \"facilityContactInfo\": {\n    \"phoneNumber\": \"123-456-7890\"\n  }\n}\n```\n\nYou could access this values in the content layout template as follows:\n\n```\n{{ facilityContactInfo.phoneNumber }}\n```\n\nNote: The format of the object is not validated.\n",
            "example": {
              "facilityContactinfo": {
                "phoneNumber": "123-456-7890"
              }
            }
          },
          "images": {
            "type": "object",
            "description": "A dictionary of base64 image dadta shared between all labels. Any supplied values\nwill be prefixed with `images.`\n\nSuppose you were to pass the following data:\n\n```json\n{\n  \"logo\": \"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMBgKZzmtkAAAAASUVORK5CYII=\"\n}\n```\n\nYou could access this values in the content layout template as follows:\n\n```\n{{ images.logo }}\n```\n\nNote: The format of the object is not validated.\n",
            "example": {
              "logo": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMBgKZzmtkAAAAASUVORK5CYII="
            }
          },
          "fragments": {
            "type": "object",
            "description": "A dictionary of reusable label layouts that can be embedded inside the\nlayout you are generating. Works like `images`: a flat map of named things,\nshipped alongside the layout and referenced by name.\n\nA fragment is an ordinary label content layout \u2014 the same shape as\n`labelContentLayoutConfig`, and exactly what\n`GET /v2/labels/label-content-layouts` returns \u2014 so a saved layout can be\ndropped in here unchanged.\n\nReference one from a `FRAGMENT` element:\n\n```json\n{\n  \"labelContentLayoutConfig\": {\n    \"labelContentLayoutElements\": [\n      {\n        \"elementType\": \"FRAGMENT\",\n        \"fragmentKey\": \"warning\",\n        \"yStartFraction\": 0,\n        \"yEndFraction\": 0.3\n      }\n    ]\n  },\n  \"fragments\": {\n    \"warning\": {\n      \"labelContentLayoutElements\": [\n        { \"elementType\": \"TEXT\", \"valueTemplate\": \"{{ t3.text.poison_control_center_phone }}\" }\n      ]\n    }\n  }\n}\n```\n\nThe fragment fills the element's box, and its own elements position\nthemselves against that box. Fragments may embed other fragments; every key\ngoes in this one flat map regardless of how deeply it is nested.\n\nRequires `renderingOptions.renderingVersion` of `2`.\n",
            "additionalProperties": {
              "$ref": "#/components/schemas/T3LabelContentLayoutConfig"
            }
          },
          "renderingOptions": {
            "type": "object",
            "description": "Global options for controlling how all labels render or print",
            "$ref": "#/components/schemas/T3LabelRenderingOptions"
          },
          "disposition": {
            "type": "string",
            "description": "Specifies whether the PDF should be opened inline or downloaded as an attachment.",
            "enum": [
              "inline",
              "attachment"
            ],
            "default": "inline"
          }
        },
        "required": [
          "labelTemplateLayoutConfig",
          "labelContentLayoutConfig",
          "labelContentDataList"
        ],
        "additionalProperties": false
      },
      "T3GenerateLabelsPayload_DEPRECATED": {
        "type": "object",
        "properties": {
          "labelTemplateLayoutId": {
            "type": "string",
            "description": "The identifier for the label template configuration",
            "example": "AVERY_8160__2_625Wx1_0H"
          },
          "labelContentLayoutId": {
            "type": "string",
            "description": "The identifier for the label content configuration.",
            "example": "COL_TEXT_CODE128_TEXT"
          },
          "labelContentData": {
            "type": "array",
            "description": "A list of label content data objects to be filled into labels.  Refer to the label content layout information for which of these fields are required and where they will be inserted.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "text1": {
                  "type": "string",
                  "example": "text1"
                },
                "text2": {
                  "type": "string",
                  "example": "text2"
                },
                "text3": {
                  "type": "string",
                  "example": "text3"
                },
                "text4": {
                  "type": "string",
                  "example": "text4"
                },
                "text5": {
                  "type": "string",
                  "example": "text5"
                },
                "text6": {
                  "type": "string",
                  "example": "text6"
                },
                "text7": {
                  "type": "string",
                  "example": "text7"
                },
                "text8": {
                  "type": "string",
                  "example": "text8"
                }
              }
            }
          },
          "renderingOptions": {
            "type": "object",
            "description": "Options for controlling how the barcode will render.",
            "additionalProperties": false,
            "properties": {
              "debug": {
                "type": "boolean"
              },
              "enablePromo": {
                "type": "boolean"
              },
              "reversePrintOrder": {
                "type": "boolean"
              },
              "rotationDegrees": {
                "type": "number",
                "format": "float"
              },
              "barcodeBarThickness": {
                "type": "number",
                "format": "float",
                "description": "Controls how thick a barcode's bars will appear. Useful for\nlow-DPI thermal printers.\n\n- 1.0 is normal rendering\n- 0.9 is 10% thinner\n- 1.1 is 10% thicker\n\nTested values:\n\n- Zebra printers with a Code128 should use 0.94\n- Dymo printers with a Code128 should use 0.8\n",
                "example": 1.0
              },
              "labelMarginThickness": {
                "type": "number",
                "format": "float",
                "description": "Controls width of a label's margins. Useful for thermal printers\nwith slightly skewed printing.\n\n- 1.0 is normal margin\n- 0.9 is 10% thinner\n- 1.1 is 10% thicker\n",
                "example": 1.0
              }
            }
          },
          "debug": {
            "type": "boolean",
            "description": "When set to true, draws bounding boxes around the label containers, the printable area, and the individual elements per label."
          },
          "forcePromo": {
            "type": "boolean",
            "description": "When set to true, force-enables the T3 promo bar on all generated labels irrespective of T3+ subscription status."
          },
          "disposition": {
            "type": "string",
            "description": "Specifies whether the PDF should be opened inline or downloaded as an attachment.",
            "enum": [
              "inline",
              "attachment"
            ],
            "default": "inline"
          }
        },
        "required": [
          "labelTemplateLayoutId",
          "labelContentLayoutId",
          "labelContentData"
        ],
        "additionalProperties": false
      },
      "T3HubTransferManifest": {
        "type": "object",
        "description": "One row of the hub transfer manifest report in tabular (CSV) form: a transfer this license transports, cross-joined with one of its packages. Metrc returns the delivery and the transporter already flattened onto the transfer, so there is no delivery or transporter column group -- those fields all appear under transfer. The JSON representation of the same report returns the transfers nested instead, described by MetrcHubSuperTransfer.\n\ntransporterDetails holds the FIRST driver leg only. A transfer with multiVehicle true or isLayover true carries further legs that reach the JSON response but not this 2D form; transfer.multiVehicle and transfer.isLayover are in the report's default columns so that is visible from the spreadsheet. The transporterDetails group omits the hostname/dataModel/retrievedAt/licenseNumber envelope columns: these objects arrive embedded in the transfer and never pass through per-object normalization, so those columns would always be blank.",
        "properties": {
          "transfer.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcHubTransfer"
          },
          "transfer.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "transfer.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "transfer.index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "HUB_TRANSFER",
            "enum": [
              "HUB_TRANSFER"
            ]
          },
          "transfer.id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the transfer",
            "example": 2018358
          },
          "transfer.manifestNumber": {
            "type": "string",
            "description": "Unique manifest number associated with the transfer",
            "example": "0002018358"
          },
          "transfer.shipmentLicenseType": {
            "type": "string",
            "description": "Type of license for the shipment. Note this is the raw value; the other transfer models expose the display form as shipmentLicenseTypeName.",
            "example": "Licensed"
          },
          "transfer.shipperFacilityId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the shipper's facility",
            "example": 15802
          },
          "transfer.shipperFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the shipper's facility",
            "example": "MAN000030"
          },
          "transfer.shipperFacilityName": {
            "type": "string",
            "description": "Name of the shipper's facility",
            "example": "Sample Manufacturing, Inc."
          },
          "transfer.shipperFacilityMainPhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Main phone number for the shipper's facility",
            "example": "5015551587"
          },
          "transfer.shipperFacilityMobilePhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Mobile phone number for the shipper's facility"
          },
          "transfer.shipperFacilityAddressStreet1": {
            "type": "string",
            "nullable": true,
            "description": "First street line of the shipper's facility address",
            "example": "5301 Paris Road"
          },
          "transfer.shipperFacilityAddressStreet2": {
            "type": "string",
            "nullable": true,
            "description": "Second street line of the shipper's facility address",
            "example": ""
          },
          "transfer.shipperFacilityAddressStreet3": {
            "type": "string",
            "nullable": true,
            "description": "Third street line of the shipper's facility address",
            "example": ""
          },
          "transfer.shipperFacilityAddressStreet4": {
            "type": "string",
            "nullable": true,
            "description": "Fourth street line of the shipper's facility address",
            "example": ""
          },
          "transfer.shipperFacilityAddressCity": {
            "type": "string",
            "nullable": true,
            "description": "City of the shipper's facility address",
            "example": "Columbia"
          },
          "transfer.shipperFacilityAddressCounty": {
            "type": "string",
            "nullable": true,
            "description": "County of the shipper's facility address",
            "example": "Boone"
          },
          "transfer.shipperFacilityAddressState": {
            "type": "string",
            "nullable": true,
            "description": "State of the shipper's facility address",
            "example": "MO"
          },
          "transfer.shipperFacilityAddressPostalCode": {
            "type": "string",
            "nullable": true,
            "description": "Postal code of the shipper's facility address",
            "example": "65202"
          },
          "transfer.shipperFacilityAddressCountry": {
            "type": "string",
            "nullable": true,
            "description": "Country of the shipper's facility address",
            "example": ""
          },
          "transfer.shipperFacilityAddressAssessorParcelNumber": {
            "type": "string",
            "nullable": true,
            "description": "Assessor parcel number of the shipper's facility address",
            "example": ""
          },
          "transfer.deliveryCount": {
            "type": "integer",
            "description": "Number of deliveries on this transfer",
            "example": 1
          },
          "transfer.receivedDeliveryCount": {
            "type": "integer",
            "description": "Number of deliveries on this transfer that have been received",
            "example": 1
          },
          "transfer.packageCount": {
            "type": "integer",
            "description": "Number of packages on this transfer",
            "example": 170
          },
          "transfer.receivedPackageCount": {
            "type": "integer",
            "description": "Number of packages on this transfer that have been received",
            "example": 170
          },
          "transfer.canEdit": {
            "type": "boolean",
            "description": "Whether this transfer can currently be edited",
            "example": false
          },
          "transfer.isVoided": {
            "type": "boolean",
            "description": "Whether this transfer has been voided",
            "example": false
          },
          "transfer.createdDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "When the transfer was created",
            "example": "2024-07-25T18:47:20+00:00"
          },
          "transfer.createdByUserId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier of the user who created the transfer",
            "example": 241333
          },
          "transfer.createdByUserName": {
            "type": "string",
            "description": "Name of the user who created the transfer",
            "example": "Jane Doe"
          },
          "transfer.lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "When the transfer was last modified",
            "example": "2024-07-26T13:49:29+00:00"
          },
          "transfer.deliveryId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the delivery this row represents. Sub-collections such as packages are addressed by this id rather than by the transfer id.",
            "example": 2019158
          },
          "transfer.recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient's facility",
            "example": "MAN000038"
          },
          "transfer.recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient's facility",
            "example": "Example Dispensary LLC"
          },
          "transfer.recipientFacilityMainPhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Main phone number for the recipient's facility",
            "example": "8705553222"
          },
          "transfer.recipientFacilityMobilePhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Mobile phone number for the recipient's facility"
          },
          "transfer.recipientFacilityAddressStreet1": {
            "type": "string",
            "nullable": true,
            "description": "First street line of the recipient's facility address",
            "example": "1755 State Highway DD"
          },
          "transfer.recipientFacilityAddressStreet2": {
            "type": "string",
            "nullable": true,
            "description": "Second street line of the recipient's facility address",
            "example": ""
          },
          "transfer.recipientFacilityAddressStreet3": {
            "type": "string",
            "nullable": true,
            "description": "Third street line of the recipient's facility address",
            "example": ""
          },
          "transfer.recipientFacilityAddressStreet4": {
            "type": "string",
            "nullable": true,
            "description": "Fourth street line of the recipient's facility address",
            "example": ""
          },
          "transfer.recipientFacilityAddressCity": {
            "type": "string",
            "nullable": true,
            "description": "City of the recipient's facility address",
            "example": "Moberly"
          },
          "transfer.recipientFacilityAddressCounty": {
            "type": "string",
            "nullable": true,
            "description": "County of the recipient's facility address",
            "example": "Randolph"
          },
          "transfer.recipientFacilityAddressState": {
            "type": "string",
            "nullable": true,
            "description": "State of the recipient's facility address",
            "example": "MO"
          },
          "transfer.recipientFacilityAddressPostalCode": {
            "type": "string",
            "nullable": true,
            "description": "Postal code of the recipient's facility address",
            "example": "65270"
          },
          "transfer.recipientFacilityAddressCountry": {
            "type": "string",
            "nullable": true,
            "description": "Country of the recipient's facility address",
            "example": ""
          },
          "transfer.recipientFacilityAddressAssessorParcelNumber": {
            "type": "string",
            "nullable": true,
            "description": "Assessor parcel number of the recipient's facility address",
            "example": ""
          },
          "transfer.recipientApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the recipient approved this delivery"
          },
          "transfer.recipientAutoApproval": {
            "type": "boolean",
            "description": "Whether the recipient approval was automatic",
            "example": false
          },
          "transfer.shipmentTypeId": {
            "type": "integer",
            "description": "Unique identifier for the shipment type",
            "example": 3
          },
          "transfer.shipmentTypeName": {
            "type": "string",
            "description": "Name of the shipment type",
            "example": "Unaffiliated Transfer"
          },
          "transfer.shipmentTransactionType": {
            "type": "string",
            "description": "Transaction type of the shipment. Note this is the raw value; the display form is shipmentTransactionTypeName.",
            "example": "Wholesale"
          },
          "transfer.shipmentTransactionTypeName": {
            "type": "string",
            "description": "Name of the shipment transaction type",
            "example": "Wholesale"
          },
          "transfer.estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated departure date and time for the delivery",
            "example": "2024-07-25T10:56:00.000"
          },
          "transfer.actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual departure date and time for the delivery"
          },
          "transfer.estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated arrival date and time for the delivery",
            "example": "2024-07-25T17:00:00.000"
          },
          "transfer.actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual arrival date and time for the delivery"
          },
          "transfer.plannedRoute": {
            "type": "string",
            "nullable": true,
            "description": "The planned route for this delivery, as free text",
            "example": "Head south toward Paris Rd\nTurn right to merge onto US-63 N"
          },
          "transfer.deliveryPackageCount": {
            "type": "integer",
            "description": "Number of packages on this delivery",
            "example": 170
          },
          "transfer.deliveryReceivedPackageCount": {
            "type": "integer",
            "description": "Number of packages on this delivery that have been received",
            "example": 170
          },
          "transfer.receivedById": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Unique identifier of the user who received the delivery",
            "example": 221082
          },
          "transfer.receivedByName": {
            "type": "string",
            "nullable": true,
            "description": "Name of the user who received the delivery",
            "example": "John Smith"
          },
          "transfer.receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the delivery was received",
            "example": "2024-07-26T13:49:18+00:00"
          },
          "transfer.estimatedReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated return departure date and time"
          },
          "transfer.actualReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual return departure date and time"
          },
          "transfer.estimatedReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated return arrival date and time"
          },
          "transfer.actualReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual return arrival date and time"
          },
          "transfer.rejectedPackagesReturned": {
            "type": "boolean",
            "description": "Whether rejected packages have been returned",
            "example": false
          },
          "transfer.transporterAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When all transporters were approved",
            "example": "2024-07-25T16:00:18+00:00"
          },
          "transfer.destinationsAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When all destinations were approved",
            "example": "2024-07-25T16:00:18+00:00"
          },
          "transfer.transportersAutomaticallyApproved": {
            "type": "boolean",
            "description": "Whether the transporters were automatically approved",
            "example": true
          },
          "transfer.destinationsAutomaticallyApproved": {
            "type": "boolean",
            "description": "Whether the destinations were automatically approved",
            "example": true
          },
          "transfer.transporterFacilityId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the transporter facility",
            "example": 15101
          },
          "transfer.transporterFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the transporter facility",
            "example": "DIS000038"
          },
          "transfer.transporterFacilityName": {
            "type": "string",
            "description": "Name of the transporter facility",
            "example": "Transport Co"
          },
          "transfer.transporterFacilityMainPhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Main phone number for the transporter facility"
          },
          "transfer.transporterFacilityMobilePhoneNumber": {
            "type": "string",
            "nullable": true,
            "description": "Mobile phone number for the transporter facility"
          },
          "transfer.transporterFacilityAddressStreet1": {
            "type": "string",
            "nullable": true,
            "description": "First street line of the transporter facility address"
          },
          "transfer.transporterFacilityAddressStreet2": {
            "type": "string",
            "nullable": true,
            "description": "Second street line of the transporter facility address"
          },
          "transfer.transporterFacilityAddressStreet3": {
            "type": "string",
            "nullable": true,
            "description": "Third street line of the transporter facility address"
          },
          "transfer.transporterFacilityAddressStreet4": {
            "type": "string",
            "nullable": true,
            "description": "Fourth street line of the transporter facility address"
          },
          "transfer.transporterFacilityAddressCity": {
            "type": "string",
            "nullable": true,
            "description": "City of the transporter facility address"
          },
          "transfer.transporterFacilityAddressCounty": {
            "type": "string",
            "nullable": true,
            "description": "County of the transporter facility address"
          },
          "transfer.transporterFacilityAddressState": {
            "type": "string",
            "nullable": true,
            "description": "State of the transporter facility address"
          },
          "transfer.transporterFacilityAddressPostalCode": {
            "type": "string",
            "nullable": true,
            "description": "Postal code of the transporter facility address"
          },
          "transfer.transporterFacilityAddressCountry": {
            "type": "string",
            "nullable": true,
            "description": "Country of the transporter facility address"
          },
          "transfer.transporterFacilityAddressAssessorParcelNumber": {
            "type": "string",
            "nullable": true,
            "description": "Assessor parcel number of the transporter facility address"
          },
          "transfer.transporterApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When this transporter was approved",
            "example": "2024-07-25T16:00:18+00:00"
          },
          "transfer.transporterAutoApproval": {
            "type": "boolean",
            "description": "Whether this transporter was automatically approved",
            "example": true
          },
          "transfer.transporterDirection": {
            "type": "string",
            "description": "Direction of the transporter. Note this is the raw value; the display form is transporterDirectionName.",
            "example": "Outbound"
          },
          "transfer.transporterDirectionName": {
            "type": "string",
            "description": "Name of the transporter direction",
            "example": "Outbound"
          },
          "transfer.phoneNumberForQuestions": {
            "type": "string",
            "nullable": true,
            "description": "Phone number to call with questions about this transfer",
            "example": "13145555180"
          },
          "transfer.driverName": {
            "type": "string",
            "nullable": true,
            "description": "Name of the driver. Metrc hoists this from the first entry of shipmentTransporterDetails; when multiVehicle is true, the remaining legs are only visible in that array.",
            "example": "Jane Doe"
          },
          "transfer.driverOccupationalLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "Occupational license number of the driver",
            "example": "AGT015324"
          },
          "transfer.driverVehicleLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "Vehicle license number of the driver",
            "example": "045E289001"
          },
          "transfer.driverLayoverLeg": {
            "type": "string",
            "nullable": true,
            "description": "Layover leg details for the driver, if applicable"
          },
          "transfer.multiVehicle": {
            "type": "boolean",
            "description": "Whether this transfer uses more than one vehicle. When true, the hoisted driver and vehicle fields describe only the first leg and shipmentTransporterDetails holds the rest.",
            "example": false
          },
          "transfer.vehicleMake": {
            "type": "string",
            "nullable": true,
            "description": "Make of the vehicle",
            "example": "Ford"
          },
          "transfer.vehicleModel": {
            "type": "string",
            "nullable": true,
            "description": "Model of the vehicle",
            "example": "Transit"
          },
          "transfer.vehicleLicensePlateNumber": {
            "type": "string",
            "nullable": true,
            "description": "License plate number of the vehicle",
            "example": "XYZ-1234"
          },
          "transfer.vehicleRegistrationNumber": {
            "type": "string",
            "nullable": true,
            "description": "Registration number of the vehicle",
            "example": ""
          },
          "transfer.transporterAcceptedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the transporter accepted this transfer"
          },
          "transfer.isLayover": {
            "type": "boolean",
            "description": "Whether this row is a layover leg. Most rows returned by this endpoint are not layovers, despite the underlying Metrc path being named for them.",
            "example": false
          },
          "transfer.transporterEstimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated departure date and time for this transporter's leg"
          },
          "transfer.transporterActualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual departure date and time for this transporter's leg"
          },
          "transfer.transporterEstimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated arrival date and time for this transporter's leg"
          },
          "transfer.transporterActualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual arrival date and time for this transporter's leg"
          },
          "transporterDetails.shipmentPlanId": {
            "type": "integer",
            "example": 12345,
            "description": "Unique identifier for the shipment plan."
          },
          "transporterDetails.shipmentDeliveryId": {
            "type": "integer",
            "example": 67890,
            "description": "Unique identifier for the shipment delivery."
          },
          "transporterDetails.transporterDirection": {
            "type": "string",
            "enum": [
              "Outbound"
            ],
            "example": "Outbound",
            "description": "Direction of the transporter."
          },
          "transporterDetails.transporterFacilityId": {
            "type": "integer",
            "example": 54321,
            "description": "Unique identifier for the transporter facility."
          },
          "transporterDetails.lineNumber": {
            "type": "integer",
            "example": 1,
            "description": "Line number in the shipment details."
          },
          "transporterDetails.transporterDetailsTransporterLineNumber": {
            "type": "integer",
            "example": 0,
            "description": "Line number of the transporter this driver leg belongs to. Together with lineNumber this orders the legs of a multi-vehicle or layover transfer."
          },
          "transporterDetails.vehicleRegistrationNumber": {
            "type": "string",
            "example": "",
            "description": "Registration number of the vehicle."
          },
          "transporterDetails.driverName": {
            "type": "string",
            "example": "Jane Doe",
            "description": "Name of the driver."
          },
          "transporterDetails.driverOccupationalLicenseNumber": {
            "type": "string",
            "example": "AB1234567",
            "description": "Occupational license number of the driver."
          },
          "transporterDetails.driverVehicleLicenseNumber": {
            "type": "string",
            "example": "XYZ987654",
            "description": "Vehicle license number of the driver."
          },
          "transporterDetails.driverLayoverLeg": {
            "type": "string",
            "nullable": true,
            "example": "Leg1",
            "description": "Layover leg details for the driver, if applicable."
          },
          "transporterDetails.vehicleMake": {
            "type": "string",
            "example": "Ford",
            "description": "Make of the vehicle."
          },
          "transporterDetails.vehicleModel": {
            "type": "string",
            "example": "Transit",
            "description": "Model of the vehicle."
          },
          "transporterDetails.vehicleLicensePlateNumber": {
            "type": "string",
            "example": "XYZ-1234",
            "description": "License plate number of the vehicle."
          },
          "transporterDetails.actualDriverStartDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2024-07-26T08:30:00Z",
            "description": "Actual start date and time for the driver."
          },
          "transporterDetails.isVoided": {
            "type": "boolean",
            "example": false,
            "description": "Indicates if the record is voided."
          },
          "transporterDetails.receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T18:47:20+00:00",
            "description": "The date and time when the shipment was received."
          },
          "transporterDetails.receivedDeliveryCount": {
            "type": "integer",
            "example": 1,
            "description": "The number of deliveries received."
          },
          "package.id": {
            "type": "integer",
            "description": "Unique identifier for the item",
            "example": 1234567,
            "nullable": false
          },
          "package.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "package.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "package.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "package.index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "TRANSFERRED_PACKAGE",
            "enum": [
              "TRANSFERRED_PACKAGE"
            ]
          },
          "package.packageId": {
            "type": "integer",
            "description": "Identifier for the package",
            "example": 9876543,
            "nullable": false
          },
          "package.recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient facility",
            "example": "LIC-00001",
            "nullable": false
          },
          "package.recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient facility",
            "example": "Example Dispensary LLC",
            "nullable": false
          },
          "package.manifestNumber": {
            "type": "string",
            "description": "Manifest number associated with the shipment",
            "example": "0001234567",
            "nullable": false
          },
          "package.packageLabel": {
            "type": "string",
            "description": "Label of the package",
            "example": "1A4000000000000000000001",
            "nullable": false
          },
          "package.sourceHarvestNames": {
            "type": "string",
            "description": "Names of the source harvests",
            "example": "Blue Dream",
            "nullable": true
          },
          "package.sourcePackageLabels": {
            "type": "string",
            "description": "Labels of the source packages",
            "example": "1A4000000000000000000002",
            "nullable": true
          },
          "package.productName": {
            "type": "string",
            "description": "Name of the product",
            "example": "Blue Dream | 3.5g",
            "nullable": false
          },
          "package.productCategoryName": {
            "type": "string",
            "description": "Category name of the product",
            "example": "Bud/Flower (Final Packaging)",
            "nullable": false
          },
          "package.itemStrainName": {
            "type": "string",
            "description": "Strain name of the item",
            "example": "Blue Dream",
            "nullable": false
          },
          "package.labTestingStateName": {
            "description": "Lab testing status of the item",
            "$ref": "#/components/schemas/LabTestingStates"
          },
          "package.shippedQuantity": {
            "type": "number",
            "description": "Quantity shipped",
            "format": "double",
            "example": 1224.0,
            "nullable": false
          },
          "package.shippedUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the shipped quantity",
            "example": "g",
            "nullable": false
          },
          "package.grossWeight": {
            "type": "number",
            "description": "Gross weight of the package",
            "format": "double",
            "example": 224.0,
            "nullable": false
          },
          "package.grossUnitOfWeightAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the gross weight",
            "example": "g",
            "nullable": false
          },
          "package.shipperWholesalePrice": {
            "type": "number",
            "description": "Wholesale price from the shipper",
            "format": "double",
            "nullable": true
          },
          "package.receivedQuantity": {
            "type": "number",
            "description": "Quantity received",
            "format": "double",
            "example": 1224.0,
            "nullable": false
          },
          "package.receivedUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the received quantity",
            "example": "g",
            "nullable": false
          },
          "package.receiverWholesalePrice": {
            "type": "number",
            "description": "Wholesale price to the receiver",
            "format": "double",
            "nullable": true
          },
          "package.shipmentPackageStateName": {
            "type": "string",
            "description": "State of the shipment package",
            "example": "Accepted",
            "enum": [
              "Accepted",
              "Rejected",
              "Pending"
            ],
            "nullable": false
          },
          "package.actualDepartureDateTime": {
            "type": "string",
            "description": "Actual departure date and time",
            "format": "date-time",
            "nullable": true
          },
          "package.receivedDateTime": {
            "type": "string",
            "description": "Date and time when the package was received",
            "format": "date-time",
            "example": "2024-07-26T00:00:00-05:00",
            "nullable": false
          },
          "package.processingJobTypeName": {
            "type": "string",
            "nullable": true
          }
        }
      },
      "T3IncomingTransferManifest": {
        "type": "object",
        "description": "One row of the incoming transfer manifest report in tabular (CSV) form: a transfer cross-joined with one of its packages. The JSON representation of the same report returns the transfers nested instead, described by MetrcIncomingSuperTransfer.",
        "properties": {
          "transfer.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "transfer.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "transfer.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "transfer.index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_INCOMING_TRANSFER",
            "enum": [
              "ACTIVE_INCOMING_TRANSFER",
              "INACTIVE_INCOMING_TRANSFER"
            ]
          },
          "transfer.id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the transfer",
            "example": 1234567
          },
          "transfer.manifestNumber": {
            "type": "string",
            "description": "Unique manifest number associated with the transfer",
            "example": "0001234567"
          },
          "transfer.shipmentLicenseTypeName": {
            "type": "string",
            "description": "Type of license for the shipment",
            "example": "Licensed"
          },
          "transfer.shipperFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the shipper's facility",
            "example": "LIC-00002"
          },
          "transfer.shipperFacilityName": {
            "type": "string",
            "description": "Name of the shipper's facility",
            "example": "Sample Manufacturing, Inc."
          },
          "transfer.name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the transfer"
          },
          "transfer.transporterFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the transporter facility",
            "example": ""
          },
          "transfer.transporterFacilityName": {
            "type": "string",
            "description": "Name of the transporter facility",
            "example": ""
          },
          "transfer.driverName": {
            "type": "string",
            "description": "Name of the driver",
            "example": ""
          },
          "transfer.driverOccupationalLicenseNumber": {
            "type": "string",
            "description": "Occupational license number of the driver",
            "example": ""
          },
          "transfer.driverVehicleLicenseNumber": {
            "type": "string",
            "description": "License number of the vehicle used by the driver",
            "example": ""
          },
          "transfer.vehicleMake": {
            "type": "string",
            "description": "Make of the vehicle used for transport",
            "example": ""
          },
          "transfer.vehicleModel": {
            "type": "string",
            "description": "Model of the vehicle used for transport",
            "example": ""
          },
          "transfer.vehicleLicensePlateNumber": {
            "type": "string",
            "description": "License plate number of the vehicle",
            "example": ""
          },
          "transfer.deliveryFacilities": {
            "type": "string",
            "description": "Details of the delivery facilities",
            "example": "LIC-00001 (Example Dispensary LLC)"
          },
          "transfer.deliveryCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of deliveries in the transfer",
            "example": 1
          },
          "transfer.receivedDeliveryCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of deliveries received",
            "example": 0
          },
          "transfer.packageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Total number of packages in the transfer",
            "example": 8
          },
          "transfer.receivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages received",
            "example": 0
          },
          "transfer.containsPlantPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains plant packages",
            "example": false
          },
          "transfer.containsProductPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains product packages",
            "example": true
          },
          "transfer.containsTradeSample": {
            "type": "boolean",
            "description": "Indicates if the transfer contains trade samples",
            "example": false
          },
          "transfer.containsDonation": {
            "type": "boolean",
            "description": "Indicates if the transfer contains donations",
            "example": false
          },
          "transfer.containsTestingSample": {
            "type": "boolean",
            "description": "Indicates if the transfer contains testing samples",
            "example": false
          },
          "transfer.containsProductRequiresRemediation": {
            "type": "boolean",
            "description": "Indicates if the transfer contains products that require remediation",
            "example": false
          },
          "transfer.containsRemediatedProductPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains remediated product packages",
            "example": false
          },
          "transfer.editCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of times the transfer record has been edited",
            "example": 1
          },
          "transfer.canEdit": {
            "type": "boolean",
            "description": "Indicates if the transfer record can be edited",
            "example": true
          },
          "transfer.canEditOutgoingInactive": {
            "type": "boolean",
            "description": "Indicates if the transfer record can be edited when outgoing and inactive",
            "example": false
          },
          "transfer.isVoided": {
            "type": "boolean",
            "description": "Indicates if the transfer has been voided",
            "example": false
          },
          "transfer.createdDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transfer was created",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "transfer.createdByUserName": {
            "type": "string",
            "description": "Username of the person who created the transfer record",
            "example": "Jane Doe"
          },
          "transfer.lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transfer was last modified",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "transfer.deliveryId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the delivery associated with the transfer",
            "example": 1234566
          },
          "transfer.recipientFacilityId": {
            "type": "integer",
            "format": "int32",
            "description": "The ID of the recipient facility.",
            "example": 456
          },
          "transfer.recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient facility",
            "example": "LIC-00001"
          },
          "transfer.recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient facility",
            "example": "Example Dispensary LLC"
          },
          "transfer.shipmentTypeName": {
            "type": "string",
            "description": "Type of shipment",
            "example": "Unaffiliated Transfer"
          },
          "transfer.shipmentTransactionTypeName": {
            "type": "string",
            "description": "Type of shipment transaction",
            "example": "Wholesale"
          },
          "transfer.estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date and time of departure",
            "example": "2024-07-26T06:00:00.000"
          },
          "transfer.actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of departure"
          },
          "transfer.estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date and time of arrival",
            "example": "2024-07-26T17:00:00.000"
          },
          "transfer.actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of arrival"
          },
          "transfer.deliveryPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages in the delivery",
            "example": 8
          },
          "transfer.deliveryReceivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages received in the delivery",
            "example": 0
          },
          "transfer.receivedByName": {
            "type": "string",
            "nullable": true,
            "description": "Name of the person who received the delivery"
          },
          "transfer.receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date and time when the delivery was received"
          },
          "transfer.estimatedReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated date and time of return departure"
          },
          "transfer.actualReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of return departure"
          },
          "transfer.estimatedReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated date and time of return arrival"
          },
          "transfer.actualReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of return arrival"
          },
          "transfer.rejectedPackagesReturned": {
            "type": "boolean",
            "description": "Indicates if rejected packages were returned",
            "example": false
          },
          "transfer.transporterAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when all transporters were approved",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "transfer.destinationsAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when all destinations were approved",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "transfer.transportersAutomaticallyApproved": {
            "type": "boolean",
            "description": "Indicates if transporters were automatically approved",
            "example": true
          },
          "transfer.destinationsAutomaticallyApproved": {
            "type": "boolean",
            "description": "Indicates if destinations were automatically approved",
            "example": true
          },
          "transfer.approvalRejectDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date and time when the approval was rejected"
          },
          "transfer.approvalRejectedByUser": {
            "type": "string",
            "description": "Username of the person who rejected the approval",
            "example": "Jane Doe"
          },
          "transfer.approvalRejectedFacilityLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "License number of the facility where approval was rejected"
          },
          "transfer.approvalRejectReasonId": {
            "type": "string",
            "nullable": true,
            "description": "Reason ID for the approval rejection"
          },
          "transfer.tollingAgreementFileSystemId": {
            "type": "number",
            "example": 0
          },
          "transfer.invoiceNumber": {
            "type": "string",
            "example": ""
          },
          "transporter.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "transporter.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "transporter.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "transporter.transporterFacilityLicenseNumber": {
            "type": "string",
            "description": "The license number of the transporter's facility.",
            "example": "LIC-00001"
          },
          "transporter.transporterFacilityName": {
            "type": "string",
            "description": "The name of the transporter's facility.",
            "example": "Example Dispensary LLC"
          },
          "transporter.transporterDirectionName": {
            "type": "string",
            "enum": [
              "Outbound"
            ],
            "description": "The direction of the transporter.",
            "example": "Outbound"
          },
          "transporter.transporterApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transporter was approved.",
            "example": "2024-07-26T13:00:00+00:00"
          },
          "transporter.transporterAutoApproval": {
            "type": "boolean",
            "description": "Indicates if the transporter was automatically approved.",
            "example": true
          },
          "transporter.driverName": {
            "type": "string",
            "description": "The name of the driver.",
            "example": "Jane Doe"
          },
          "transporter.driverOccupationalLicenseNumber": {
            "type": "string",
            "description": "The occupational license number of the driver.",
            "example": "DL123456789"
          },
          "transporter.driverVehicleLicenseNumber": {
            "type": "string",
            "description": "The vehicle license number of the driver.",
            "example": "ABC1234"
          },
          "transporter.driverLayoverLeg": {
            "type": "string",
            "nullable": true,
            "description": "Information about the driver's layover leg."
          },
          "transporter.vehicleMake": {
            "type": "string",
            "description": "The make of the vehicle.",
            "example": "Ford"
          },
          "transporter.vehicleModel": {
            "type": "string",
            "description": "The model of the vehicle.",
            "example": "F-150"
          },
          "transporter.vehicleLicensePlateNumber": {
            "type": "string",
            "description": "The license plate number of the vehicle.",
            "example": "XYZ7890"
          },
          "transporter.acceptedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the transporter was accepted.",
            "example": "2024-07-26T13:00:00-05:00"
          },
          "transporter.isLayover": {
            "type": "boolean",
            "description": "Indicates if the transport includes a layover.",
            "example": false
          },
          "transporter.estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated date and time of departure.",
            "example": "2024-07-26T14:00:00+00:00"
          },
          "transporter.actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual date and time of departure."
          },
          "transporter.estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated date and time of arrival.",
            "example": "2024-07-26T15:00:00+00:00"
          },
          "transporter.actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual date and time of arrival."
          },
          "package.id": {
            "type": "integer",
            "description": "Unique identifier for the item",
            "example": 1234567,
            "nullable": false
          },
          "package.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "package.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "package.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "package.index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "TRANSFERRED_PACKAGE",
            "enum": [
              "TRANSFERRED_PACKAGE"
            ]
          },
          "package.packageId": {
            "type": "integer",
            "description": "Identifier for the package",
            "example": 9876543,
            "nullable": false
          },
          "package.recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient facility",
            "example": "LIC-00001",
            "nullable": false
          },
          "package.recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient facility",
            "example": "Example Dispensary LLC",
            "nullable": false
          },
          "package.manifestNumber": {
            "type": "string",
            "description": "Manifest number associated with the shipment",
            "example": "0001234567",
            "nullable": false
          },
          "package.packageLabel": {
            "type": "string",
            "description": "Label of the package",
            "example": "1A4000000000000000000001",
            "nullable": false
          },
          "package.sourceHarvestNames": {
            "type": "string",
            "description": "Names of the source harvests",
            "example": "Blue Dream",
            "nullable": true
          },
          "package.sourcePackageLabels": {
            "type": "string",
            "description": "Labels of the source packages",
            "example": "1A4000000000000000000002",
            "nullable": true
          },
          "package.productName": {
            "type": "string",
            "description": "Name of the product",
            "example": "Blue Dream | 3.5g",
            "nullable": false
          },
          "package.productCategoryName": {
            "type": "string",
            "description": "Category name of the product",
            "example": "Bud/Flower (Final Packaging)",
            "nullable": false
          },
          "package.itemStrainName": {
            "type": "string",
            "description": "Strain name of the item",
            "example": "Blue Dream",
            "nullable": false
          },
          "package.labTestingStateName": {
            "description": "Lab testing status of the item",
            "$ref": "#/components/schemas/LabTestingStates"
          },
          "package.shippedQuantity": {
            "type": "number",
            "description": "Quantity shipped",
            "format": "double",
            "example": 1224.0,
            "nullable": false
          },
          "package.shippedUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the shipped quantity",
            "example": "g",
            "nullable": false
          },
          "package.grossWeight": {
            "type": "number",
            "description": "Gross weight of the package",
            "format": "double",
            "example": 224.0,
            "nullable": false
          },
          "package.grossUnitOfWeightAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the gross weight",
            "example": "g",
            "nullable": false
          },
          "package.shipperWholesalePrice": {
            "type": "number",
            "description": "Wholesale price from the shipper",
            "format": "double",
            "nullable": true
          },
          "package.receivedQuantity": {
            "type": "number",
            "description": "Quantity received",
            "format": "double",
            "example": 1224.0,
            "nullable": false
          },
          "package.receivedUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the received quantity",
            "example": "g",
            "nullable": false
          },
          "package.receiverWholesalePrice": {
            "type": "number",
            "description": "Wholesale price to the receiver",
            "format": "double",
            "nullable": true
          },
          "package.shipmentPackageStateName": {
            "type": "string",
            "description": "State of the shipment package",
            "example": "Accepted",
            "enum": [
              "Accepted",
              "Rejected",
              "Pending"
            ],
            "nullable": false
          },
          "package.actualDepartureDateTime": {
            "type": "string",
            "description": "Actual departure date and time",
            "format": "date-time",
            "nullable": true
          },
          "package.receivedDateTime": {
            "type": "string",
            "description": "Date and time when the package was received",
            "format": "date-time",
            "example": "2024-07-26T00:00:00-05:00",
            "nullable": false
          },
          "package.processingJobTypeName": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "package.grossUnitOfWeightAbbreviation",
          "package.grossWeight",
          "package.id",
          "package.itemStrainName",
          "package.labTestingStateName",
          "package.manifestNumber",
          "package.packageId",
          "package.packageLabel",
          "package.productCategoryName",
          "package.productName",
          "package.receivedDateTime",
          "package.receivedQuantity",
          "package.receivedUnitOfMeasureAbbreviation",
          "package.recipientFacilityLicenseNumber",
          "package.recipientFacilityName",
          "package.shipmentPackageStateName",
          "package.shippedQuantity",
          "package.shippedUnitOfMeasureAbbreviation"
        ]
      },
      "T3LabelContentData": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "text1": {
            "type": "string",
            "example": "text1"
          },
          "text2": {
            "type": "string",
            "example": "text2"
          },
          "text3": {
            "type": "string",
            "example": "text3"
          },
          "text4": {
            "type": "string",
            "example": "text4"
          },
          "text5": {
            "type": "string",
            "example": "text5"
          },
          "text6": {
            "type": "string",
            "example": "text6"
          },
          "text7": {
            "type": "string",
            "example": "text7"
          },
          "text8": {
            "type": "string",
            "example": "text8"
          }
        }
      },
      "T3LabelContentDataListResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/T3LabelContentData"
            }
          }
        }
      },
      "T3LabelContentLayoutConfig": {
        "type": "object",
        "description": "Data describing how each label will be laid out, including a list of pieces and how they are arranged.",
        "properties": {
          "name": {
            "type": "string"
          },
          "minAspectRatio": {
            "type": "number",
            "format": "float"
          },
          "maxAspectRatio": {
            "type": "number",
            "format": "float"
          },
          "labelContentLayoutElements": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/T3LabelContentLayoutElement"
            }
          }
        },
        "required": [
          "labelContentLayoutElements"
        ]
      },
      "T3LabelContentLayoutElement": {
        "type": "object",
        "description": "Describes the bounding rectangle and styling of one piece of a label layout.",
        "properties": {
          "description": {
            "description": "A free-text name for the element. It is not printed on the label. The Label Studio uses it to name the element, and error messages about the element include it.",
            "type": "string"
          },
          "elementType": {
            "$ref": "#/components/schemas/T3LabelContentLayoutElementType"
          },
          "xStartFraction": {
            "description": "The left edge of the bounding box for this element, represented as a fraction of the total width of the content layout.",
            "type": "number",
            "format": "float",
            "default": 0
          },
          "xEndFraction": {
            "description": "The right edge of the bounding box for this element, represented as a fraction of the total width of the content layout.",
            "type": "number",
            "format": "float",
            "default": 1
          },
          "yStartFraction": {
            "description": "The bottom edge of the bounding box for this element, represented as a fraction of the total height of the content layout.",
            "type": "number",
            "format": "float",
            "default": 0
          },
          "yEndFraction": {
            "type": "number",
            "format": "float",
            "default": 1
          },
          "valueTemplate": {
            "type": "string",
            "description": "A general purpose template string. This is compiled with Jinja.\n\nValues can be interpolated from the following places:\n- Each\n",
            "nullable": true
          },
          "fragmentKey": {
            "type": "string",
            "description": "Only used when `elementType` is `FRAGMENT`. Names an entry in the request's\n`fragments` map, whose layout is drawn inside this element's bounding box.\n\nThe embedded layout's own elements position themselves against this box, so\n`yStartFraction: 0, yEndFraction: 0.5` inside the fragment means the bottom\nhalf of *this element*, not the bottom half of the label.\n",
            "nullable": true
          },
          "paragraphFontName": {
            "$ref": "#/components/schemas/T3LabelContentLayoutElementParagraphFontName"
          },
          "paragraphFontSize": {
            "type": "number",
            "format": "float",
            "default": 6
          },
          "horizontalParagraphAlignment": {
            "type": "string",
            "enum": [
              "LEFT",
              "CENTER",
              "RIGHT"
            ],
            "default": "CENTER"
          },
          "verticalParagraphAlignment": {
            "type": "string",
            "enum": [
              "TOP",
              "CENTER",
              "BOTTOM"
            ],
            "default": "CENTER"
          },
          "paragraphSpacing": {
            "type": "number",
            "format": "float",
            "default": 6
          },
          "enabled": {
            "type": "boolean",
            "default": true
          },
          "paragraphTextResizeStrategy": {
            "$ref": "#/components/schemas/T3LabelContentLayoutElementTextResizeStrategy"
          },
          "boxStrokeColor": {
            "description": "Hex color string for the box stroke.",
            "type": "string",
            "default": "#000000"
          },
          "boxStrokeWidth": {
            "description": "Width of the box stroke in points.",
            "type": "number",
            "format": "float",
            "default": 0.5
          },
          "boxStrokeAlpha": {
            "description": "Opacity of the box stroke (0.0 to 1.0).",
            "type": "number",
            "format": "float",
            "default": 1.0
          },
          "boxBackgroundColor": {
            "description": "Hex color string for the box background fill. Omit to disable fill.",
            "type": "string"
          },
          "boxBackgroundAlpha": {
            "description": "Opacity of the box background fill (0.0 to 1.0).",
            "type": "number",
            "format": "float",
            "default": 1.0
          }
        },
        "required": [
          "elementType"
        ]
      },
      "T3LabelContentLayoutElementParagraphFontName": {
        "type": "string",
        "enum": [
          "Times-Roman",
          "Times-Bold",
          "Times-Italic",
          "Times-BoldItalic",
          "Helvetica",
          "Helvetica-Bold",
          "Helvetica-Oblique",
          "Helvetica-BoldOblique",
          "Courier",
          "Courier-Bold",
          "Courier-Oblique",
          "Courier-BoldOblique",
          "Symbol",
          "ZapfDingbats"
        ],
        "default": "Helvetica"
      },
      "T3LabelContentLayoutElementTextResizeStrategy": {
        "type": "string",
        "enum": [
          "ALLOW_OVERFLOW",
          "TRUNCATE_TEXT",
          "SHRINK_TEXT"
        ]
      },
      "T3LabelContentLayoutElementType": {
        "type": "string",
        "enum": [
          "TEXT",
          "CODE128_BARCODE",
          "CODE39_BARCODE",
          "QR_CODE",
          "IMAGE",
          "BOX",
          "TABLE",
          "FRAGMENT"
        ]
      },
      "T3LabelContentLayoutsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "labelContentLayoutId": {
                  "type": "string",
                  "example": "COL_CODE128_TEXT"
                },
                "labelContentLayoutConfig": {
                  "$ref": "#/components/schemas/T3LabelContentLayoutConfig"
                },
                "description": {
                  "type": "string",
                  "example": "Code128 barcode, with text below"
                },
                "allowedFacilities": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true,
                  "example": [
                    "LIC-00001",
                    "LIC-00002"
                  ]
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "example": [
                    "barcode",
                    "thermal"
                  ]
                },
                "publicId": {
                  "type": "string",
                  "format": "uuid",
                  "example": "550e8400-e29b-41d4-a716-446655440000"
                },
                "isArchived": {
                  "type": "boolean",
                  "example": false
                }
              }
            }
          }
        }
      },
      "T3LabelGlobalsResponse": {
        "type": "array",
        "description": "Every built-in value available to a label template, as the dot path a valueTemplate would use. Values are not returned, only the paths.",
        "items": {
          "type": "string"
        },
        "example": [
          "t3.images[\"ca_cannabis_warning.png\"]",
          "t3.images[\"mi_cannabis_warning.png\"]",
          "t3.images[\"t3_logo.png\"]",
          "t3.text.ca_cannabis_warning_disclosure",
          "t3.text.co_delayed_onset_disclosure",
          "t3.text.poison_control_center_phone"
        ]
      },
      "T3LabelRenderingOptions": {
        "type": "object",
        "description": "Options for controlling how 1D barcodes will render.",
        "additionalProperties": false,
        "properties": {
          "debug": {
            "type": "boolean",
            "description": "When set to `true`, the generated label will draw boxes around\nall the content elements. This is used to troubleshoot how elements\nare laid out on a label.\n",
            "default": false
          },
          "enableWatermark": {
            "type": "boolean",
            "description": "When set to `true`, the generated label will have a watermark applied.\nWatermarked label requests do not count towards monthly subscription limits.\n",
            "default": false
          },
          "reversePrintOrder": {
            "type": "boolean",
            "description": "When set to `true`, the labels will be laid out in the PDF in reverse order.\nThis is used when the printed labels are coming off a spool, and you want\nthe top-to-bottom order to match the PDF.\n",
            "default": false
          },
          "rotationDegrees": {
            "type": "number",
            "enum": [
              0,
              90
            ],
            "description": "Used to rotate the label content. A value of 0 means no rotation. \nA value of 90 will rotate the label clockwise by 90 degrees.\n",
            "example": 0,
            "default": 0
          },
          "labelCopies": {
            "type": "integer",
            "minimum": 1,
            "description": "Number of copies to generate for each label. Must be at least 1.\n",
            "example": 1,
            "default": 1
          },
          "barcodeBarThickness": {
            "type": "number",
            "format": "float",
            "description": "Controls how thick a barcode's bars will appear. Useful for\nlow-DPI thermal printers.\n\n- 1.0 is normal rendering\n- 0.9 is 10% thinner\n- 1.1 is 10% thicker\n",
            "example": 1.0,
            "default": 1.0
          },
          "labelMarginThickness": {
            "type": "number",
            "format": "float",
            "description": "Controls width of a label's margins. Useful for thermal printers\nwith slightly skewed printing.\n\n- 1.0 is normal margin\n- 0.9 is 10% thinner\n- 1.1 is 10% thicker\n",
            "example": 1.0,
            "default": 1.0
          },
          "renderingVersion": {
            "type": "number",
            "format": "integer",
            "enum": [
              1,
              2
            ],
            "description": "Controls rendering path for labels.\n",
            "example": 1,
            "default": 1
          },
          "strictTemplates": {
            "type": "boolean",
            "description": "When set to `true`, any template expression that would render as blank\nraises a `LABEL_TEMPLATE_ERROR` instead of silently printing nothing.\nThis covers undefined variable names, keys missing from your label data,\nand values that are explicitly `null`.\n\nTurn this on while authoring a layout to catch typos that would otherwise\nproduce blank labels. Leave it off (the default) to preserve the lenient\nbehaviour, where missing values simply render as empty strings.\n\nSupply a fallback for values that are legitimately absent:\n\n- `{{ package.item.strain | default('N/A') }}` covers a missing key.\n- `{{ package.packagedDate | default('N/A', true) }}` also covers `null`.\n- `{% if package.field is defined %}` guards an optional key, whereas\n  `{% if package.field %}` will raise when the key is absent.\n\nOnly applies when `renderingVersion` is `2`, the rendering path that\nevaluates templates.\n",
            "example": false,
            "default": false
          }
        }
      },
      "T3LabelTemplateLayoutConfig": {
        "type": "object",
        "description": "Describes the label layout on a printed medium.\nCapable of supporting any rectangular printable medium, with an arbitrarily sized grid of labels.\nAssumes that multiple labels are arranged in a centered grid, and arranged with even spacing.\nNOTE: y-coordinates are inverted.\n",
        "properties": {
          "name": {
            "type": "string"
          },
          "pagesizeXIn": {
            "type": "number",
            "format": "float"
          },
          "pagesizeYIn": {
            "type": "number",
            "format": "float"
          },
          "labelWidthIn": {
            "type": "number",
            "format": "float"
          },
          "labelHeightIn": {
            "type": "number",
            "format": "float"
          },
          "xGapIn": {
            "type": "number",
            "format": "float"
          },
          "yGapIn": {
            "type": "number",
            "format": "float"
          },
          "numColumns": {
            "type": "integer"
          },
          "numRows": {
            "type": "integer"
          },
          "pageMarginTopIn": {
            "type": "number",
            "format": "float"
          },
          "pageMarginLeftIn": {
            "type": "number",
            "format": "float"
          },
          "labelPaddingXIn": {
            "type": "number",
            "format": "float"
          },
          "labelPaddingYIn": {
            "type": "number",
            "format": "float"
          }
        }
      },
      "T3LabelTemplateLayoutsResponse": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "labelTemplateLayoutId": {
                  "type": "string",
                  "example": "AVERY_8160__2_625Wx1_0H"
                },
                "labelTemplateLayoutConfig": {
                  "$ref": "#/components/schemas/T3LabelTemplateLayoutConfig"
                },
                "description": {
                  "type": "string",
                  "example": "8.5\"x11\" sheet of Avery 8160 labels (2.625\"x1\")"
                },
                "allowedFacilities": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "nullable": true,
                  "example": [
                    "LIC-00001",
                    "LIC-00002"
                  ]
                },
                "tags": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "example": [
                    "thermal",
                    "4x6"
                  ]
                },
                "publicId": {
                  "type": "string",
                  "format": "uuid",
                  "example": "550e8400-e29b-41d4-a716-446655440000"
                },
                "isArchived": {
                  "type": "boolean",
                  "example": false
                }
              }
            }
          }
        }
      },
      "T3OutgoingTransferManifest": {
        "type": "object",
        "description": "One row of the outgoing transfer manifest report in tabular (CSV) form: a transfer cross-joined with one of its deliveries and one of that delivery's packages. The JSON representation of the same report returns the transfers nested instead, described by T3OutgoingTransferManifestRecord.",
        "properties": {
          "transfer.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "transfer.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "transfer.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "transfer.index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "ACTIVE_OUTGOING_TRANSFER",
            "enum": [
              "ACTIVE_OUTGOING_TRANSFER",
              "INACTIVE_OUTGOING_TRANSFER",
              "REJECTED_TRANSFER"
            ]
          },
          "transfer.id": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the transfer",
            "example": 1234567
          },
          "transfer.manifestNumber": {
            "type": "string",
            "description": "Unique manifest number associated with the transfer",
            "example": "0001234567"
          },
          "transfer.shipmentLicenseTypeName": {
            "type": "string",
            "description": "Type of license for the shipment",
            "example": "Licensed"
          },
          "transfer.shipperFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the shipper's facility",
            "example": "LIC-00002"
          },
          "transfer.shipperFacilityName": {
            "type": "string",
            "description": "Name of the shipper's facility",
            "example": "Sample Manufacturing, Inc."
          },
          "transfer.name": {
            "type": "string",
            "nullable": true,
            "description": "Name of the transfer"
          },
          "transfer.transporterFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the transporter facility",
            "example": ""
          },
          "transfer.transporterFacilityName": {
            "type": "string",
            "description": "Name of the transporter facility",
            "example": ""
          },
          "transfer.driverName": {
            "type": "string",
            "description": "Name of the driver",
            "example": ""
          },
          "transfer.driverOccupationalLicenseNumber": {
            "type": "string",
            "description": "Occupational license number of the driver",
            "example": ""
          },
          "transfer.driverVehicleLicenseNumber": {
            "type": "string",
            "description": "License number of the vehicle used by the driver",
            "example": ""
          },
          "transfer.vehicleMake": {
            "type": "string",
            "description": "Make of the vehicle used for transport",
            "example": ""
          },
          "transfer.vehicleModel": {
            "type": "string",
            "description": "Model of the vehicle used for transport",
            "example": ""
          },
          "transfer.vehicleLicensePlateNumber": {
            "type": "string",
            "description": "License plate number of the vehicle",
            "example": ""
          },
          "transfer.deliveryFacilities": {
            "type": "string",
            "description": "Details of the delivery facilities",
            "example": "LIC-00001 (Example Dispensary LLC)"
          },
          "transfer.deliveryCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of deliveries in the transfer",
            "example": 1
          },
          "transfer.receivedDeliveryCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of deliveries received",
            "example": 0
          },
          "transfer.packageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Total number of packages in the transfer",
            "example": 8
          },
          "transfer.receivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages received",
            "example": 0
          },
          "transfer.containsPlantPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains plant packages",
            "example": false
          },
          "transfer.containsProductPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains product packages",
            "example": true
          },
          "transfer.containsTradeSample": {
            "type": "boolean",
            "description": "Indicates if the transfer contains trade samples",
            "example": false
          },
          "transfer.containsDonation": {
            "type": "boolean",
            "description": "Indicates if the transfer contains donations",
            "example": false
          },
          "transfer.containsTestingSample": {
            "type": "boolean",
            "description": "Indicates if the transfer contains testing samples",
            "example": false
          },
          "transfer.containsProductRequiresRemediation": {
            "type": "boolean",
            "description": "Indicates if the transfer contains products that require remediation",
            "example": false
          },
          "transfer.containsRemediatedProductPackage": {
            "type": "boolean",
            "description": "Indicates if the transfer contains remediated product packages",
            "example": false
          },
          "transfer.editCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of times the transfer record has been edited",
            "example": 1
          },
          "transfer.canEdit": {
            "type": "boolean",
            "description": "Indicates if the transfer record can be edited",
            "example": true
          },
          "transfer.canEditOutgoingInactive": {
            "type": "boolean",
            "description": "Indicates if the transfer record can be edited when outgoing and inactive",
            "example": false
          },
          "transfer.isVoided": {
            "type": "boolean",
            "description": "Indicates if the transfer has been voided",
            "example": false
          },
          "transfer.createdDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transfer was created",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "transfer.createdByUserName": {
            "type": "string",
            "description": "Username of the person who created the transfer record",
            "example": "Jane Doe"
          },
          "transfer.lastModified": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transfer was last modified",
            "example": "2024-07-25T00:00:00+00:00"
          },
          "transfer.deliveryId": {
            "type": "integer",
            "format": "int64",
            "description": "Unique identifier for the delivery associated with the transfer",
            "example": 1234566
          },
          "transfer.recipientFacilityId": {
            "type": "integer",
            "format": "int32",
            "description": "The ID of the recipient facility.",
            "example": 456
          },
          "transfer.recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient facility",
            "example": "LIC-00001"
          },
          "transfer.recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient facility",
            "example": "Example Dispensary LLC"
          },
          "transfer.shipmentTypeName": {
            "type": "string",
            "description": "Type of shipment",
            "example": "Unaffiliated Transfer"
          },
          "transfer.shipmentTransactionTypeName": {
            "type": "string",
            "description": "Type of shipment transaction",
            "example": "Wholesale"
          },
          "transfer.estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date and time of departure",
            "example": "2024-07-26T06:00:00.000"
          },
          "transfer.actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of departure"
          },
          "transfer.estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "Estimated date and time of arrival",
            "example": "2024-07-26T17:00:00.000"
          },
          "transfer.actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of arrival"
          },
          "transfer.deliveryPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages in the delivery",
            "example": 8
          },
          "transfer.deliveryReceivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "Number of packages received in the delivery",
            "example": 0
          },
          "transfer.receivedByName": {
            "type": "string",
            "nullable": true,
            "description": "Name of the person who received the delivery"
          },
          "transfer.receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date and time when the delivery was received"
          },
          "transfer.estimatedReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated date and time of return departure"
          },
          "transfer.actualReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of return departure"
          },
          "transfer.estimatedReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Estimated date and time of return arrival"
          },
          "transfer.actualReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Actual date and time of return arrival"
          },
          "transfer.rejectedPackagesReturned": {
            "type": "boolean",
            "description": "Indicates if rejected packages were returned",
            "example": false
          },
          "transfer.transporterAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when all transporters were approved",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "transfer.destinationsAllApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "Date and time when all destinations were approved",
            "example": "2024-07-25T13:00:00+00:00"
          },
          "transfer.transportersAutomaticallyApproved": {
            "type": "boolean",
            "description": "Indicates if transporters were automatically approved",
            "example": true
          },
          "transfer.destinationsAutomaticallyApproved": {
            "type": "boolean",
            "description": "Indicates if destinations were automatically approved",
            "example": true
          },
          "transfer.approvalRejectDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "Date and time when the approval was rejected"
          },
          "transfer.approvalRejectedByUser": {
            "type": "string",
            "description": "Username of the person who rejected the approval",
            "example": "Jane Doe"
          },
          "transfer.approvalRejectedFacilityLicenseNumber": {
            "type": "string",
            "nullable": true,
            "description": "License number of the facility where approval was rejected"
          },
          "transfer.approvalRejectReasonId": {
            "type": "string",
            "nullable": true,
            "description": "Reason ID for the approval rejection"
          },
          "transfer.tollingAgreementFileSystemId": {
            "type": "number",
            "example": 0
          },
          "transfer.invoiceNumber": {
            "type": "string",
            "example": ""
          },
          "transporter.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "transporter.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "transporter.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "transporter.transporterFacilityLicenseNumber": {
            "type": "string",
            "description": "The license number of the transporter's facility.",
            "example": "LIC-00001"
          },
          "transporter.transporterFacilityName": {
            "type": "string",
            "description": "The name of the transporter's facility.",
            "example": "Example Dispensary LLC"
          },
          "transporter.transporterDirectionName": {
            "type": "string",
            "enum": [
              "Outbound"
            ],
            "description": "The direction of the transporter.",
            "example": "Outbound"
          },
          "transporter.transporterApprovalDate": {
            "type": "string",
            "format": "date-time",
            "description": "The date and time when the transporter was approved.",
            "example": "2024-07-26T13:00:00+00:00"
          },
          "transporter.transporterAutoApproval": {
            "type": "boolean",
            "description": "Indicates if the transporter was automatically approved.",
            "example": true
          },
          "transporter.driverName": {
            "type": "string",
            "description": "The name of the driver.",
            "example": "Jane Doe"
          },
          "transporter.driverOccupationalLicenseNumber": {
            "type": "string",
            "description": "The occupational license number of the driver.",
            "example": "DL123456789"
          },
          "transporter.driverVehicleLicenseNumber": {
            "type": "string",
            "description": "The vehicle license number of the driver.",
            "example": "ABC1234"
          },
          "transporter.driverLayoverLeg": {
            "type": "string",
            "nullable": true,
            "description": "Information about the driver's layover leg."
          },
          "transporter.vehicleMake": {
            "type": "string",
            "description": "The make of the vehicle.",
            "example": "Ford"
          },
          "transporter.vehicleModel": {
            "type": "string",
            "description": "The model of the vehicle.",
            "example": "F-150"
          },
          "transporter.vehicleLicensePlateNumber": {
            "type": "string",
            "description": "The license plate number of the vehicle.",
            "example": "XYZ7890"
          },
          "transporter.acceptedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the transporter was accepted.",
            "example": "2024-07-26T13:00:00-05:00"
          },
          "transporter.isLayover": {
            "type": "boolean",
            "description": "Indicates if the transport includes a layover.",
            "example": false
          },
          "transporter.estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated date and time of departure.",
            "example": "2024-07-26T14:00:00+00:00"
          },
          "transporter.actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual date and time of departure."
          },
          "transporter.estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated date and time of arrival.",
            "example": "2024-07-26T15:00:00+00:00"
          },
          "transporter.actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual date and time of arrival."
          },
          "transporterDetails.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "transporterDetails.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "transporterDetails.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "transporterDetails.shipmentPlanId": {
            "type": "integer",
            "example": 12345,
            "description": "Unique identifier for the shipment plan."
          },
          "transporterDetails.shipmentDeliveryId": {
            "type": "integer",
            "example": 67890,
            "description": "Unique identifier for the shipment delivery."
          },
          "transporterDetails.transporterDirection": {
            "type": "string",
            "enum": [
              "Outbound"
            ],
            "example": "Outbound",
            "description": "Direction of the transporter."
          },
          "transporterDetails.transporterFacilityId": {
            "type": "integer",
            "example": 54321,
            "description": "Unique identifier for the transporter facility."
          },
          "transporterDetails.lineNumber": {
            "type": "integer",
            "example": 1,
            "description": "Line number in the shipment details."
          },
          "transporterDetails.driverName": {
            "type": "string",
            "example": "Jane Doe",
            "description": "Name of the driver."
          },
          "transporterDetails.driverOccupationalLicenseNumber": {
            "type": "string",
            "example": "AB1234567",
            "description": "Occupational license number of the driver."
          },
          "transporterDetails.driverVehicleLicenseNumber": {
            "type": "string",
            "example": "XYZ987654",
            "description": "Vehicle license number of the driver."
          },
          "transporterDetails.driverLayoverLeg": {
            "type": "string",
            "nullable": true,
            "example": "Leg1",
            "description": "Layover leg details for the driver, if applicable."
          },
          "transporterDetails.vehicleMake": {
            "type": "string",
            "example": "Ford",
            "description": "Make of the vehicle."
          },
          "transporterDetails.vehicleModel": {
            "type": "string",
            "example": "Transit",
            "description": "Model of the vehicle."
          },
          "transporterDetails.vehicleLicensePlateNumber": {
            "type": "string",
            "example": "XYZ-1234",
            "description": "License plate number of the vehicle."
          },
          "transporterDetails.actualDriverStartDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "example": "2024-07-26T08:30:00Z",
            "description": "Actual start date and time for the driver."
          },
          "transporterDetails.isVoided": {
            "type": "boolean",
            "example": false,
            "description": "Indicates if the record is voided."
          },
          "transporterDetails.receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "example": "2024-07-25T18:47:20+00:00",
            "description": "The date and time when the shipment was received."
          },
          "transporterDetails.receivedDeliveryCount": {
            "type": "integer",
            "example": 1,
            "description": "The number of deliveries received."
          },
          "delivery.id": {
            "type": "number",
            "description": "The transfer delivery ID",
            "example": 12345
          },
          "delivery.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "delivery.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "delivery.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "delivery.actualArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual arrival date and time."
          },
          "delivery.actualDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual departure date and time."
          },
          "delivery.actualReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual return arrival date and time."
          },
          "delivery.actualReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The actual return departure date and time."
          },
          "delivery.deliveryPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "The number of packages delivered.",
            "example": 5
          },
          "delivery.deliveryReceivedPackageCount": {
            "type": "integer",
            "format": "int32",
            "description": "The number of packages received.",
            "example": 4
          },
          "delivery.estimatedArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The estimated arrival date and time.",
            "example": "2024-07-25T15:30:00Z"
          },
          "delivery.estimatedDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "description": "The estimated departure date and time.",
            "example": "2024-07-25T13:30:00Z"
          },
          "delivery.estimatedReturnArrivalDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated return arrival date and time."
          },
          "delivery.estimatedReturnDepartureDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The estimated return departure date and time."
          },
          "delivery.grossUnitOfWeightAbbreviation": {
            "type": "string",
            "nullable": true,
            "description": "The abbreviation for the unit of gross weight.",
            "example": "kg"
          },
          "delivery.grossUnitOfWeightId": {
            "type": "integer",
            "format": "int32",
            "nullable": true,
            "description": "The ID for the unit of gross weight.",
            "example": 1
          },
          "delivery.grossWeight": {
            "type": "number",
            "format": "float",
            "nullable": true,
            "description": "The gross weight.",
            "example": 100.5
          },
          "delivery.plannedRoute": {
            "type": "string",
            "description": "The planned route for the transfer.",
            "example": "Route A"
          },
          "delivery.receivedByName": {
            "type": "string",
            "nullable": true,
            "description": "The name of the person who received the shipment."
          },
          "delivery.receivedDateTime": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the shipment was received."
          },
          "delivery.recipientFacilityId": {
            "type": "integer",
            "format": "int32",
            "description": "The ID of the recipient facility.",
            "example": 456
          },
          "delivery.recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "The license number of the recipient facility.",
            "example": "AB12345"
          },
          "delivery.recipientFacilityName": {
            "type": "string",
            "description": "The name of the recipient facility.",
            "example": "Facility A"
          },
          "delivery.rejectedPackagesReturned": {
            "type": "boolean",
            "description": "Indicates whether rejected packages were returned.",
            "example": false
          },
          "delivery.shipmentTransactionTypeName": {
            "type": "string",
            "description": "The name of the shipment transaction type.",
            "example": "Regular"
          },
          "delivery.shipmentTypeName": {
            "type": "string",
            "description": "The name of the shipment type.",
            "example": "Transfer",
            "enum": [
              "Transfer"
            ]
          },
          "delivery.recipientApprovalDate": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The date and time when the recipient approved the shipment upon receipt."
          },
          "delivery.recipientAutoApproval": {
            "type": "boolean",
            "description": "Indicates whether the recipient's approval of the shipment is automatically granted, typically when there are no issues with the received packages.",
            "example": false
          },
          "delivery.tollingAgreementFileSystemId": {
            "type": "number",
            "example": 0
          },
          "delivery.invoiceNumber": {
            "type": "string",
            "example": ""
          },
          "package.id": {
            "type": "integer",
            "description": "Unique identifier for the item",
            "example": 1234567,
            "nullable": false
          },
          "package.dataModel": {
            "type": "string",
            "description": "Name of this object's data model",
            "example": "MetrcPackage"
          },
          "package.retrievedAt": {
            "type": "string",
            "format": "date-time",
            "description": "Timestamp of when this object was pulled from Metrc"
          },
          "package.licenseNumber": {
            "type": "string",
            "description": "License number used to access this object"
          },
          "package.index": {
            "type": "string",
            "description": "Describes the current state of this object at the time it was returned from the API. This cannot be used to sort or filter.",
            "example": "TRANSFERRED_PACKAGE",
            "enum": [
              "TRANSFERRED_PACKAGE"
            ]
          },
          "package.packageId": {
            "type": "integer",
            "description": "Identifier for the package",
            "example": 9876543,
            "nullable": false
          },
          "package.recipientFacilityLicenseNumber": {
            "type": "string",
            "description": "License number of the recipient facility",
            "example": "LIC-00001",
            "nullable": false
          },
          "package.recipientFacilityName": {
            "type": "string",
            "description": "Name of the recipient facility",
            "example": "Example Dispensary LLC",
            "nullable": false
          },
          "package.manifestNumber": {
            "type": "string",
            "description": "Manifest number associated with the shipment",
            "example": "0001234567",
            "nullable": false
          },
          "package.packageLabel": {
            "type": "string",
            "description": "Label of the package",
            "example": "1A4000000000000000000001",
            "nullable": false
          },
          "package.sourceHarvestNames": {
            "type": "string",
            "description": "Names of the source harvests",
            "example": "Blue Dream",
            "nullable": true
          },
          "package.sourcePackageLabels": {
            "type": "string",
            "description": "Labels of the source packages",
            "example": "1A4000000000000000000002",
            "nullable": true
          },
          "package.productName": {
            "type": "string",
            "description": "Name of the product",
            "example": "Blue Dream | 3.5g",
            "nullable": false
          },
          "package.productCategoryName": {
            "type": "string",
            "description": "Category name of the product",
            "example": "Bud/Flower (Final Packaging)",
            "nullable": false
          },
          "package.itemStrainName": {
            "type": "string",
            "description": "Strain name of the item",
            "example": "Blue Dream",
            "nullable": false
          },
          "package.labTestingStateName": {
            "description": "Lab testing status of the item",
            "$ref": "#/components/schemas/LabTestingStates"
          },
          "package.shippedQuantity": {
            "type": "number",
            "description": "Quantity shipped",
            "format": "double",
            "example": 1224.0,
            "nullable": false
          },
          "package.shippedUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the shipped quantity",
            "example": "g",
            "nullable": false
          },
          "package.grossWeight": {
            "type": "number",
            "description": "Gross weight of the package",
            "format": "double",
            "example": 224.0,
            "nullable": false
          },
          "package.grossUnitOfWeightAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the gross weight",
            "example": "g",
            "nullable": false
          },
          "package.shipperWholesalePrice": {
            "type": "number",
            "description": "Wholesale price from the shipper",
            "format": "double",
            "nullable": true
          },
          "package.receivedQuantity": {
            "type": "number",
            "description": "Quantity received",
            "format": "double",
            "example": 1224.0,
            "nullable": false
          },
          "package.receivedUnitOfMeasureAbbreviation": {
            "type": "string",
            "description": "Unit of measure for the received quantity",
            "example": "g",
            "nullable": false
          },
          "package.receiverWholesalePrice": {
            "type": "number",
            "description": "Wholesale price to the receiver",
            "format": "double",
            "nullable": true
          },
          "package.shipmentPackageStateName": {
            "type": "string",
            "description": "State of the shipment package",
            "example": "Accepted",
            "enum": [
              "Accepted",
              "Rejected",
              "Pending"
            ],
            "nullable": false
          },
          "package.actualDepartureDateTime": {
            "type": "string",
            "description": "Actual departure date and time",
            "format": "date-time",
            "nullable": true
          },
          "package.receivedDateTime": {
            "type": "string",
            "description": "Date and time when the package was received",
            "format": "date-time",
            "example": "2024-07-26T00:00:00-05:00",
            "nullable": false
          },
          "package.processingJobTypeName": {
            "type": "string",
            "nullable": true
          }
        },
        "required": [
          "package.grossUnitOfWeightAbbreviation",
          "package.grossWeight",
          "package.id",
          "package.itemStrainName",
          "package.labTestingStateName",
          "package.manifestNumber",
          "package.packageId",
          "package.packageLabel",
          "package.productCategoryName",
          "package.productName",
          "package.receivedDateTime",
          "package.receivedQuantity",
          "package.receivedUnitOfMeasureAbbreviation",
          "package.recipientFacilityLicenseNumber",
          "package.recipientFacilityName",
          "package.shipmentPackageStateName",
          "package.shippedQuantity",
          "package.shippedUnitOfMeasureAbbreviation"
        ]
      },
      "T3OutgoingTransferManifestRecord": {
        "allOf": [
          {
            "$ref": "#/components/schemas/MetrcOutgoingSuperTransfer"
          },
          {
            "type": "object",
            "description": "An outgoing transfer as returned by the manifest report in JSON, with its deliveries, packages and transporters nested beneath it. The tabular (CSV) representation of this same data is described by T3OutgoingTransferManifest, which flattens each transfer into one row per package.",
            "properties": {
              "transporterDetails": {
                "type": "array",
                "description": "A list of this transfer's transporter details",
                "items": {
                  "$ref": "#/components/schemas/MetrcTransferTransporterDetails"
                }
              }
            }
          }
        ]
      },
      "T3PackageLabelsPayload": {
        "type": "object",
        "properties": {
          "labelTemplateLayoutId": {
            "type": "string",
            "description": "The identifier for the label template configuration",
            "example": "AVERY_8160__2_625Wx1_0H"
          },
          "labelContentLayoutId": {
            "type": "string",
            "description": "The identifier for the label content configuration.",
            "example": "COL_TEXT_CODE128_TEXT"
          },
          "data": {
            "type": "array",
            "description": "An array of tags",
            "example": [
              "1A4000000000000000000001",
              "1A4000000000000000000002",
              "1A4000000000000000000003",
              "1A4000000000000000000004",
              "1A4000000000000000000005",
              "1A4000000000000000000006"
            ],
            "items": {
              "type": "string"
            }
          },
          "renderingOptions": {
            "type": "object",
            "description": "Options for controlling how the barcode will render.",
            "additionalProperties": false,
            "properties": {
              "barcodeBarThickness": {
                "description": "Controls how thick a barcode's bars will appear. Useful for\nlow-DPI thermal printers.\n\n- 1.0 is normal rendering\n- 0.9 is 10% thinner\n- 1.1 is 10% thicker\n\nTested values:\n\n- Zebra printers with a Code128 should use 0.94\n- Dymo printers with a Code128 should use 0.8\n",
                "example": 1.0
              },
              "labelMarginThickness": {
                "description": "Controls width of a label's margins. Useful for thermal printers\nwith slightly skewed printing.\n\n- 1.0 is normal margin\n- 0.9 is 10% thinner\n- 1.1 is 10% thicker\n",
                "example": 1.0
              }
            }
          },
          "debug": {
            "type": "boolean",
            "description": "When set to true, draws bounding boxes around the label containers, the printable area, and the individual elements per label."
          }
        },
        "required": [
          "labelTemplateLayoutId",
          "labelContentLayoutId",
          "data"
        ],
        "additionalProperties": false
      },
      "T3PackageLabelsPayload_DEPRECATED": {
        "type": "object",
        "properties": {
          "labelTemplateLayoutId": {
            "type": "string",
            "description": "The identifier for the label template configuration",
            "example": "AVERY_8160__2_625Wx1_0H"
          },
          "labelContentLayoutId": {
            "type": "string",
            "description": "The identifier for the label content configuration.",
            "example": "COL_TEXT_CODE128_TEXT"
          },
          "data": {
            "type": "array",
            "description": "An array of tags",
            "example": [
              "1A4000000000000000000001",
              "1A4000000000000000000002",
              "1A4000000000000000000003",
              "1A4000000000000000000004",
              "1A4000000000000000000005",
              "1A4000000000000000000006"
            ],
            "items": {
              "type": "string"
            }
          },
          "renderingOptions": {
            "type": "object",
            "description": "Options for controlling how the barcode will render.",
            "additionalProperties": false,
            "properties": {
              "barcodeBarThickness": {
                "description": "Controls how thick a barcode's bars will appear. Useful for\nlow-DPI thermal printers.\n\n- 1.0 is normal rendering\n- 0.9 is 10% thinner\n- 1.1 is 10% thicker\n\nTested values:\n\n- Zebra printers with a Code128 should use 0.94\n- Dymo printers with a Code128 should use 0.8\n",
                "example": 1.0
              },
              "labelMarginThickness": {
                "description": "Controls width of a label's margins. Useful for thermal printers\nwith slightly skewed printing.\n\n- 1.0 is normal margin\n- 0.9 is 10% thinner\n- 1.1 is 10% thicker\n",
                "example": 1.0
              }
            }
          },
          "debug": {
            "type": "boolean",
            "description": "When set to true, draws bounding boxes around the label containers, the printable area, and the individual elements per label."
          }
        },
        "required": [
          "labelTemplateLayoutId",
          "labelContentLayoutId",
          "data"
        ],
        "additionalProperties": false
      },
      "T3PointInTimePackage": {
        "type": "object",
        "description": "One row of the point-in-time inventory report: a package the license held, or may have held, as the requested moment began, with the quantity it had then.\n\nA package held and open at that moment is listed with status held. One the report cannot settle is listed with status unknown and a note, never dropped. A package finished, discontinued or not yet made at that moment is not listed.",
        "properties": {
          "label": {
            "type": "string",
            "description": "The package tag.",
            "example": "1A4FF0100000022000000207"
          },
          "packageId": {
            "type": "integer",
            "format": "int64",
            "description": "Metrc's id for the package, for looking it up.",
            "example": 10206693
          },
          "item": {
            "type": "object",
            "description": "The package's item, as Metrc shows it now.",
            "properties": {
              "name": {
                "type": "string",
                "example": "Trimmed Flower | Glitter Bomb"
              },
              "strainName": {
                "type": "string",
                "nullable": true,
                "example": "Glitter Bomb"
              },
              "productCategoryName": {
                "type": "string",
                "nullable": true,
                "example": "Buds"
              },
              "unitThcContent": {
                "type": "number",
                "nullable": true
              }
            }
          },
          "quantity": {
            "type": "number",
            "nullable": true,
            "description": "The quantity the package had at the moment, in unitOfMeasureAbbreviation. Null when it could not be worked out. Can be negative when Metrc had the package overdrawn.",
            "example": 422.11
          },
          "unitOfMeasureAbbreviation": {
            "type": "string",
            "nullable": true,
            "example": "g"
          },
          "status": {
            "type": "string",
            "description": "held when the license held the package at the moment, unknown when that could not be settled.",
            "enum": [
              "held",
              "unknown"
            ],
            "example": "held"
          },
          "quantityConfidence": {
            "type": "string",
            "nullable": true,
            "description": "How far quantity can be trusted. exact: worked out two ways that agree, or read from a row nothing has changed since. probable: worked out one way. bounded: the two ways disagree, and the one from the current quantity is shown. unreliable: it could not be worked out. estimated: the package has since left the license and has no history, so the quantity shipped is shown.",
            "enum": [
              "exact",
              "probable",
              "bounded",
              "unreliable",
              "estimated"
            ],
            "example": "exact"
          },
          "note": {
            "type": "string",
            "nullable": true,
            "description": "What qualifies the row, in words. Empty when nothing does.",
            "example": "On a manifest at the time, so still held by the shipper."
          }
        }
      },
      "T3TagListPayload": {
        "type": "object",
        "properties": {
          "data": {
            "type": "array",
            "description": "An array of tags",
            "example": [
              "1A4000000000000000000001",
              "1A4000000000000000000002",
              "1A4000000000000000000003",
              "1A4000000000000000000004",
              "1A4000000000000000000005",
              "1A4000000000000000000006"
            ],
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "data"
        ]
      },
      "T3UpdateLabelContentLayoutPayload": {
        "type": "object",
        "properties": {
          "labelContentLayoutConfig": {
            "allOf": [
              {
                "$ref": "#/components/schemas/T3LabelContentLayoutConfig"
              },
              {
                "description": "The updated label content layout configuration"
              }
            ]
          },
          "description": {
            "type": "string",
            "description": "Updated description for the layout"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Updated tags for the layout"
          }
        }
      },
      "T3UpdateLabelTemplateLayoutPayload": {
        "type": "object",
        "properties": {
          "labelTemplateLayoutConfig": {
            "allOf": [
              {
                "$ref": "#/components/schemas/T3LabelTemplateLayoutConfig"
              },
              {
                "description": "The updated label template layout configuration"
              }
            ]
          },
          "description": {
            "type": "string",
            "description": "Updated description for the layout"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Updated tags for the layout"
          }
        }
      },
      "TagList": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid",
            "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
          },
          "licenseNumber": {
            "type": "string",
            "description": "The license the list belongs to.",
            "example": "LIC-00001"
          },
          "name": {
            "type": "string",
            "example": "Room A inventory"
          },
          "visibility": {
            "$ref": "#/components/schemas/TagListVisibility"
          },
          "t3EndpointId": {
            "type": "string",
            "nullable": true,
            "description": "The route the list resolves against by default, a `TagListT3EndpointId` value, or null if the list names none.",
            "example": "METRC_ACTIVE_PACKAGES"
          },
          "metadata": {
            "type": "object",
            "description": "Any JSON object you stored on the list, returned as sent.",
            "example": {
              "room": "A"
            }
          },
          "archivedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the list was archived, or null.",
            "example": null
          },
          "entryCount": {
            "type": "integer",
            "description": "Entries in the list.",
            "example": 42
          },
          "scannedCount": {
            "type": "integer",
            "description": "Entries whose `scannedAt` is set.",
            "example": 17
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-05T12:34:56.789Z"
          },
          "createdBy": {
            "type": "string",
            "description": "The Metrc username that created the list.",
            "example": "user@example.com"
          },
          "updatedAt": {
            "type": "string",
            "format": "date-time",
            "description": "The list's latest change, entry changes included.",
            "example": "2026-11-05T13:00:00.000Z"
          }
        }
      },
      "TagListEntry": {
        "type": "object",
        "properties": {
          "handle": {
            "type": "string",
            "description": "The identifier, as first added.",
            "example": "1A4000000000000000000001"
          },
          "name": {
            "type": "string",
            "nullable": true,
            "description": "A label for the entry, or null.",
            "example": "Vault shelf 3"
          },
          "metadata": {
            "type": "object",
            "description": "Any JSON object you stored on the entry, returned as sent.",
            "example": {
              "note": "Test tag"
            }
          },
          "scannedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "The latest scan, or null.",
            "example": "2026-11-05T12:34:56.789Z"
          },
          "scannedBy": {
            "type": "string",
            "nullable": true,
            "description": "The Metrc username that set `scannedAt`, or null.",
            "example": "user@example.com"
          },
          "createdAt": {
            "type": "string",
            "format": "date-time",
            "example": "2026-11-05T12:34:56.789Z"
          },
          "createdBy": {
            "type": "string",
            "description": "The Metrc username that added the entry.",
            "example": "user@example.com"
          }
        }
      },
      "TagListEntryInput": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "handle"
        ],
        "description": "One entry to add or update, identified by `handle`. Handles match ignoring\ncase and surrounding whitespace. A field you omit keeps its stored value.\n",
        "properties": {
          "handle": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "\\S",
            "description": "The identifier, usually a Metrc tag label.",
            "example": "1A4000000000000000000001",
            "x-errorMessage": "Each entry's 'handle' must be a non-blank string of at most 200 characters."
          },
          "name": {
            "type": "string",
            "nullable": true,
            "maxLength": 200,
            "description": "A label for the entry, or null to clear it.",
            "example": "Vault shelf 3",
            "x-errorMessage": "Each entry's 'name' must be a string of at most 200 characters, or null."
          },
          "metadata": {
            "type": "object",
            "description": "Any JSON object. Replaces the stored metadata.",
            "example": {
              "note": "Test tag"
            },
            "x-errorMessage": "Each entry's 'metadata' must be an object."
          },
          "scannedAt": {
            "type": "string",
            "format": "date-time",
            "nullable": true,
            "description": "When the entry was scanned, or null to clear the scan.",
            "example": "2026-11-05T12:34:56.789Z",
            "x-errorMessage": "Each entry's 'scannedAt' must be an ISO 8601 timestamp, or null."
          }
        }
      },
      "TagListT3EndpointId": {
        "type": "string",
        "description": "The route a list's handles resolve against by default, as its T3 endpoint id:\nthe plain or `/super` collection route of any collection a list can be\nresolved against. `METRC_ACTIVE_PACKAGES` resolves to packages from\n`/v2/packages/active`; `METRC_ACTIVE_SUPERPACKAGES` to superpackages from\n`/v2/packages/active/super`.\n",
        "enum": [
          "METRC_ACTIVE_HARVESTS",
          "METRC_ACTIVE_ITEMS",
          "METRC_ACTIVE_MOTHER_PLANTS",
          "METRC_ACTIVE_MOTHER_SUPERPLANTS",
          "METRC_ACTIVE_PACKAGES",
          "METRC_ACTIVE_PLANTBATCHES",
          "METRC_ACTIVE_STRAINS",
          "METRC_ACTIVE_SUPERHARVESTS",
          "METRC_ACTIVE_SUPERITEMS",
          "METRC_ACTIVE_SUPERPACKAGES",
          "METRC_ACTIVE_SUPERPLANTBATCHES",
          "METRC_ACTIVE_SUPERSTRAINS",
          "METRC_AVAILABLE_SUPERTAGS",
          "METRC_AVAILABLE_TAGS",
          "METRC_FLOWERING_PLANTS",
          "METRC_FLOWERING_SUPERPLANTS",
          "METRC_HUB_SUPERTRANSFERS",
          "METRC_HUB_TRANSFERS",
          "METRC_INACTIVE_HARVESTS",
          "METRC_INACTIVE_MOTHER_PLANTS",
          "METRC_INACTIVE_MOTHER_SUPERPLANTS",
          "METRC_INACTIVE_PACKAGES",
          "METRC_INACTIVE_PLANTBATCHES",
          "METRC_INACTIVE_PLANTS",
          "METRC_INACTIVE_SUPERHARVESTS",
          "METRC_INACTIVE_SUPERPACKAGES",
          "METRC_INACTIVE_SUPERPLANTBATCHES",
          "METRC_INACTIVE_SUPERPLANTS",
          "METRC_INCOMING_ACTIVE_SUPERTRANSFERS",
          "METRC_INCOMING_ACTIVE_TRANSFERS",
          "METRC_INCOMING_INACTIVE_SUPERTRANSFERS",
          "METRC_INCOMING_INACTIVE_TRANSFERS",
          "METRC_INTRANSIT_PACKAGES",
          "METRC_INTRANSIT_SUPERPACKAGES",
          "METRC_ONHOLD_HARVESTS",
          "METRC_ONHOLD_MOTHER_PLANTS",
          "METRC_ONHOLD_MOTHER_SUPERPLANTS",
          "METRC_ONHOLD_PACKAGES",
          "METRC_ONHOLD_PLANTBATCHES",
          "METRC_ONHOLD_PLANTS",
          "METRC_ONHOLD_SUPERHARVESTS",
          "METRC_ONHOLD_SUPERPACKAGES",
          "METRC_ONHOLD_SUPERPLANTBATCHES",
          "METRC_ONHOLD_SUPERPLANTS",
          "METRC_OUTGOING_ACTIVE_SUPERTRANSFERS",
          "METRC_OUTGOING_ACTIVE_TRANSFERS",
          "METRC_OUTGOING_INACTIVE_SUPERTRANSFERS",
          "METRC_OUTGOING_INACTIVE_TRANSFERS",
          "METRC_OUTGOING_REJECTED_SUPERTRANSFERS",
          "METRC_OUTGOING_REJECTED_TRANSFERS",
          "METRC_TRANSFERRED_PACKAGES",
          "METRC_TRANSFERRED_SUPERPACKAGES",
          "METRC_USED_SUPERTAGS",
          "METRC_USED_TAGS",
          "METRC_VEGETATIVE_PLANTS",
          "METRC_VEGETATIVE_SUPERPLANTS",
          "METRC_VOIDED_SUPERTAGS",
          "METRC_VOIDED_TAGS"
        ],
        "example": "METRC_ACTIVE_PACKAGES"
      },
      "TagListVisibility": {
        "type": "string",
        "description": "Who can see the list besides its creator.\n\n- `USER`: only the creator.\n- `LICENSE`: anyone on the same Metrc hostname whose account has access to\n  the list's license. They can read the list and add, remove and scan its\n  entries. Only the creator can change the list's own fields or archive it.\n",
        "enum": [
          "USER",
          "LICENSE"
        ],
        "example": "USER"
      },
      "TriggerTagListCoaExtractionPayload": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "t3EndpointId": {
            "$ref": "#/components/schemas/TagListT3EndpointId"
          }
        }
      },
      "UnitOfMeasure": {
        "type": "object",
        "properties": {
          "abbreviation": {
            "type": "string",
            "example": "ml"
          },
          "fromBaseFactor": {
            "type": "number",
            "format": "double",
            "example": 29.5735295625
          },
          "id": {
            "type": "integer",
            "example": 10
          },
          "isArchived": {
            "type": "boolean",
            "example": false
          },
          "isBaseUnit": {
            "type": "boolean",
            "example": false
          },
          "name": {
            "type": "string",
            "example": "Milliliters"
          },
          "quantityType": {
            "type": "string",
            "example": "VolumeBased"
          },
          "toBaseFactor": {
            "type": "number",
            "format": "double",
            "example": 0.033814022701843
          }
        }
      },
      "UnitOfMeasureAbbreviation": {
        "type": "string",
        "example": "g",
        "enum": [
          "g",
          "mg",
          "kg",
          "oz",
          "lb",
          "ml",
          "l",
          "ea"
        ]
      },
      "UpdateSavedReportPayload": {
        "type": "object",
        "description": "At least one field must be supplied. Omitted fields are left unchanged.\n\nUpdating `reportUrl` does not change `publicId`, so a client holding the id\nkeeps referring to the same saved report.\n",
        "minProperties": 1,
        "additionalProperties": false,
        "x-errorMessage": "Supply at least one of 'name', 'description' or 'reportUrl'.",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "New label. Must be unique among this account's saved reports.",
            "example": "Daily veg plant count",
            "x-errorMessage": "'name' must be a string of 1-200 characters."
          },
          "description": {
            "type": "string",
            "maxLength": 2000,
            "nullable": true,
            "description": "New note, or null to clear it.",
            "example": "Feeds the cultivation team's morning dashboard",
            "x-errorMessage": "'description' must be a string of at most 2000 characters, or null to clear it."
          },
          "reportUrl": {
            "type": "string",
            "minLength": 1,
            "maxLength": 8000,
            "description": "Replacement report URL. Validated exactly as on create, and any\n`secretKey` is stripped. `t3EndpointId` and `licenseNumbers` are\nre-derived from it.\n",
            "example": "/v2/plants/vegetative/report?licenseNumber=C11-0000001-LIC&filter=strainName__eq:Blue%20Dream",
            "x-errorMessage": "'reportUrl' must be a report endpoint URL of at most 8000 characters, e.g. /v2/plants/vegetative/report?licenseNumber=EX-00001"
          }
        }
      },
      "UpdateTagListPayload": {
        "type": "object",
        "description": "At least one field must be supplied. Omitted fields are left unchanged. Only\nthe list's creator can update it.\n",
        "additionalProperties": false,
        "minProperties": 1,
        "x-errorMessage": "Supply at least one of 'name', 'visibility', 't3EndpointId', 'metadata' or 'archived'.",
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "pattern": "\\S",
            "description": "A new label.",
            "example": "Room A inventory",
            "x-errorMessage": "'name' must be a non-blank string of at most 200 characters."
          },
          "visibility": {
            "$ref": "#/components/schemas/TagListVisibility"
          },
          "t3EndpointId": {
            "$ref": "#/components/schemas/TagListT3EndpointId"
          },
          "metadata": {
            "type": "object",
            "description": "Replaces the stored metadata.",
            "example": {
              "room": "B"
            },
            "x-errorMessage": "'metadata' must be an object."
          },
          "archived": {
            "type": "boolean",
            "description": "true to archive the list, false to unarchive it.",
            "example": true,
            "x-errorMessage": "'archived' must be true or false."
          }
        }
      },
      "UpsertSavedReportSchedulePayload": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "frequency"
        ],
        "description": "When the saved report runs. `daily` needs `timeOfDay` and `timezone`; every\nother frequency takes neither.\n",
        "properties": {
          "frequency": {
            "type": "string",
            "enum": [
              "every5Minutes",
              "every15Minutes",
              "every30Minutes",
              "hourly",
              "daily"
            ],
            "description": "How often the report runs.\n\n- `every5Minutes`, `every15Minutes`, `every30Minutes` and `hourly` run\n  at a fixed minute chosen for each saved report, so schedules do not\n  all fire at once. An hourly report always runs at the same minute past\n  the hour.\n- `daily` runs at `timeOfDay` in `timezone`, following daylight saving\n  time.\n\nPresets faster than `hourly` are only available to subscriptions that\nallow them.\n",
            "example": "daily",
            "x-errorMessage": "'frequency' must be one of every5Minutes, every15Minutes, every30Minutes, hourly or daily."
          },
          "timeOfDay": {
            "type": "string",
            "pattern": "^([01][0-9]|2[0-3]):[0-5][0-9]$",
            "description": "Local time to run at, as 24-hour `HH:MM`. Only for `daily`.",
            "example": "06:00",
            "x-errorMessage": "'timeOfDay' must be a 24-hour time such as 06:00."
          },
          "timezone": {
            "type": "string",
            "minLength": 1,
            "maxLength": 64,
            "description": "IANA timezone name that `timeOfDay` is in. Only for `daily`.",
            "example": "America/Denver",
            "x-errorMessage": "'timezone' must be an IANA timezone name such as America/Denver."
          }
        }
      },
      "UpsertTagListEntriesPayload": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "entries"
        ],
        "properties": {
          "entries": {
            "type": "array",
            "minItems": 1,
            "maxItems": 5000,
            "description": "Entries to add or update. A handle already in the list is updated with\nthe fields supplied; any other handle is added. Each handle may appear\nonce per request.\n",
            "items": {
              "$ref": "#/components/schemas/TagListEntryInput"
            },
            "x-errorMessage": "'entries' must be an array of 1 to 5000 entries."
          }
        }
      },
      "WasteType": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "description": "Numeric ID of the waste type, used as `wasteTypeId`.",
            "example": 1
          },
          "name": {
            "type": "string",
            "description": "Display name of the waste type.",
            "example": "Plant Material"
          },
          "forHarvests": {
            "type": "boolean",
            "description": "Whether this waste type can be reported against a harvest.",
            "example": true
          }
        }
      }
    },
    "parameters": {
      "ApplyDynamicValidation": {
        "name": "applyDynamicValidation",
        "in": "query",
        "required": false,
        "description": "Controls whether T3 should apply dynamic validation before forwarded to Metrc.\n  - **If present and set to 'true'**: The request will be dynamically validated. An error will be returned if dynamic validation fails.\n  - **If omitted or set to any value other than 'true'**: This parameter has no effect.\nExamples:\n  - \"true\": Apply dynamic validation\n  - \"false\": No-op\n\n**Dynamic validation** refers to validation that:\n  - Requires making API calls to Metrc to validate data dependencies (e.g., verifying that referenced items exist in Metrc).\n  - Cannot be performed through static schema validation alone.\n  - Does not guarantee that the request will be accepted by Metrc, as Metrc may have additional business rules not covered by T3's validation.\n  - Is best-effort in the other direction too: a check whose reference listing is too large to read, or which Metrc will not serve, is skipped and the request reaches Metrc unvalidated. A passing dynamic validation therefore means \"nothing known to be wrong\", not \"every check ran\".\n",
        "schema": {
          "type": "string",
          "example": "true"
        }
      },
      "CollectionFilter": {
        "name": "filter",
        "description": "Filters the collection to only return objects matching the specified criteria. Multiple filters can be applied, and the logical operator between them is controlled by the `filterLogic` parameter.\n\n## Format\n\nThe filter parameter uses the format: `fieldName__operator:value`\n\n- **fieldName**: The name of the field to filter by (e.g., `label`, `quantity`, `packagedDate`)\n- **operator**: The comparison operator to use (see operator lists below by field type)\n- **value**: The value to compare against\n\n## Behavior\n\n- Multiple filters can be applied by including multiple `filter` query parameters\n- By default, all filters must match (AND logic). Use `filterLogic=or` to match any filter (OR logic)\n- Filters are applied before sorting and pagination\n- The field must be one of the collection's own fields. Any other field returns a 400 that lists the accepted ones\n- Packages also accept four nested item fields: `item.name`, `item.strainName`, `item.productCategoryName` and `item.unitThcContent`\n- Manifest reports filter on the transfer's own fields only, not on its packages or transporters\n- All string comparisons are case-insensitive\n\n## String Field Operators\n\nString fields support the following operators:\n\n- **contains**: Field contains the specified substring\n- **doesnotcontain**: Field does not contain the specified substring\n- **eq**: Field exactly equals the specified value\n- **neq**: Field does not equal the specified value\n- **startswith**: Field starts with the specified substring\n- **endswith**: Field ends with the specified substring\n\n## Datetime Field Operators\n\nDatetime fields support the following operators:\n\n- **lt**: Less than (before)\n- **lte**: Less than or equal to (on or before)\n- **eq**: Exactly equals\n- **neq**: Not equal to\n- **gt**: Greater than (after)\n- **gte**: Greater than or equal to (on or after)\n\n**Note: All datetime values must be in ISO8601 format (e.g., `2024-07-17T20:26:07.117Z`)**\n\n## Numeric Field Operators\n\nNumeric fields support the same operators as datetime fields:\n\n- **lt**: Less than\n- **lte**: Less than or equal to\n- **eq**: Exactly equals\n- **neq**: Not equal to\n- **gt**: Greater than\n- **gte**: Greater than or equal to\n\n## Boolean Field Operators\n\nBoolean fields support only one operator:\n\n- **eq**: Exactly equals (use `true` or `false`)\n\n## Examples using MetrcPackage\n\n<details>\n<summary>Click to expand</summary>\n\n### Example 1: Single string filter (contains)\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=label__contains:0003\n```\n\nReturns only packages whose label contains \"0003\":\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000020003\", ... },\n    { \"label\": \"1A4000000000000000030003\", ... }\n  ]\n}\n```\n\n### Example 2: String filter (starts with)\nRequest:\n```\nGET /v2/items?licenseNumber=LIC-00001&filter=name__startswith:wedding\n```\n\nReturns only items whose name starts with \"wedding\" (case-insensitive):\n```json\n{\n  \"data\": [\n    { \"name\": \"Blue Dream Flower\", ... },\n    { \"name\": \"Northern Lights Pre-Roll\", ... }\n  ]\n}\n```\n\n### Example 3: Numeric filter (greater than or equal)\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=quantity__gte:1000\n```\n\nReturns only packages with quantity >= 1000:\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000000001\", \"quantity\": 5000.0, ... },\n    { \"label\": \"1A4000000000000000000002\", \"quantity\": 2500.0, ... }\n  ]\n}\n```\n\n### Example 4: Boolean filter\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=isFinished__eq:false\n```\n\nReturns only active (unfinished) packages:\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000000001\", \"isFinished\": false, ... },\n    { \"label\": \"1A4000000000000000000002\", \"isFinished\": false, ... }\n  ]\n}\n```\n\n### Example 5: Datetime filter (on or after)\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=packagedDate__gte:2024-03-01T00:00:00.000Z\n```\n\nReturns only packages created on or after March 1, 2024:\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000000003\", \"packagedDate\": \"2024-03-15T10:30:00.000Z\", ... },\n    { \"label\": \"1A4000000000000000000002\", \"packagedDate\": \"2024-03-10T14:20:00.000Z\", ... }\n  ]\n}\n```\n\n### Example 6: Multiple filters (AND logic - default)\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=quantity__gte:100&filter=isFinished__eq:false\n```\n\nReturns packages that have quantity >= 100 AND are not finished:\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000000001\", \"quantity\": 500.0, \"isFinished\": false, ... }\n  ]\n}\n```\n\n### Example 7: Multiple filters (OR logic)\nRequest:\n```\nGET /v2/items?licenseNumber=LIC-00001&filter=name__contains:flower&filter=name__contains:pre-roll&filterLogic=or\n```\n\nReturns items whose name contains \"flower\" OR \"pre-roll\":\n```json\n{\n  \"data\": [\n    { \"name\": \"Blue Dream Flower\", ... },\n    { \"name\": \"Blue Dream pre-roll\", ... },\n    { \"name\": \"Pineapple Express Flower\", ... }\n  ]\n}\n```\n\n</details>\n\n## Notes\n\n- An unrecognized field name returns a `400` listing every field that is valid for the collection. On report endpoints this is checked when the request arrives, before any Metrc data is loaded.\n- Filters apply to the **top-level collection only**. Endpoints that attach related records \u2014 a report's joined packages or transporters, or anything pulled in by `include` \u2014 return those in full for every matching record. There is no syntax for filtering them.\n- `id` is filterable on every collection except plant batches, where Metrc answers an `id` filter with an error. To fetch one record by its id, use the object endpoint (`/v2/packages/active/12345`) rather than a filter.\n- Not all filter operators are supported for all fields. Unsupported filters will throw an error.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "label__endswith:0003",
          "items": {
            "type": "string"
          }
        },
        "style": "form",
        "explode": true
      },
      "CollectionFilterLogic": {
        "name": "filterLogic",
        "description": "Controls how multiple filters are combined when more than one `filter` parameter is provided. Determines whether all filters must match (AND logic) or if any single filter matching is sufficient (OR logic).\n\n## Behavior\n\n- **and**: All filters must match for an object to be included in the results (intersection)\n- **or**: At least one filter must match for an object to be included in the results (union)\n- Default value is `and` if not specified\n- This parameter has no effect when only one filter is provided\n- Applied during the filtering stage, before sorting and pagination\n\n## Values\n\n- **and** (default): Logical AND - all conditions must be true\n- **or**: Logical OR - at least one condition must be true\n\n## Examples using MetrcPackage\n\n<details>\n<summary>Click to expand</summary>\n\n### Example 1: AND logic (default) - all filters must match\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=quantity__gte:100&filter=isFinished__eq:false\n```\n\nOr explicitly:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=quantity__gte:100&filter=isFinished__eq:false&filterLogic=and\n```\n\nReturns only packages where quantity >= 100 AND isFinished = false:\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000000001\", \"quantity\": 500.0, \"isFinished\": false, ... },\n    { \"label\": \"1A4000000000000000000002\", \"quantity\": 250.0, \"isFinished\": false, ... }\n  ]\n}\n```\n\nPackages with quantity >= 100 but isFinished = true are excluded.\nPackages with isFinished = false but quantity < 100 are excluded.\n\n### Example 2: OR logic - any filter can match\nRequest:\n```\nGET /v2/items?licenseNumber=LIC-00001&filter=name__contains:flower&filter=name__contains:pre-roll&filterLogic=or\n```\n\nReturns items where name contains \"flower\" OR name contains \"pre-roll\":\n```json\n{\n  \"data\": [\n    { \"name\": \"Blue Dream Flower\", ... },\n    { \"name\": \"Blue Dream pre-roll\", ... },\n    { \"name\": \"Pineapple Express Flower\", ... },\n    { \"name\": \"Gelato Pre-Roll\", ... }\n  ]\n}\n```\n\nItems containing either \"flower\" or \"pre-roll\" (or both) are included.\n\n### Example 3: OR logic with different fields\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=quantity__gte:1000&filter=isOnHold__eq:true&filterLogic=or\n```\n\nReturns packages where quantity >= 1000 OR isOnHold = true:\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000000001\", \"quantity\": 5000.0, \"isOnHold\": false, ... },\n    { \"label\": \"1A4000000000000000000002\", \"quantity\": 50.0, \"isOnHold\": true, ... },\n    { \"label\": \"1A4000000000000000000003\", \"quantity\": 2500.0, \"isOnHold\": false, ... }\n  ]\n}\n```\n\n### Example 4: Complex OR logic with multiple string filters\nRequest:\n```\nGET /v2/items?licenseNumber=LIC-00001&filter=name__contains:wedding&filter=name__contains:blue&filter=name__contains:gelato&filterLogic=or\n```\n\nReturns items matching any of the search terms:\n```json\n{\n  \"data\": [\n    { \"name\": \"Blue Dream Flower\", ... },\n    { \"name\": \"Northern Lights Pre-Roll\", ... },\n    { \"name\": \"Blue Dream flower\", ... },\n    { \"name\": \"Blue Dream Edible\", ... },\n    { \"name\": \"Gelato Pre-Roll\", ... }\n  ]\n}\n```\n\n### Example 5: AND logic with date range\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=packagedDate__gte:2024-01-01T00:00:00.000Z&filter=packagedDate__lte:2024-12-31T23:59:59.999Z&filterLogic=and\n```\n\nReturns packages created in 2024 (both date filters must match):\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000000001\", \"packagedDate\": \"2024-03-15T10:30:00.000Z\", ... },\n    { \"label\": \"1A4000000000000000000002\", \"packagedDate\": \"2024-06-20T14:15:00.000Z\", ... }\n  ]\n}\n```\n\n</details>\n\n## Notes\n\n- AND logic (`and`) is more restrictive and typically returns fewer results\n- OR logic (`or`) is more permissive and typically returns more results\n- When filtering the same field with multiple values, OR logic creates a \"match any\" behavior\n- Complex queries combining AND and OR logic require multiple API requests with client-side filtering\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "and",
            "or"
          ],
          "default": "and",
          "example": "and"
        }
      },
      "CollectionMask": {
        "name": "collectionMask",
        "description": "A comma-separated list of field paths to include in the response. Only the specified fields will be returned for each object in the collection.\n\nThe mask uses dot notation for nested fields and supports array wildcard notation [*] for filtering array elements.\n\n## Behavior\n\n- **Root-level fields**: Specify the field name to include it (e.g., `label` includes only the label field)\n- **Multiple fields**: Separate with commas (e.g., `label,quantity,isFinished`)\n- **Nested objects**: Use dot notation (e.g., `item.name` includes only the name field from the nested item object)\n- **Entire nested objects**: Specify just the parent field name to include the entire nested object as-is (e.g., `item` includes the complete item object with all its fields)\n- **Array elements**: Use `[*]` wildcard to filter fields from all array elements (e.g., `items[*].name` keeps only the name field from each array element)\n\n## Examples using MetrcPackage\n\n<details>\n<summary>Click to expand</summary>\n\n### Example 1: Single root-level field\nMask: `label`\n\nReturns only the package label:\n```json\n{\n  \"label\": \"1A4000000000000000000001\"\n}\n```\n\n### Example 2: Multiple root-level fields\nMask: `label,quantity,unitOfMeasureAbbreviation`\n\nReturns only the specified fields:\n```json\n{\n  \"label\": \"1A4000000000000000000001\",\n  \"quantity\": 1130.7,\n  \"unitOfMeasureAbbreviation\": \"g\"\n}\n```\n\n### Example 3: Nested object field\nMask: `label,item.name,item.productCategoryName`\n\nReturns the label and only specific fields from the nested item object:\n```json\n{\n  \"label\": \"1A4000000000000000000001\",\n  \"item\": {\n    \"name\": \"Blue Dream Flower\",\n    \"productCategoryName\": \"Bud/Flower (Final Packaging)\"\n  }\n}\n```\n\n### Example 4: Entire nested object\nMask: `label,item`\n\nReturns the label and the complete item object with all its fields:\n```json\n{\n  \"label\": \"1A4000000000000000000001\",\n  \"item\": {\n    \"id\": 12345,\n    \"name\": \"Blue Dream Flower\",\n    \"productCategoryName\": \"Bud/Flower (Final Packaging)\",\n    \"strainName\": \"Blue Dream\",\n    ... all other item fields ...\n  }\n}\n```\n\n### Example 5: Array wildcard (for endpoints returning arrays within objects)\nMask: `packages[*].label,packages[*].quantity`\n\nReturns only label and quantity from each package in a packages array:\n```json\n{\n  \"packages\": [\n    {\n      \"label\": \"1A4000000000000000000001\",\n      \"quantity\": 1130.7\n    },\n    {\n      \"label\": \"1A4000000000000000020199\",\n      \"quantity\": 500.0\n    }\n  ]\n}\n```\n\n</details>\n\n## Notes\n\n- Fields not specified in the mask are completely removed from the response\n- The mask is applied after all other processing (pagination, sorting, filtering)\n- Invalid field paths are silently ignored\n- Whitespace around field names and commas is trimmed automatically\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "example": "label,item.name,item.productCategoryName"
        }
      },
      "CollectionPage": {
        "name": "page",
        "description": "Specifies which page of results to return. Used in conjunction with `pageSize` to control pagination.\n\n## Behavior\n\n- Pages are 1-indexed (the first page is `page=1`, not `page=0`)\n- If `page` exceeds the total number of available pages, an empty `data` array is returned\n- The `total` field in the response indicates the total number of items across all pages\n- Pagination is applied after filtering and sorting\n- Default value is `1` if not specified\n\n## Calculating Total Pages\n\nTo determine how many pages are available:\n```\ntotalPages = ceil(total / pageSize)\n```\n\nFor example, if `total=450` and `pageSize=100`:\n```\ntotalPages = ceil(450 / 100) = 5 pages\n```\n\n## Examples using MetrcPackage\n\n<details>\n<summary>Click to expand</summary>\n\n### Example 1: Get first page (default)\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001\n```\n\nEquivalent to:\n```\nGET /v2/packages?licenseNumber=LIC-00001&page=1&pageSize=100\n```\n\nReturns the first 100 packages:\n```json\n{\n  \"data\": [ ... 100 packages ... ],\n  \"page\": 1,\n  \"pageSize\": 100,\n  \"total\": 450\n}\n```\n\n### Example 2: Get second page\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&page=2&pageSize=100\n```\n\nReturns packages 101-200:\n```json\n{\n  \"data\": [ ... 100 packages ... ],\n  \"page\": 2,\n  \"pageSize\": 100,\n  \"total\": 450\n}\n```\n\n### Example 3: Get last page with smaller page size\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&page=5&pageSize=100\n```\n\nReturns packages 401-450 (only 50 items on last page):\n```json\n{\n  \"data\": [ ... 50 packages ... ],\n  \"page\": 5,\n  \"pageSize\": 100,\n  \"total\": 450\n}\n```\n\n### Example 4: Page beyond available data\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&page=10&pageSize=100\n```\n\nReturns empty array when page exceeds total pages:\n```json\n{\n  \"data\": [],\n  \"page\": 10,\n  \"pageSize\": 100,\n  \"total\": 450\n}\n```\n\n### Example 5: Combined with filters and sorting\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&filter=isFinished__eq:false&sort=packagedDate:desc&page=2&pageSize=50\n```\n\nReturns the second page of active packages sorted by date:\n```json\n{\n  \"data\": [ ... 50 packages matching filter, sorted ... ],\n  \"page\": 2,\n  \"pageSize\": 50,\n  \"total\": 127\n}\n```\n\n</details>\n\n## Notes\n\n- To retrieve all data, you must iterate through all pages until `data` is empty or `page > ceil(total/pageSize)`\n- The response always includes `page`, `pageSize`, and `total` fields to help with pagination logic\n- For large datasets, consider using filters to reduce the total number of results\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "default": 1,
          "example": 1
        }
      },
      "CollectionPageSize": {
        "name": "pageSize",
        "description": "Specifies the maximum number of objects to return per page. Used in conjunction with `page` to control pagination.\n\n## Behavior\n\n- Default value is `100` if not specified\n- Maximum allowed value is `500` for most endpoints. Some endpoints like supercollections have reduced maximums.\n- If the requested `pageSize` exceeds the maximum, it will be capped at the maximum allowed value\n- The actual number of items returned may be less than `pageSize` on the last page\n- Larger page sizes reduce the number of requests needed but increase response time and payload size\n\n## Choosing an Appropriate Page Size\n\n- **Small datasets (<100 items)**: Use default `pageSize=100` or larger\n- **Medium datasets (100-1000 items)**: Use `pageSize=200-500` to minimize requests\n- **Large datasets (>1000 items)**: Use maximum `pageSize=500` and implement pagination loop\n- **Real-time updates**: Use smaller page sizes (50-100) for faster responses\n\n## Examples using MetrcPackage\n\n<details>\n<summary>Click to expand</summary>\n\n### Example 1: Default page size\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001\n```\n\nReturns up to 100 packages (default):\n```json\n{\n  \"data\": [ ... up to 100 packages ... ],\n  \"page\": 1,\n  \"pageSize\": 100,\n  \"total\": 450\n}\n```\n\n### Example 2: Small page size\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&pageSize=25\n```\n\nReturns up to 25 packages:\n```json\n{\n  \"data\": [ ... up to 25 packages ... ],\n  \"page\": 1,\n  \"pageSize\": 25,\n  \"total\": 450\n}\n```\n\n### Example 3: Maximum page size\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&pageSize=500\n```\n\nReturns up to 500 packages:\n```json\n{\n  \"data\": [ ... up to 500 packages ... ],\n  \"page\": 1,\n  \"pageSize\": 500,\n  \"total\": 450\n}\n```\n\n### Example 4: Last page with partial results\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&page=5&pageSize=100\n```\n\nReturns only remaining packages (less than pageSize):\n```json\n{\n  \"data\": [ ... 50 packages ... ],\n  \"page\": 5,\n  \"pageSize\": 100,\n  \"total\": 450\n}\n```\n\n### Example 5: Loading all data with maximum page size\nRequest (Page 1):\n```\nGET /v2/packages?licenseNumber=LIC-00001&pageSize=500&page=1\n```\n\nRequest (Page 2):\n```\nGET /v2/packages?licenseNumber=LIC-00001&pageSize=500&page=2\n```\n\nThis efficiently loads 1000 total packages in just 2 requests.\n\n</details>\n\n## Notes\n\n- Requesting `pageSize` values above the maximum will not result in an error, but will be capped\n- The `total` field in the response helps determine how many pages are needed: `ceil(total / pageSize)`\n- Consider using `collectionMask` with larger page sizes to reduce response payload\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "default": 100,
          "example": 100
        }
      },
      "CollectionSort": {
        "name": "sort",
        "description": "Specifies the field and direction to sort the collection by. Only one sort field is supported per request.\n\n## Format\n\nThe sort parameter uses the format: `fieldName:direction`\n\n- **fieldName**: The name of the field to sort by (e.g., `label`, `quantity`, `createdDate`)\n- **direction**: Either `asc` for ascending or `desc` for descending\n\n## Behavior\n\n- Sorting is applied before pagination, so the sorted order is consistent across pages\n- Only root-level fields can be used for sorting (nested fields are not supported)\n- If an invalid field name is provided, the request may return an error or ignore the sort parameter\n- String fields are sorted alphabetically (case-insensitive)\n- Numeric fields are sorted numerically\n- Date fields are sorted chronologically\n\n## Examples using MetrcPackage\n\n<details>\n<summary>Click to expand</summary>\n\n### Example 1: Sort by label ascending\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&sort=label:asc\n```\n\nReturns packages sorted by label from A to Z:\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000020001\", ... },\n    { \"label\": \"1A4000000000000000020002\", ... },\n    { \"label\": \"1A4000000000000000020003\", ... }\n  ]\n}\n```\n\n### Example 2: Sort by quantity descending\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&sort=quantity:desc\n```\n\nReturns packages sorted by quantity from highest to lowest:\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000020198\", \"quantity\": 5000.0, ... },\n    { \"label\": \"1A4000000000000000020199\", \"quantity\": 2500.0, ... },\n    { \"label\": \"1A4000000000000000020200\", \"quantity\": 100.0, ... }\n  ]\n}\n```\n\n### Example 3: Sort by date field descending\nRequest:\n```\nGET /v2/packages?licenseNumber=LIC-00001&sort=packagedDate:desc\n```\n\nReturns packages sorted by packaged date, most recent first:\n```json\n{\n  \"data\": [\n    { \"label\": \"1A4000000000000000020200\", \"packagedDate\": \"2024-03-15\", ... },\n    { \"label\": \"1A4000000000000000020199\", \"packagedDate\": \"2024-03-10\", ... },\n    { \"label\": \"1A4000000000000000020198\", \"packagedDate\": \"2024-03-05\", ... }\n  ]\n}\n```\n\n</details>\n\n## Notes\n\n- The default sort order varies by endpoint and is not guaranteed if `sort` is not specified\n- Sorting by some fields is not supported\n- Only one sort parameter can be applied per request\n",
        "required": false,
        "in": "query",
        "schema": {
          "type": "string",
          "example": "label:asc"
        }
      },
      "ColumnHeaderOverrides": {
        "name": "columnHeaderOverrides",
        "description": "Replaces the column headers of a tabular report with names of your own.\nBy default a header is derived from its field name -- `unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`, `item.name` becomes `Item Name`. This parameter replaces any of them with a string you choose, without changing which columns are returned or what is in them.\n## The syntax\nA comma-separated list, matched **positionally** against the columns the report renders. An empty entry keeps that column's default name, so you only have to count commas up to the column you want to rename:\n```\nGET /v2/packages/active/report ?licenseNumber=LIC-00001 &contentType=csv &columns=label,item.name,quantity,unitOfMeasureAbbreviation &columnHeaderOverrides=,,,Unit\nLabel,Item Name,Quantity,Unit\n```\nTo rename the fourth of six columns and leave the rest alone, send `,,,Unit`. Trailing entries may be omitted entirely -- `columnHeaderOverrides=Tag` renames only the first column.\nPositions run across the report's own columns first and then any `metadata` columns, which is the order they appear in the header row.\n## Names are used exactly as sent\nNo title-casing, no trimming, no change of case. `qty` stays `qty`, `NET WEIGHT` stays `NET WEIGHT`, and a leading space is preserved -- so an override is safe to point a formula, a Power Query step or a partner's import template at.\nA value beginning with `=` is written as text, never as a spreadsheet formula.\n## Two rules worth knowing\n- **A header cannot contain a comma.** A comma always starts a new entry, and percent-encoding it does not help: `%2C` is decoded back to a comma before the list is split. There is no escape syntax.\n- **You may send fewer entries than there are columns, but not more.** Extra entries return 400 rather than being ignored, because a list longer than the report is a miscount and a silently truncated one renders a header row that looks right. Note that trailing commas count: `,,,Unit,,` is six entries.\n## Where it applies\nThe tabular formats -- `contentType=csv`, `xlsx` and `googleSheets` -- which are the ones with a header row. `json` returns records keyed by their field names and is unaffected; the parameter is accepted and ignored there, so it can be set once alongside a `contentType` that varies. It is still validated for `json`, so a miscount is reported before you switch formats.\nCannot be combined with `transform`, which names its own columns; sending both returns 400.\nThis parameter does not affect which report is loaded, so switching headers on a report you just requested is served from cache rather than reloaded from Metrc.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "example": ",,,Unit"
        }
      },
      "ContentDisposition": {
        "name": "contentDisposition",
        "description": "Controls whether the response is sent as a file download or rendered in place.\nDefaults to `attachment`, so opening a report URL in a browser saves a file rather than displaying it. This applies to every format that returns bytes -- `contentType=json`, `csv` and `xlsx` alike.\n## When this matters\nOnly for browsers. `curl`, `requests`, `fetch` and every other programmatic client ignore `Content-Disposition` entirely, so a script sees exactly the same bytes either way. Google Sheets `IMPORTDATA` is likewise unaffected.\nSet `contentDisposition=inline` when you want a browser to display the response -- reading a JSON report without downloading it, for example, or previewing a CSV in a browser tab. No `Content-Disposition` header is sent at all in that case.\n```\n# Saves active-packages-report_LIC-00001_2024-01-01_a1b2c3.json\nGET /v2/packages/active/report?licenseNumber=LIC-00001\n\n# Renders in the browser\nGET /v2/packages/active/report?licenseNumber=LIC-00001&contentDisposition=inline\n```\n## The filename\nDownloads are named for the report, the license, the date the report was generated and a short hash of the request:\n```\nactive-packages-report_LIC-00001_2024-01-01_a1b2c3.csv\n```\nA report spanning several licenses names the first and counts the rest (`LIC-00001-plus-3`). The hash is what keeps two variants of the same report -- different `columns`, different `filter` -- from overwriting each other in a downloads folder. A `transform` names its own output instead and is unaffected.\n## Ignored for googleSheets\n`contentType=googleSheets` answers with a redirect to a spreadsheet rather than with bytes, so there is nothing to download. The parameter is accepted and ignored, which means it can be set once alongside a `contentType` that varies.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "attachment",
            "inline"
          ],
          "default": "attachment",
          "example": "inline"
        }
      },
      "ContentType": {
        "name": "contentType",
        "description": "Specifies how the report should be formatted. One of `json`, `csv`,\n`xlsx` or `googleSheets`.\n\n*`json` and `csv` can also be set with the Content-Type header. `xlsx` and\n`googleSheets` are only settable with this query parameter.*\n\nAny of these formats can be delivered to an email address instead of returned in\nthe response -- see the `delivery` parameter.\n\n`googleSheets` is the one format whose inline response is not the report itself: it\nredirects to a spreadsheet. See `sheetVisibility` for who can open it.\n\n## json\n\nReturns a nested envelope: `generatedAt`, `filters`, `filterLogic`, `sort`,\n`licenseNumber`, and `data`. On a super report, `json` accepts as many `include`\nvalues as the size limit allows.\n\n## csv\n\nReturns a flat grid with `Content-Disposition: attachment`, so a browser downloads it\nrather than rendering it. Column headers are title-cased from the field names\n(`unitOfMeasureAbbreviation` becomes `Unit Of Measure Abbreviation`, `item.name`\nbecomes `Item Name`). A metadata preamble is prepended unless `prependCsvMetadata`\nis `false`.\n\nOn a super report, `csv` accepts **at most one** `include`.\n\n## xlsx\n\nReturns an `.xlsx` workbook as an attachment. Same rows, same title-cased headers and\nsame metadata preamble as `csv` -- the only difference is the container. Choose it\nover `csv` when you want a file that opens in Excel without an import step, or when\nyour values would otherwise be mangled by CSV type-guessing.\n\nOn a super report, `xlsx` accepts **at most one** `include`.\n\n## googleSheets\n\nWrites the report into a new Google Sheet. Unlike the other three formats, the\nresponse is not the report -- it is a way to reach the document.\n\n### Inline (the default)\n\nThe sheet is created and populated during the request, and the response is a `302`\nredirecting to it. The same link is in the body, for clients that do not follow\nredirects:\n\n```\nGET /v2/packages/active/report?licenseNumber=LIC-001&contentType=googleSheets\n\nHTTP/1.1 302 Found\nLocation: https://docs.google.com/spreadsheets/d/1AbCdEf.../edit\nContent-Type: application/json\n\n{\n  \"sheetUrl\": \"https://docs.google.com/spreadsheets/d/1AbCdEf.../edit\",\n  \"sheetId\": \"1AbCdEf...\"\n}\n```\n\nPaste that URL into a browser and you land on the finished sheet. By default\n**anyone holding the link can open and edit it** -- see `sheetVisibility` for how to\nrestrict it, and note that doing so requires an `email`.\n\n### With delivery=email\n\nReturns a delivery receipt immediately instead, and a worker builds the sheet:\n\n```json\n{\n  \"status\": \"processing\",\n  \"recipient\": \"you@example.com\",\n  \"contentType\": \"googleSheets\"\n}\n```\n\nThe receipt carries no URL because the sheet does not exist yet. Once it does, the\nlink is emailed to the recipient, and Google sends its own share notification\nalongside.\n\nContent matches what `csv` would return for the same query.\n\nOn a super report, `googleSheets` accepts **at most one** `include`.\n\nThree things to know before you use it:\n\n- **The default sheet is link-accessible to anyone.** An inline request has no\n  Google account to grant access to, so the link is the credential. Treat the URL the\n  way you would treat the report itself, and use `sheetVisibility=private` with an\n  `email` when you have a specific recipient in mind.\n- **A named `email` must be a Google account.** The sheet is granted to that address\n  directly; sharing with a non-Google address may be refused by Google Drive. If it is,\n  no sheet is left behind, and you are told why -- inline as an error response, or by\n  email when deferred. Use `contentType=xlsx` to receive a file instead.\n- **Every request creates a new sheet, and sheets are never deleted.** This format\n  suits one-off exports. For a recurring or scheduled pull, use `csv` -- a job polling\n  `googleSheets` on a schedule accumulates one abandoned sheet per run.\n\n### Why a large sheet is better asked for with delivery=email\n\nInline, the whole thing happens inside your request: the report is generated, then\nthe sheet is created, shared and written to Drive, all before the redirect is sent.\nA report near the row cap can exceed the request timeout partway through.\n`delivery=email` removes the 240-second request wait, because nothing is waiting on\nthe result. The report still has to finish building within about five minutes.\n\n## Why the tabular formats are limited to one include\n\n`csv`, `xlsx` and `googleSheets` are all the same shape: a two-dimensional grid of\nrows and columns, nothing else. One include folds into that grid by widening each row.\nA second include adds a data dimension the grid cannot represent -- there is no\nnon-lossy way to place two independent child collections on one row without a cross\njoin that multiplies the row count and misstates the data. JSON is nested, so it\ncarries as many includes as the size limit allows.\n\nThis is a property of the output format, not a policy choice.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "json",
            "csv",
            "xlsx",
            "googleSheets"
          ],
          "default": "json",
          "example": "json"
        }
      },
      "Delivery": {
        "name": "delivery",
        "description": "Where the report should be sent. `inline` (the default) returns it in\nthe response body. `email` delivers it to the address in the `email` parameter\ninstead.\n\n`delivery=email` always requires an `email`. The reverse holds for every format\nexcept `googleSheets`: an address without `delivery=email` is a 400, because the\nreport would come back inline and the address would be ignored.\n\n`contentType=googleSheets` is the exception. A sheet is an object that can be\ngranted to an account, so an `email` on an inline sheet request names who to share\nit with -- see `sheetVisibility` -- and the report still comes back over HTTP as a\n`302` to the sheet.\n\n## What email delivery changes\n\nThe request returns immediately with a delivery receipt, without waiting for the\nreport to be generated:\n\n```json\n{\n  \"status\": \"processing\",\n  \"recipient\": \"you@example.com\",\n  \"contentType\": \"xlsx\"\n}\n```\n\nThis removes the wait. An inline request gives up after 240 seconds and returns\n`504`, although the report keeps building and asking again shortly after is usually\nanswered from the cache. With `delivery=email` there is nothing waiting on\nthe result, so the report is delivered when it is ready. It still has to finish\nbuilding within about five minutes; one that needs longer fails however it is\nrequested.\n\nHow it arrives depends on `contentType`:\n\n- `json`, `csv`, `xlsx` -- attached to an email as a file.\n- `googleSheets` -- a new Google Sheet is shared with the address, and its link is\n  emailed. Google sends its own share notification too, so the recipient receives two\n  messages carrying the same link. By default that sheet is also openable by anyone\n  holding the link; set `sheetVisibility=private` to restrict it to the recipient.\n\n## Errors are emailed, not returned\n\nBecause the response is sent before the report is generated, nothing that happens\nafterwards can be reported as an HTTP status. Any failure -- `Report Request Too\nLarge`, a Metrc permission error, a report too large to attach -- is emailed to the\nrecipient instead, carrying the same title and explanation the inline request would\nhave returned in its response body.\n\nParameters are still validated before the receipt is sent, so an invalid\n`columns`, `rowLimit`, `include` or `email` is still an immediate 400.\n\n## Notes\n\n- **One recipient per request.** A comma-separated list is rejected.\n- **Rate limited separately** from report generation, and more tightly.\n- **On a Spreadsheet Sync link, every scheduled refresh sends an email.** Sync links\n  are polled on a schedule, so adding `delivery=email` to one produces a message per\n  refresh rather than a one-off export.\n- There is no status endpoint and no way to poll for completion. The report arrives,\n  or an explanation does.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "inline",
            "email"
          ],
          "default": "inline",
          "example": "email"
        }
      },
      "DeliveryId": {
        "name": "deliveryId",
        "in": "query",
        "required": true,
        "schema": {
          "type": "integer",
          "example": 1234567
        }
      },
      "Email": {
        "name": "email",
        "description": "The address the report is delivered to. Required when `delivery=email`, and rejected without it for every format except `googleSheets`, so that an address supplied by mistake never silently goes nowhere.\nOne address only; a comma- or semicolon-separated list is a 400.\n## With contentType=googleSheets\nThis must be a **Google account**: the sheet is granted to the address directly, and Google Drive may refuse to share with an address it does not recognize. If the share fails, the unshareable sheet is deleted rather than left behind, and you are told why -- as a 400-series response inline, or by email when deferred.\nIt is also the one case where the parameter is accepted *without* `delivery=email`. On an inline sheet request it names the account to share with; the report still comes back as a `302` to the sheet. It is required when `sheetVisibility=private`, since a sheet with no link grant and no named share is openable by nobody.\nFor the file formats any deliverable address works.\nThe address is not verified against your Metrc account, and the report is sent wherever you point it. Treat it the way you would treat any export destination.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "format": "email",
          "example": "you@example.com"
        }
      },
      "HubTransferInclude": {
        "name": "include",
        "description": "One or more hub supertransfer mixins.\n\n- packages\n- history\n\nThere is no `transporterDetails` include. Metrc embeds the driver legs in the\nhub response as `shipmentTransporterDetails`, so they are already present on\nevery record.\n\n## Cost\n\nEach include adds work for every record, so request only the includes you need.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts several.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=history&include=packages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "packages",
          "items": {
            "type": "string",
            "enum": [
              "packages",
              "history"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "LicenseNumber": {
        "name": "licenseNumber",
        "description": "The unique identifier for the license associated with this request.\n\n## Behavior\n\n- Only one license can be queried per request. Sending `licenseNumber` more than once returns `400`; reports and search accept several\n- The `licenseNumber` parameter must match an active license accessible to the authenticated user\n- Use the licenses endpoint to retrieve available license numbers\n\n## Examples\n\n<details>\n<summary>Click to expand</summary>\n\n### Example 1: View available licenses\nRetrieve all licenses available to the current user:\n```\nGET https://api.trackandtrace.tools/v2/licenses\n```\n\n### Example 2: Query with license number\nSpecify the target license with the required `licenseNumber` query parameter:\n```\nGET https://api.trackandtrace.tools/v2/items?licenseNumber=LIC-00001\n```\n\n</details>\n\n## Notes\n\n- The license number is required for all data-retrieval endpoints\n- Invalid or inaccessible license numbers will return an authorization error\n- License numbers are case-sensitive\n",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "example": "LIC-00001"
        }
      },
      "LicenseNumbers": {
        "name": "licenseNumber",
        "description": "The license or licenses this report covers.\n\nReports and search are the only endpoints that accept more than one. Every\nother endpoint takes exactly one, and returns `400` when `licenseNumber` is\nrepeated.\n\n## Syntax\n\nRepeat the parameter to report across several licenses:\n`licenseNumber=LIC-00001&licenseNumber=LIC-00002`. A comma-joined list is not\nsupported and returns `400`. At most 20 licenses may be requested at once, and\nrepeating the same license returns `400 Duplicate License`.\n\n## Row order\n\nRows appear in the order the parameters appear. Every row of the first license\nprecedes every row of the second, and so on. Ordering within a license is\nunchanged \u2014 `sort` applies inside each license, not across them.\n\n## Limits are totals, not per-license allowances\n\n- The row cap \u2014 50,000 for a report, 5,000 for a super report \u2014 applies to the\n  **sum** across every requested license. Two licenses holding 30,000 records\n  each are 60,000 records and return `Report Request Too Large`; the error\n  names each license's count so you can see which to filter.\n- `rowLimit` is likewise a total, filled in license order. With\n  `rowLimit=600` against a first license holding 400 records, you get all 400\n  of the first and the first 200 of the second; nothing beyond that is\n  requested from Metrc.\n- The size limit, which refuses a report too large to build, is one total\n  across all licenses.\n\n## Which license a row came from\n\nEvery record carries its own `licenseNumber` field, so add it to `columns`\nto label the rows:\n\n```\nGET https://api.trackandtrace.tools/v2/packages/active/report\n  ?licenseNumber=LIC-00001\n  &licenseNumber=LIC-00002\n  &columns=licenseNumber,label,quantity\n```\n\nOn the three transfer manifest reports the field is `transfer.licenseNumber`,\nbecause those rows are cross-joined from a transfer/delivery/package\nhierarchy.\n\nIt is not a default column, so a single-license report is unchanged.\n\n## Failures\n\nA report is all-or-nothing. If any requested license fails \u2014 most often\nbecause the authenticated user cannot access it \u2014 the whole request fails\nrather than returning a partial result that a spreadsheet has no way to\nnotice.\n\n## Notes\n\n- License numbers are case-sensitive\n- Use the licenses endpoint to retrieve available license numbers\n- Invalid or inaccessible license numbers will return an authorization error\n",
        "in": "query",
        "required": true,
        "schema": {
          "type": "array",
          "example": "LIC-00001",
          "minItems": 1,
          "maxItems": 20,
          "items": {
            "type": "string"
          }
        },
        "style": "form",
        "explode": true
      },
      "ManifestNumber": {
        "name": "manifestNumber",
        "description": "The unique identifier for the desired manifest.",
        "in": "query",
        "required": true,
        "schema": {
          "type": "integer",
          "example": 1234567
        }
      },
      "PlantAdditiveId": {
        "name": "plantAdditiveId",
        "in": "query",
        "required": true,
        "schema": {
          "type": "integer",
          "example": 4471
        },
        "description": "Plant additive ID, from `GET /v2/plants/additives`."
      },
      "PlantWasteId": {
        "name": "plantWasteId",
        "in": "query",
        "required": true,
        "schema": {
          "type": "integer",
          "example": 4471
        },
        "description": "Plant waste ID, from `GET /v2/plants/waste`."
      },
      "PrependCsvMetadata": {
        "name": "prependCsvMetadata",
        "description": "Controls if the report metadata preamble should be included in the output.\nWhen set to false, only the column headers and data will be returned.\nApplies to every tabular format -- `contentType=csv`, `xlsx` and `googleSheets` -- and produces the same eight rows in each. The parameter keeps its `Csv` name for backwards compatibility. JSON responses ignore it, carrying the same information in the response envelope instead.\n## The preamble\nWhen enabled, eight rows precede the column headers -- seven label/value pairs and one blank separator:\n```\nReport:,ACTIVE_PACKAGES_REPORT\nData model:,MetrcPackage\nGenerated at:,2024-01-01T00:00:00+00:00\nLicense number:,LIC-00001\nFilters:,quantity__gte:100\nFilter logic:,and\nSort:,label:asc\n\nLabel,Location Name,Item Name,Quantity,Unit Of Measure Abbreviation\n1A44...1234,Room A,Blue Dream,10,ea\n```\nSo the column headers land on **row 9** and the first data row on **row 10**.\nThe preamble is shown above as CSV, but `xlsx` and `googleSheets` place the same values in the same cells -- column A holds the labels, column B the values.\n## Spreadsheet use\nSet this to `false` when the output feeds a formula that expects headers on row 1 -- `IMPORTDATA` in Google Sheets, or a Power Query import in Excel. Leave it enabled when a person will read the file and needs to know which license, filters and sort produced it.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "true",
            "false"
          ],
          "default": "true",
          "example": "true"
        }
      },
      "ReportTransform": {
        "name": "transform",
        "description": "Reshapes the report into a purpose-built spreadsheet instead of the endpoint's ordinary columns.\n\nA transform loads exactly the same data the report already loads -- same Metrc collection, same filters, same cost -- and changes only how it is presented. It is excluded from the report cache key, so asking for a transform right after asking for the plain report reuses the same load rather than repeating it.\n\nCurrently one transform is available: `scanSheet`.\n\n## scanSheet\n\nA reconciliation aid for receiving or shipping a manifest. Each row is one package. The `Package Tag` column holds the tag Metrc says is in the shipment; the `Scanned Tags` column next to it is left **empty** for a warehouse worker to fill in with a barcode scanner.\n\nConditional formatting colours the two columns live as tags are scanned:\n\n| Colour | Where | Meaning |\n| --- | --- | --- |\n| Red | Package Tag | Not scanned yet |\n| Green | Package Tag | Scanned exactly once -- matched |\n| Yellow | Package Tag | Scanned more than once |\n| Yellow | Scanned Tags | The same tag was entered twice |\n| Orange | Scanned Tags | Scanned a tag that is not on any manifest in this sheet |\n\nNothing is computed server-side. The colouring is `COUNTIF` formulas evaluated by the spreadsheet itself, so it updates as the worker types.\n\n### Columns\n\n`License`, `Transfer Type`, `Manifest Number`, `Origin`, `Destination`, `Package Contents`, `Package Tag`, `Scanned Tags`.\n\n`Transfer Type` is constant within a sheet -- `INCOMING`, `OUTGOING`, `REJECTED` or `HUB`, depending on the endpoint. To reconcile more than one direction, generate one sheet per direction.\n\n### Example\n\nA scan sheet for two specific inbound manifests:\n\n```\nGET /v2/transfers/incoming/manifest/report ?licenseNumber=LIC-001 &transform=scanSheet &contentType=googleSheets &filter=manifestNumber__eq:0000123456 &filter=manifestNumber__eq:0000123457 &filterLogic=or\n```\n\nRepeat `filter` once per manifest and set `filterLogic=or`, otherwise the two conditions are ANDed together and no transfer matches both.\n\n### Restrictions\n\n- **Spreadsheet formats only.** `contentType` must be `xlsx` or `googleSheets`. `json` and `csv` return 400: they cannot carry cell formatting, so the sheet would look correct and do nothing.\n- **`columns` cannot be combined with it.** The transform defines its own columns, and its formulas are anchored to their positions. Sending both returns 400 rather than silently ignoring your column list.\n- **`metadata` cannot be combined with it.** Metadata columns are appended to the right of a report's own, which is where the transform's last column sits \u2014 for a scan sheet, the `Scanned Tags` column its formatting is anchored to.\n- **`columnHeaderOverrides` cannot be combined with it.** A transform names its own columns as well as choosing them, and those names are what the sheet is read and trained against. Sending both returns 400.\n- **`prependCsvMetadata=true` cannot be combined with it.** The metadata preamble would move the header off the first row and break every formula anchor. The preamble is omitted automatically; only an explicit `true` is an error.\n- **Capped at 10,000 rows.** Rows are packages, not transfers. This limit is applied after the data is loaded, so it does not reduce the Metrc cost of the request -- it exists because a scan sheet that large is a forgotten filter rather than a real request. Filter by manifest number.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "scanSheet"
          ],
          "example": "scanSheet"
        }
      },
      "RowLimit": {
        "name": "rowLimit",
        "description": "Limits the number of records returned by this report.\n\nWhen omitted, the report returns every matching record. The minimum is 1, and values\nabove the endpoint row cap are clamped to it rather than rejected, so an over-large\nvalue behaves exactly like omitting the parameter.\n\n## Row caps\n\n- **Reports** (`/report`): 50,000 records\n- **Super reports** (`/super/report`): 5,000 records\n\nA collection larger than the cap is **rejected**, not truncated \u2014 a report that\nquietly returned a partial dataset would look complete to a spreadsheet. Set\n`rowLimit` to ask for a prefix of it deliberately.\n\nSuper reports carry the lower cap because each requested `include`\nadds work for every record. A report is refused before it loads when it would be\ntoo large to build, so a super report with one include tops out near 5,000\nrecords, and fewer with more includes.\n\n## Building and testing a request\n\nSet a small `rowLimit` while you are still working out the filters and columns.\nA limited report returns the same columns, formatting and envelope as the full one,\nso `rowLimit=10` is enough to confirm a filter matches what you expect or that a\n`columns` list is spelled correctly -- without loading the whole collection for\neach attempt. Remove it for the real run.\n\nNote that `rowLimit` is part of the report cache key, since it changes which records\nare fetched. `contentType`, `columns` and `prependCsvMetadata` are not: they are\napplied to already-loaded data, so re-requesting with different columns or a\ndifferent format is served from cache.\n\n## Rescuing an over-large request\n\n`rowLimit` is the fastest way to bring a request that returns `Report Request Too\nLarge` inside the limits. It is applied while loading rather than to a finished\nreport: only the pages needed to cover the limit are fetched, and both the row cap\nand the size limit are checked against the limited count. Tightening filters or\ndropping an `include` has the same effect.\n\nWhich records are returned depends on the sort order, so pair this with the sort\nparameter for a predictable result.\n\nThe limit is applied to top-level records. Reports that expand a single record into\nmultiple output rows may therefore return more rows than this limit.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "example": "100"
        }
      },
      "RowMode": {
        "name": "rowMode",
        "description": "Controls whether a super report's included data is joined into rows.\n\nApplies only to super reports (`/super/report`) that request an `include`. Sending\nit to any other report returns 400.\n\n## The two modes\n\n- **`expanded`** (default) \u2014 one row per included record. Each record repeats once\n  per attached child, and the child's own fields are selectable by dot notation, as\n  `labResults.testTypeName`.\n- **`collapsed`** \u2014 one row per record. The `include` is still loaded and its\n  derived `metadata` is still attached, but no join runs, so the child's fields are\n  not selectable and asking for one returns 400.\n\n## When to collapse\n\nUse `collapsed` when the columns you want are the record's own or the derived\n`metadata.` ones, and you do not need the raw child rows. That is the common case:\na package's `labResults` array holds a row per analyte per test \u2014 often 50 to 100 \u2014\nwhile `metadata.indexedLabResults` has already reduced them to one value per test\nname. Expanded, a report selecting only `metadata.` columns returns that many\nidentical rows per package. Collapsed, it returns one.\n\n## Two consequences worth knowing\n\n**`rowLimit` becomes exact.** Collapsed output is one row per record, so a\n`rowLimit` of 1,000 returns at most 1,000 rows. Expanded output can return many\nmore, because the limit counts records and the join runs afterwards.\n\n**Records with no children are kept.** An expanded report omits a record whose\ninclude array came back empty \u2014 a package with no lab results is simply absent.\nCollapsed output never iterates that array, so every record appears.\n\n## Cost\n\nNeither mode changes what is loaded from Metrc. Both are derived from the same\ncached result, so `rowMode` is not part of the report cache key and switching\nbetween the two is free.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "expanded",
            "collapsed"
          ],
          "default": "expanded",
          "example": "collapsed"
        }
      },
      "SecretKey": {
        "name": "secretKey",
        "description": "Your secret key, if you wish to authenticate via query params. Secret keys can be manually generated [here](/v2/pages/secret-key).\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "example": "2616ec56-fa2a-4c5b-86c0-acacf23c9ef7"
        }
      },
      "SheetVisibility": {
        "name": "sheetVisibility",
        "description": "Who can open the Google Sheet a report creates. Only meaningful with\n`contentType=googleSheets`; supplying it with any other format is a 400, because\nthose formats produce no sheet and the value would be silently ignored.\n\n## public (the default)\n\nThe sheet is created with an anyone-with-the-link grant, so **anyone holding the\nURL can read and edit the report**. The link is unguessable, but it is the only\nthing protecting the data -- treat it as a credential, and do not paste it\nanywhere you would not paste the report itself.\n\nThis is the default because an inline request has no Google account to grant\naccess to. The response is a redirect, and a redirect to a document the arriving\nbrowser cannot open is not an answer.\n\n## private\n\nNo link grant. The sheet is reachable only through a named share, so `private`\n**requires an `email` parameter** naming the Google account to share it with.\nWithout one the sheet would be openable by nobody and the request is rejected with\na 400.\n\n```\n# Anyone with the link can open this\nGET /v2/packages/active/report?licenseNumber=LIC-001&contentType=googleSheets\n\n# Only alice@example.com can open this\nGET /v2/packages/active/report?licenseNumber=LIC-001&contentType=googleSheets\n    &sheetVisibility=private&email=alice@example.com\n```\n\nBoth forms still return a `302` to the sheet. With `sheetVisibility=private` the\ncaller only lands on it if their browser is signed into the account named in\n`email`; anyone else gets Google's request-access page.\n\n## With delivery=email\n\nThe parameter means the same thing and has the same default. A\n`delivery=email` request that does not set `sheetVisibility` produces a sheet\nanyone with the link can open, **and the link is emailed**. Set\n`sheetVisibility=private` to restrict it to the recipient.\n\n## Notes\n\n- `public` grants **write** access, not just read. Recipients can edit the sheet;\n  edits do not propagate anywhere, since each request creates a new document.\n- Visibility and `email` are independent. A `public` sheet with an `email` gets\n  both grants: the link works for anyone, and the named account also has it in their\n  Drive.\n- Excluded from the report cache key, so changing it does not re-run the report.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "string",
          "enum": [
            "public",
            "private"
          ],
          "default": "public",
          "example": "private"
        }
      },
      "SkipDynamicValidationChecks": {
        "name": "skipDynamicValidationChecks",
        "in": "query",
        "required": false,
        "description": "Allows selectively skipping specific dynamic validation checks when `applyDynamicValidation=true`.\nEach value should be a valid dynamic check key. Unrecognized keys are silently ignored.\n\nUse this parameter multiple times to skip multiple checks:\n  - `?skipDynamicValidationChecks=CREATE_PACKAGES_TAG_IDS_EXIST&skipDynamicValidationChecks=CREATE_PACKAGES_LOCATION_IDS_EXIST`\n\nAvailable check keys per endpoint:\n\n**Create Packages from Packages:**\n  - `CREATE_PACKAGES_PACKAGE_IDS_EXIST` \u2014 Skip ingredient source package ID validation\n  - `CREATE_PACKAGES_UNIT_OF_MEASURE_IDS_EXIST` \u2014 Skip unit of measure ID validation\n  - `CREATE_PACKAGES_ITEM_IDS_EXIST` \u2014 Skip item ID validation\n  - `CREATE_PACKAGES_TAG_IDS_EXIST` \u2014 Skip tag ID validation\n  - `CREATE_PACKAGES_LOCATION_IDS_EXIST` \u2014 Skip location ID validation\n  - `CREATE_PACKAGES_REMEDIATION_SOURCES_FAILED_TESTING`: Skip the check that\n    a package created with a `remediationMethodId` draws on at least one\n    source in a failed lab testing state, which Metrc requires\n\n**Change Package Items:**\n  - `CHANGE_PACKAGE_ITEMS_PACKAGES_NOT_ADJUSTED`: Skip the check that no\n    package has been adjusted. Metrc refuses to change an adjusted package's\n    item. Reads each package's history.\n\n**Change Package Required Lab Test Batches:**\n  - `CHANGE_PACKAGE_REQUIRED_LABTEST_BATCHES_PACKAGES_ARE_SAMPLES`: Skip the\n    check that each package is a sample package, the only kind Metrc lets\n    you change\n\n**Create Transfer Templates:**\n  - `PACKAGE_IDS_EXIST` \u2014 Skip the check that each package is eligible for a transfer\n  - `TRANSFER_TYPE_IDS_EXIST` \u2014 Skip transfer type ID validation\n  - `TRANSFER_LAYOVER_LEGS_COMPLETE` \u2014 Skip the layover consistency check (check-in/check-out times and a driverLayoverLeg per driver)\n\n**Discontinue Item:**\n  - `DISCONTINUE_ITEM_ID_EXISTS` \u2014 Skip item ID validation against active items\n\n**Discontinue Strain:**\n  - `DISCONTINUE_STRAIN_ID_EXISTS` \u2014 Skip strain ID validation against active strains\n\n**Void Transfer:**\n  - `VOID_TRANSFER_ID_EXISTS` \u2014 Skip transfer ID validation against outgoing active transfers\n\n**Void Sales Receipt:**\n  - `VOID_SALES_RECEIPT_ID_EXISTS` \u2014 Skip sales receipt ID validation against active sales\n\n**Unfinalize Sales:**\n  - `UNFINALIZE_SALES_IDS_EXIST` \u2014 Skip sales receipt ID validation against inactive sales\n\n**Unfinish Packages:**\n  - `UNFINISH_PACKAGES_IDS_EXIST` \u2014 Skip package ID validation against inactive packages\n\n**Adjust Packages:**\n  - `ADJUST_PACKAGES_PACKAGE_IDS_EXIST` \u2014 Skip package ID validation against active packages\n  - `ADJUST_PACKAGES_UOM_IDS_EXIST` \u2014 Skip unit of measure ID validation\n  - `ADJUST_PACKAGES_REASON_IDS_EXIST` \u2014 Skip adjustment reason ID validation\n\n**Create Testing Packages:**\n  - `CREATE_PACKAGES_PACKAGE_IDS_EXIST`, `CREATE_PACKAGES_UNIT_OF_MEASURE_IDS_EXIST`,\n    `CREATE_PACKAGES_ITEM_IDS_EXIST`, `CREATE_PACKAGES_TAG_IDS_EXIST` and\n    `CREATE_PACKAGES_LOCATION_IDS_EXIST`, as for Create Packages from Packages\n\n**Create Transfers:**\n  - `PACKAGE_IDS_EXIST` \u2014 Skip the check that each package is eligible for a transfer\n  - `TRANSFER_TYPE_IDS_EXIST` \u2014 Skip transfer type ID validation\n  - `TRANSFER_LAYOVER_LEGS_COMPLETE` \u2014 Skip the layover consistency check (check-in/check-out times and a driverLayoverLeg per driver)\n\n**Create Items:**\n  - `CREATE_ITEMS_PRODUCT_CATEGORY_IDS_EXIST` \u2014 Skip product category ID validation\n  - `CREATE_ITEMS_STRAIN_IDS_EXIST` \u2014 Skip strain ID validation\n  - `CREATE_ITEMS_UOM_IDS_EXIST` \u2014 Skip unit of measure ID validation\n\n**Update Transfers:**\n  - `UPDATE_TRANSFER_ID_EXISTS` \u2014 Skip transfer ID validation against outgoing active transfers\n  - `TRANSFER_TYPE_IDS_EXIST` \u2014 Skip transfer type ID validation\n  - `TRANSFER_LAYOVER_LEGS_COMPLETE` \u2014 Skip the layover consistency check (check-in/check-out times and a driverLayoverLeg per driver)\n\n**Update Transfer Templates:**\n  - `UPDATE_TRANSFER_TEMPLATES_IDS_EXIST` \u2014 Skip template ID validation\n  - `PACKAGE_IDS_EXIST` \u2014 Skip the check that each package is eligible for a transfer\n  - `TRANSFER_TYPE_IDS_EXIST` \u2014 Skip transfer type ID validation\n  - `TRANSFER_LAYOVER_LEGS_COMPLETE` \u2014 Skip the layover consistency check (check-in/check-out times and a driverLayoverLeg per driver)\n\n**Archive Transfer Template:**\n  - `ARCHIVE_TRANSFER_TEMPLATE_ID_EXISTS` \u2014 Skip template ID validation\n\n**Create Strains:**\n  - `CREATE_STRAINS_PERCENTAGES_VALID` \u2014 Skip indica/sativa percentage sum validation\n\n**Add Package Notes:**\n  - `ADD_PACKAGE_NOTES_PACKAGE_IDS_EXIST` \u2014 Skip package ID validation against active packages\n\n**Create Plant Harvest:**\n  - `HARVEST_PLANTS_PLANT_IDS_IN_FLOWERING` \u2014 Skip plant ID validation against flowering plants\n  - `HARVEST_PLANTS_DRYING_LOCATION_IDS_EXIST` \u2014 Skip drying location ID validation\n\n**Create Plant Manicure:**\n  - `MANICURE_PLANTS_PLANT_IDS_IN_MANICURABLE_PHASE` \u2014 Skip plant ID validation\n    against the growth phases this state allows manicuring. Harvesting is\n    flowering-only everywhere, but manicuring also accepts Vegetative plants\n    outside California, so this is a different check from the harvest one\n  - `HARVEST_PLANTS_DRYING_LOCATION_IDS_EXIST` \u2014 Skip drying location ID validation\n\n**Finish Harvests, Unfinish Harvests, Rename Harvests, Change Harvest\nLocations, Report Harvest Waste, Create Packages from Harvests, Discontinue\nHarvest Waste, Create Harvest Schedules, Void Harvest Schedule:**\n  - No dynamic checks are defined for these endpoints, so this parameter has\n    no effect on them.\n\nIf `applyDynamicValidation` is not set to `true`, this parameter has no effect.\n",
        "schema": {
          "type": "array",
          "example": "CREATE_PACKAGES_TAG_IDS_EXIST",
          "items": {
            "type": "string"
          }
        },
        "style": "form",
        "explode": true
      },
      "StrictPagination": {
        "name": "strictPagination",
        "description": "Toggles strict pagination. Defaults to `false` (disabled)\n\n  - If enabled, requesting an out of bounds page will throw a 400. \n  - If disabled, requesting an out of bounds page will return a 200 and an empty page.",
        "in": "query",
        "required": false,
        "schema": {
          "type": "boolean",
          "default": false,
          "example": true
        }
      },
      "Submit": {
        "name": "submit",
        "in": "query",
        "required": false,
        "description": "Controls whether this request should be forwarded to Metrc.\n- **If present and set to 'true'**: The request will be subjected to static validation and forwarded to Metrc if validation passes.\n- **If omitted or set to any value other than 'true'**: The request will only be subjected to static validation.\nExamples:\n  - \"true\": Forward the request to Metrc\n  - \"false\": Execute a dry run\n",
        "schema": {
          "type": "string",
          "example": "true"
        }
      },
      "SuperPlantAdditiveInclude": {
        "name": "include",
        "description": "One or more super plant additive mixins. Each mixin will attach the raw\ndata from Metrc to the plant additive object.\n\n- plants\n- activeIngredients\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=plants&include=activeIngredients`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "plants",
          "items": {
            "type": "string",
            "enum": [
              "plants",
              "activeIngredients"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "SuperPlantWasteInclude": {
        "name": "include",
        "description": "One or more super plant waste mixins. Each mixin will attach the raw\ndata from Metrc to the plant waste object.\n\n- plants\n- packages\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=plants&include=packages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "plants",
          "items": {
            "type": "string",
            "enum": [
              "plants",
              "packages"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "SuperProcessingJobInclude": {
        "name": "include",
        "description": "One or more superprocessingjob mixins. Each mixin will attach the raw\ndata from Metrc to the processing job object.\n\n- createdPackages\n- sourcePackages\n- history\n\n`sourcePackages` is the supported way to read the packages a job consumed. The\njob record also carries a `packages` array inline, but Metrc returns that one\nwith `processingJobId: 0` on every entry, so it is not a reliable join key.\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=history&include=sourcePackages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "sourcePackages",
          "items": {
            "type": "string",
            "enum": [
              "createdPackages",
              "sourcePackages",
              "history"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "SuperharvestInclude": {
        "name": "include",
        "description": "One or more superharvest mixins. Each mixin will attach the raw\ndata from Metrc to the harvest object.\n\n- history\n- plants\n- packages\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=history&include=packages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "history",
          "items": {
            "type": "string",
            "enum": [
              "history",
              "plants",
              "packages"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "SuperitemInclude": {
        "name": "include",
        "description": "One or more superitem mixins. Each mixin will include the raw\ndata from Metrc, but also will populate the extracted metadata.\n\n- ingredients  \n  Extracted metadata: none\n\n- notes  \n  Extracted metadata: none\n\n- history  \n  Extracted metadata: none\n\n- images\n  Extracted metadata:\n    - itemImages\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=history&include=packages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "history,notes",
          "items": {
            "type": "string",
            "enum": [
              "notes",
              "history",
              "ingredients",
              "images"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "SuperpackageInclude": {
        "name": "include",
        "description": "One or more superpackage mixins. Each mixin will include the raw\ndata from Metrc, but also will populate the extracted metadata.\n\n- labResults  \n  Extracted metadata:\n    - extractedLabResults\n    - testSamplePackageLabels\n    - labResultPdfs\n\n- labResultBatches  \n  Extracted metadata:\n    - extractedLabResults\n    - testSamplePackageLabels\n    - labResultPdfs\n\n- coaResults  \n  Results read from the packages' COA PDFs. Every COA on the page must already\n  be extracted; schedule them with POST /v2/tag-lists/{tagListId}/coa-extraction.\n  If any is not, the response is `409 COA_EXTRACTION_REQUIRED` and nothing is returned.\n  Extracted metadata:\n    - indexedCoaResults\n    - coaDocuments\n\n- sourceHarvests  \n  Extracted metadata:\n    - harvestDates\n\n- history  \n  Extracted metadata:\n    - initialQuantity\n    - initialQuantityUnitOfMeasure\n    - quantityLedger\n    - manifestNumber\n    - destinationFacilityLicenseNumber\n    - destinationFacilityName\n    - transferType\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=history&include=packages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "sourceHarvests",
          "items": {
            "type": "string",
            "enum": [
              "labResults",
              "labResultBatches",
              "sourceHarvests",
              "history",
              "coaResults"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "SuperplantInclude": {
        "name": "include",
        "description": "One or more superplant mixins. Each mixin will attach the raw\ndata from Metrc to the plant object.\n\n- history\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=history&include=packages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "history",
          "items": {
            "type": "string",
            "enum": [
              "history"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "SuperplantbatchInclude": {
        "name": "include",
        "description": "One or more superplantbatch mixins. Each mixin will attach the raw\ndata from Metrc to the plant batch object.\n\n- history\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=history&include=packages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "history",
          "items": {
            "type": "string",
            "enum": [
              "history"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "SupersalesInclude": {
        "name": "include",
        "description": "One or more supersales mixins. Each mixin will attach the raw\ndata from Metrc to the sales receipt object.\n\n- transactions\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=history&include=packages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "transactions",
          "items": {
            "type": "string",
            "enum": [
              "transactions"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "SupertransferInclude": {
        "name": "include",
        "description": "One or more supertransfer mixins.\n\n- packages\n- transporters\n\n## Cost\n\nOn a super report, each include adds work for every record, so a super report with\none include tops out near 5,000 records, and fewer with more includes. A request\nthat would be too large to build returns `Report Request Too Large` before any data\nis loaded. Reduce the record count with filters or `rowLimit`, or request fewer\nincludes.\n\nWith `contentType=csv` at most one include is accepted: a flat grid cannot represent\ntwo independent child collections. `json` accepts as many as the size limit allows.\n\n## Syntax\n\nRepeat the parameter to request several includes: `include=history&include=packages`.\nA comma-joined list is not supported. Any value outside the list above returns\n`400 Invalid Include`, naming the values this endpoint accepts.\n",
        "in": "query",
        "required": false,
        "schema": {
          "type": "array",
          "example": "packages",
          "items": {
            "type": "string",
            "enum": [
              "packages",
              "transporters"
            ]
          }
        },
        "style": "form",
        "explode": true
      },
      "TagListId": {
        "name": "tag_list_id",
        "in": "path",
        "required": true,
        "description": "The tag list's `id`.",
        "schema": {
          "type": "string",
          "format": "uuid",
          "example": "3f6c1e2a-9b4d-4f7e-8a21-5c0d7e9b1234"
        }
      },
      "TemplateId": {
        "name": "templateId",
        "in": "query",
        "required": true,
        "schema": {
          "type": "integer",
          "example": 21
        },
        "description": "The ID of the data import template"
      }
    }
  },
  "openapi": "3.0.2",
  "servers": [
    {
      "url": "https://api.trackandtrace.tools"
    }
  ],
  "security": [
    {
      "BearerAuth": []
    },
    {
      "SecretKeyHeader": []
    },
    {
      "SecretKeyQuery": []
    }
  ]
}