Create a test sample
Changed onPull a quantity from an existing Metrc package into a new test sample package, ready to be sent to a testing lab.
Creates one already-completed assembly with a single input (the quantity drawn from the source package) and a single test sample output — the assembly renders with creation_source: LAB_TESTING and its output with is_test_sample: true. The drawn quantity is consumed from the source package's inventory immediately, and the sample package is produced into inventory at location_id. On success the sample is queued for creation in Metrc as a testing package and synced asynchronously — the Metrc package identifiers are not present in the immediate response, and the source and sample packages are briefly flagged as syncing. Poll GET /public/v1/assemblies/{id} to observe the synced result.
Metrc licenses only, and the license's Metrc facility must be allowed to create test sample packages. The whole operation is atomic: if anything is rejected, nothing is changed.
Required permission: assemblies_permissions_create, and assembly visibility other than "Restrict access" on your teams (admins are always allowed).
Request
- Base URLhttps://app.distru.com
- AuthHTTP bearer
Request body
Response
The created assembly
Changes
- info
added the required property
//to the response with the status - info
added the required property
///////to the response with the status - info
added the required property
///////to the response with the status - info
added the required property
/////to the response with the status - info
added the required property
/////to the response with the status
- info
- info
endpoint added
- info