Search Metrc manifests
distru-search-metrc-manifestsReadSearches Metrc transfer manifests across the company's Metrc licenses, as Distru last synced them from Metrc.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| limit | integer | No | Default: 10 |
| cursor | string | No | nextCursor of the previous call; keep the other arguments unchanged. |
| search | string | No | Substring of manifest number. |
| searchLicenseNumber | string | No | Case-insensitive substring of shipper or any recipient license number. For the company license a manifest belongs to, use licenseIds. |
| direction | enumINCOMINGOUTGOING | No | INCOMING = shipped to the license the manifest belongs to; OUTGOING = shipped from it. |
| importStatus | enumIMPORTABLEUNIMPORTEDIMPORTEDIGNORED | No | IMPORTABLE = not imported or ignored, and importable now per its package states; UNIMPORTED = not imported or ignored, importable or not. |
| licenseIds | string[] | No | Resolve via distru-search-licenses. |
| packageLabel | string | No | Exact 24-char Metrc tag of a package on the manifest. |
| received | boolean | No | false = not received yet, e.g. open incoming manifests. A voided manifest is never received. |
| voided | boolean | No | Pass false to leave out manifests the shipper canceled in Metrc. |
| sortBy | object | No | Default: most recently modified in Metrc first. |
| sortBy. | enumASCDESC | Yes | |
| sortBy. | enumINSERTED_ATUPDATED_ATMANIFEST_NUMBER | Yes | INSERTED_AT = created in Metrc; UPDATED_AT = last modified in Metrc; MANIFEST_NUMBER sorts like INSERTED_AT. |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| hasMore | boolean | Always |
| nextCursor | string | Can be absent |
| totalCount | integer | Can be absent |
| items | object[] | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Can be null |
| items[]. | string | Can be null |
| items[]. | object[] | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Can be null |
| items[]. | number | Always |
| items[]. | enumIGNOREDIMPORTABLEIMPORTEDUNIMPORTED | Always |
| items[]. | boolean | Always |
| items[]. | string | Can be null |
| items[]. | object | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object | Can be null |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | object | Can be null |
| items[]. | string | Always |
| items[]. | string | Null or absent |
| items[]. | object | Can be null |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Always |
| items[]. | string | Can be null |
| items[]. | boolean | Can be null |
| items[]. | string | Always |
| items[]. | enumINCOMINGOUTGOING | Always |
What the AI reads
Searches Metrc transfer manifests across the company's Metrc licenses, as Distru last synced them from Metrc. One row per manifest, without its deliveries or packages — use distru-get-metrc-manifest for those. Not for Distru stock transfers. recipients lists one entry per license an outgoing manifest delivers to; an incoming manifest's recipient is the company's own license. Pair salesOrder.customer with recipients to map customers to the Metrc licenses they were shipped to. fetchedDatetime is when Distru fetched this version from Metrc, not a Metrc time. importStatus is IMPORTED (as the salesOrder of an outgoing manifest, the purchaseOrder of an incoming one, or a stock transfer), IGNORED or UNIMPORTED, never IMPORTABLE; isImportable says whether Metrc's package states allow importing it. An outgoing manifest's receivedDatetime is when its last delivery was received. voided is true when the shipper canceled the manifest in Metrc, which is not a rejection by the recipient; a voided manifest is never received; null on manifests last synced before Metrc reported it. An internal transfer between two of the company's licenses appears as two manifests with the same manifestNumber, one per direction.