Consumer not only like to know the cost of a menu item, but also a breakdown of the THC/CBD the menu item contains. Weedmaps considers this information lab data.

While there are eight known cannabinoids in cannabis, Weedmaps currently displays lab data for tetrahydrocannabinol (THC) and cannabidiol (CBD). If your system also keeps track of acids for THC and CBD (THCA or CBDA), you must combine those with their corresponding non-acid value. THC + THCA = the value sent to Weedmaps.

To set the lab data for a given menu item, you can pass a cannabinoids hash in the request attributes.

curl \
  --request PATCH \
  --url 'https://api-g.weedmaps.com/wm/v1/menu_items/1234' \
  --header 'accept: application/json' \
  --header 'authorization: Bearer [ACCESS TOKEN HERE]' \
  --header 'content-type: application/json' \
  --data '{
    "id": 1234,
    "type": "menu_item",
    "attributes": {
      "cannabinoids": {
        "cbd": {
          "percentage": 2.7
        },
        "thc": {
          "percentage": 23.2
        }
      },
    }
  }'

📘

Percentages, Not Ratios

It's important to note that a percentage represents the total percent of the product that is THC or CBD. You should not be providing a ratio such as 80% THC and 20% CBD.

🚧

Using Milligrams

While our API allows the passing of milligram values for cannabinoids, our UI doesn't currently support it. If you then want THC and CBD amounts to display, you must provide it as a percentage.