Finish or unfinish packages
distru-finish-packagesWriteMetrcFinishes empty Metrc packages in Metrc and Distru, or unfinishes them, all-or-nothing.
Inputs
Every tool also takes the common inputs.
| Field | Type | Required | Description |
|---|---|---|---|
| action | enumFINISHUNFINISH | Yes | UNFINISH reopens finished packages in Metrc and Distru, to undo a finish done by mistake. |
| ids | string[] | Yes | FINISH: packages with quantity 0. Resolve via distru-search-packages. |
Output
Presence on a nested field assumes its parent exists.
| Field | Type | Presence |
|---|---|---|
| packages | object[] | Always |
| packages[]. | string | Always |
| packages[]. | string | Always |
| packages[]. | enumACTIVEASSEMBLINGDESTROYEDDISCONTINUEDFINISHEDON_HOLDRETURNINGSELLINGSOLDTRANSFERRED | Always |
| packages[]. | enumACTIVEDISCONTINUEDFINISHEDONHOLDTRANSFERRED | Can be null |
| packages[]. | boolean | Always |
What the AI reads
Finishes empty Metrc packages in Metrc and Distru, or unfinishes them, all-or-nothing. Finishing is how a used-up package is closed out in Metrc. FINISH is refused when a package's quantity isn't 0, it is already finished, on hold, discontinued, inactive, syncing or transferred, its Distru and Metrc quantities don't match, or you lack Metrc finish permission on its license; the error names each refused package with its reason. UNFINISH is refused for a package that isn't finished, or is on hold, discontinued, inactive, syncing or transferred. Not for BioTrack. The change is sent to Metrc in the background, so syncing is true until it lands. To hide a package in Distru without touching Metrc, use distru-bulk-update-packages with isActive false.