Split a package
Split a single Metrc source package into multiple output packages.
Creates one assembly containing every input and output. On success each output package is queued for creation in Metrc and synced asynchronously — the Metrc package identifiers are not present in the immediate response, and the source and output packages are briefly flagged as syncing.
Metrc licenses only. Up to 300 outputs per request. The whole split is applied atomically: if any output is rejected, none are created.
Required permission: assemblies_permissions_create, and assembly visibility other than
"Restrict access" on your teams (admins are always allowed).
BearerAuthorizationBearer <token>API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.
The source package and outputs to create
application/json- body
A Metrc source package and the output packages to split it into
outputs*array<>The output packages to create, between 1 and 300
source_package_id*stringThe package to split. Must be package-tracked and in a Metrc license. An ID that doesn't exist for your company returns 404, and one your team restrictions hide returns 403.
The created assembly
*/*- response
A single assembly
data?A production job that turns input inventory (ingredients/components) into one or more finished output products — for example packaging bulk flower into units or producing pre-rolls.
curl -X POST 'https://app.distru.com/public/v1/assemblies/split_package' \ -H 'Content-Type: application/json' \ -d '{ "outputs": [ { "batch_number": "OUT-1", "bin_ids": [ "0341efae-b745-41c8-b019-2f116ad36bfa" ], "compliance_label": "1A4010200001234000000014", "costs": [ { "cost_type_id": "00000000-0000-0000-0000-00000000001e", "quantity": 2 } ], "expiration_date": "2027-08-19", "input_compliance_quantity": 3, "location_id": "00000000-0000-0000-0000-000000000058", "metrc_notes": "eighths", "output_compliance_quantity": 3, "product_id": "3839a0c2-46cb-4107-bce8-8330c51dc777", "use_same_item": true }, { "compliance_label": "1A4010200001234000000015", "input_compliance_quantity": 2, "location_id": "00000000-0000-0000-0000-000000000058", "metrc_item_id": 1000008, "output_compliance_quantity": 2, "product_id": "3839a0c2-46cb-4107-bce8-8330c51dc777" } ], "source_package_id": "00000000-0000-0000-0000-000000000014"}'{ "data": { "assembly_number": "AS-0000001", "completion_datetime": "2026-10-13T15:03:27.654430Z", "compliance_type": "METRC", "creation_source": "SPLIT_PACKAGE", "creator": { "banned": false, "deleted_at": null, "email": "[email protected]", "full_name": "FirstName2132 LastName2133", "id": "00000000-0000-0000-0000-00000000042c", "inserted_datetime": "2026-10-13T15:03:27.346072Z", "role": { "id": "00000000-0000-0000-0000-00000000044f", "name": "Admin 1102" }, "updated_datetime": "2026-10-13T15:03:27.346072Z" }, "custom_data": [], "description": null, "estimated_start_date": null, "estimated_start_datetime": null, "estimated_work_hours": null, "estimated_work_minutes": null, "fulfilled": true, "id": "f158e54e-5bb1-4ee5-b7a8-6bd2d5610770", "inserted_datetime": "2026-10-13T15:03:27.654430Z", "is_metrc_processing_job": false, "license": { "active": true, "expiry_datetime": "2026-11-13T15:03:27.364505Z", "id": "00000000-0000-0000-0000-000000000034", "inserted_datetime": "2026-10-13T15:03:27.364615Z", "issue_datetime": "2026-10-13T15:03:27.364502Z", "license_number": "CDPH-00000060", "license_type": "Medium Mixed-Light Tier 1" }, "metrc_processing_job": null, "metrc_processing_job_id": null, "metrc_processing_job_name": null, "metrc_processing_job_notes": null, "metrc_processing_job_type_id": null, "outputs": [ { "additional_costs": [ { "cost_per_unit": "2", "description": null, "id": "fd2630f9-3bc4-43e7-ac0c-4310763c0192", "name": "CostType 25", "quantity": "2", "total_cost_actual": "4", "total_cost_default": "4", "unit_type": { "id": "00000000-0000-0000-0000-0000000024f8", "name": "Unit Type 43" } } ], "batch": { "batch_number": null, "id": "00000000-0000-0000-0000-00000000007d", "name": "B396" }, "batch_number": "OUT-1", "bins": [ { "id": "dec083fb-a5a1-4b45-8b00-f4ba26c12aba", "name": "Bin 1" } ], "compliance_label": "1A4010200001234000000006", "compliance_quantity": "3", "copy_custom_data_from_input": null, "cost_per_unit": null, "cost_per_unit_default": null, "costs": [ { "cost_per_unit": "2", "description": null, "id": "fd2630f9-3bc4-43e7-ac0c-4310763c0192", "name": "CostType 25", "quantity": "2", "total_cost_actual": "4", "total_cost_default": "4", "unit_type": { "id": "00000000-0000-0000-0000-0000000024f8", "name": "Unit Type 43" } } ], "expiration_date": "2027-08-19T00:00:00.000000Z", "expiration_datetime": "2027-08-19T00:00:00.000000Z", "id": "2a08dc61-7d66-45f0-8977-25bd670db6af", "ingredients": [ { "batch": { "batch_number": null, "id": "00000000-0000-0000-0000-00000000007e", "name": "B397" }, "compliance_quantity": "3", "cost_per_unit": null, "cost_per_unit_default": null, "id": "913498f6-bb22-4243-a987-56b7aa6ad4fd", "location": { "address": "123 Fake Street, Beverly Hills, CA 90210, US", "company_id": "00000000-0000-0000-0000-0000000002d1", "id": "00000000-0000-0000-0000-0000000000dd", "license_id": "00000000-0000-0000-0000-000000000034", "name": "Place 220" }, "package": { "batch_number": "SRC-1", "compliance_label": "ABCDEF012345670000000026", "distru_status": "ACTIVE", "id": "00000000-0000-0000-0000-00000000000a", "license_id": "00000000-0000-0000-0000-000000000034", "location_id": "00000000-0000-0000-0000-0000000000dd", "metrc_id": 26, "metrc_label": "ABCDEF012345670000000026", "quantity": "5.000000000", "quantity_active": "5.000000000", "status": "active" }, "product": { "id": "c06ddf85-4ce3-4eab-beef-b27b9c5d450c", "name": "Product 394", "sku": "sku 395", "updated_datetime": "2026-10-13T15:03:27.398904Z" }, "quantity": "85.048477632", "status": "COMPLETED", "total_cost_actual": null, "total_cost_default": null } ], "inputs": [ { "batch": { "batch_number": null, "id": "00000000-0000-0000-0000-00000000007e", "name": "B397" }, "compliance_quantity": "3", "cost_per_unit": null, "cost_per_unit_default": null, "id": "913498f6-bb22-4243-a987-56b7aa6ad4fd", "location": { "address": "123 Fake Street, Beverly Hills, CA 90210, US", "company_id": "00000000-0000-0000-0000-0000000002d1", "id": "00000000-0000-0000-0000-0000000000dd", "license_id": "00000000-0000-0000-0000-000000000034", "name": "Place 220" }, "package": { "batch_number": "SRC-1", "compliance_label": "ABCDEF012345670000000026", "distru_status": "ACTIVE", "id": "00000000-0000-0000-0000-00000000000a", "license_id": "00000000-0000-0000-0000-000000000034", "location_id": "00000000-0000-0000-0000-0000000000dd", "metrc_id": 26, "metrc_label": "ABCDEF012345670000000026", "quantity": "5.000000000", "quantity_active": "5.000000000", "status": "active" }, "product": { "id": "c06ddf85-4ce3-4eab-beef-b27b9c5d450c", "name": "Product 394", "sku": "sku 395", "updated_datetime": "2026-10-13T15:03:27.398904Z" }, "quantity": "85.048477632", "status": "COMPLETED", "total_cost_actual": null, "total_cost_default": null } ], "is_donation": false, "is_finished_good": false, "is_production_batch": false, "is_test_sample": false, "is_trade_sample": false, "lab_test_batches": null, "location": { "address": "123 Fake Street, Beverly Hills, CA 90210, US", "company_id": "00000000-0000-0000-0000-0000000002d1", "id": "00000000-0000-0000-0000-0000000000dd", "license_id": "00000000-0000-0000-0000-000000000034", "name": "Place 220" }, "metrc_item_id": null, "metrc_location_id": null, "metrc_notes": "eighths", "metrc_production_batch_number": null, "package": { "batch_number": "OUT-1", "compliance_label": "1A4010200001234000000006", "distru_status": "ACTIVE", "id": "00000000-0000-0000-0000-00000000000c", "license_id": "00000000-0000-0000-0000-000000000034", "location_id": "00000000-0000-0000-0000-0000000000dd", "metrc_id": null, "metrc_label": "1A4010200001234000000006", "quantity": "3.000000000", "quantity_active": "3.000000000", "status": "active" }, "package_date": "2026-10-13", "package_datetime": "2026-10-13", "package_unit_type": { "id": "00000000-0000-0000-0000-000000002262", "name": "Ounce" }, "product": { "id": "c06ddf85-4ce3-4eab-beef-b27b9c5d450c", "name": "Product 394", "sku": "sku 395", "updated_datetime": "2026-10-13T15:03:27.398904Z" }, "quantity": "85.048477632", "status": "COMPLETED", "total_cost_actual": null, "total_cost_default": null, "use_same_item": true }, { "additional_costs": [], "batch": { "batch_number": null, "id": "00000000-0000-0000-0000-00000000007d", "name": "B396" }, "batch_number": null, "bins": [], "compliance_label": "1A4010200001234000000007", "compliance_quantity": "2", "copy_custom_data_from_input": null, "cost_per_unit": null, "cost_per_unit_default": null, "costs": [], "expiration_date": null, "expiration_datetime": null, "id": "b74272cb-bef1-4d87-af69-87f22fb982f6", "ingredients": [ { "batch": { "batch_number": null, "id": "00000000-0000-0000-0000-00000000007e", "name": "B397" }, "compliance_quantity": "2", "cost_per_unit": null, "cost_per_unit_default": null, "id": "a4621553-131b-400d-adbd-3a467d8bcb67", "location": { "address": "123 Fake Street, Beverly Hills, CA 90210, US", "company_id": "00000000-0000-0000-0000-0000000002d1", "id": "00000000-0000-0000-0000-0000000000dd", "license_id": "00000000-0000-0000-0000-000000000034", "name": "Place 220" }, "package": { "batch_number": "SRC-1", "compliance_label": "ABCDEF012345670000000026", "distru_status": "ACTIVE", "id": "00000000-0000-0000-0000-00000000000a", "license_id": "00000000-0000-0000-0000-000000000034", "location_id": "00000000-0000-0000-0000-0000000000dd", "metrc_id": 26, "metrc_label": "ABCDEF012345670000000026", "quantity": "5.000000000", "quantity_active": "5.000000000", "status": "active" }, "product": { "id": "c06ddf85-4ce3-4eab-beef-b27b9c5d450c", "name": "Product 394", "sku": "sku 395", "updated_datetime": "2026-10-13T15:03:27.398904Z" }, "quantity": "56.698985088", "status": "COMPLETED", "total_cost_actual": null, "total_cost_default": null } ], "inputs": [ { "batch": { "batch_number": null, "id": "00000000-0000-0000-0000-00000000007e", "name": "B397" }, "compliance_quantity": "2", "cost_per_unit": null, "cost_per_unit_default": null, "id": "a4621553-131b-400d-adbd-3a467d8bcb67", "location": { "address": "123 Fake Street, Beverly Hills, CA 90210, US", "company_id": "00000000-0000-0000-0000-0000000002d1", "id": "00000000-0000-0000-0000-0000000000dd", "license_id": "00000000-0000-0000-0000-000000000034", "name": "Place 220" }, "package": { "batch_number": "SRC-1", "compliance_label": "ABCDEF012345670000000026", "distru_status": "ACTIVE", "id": "00000000-0000-0000-0000-00000000000a", "license_id": "00000000-0000-0000-0000-000000000034", "location_id": "00000000-0000-0000-0000-0000000000dd", "metrc_id": 26, "metrc_label": "ABCDEF012345670000000026", "quantity": "5.000000000", "quantity_active": "5.000000000", "status": "active" }, "product": { "id": "c06ddf85-4ce3-4eab-beef-b27b9c5d450c", "name": "Product 394", "sku": "sku 395", "updated_datetime": "2026-10-13T15:03:27.398904Z" }, "quantity": "56.698985088", "status": "COMPLETED", "total_cost_actual": null, "total_cost_default": null } ], "is_donation": false, "is_finished_good": false, "is_production_batch": false, "is_test_sample": false, "is_trade_sample": false, "lab_test_batches": null, "location": { "address": "123 Fake Street, Beverly Hills, CA 90210, US", "company_id": "00000000-0000-0000-0000-0000000002d1", "id": "00000000-0000-0000-0000-0000000000dd", "license_id": "00000000-0000-0000-0000-000000000034", "name": "Place 220" }, "metrc_item_id": 1000003, "metrc_location_id": null, "metrc_notes": null, "metrc_production_batch_number": null, "package": { "batch_number": null, "compliance_label": "1A4010200001234000000007", "distru_status": "ACTIVE", "id": "00000000-0000-0000-0000-00000000000d", "license_id": "00000000-0000-0000-0000-000000000034", "location_id": "00000000-0000-0000-0000-0000000000dd", "metrc_id": null, "metrc_label": "1A4010200001234000000007", "quantity": "2.000000000", "quantity_active": "2.000000000", "status": "active" }, "package_date": "2026-10-13", "package_datetime": "2026-10-13", "package_unit_type": { "id": "00000000-0000-0000-0000-000000002262", "name": "Ounce" }, "product": { "id": "c06ddf85-4ce3-4eab-beef-b27b9c5d450c", "name": "Product 394", "sku": "sku 395", "updated_datetime": "2026-10-13T15:03:27.398904Z" }, "quantity": "56.698985088", "status": "COMPLETED", "total_cost_actual": null, "total_cost_default": null, "use_same_item": false } ], "owner_id": "00000000-0000-0000-0000-00000000042c", "status": "COMPLETED", "tasks": [], "updated_datetime": "2026-10-13T15:03:27.654430Z", "waste_count_quantity": null, "waste_count_unit_name": null, "waste_volume_quantity": null, "waste_volume_unit_name": null, "waste_weight_quantity": null, "waste_weight_unit_name": null }}