APIMetrc

Sync Metrc tags

POST
/public/v1/metrc/tags/sync

Pull one license's unused Metrc tags of one kind from Metrc into Distru now, instead of waiting for the nightly sync. Use it when a tag you just ordered or received in Metrc is missing from GET /public/v1/metrc/tags. The call waits for Metrc and returns the license once the sync has finished. New tags can take about a second to appear in GET /public/v1/metrc/tags after the 200. Tags Metrc no longer lists as available are marked assigned (is_assigned true). Nothing is sent to Metrc, and inventory is not touched.

Each license and kind can be synced once every 5 minutes. The wait counts from the last attempt, failed ones included, and is shared with syncs started from the Distru app. A call inside the wait returns 429 with a Retry-After header holding the seconds left; the response's metrc_pull_status.tag_syncs_last_attempted says when the last attempt of each kind started. A license with many tags can take a while; if your request times out, the sync still counts as an attempt, so check tag_syncs_last_attempted on GET /public/v1/licenses/{id} before retrying.

Only active Metrc licenses that are not data-only can sync tags, and PLANT tags need a license that can grow plants in Metrc; any other license returns 400. A Metrc failure (for example an API key Metrc no longer accepts) also returns 400, with the reason in the message.

Required permission: licenses_permissions_view, since the response is the license.

Authorization

Bearer
headerAuthorizationBearer <token>

API token generated in Distru (Settings → Distru API). Send it on every request as Authorization: Bearer YOUR_API_TOKEN.

Request Body

The license and kind of tags to sync

application/json
  1. body

The license and kind of tags to sync from Metrc

kind*string

The kind of tags to sync. PACKAGE covers retail/wholesale package labels; PLANT covers plant tags. Each kind is synced, and waited on, separately.

Value in"PACKAGE""PLANT"
license_id*string

The ID of the license whose tags to sync, as returned by GET /public/v1/licenses. An ID that doesn't exist for your company returns 404.

Response Body

The license, with its new tag sync time

*/*
  1. response

A single license wrapped in a data envelope

data?

A cannabis license held by your company, identifying it to the state and its compliance system. Extends the compact license nested in other resources with the health of the license's Metrc sync in both directions: metrc_pull_status for the data Distru pulls from Metrc, and metrc_push_status for the changes Distru pushes to Metrc. Returned only by the license endpoints.

Example Request
curl -X POST 'https://app.distru.com/public/v1/metrc/tags/sync' \  -H 'Content-Type: application/json' \  -d '{  "kind": "PACKAGE",  "license_id": "lic_248"}'
Example Response
{  "data": {    "active": true,    "compliance_type": "METRC",    "expiry_datetime": "2026-12-27T09:11:40.304211Z",    "id": "00000000-0000-0000-0000-0000000000f8",    "inserted_datetime": "2026-11-27T09:11:40.304770Z",    "intake_location": null,    "issue_datetime": "2026-11-27T09:11:40.304210Z",    "license_number": "CDPH-00000194",    "license_type": "Processor",    "metrc_pull_status": {      "caches_updated_up_until": {        "harvests": null,        "items": null,        "locations": null,        "packages": null,        "plant_additives": null,        "plant_batches": null,        "plants": null,        "processing_jobs": null,        "sales_receipts": null,        "strains": null,        "transfers": null      },      "has_in_progress_backfills": false,      "tag_syncs_last_attempted": {        "packages": "2026-11-27T09:11:40.345799Z",        "plants": null      }    },    "metrc_push_status": {      "failed_count": 0,      "last_completed_activity_datetime": null,      "oldest_incomplete_activity": null,      "queued_count": 0    },    "updated_datetime": "2026-11-27T09:11:40.345799Z"  }}