---
title: Add Items
slug: add-items
icon: {"faIcon":"fa-solid fa-code"}
createdAt: 2022-12-20T17:02:10.000Z
---

Whether the original recommendation was created using the comprehensive or simple format, items can be added individually. The requirements for items are them same as for comprehensive format and require at minimum a `sku` and `qty` attribute. The rest of the attributes are optional. See the **Recommendation Item Object** documention for details.

Items with the same sku that already exist in the recommendation will be ignored.

## Return

This call returns the entire recommendation object to which the items were added.

:::ApiMethodV2
```json
{
  "tab": "examples",
  "url": "/V1/dispensary/recommendation/:recommendation_id/item",
  "name": "API",
  "method": "POST",
  "request": {
    "pathParameters": [
      {
        "kind": "required",
        "name": "recommendation_id",
        "type": "Integer",
        "children": [],
        "description": "The recommendation to which the item should be added."
      }
    ],
    "queryParameters": [],
    "headerParameters": [
      {
        "kind": "required",
        "name": "Authorization",
        "type": "string",
        "children": [],
        "description": "The Access Token"
      }
    ],
    "bodyDataParameters": [
      {
        "kind": "required",
        "name": "recommendation",
        "type": "Object",
        "children": [
          {
            "kind": "required",
            "name": "item",
            "type": "Object",
            "children": [
              {
                "kind": "required",
                "name": "sku",
                "type": "string",
                "description": "The item sku to add"
              },
              {
                "kind": "required",
                "name": "qty",
                "type": "Number",
                "description": "The item quantity to add"
              },
              {
                "kind": "optional",
                "name": "note",
                "type": "string",
                "description": "A note for this item"
              },
              {
                "kind": "optional",
                "name": "fulfillment_type",
                "type": "string",
                "description": "LC for in practice fulfillment\n1L for first time in practice fulfillment on subscriptions"
              },
              {
                "kind": "optional",
                "name": "autoship_interval",
                "type": "string",
                "description": "For subscription recommendations. See The Recommendation Item Object spec for details."
              },
              {
                "kind": "optional",
                "name": "doctor_id",
                "type": "Integer",
                "description": "To associate this item with a specific doctor. See the Doctor Object spec for details."
              },
              {
                "kind": "optional",
                "name": "location_id",
                "type": "Integer",
                "description": "To associate this item with a specific location. See the Location Object spec for details."
              }
            ],
            "description": "Item Array"
          }
        ],
        "description": "recommendation object"
      }
    ],
    "formDataParameters": []
  },
  "results": {
    "languages": [
      {
        "id": "sT7x5eCla7VJy6tWNaRmD",
        "code": "{\n    \"recommendation_id\": \"6e6e08cf-e2a0-4e0e-9359-e2e42896b56e\",\n    \"note\": \"Overall recommendation notes\",\n    \"status\": \"pending\",\n    \"patient\": {\n        \"patient_id\": 71,\n        \"firstname\": \"Juergen\",\n        \"lastname\": \"Schreck\",\n        \"email\": \"juergen+uat@gethealthy.store\"\n    },\n    \"practice_id\": 1,\n    \"notify_email\": 1,\n    \"notify_sms\": 0,\n    \"practice_conversion_url\": \"https://uat.gethealthy.store/admin/dispensary/recommendation/convert/rid/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e/\",\n    \"patient_conversion_url\": \"https://uat.gethealthy.store/dispensary/recommendation/convert/rid/6e6e08cf-e2a0-4e0e-9359-e2e42896b56e/\"      \n    \"items\": [\n        {\n            \"item_id\": \"54dddeea-19d6-4914-8b52-4064f050737c\",\n            \"sku\": \"SF811\",\n            \"qty\": 1,\n            \"autoship_interval\": \"once\",\n            \"fulfillment_type\": \"LC\",\n            \"note\": \"Item specific Note\",\n            \"additional_options\":[],\n            \"availability\": \"In Stock\"\n        },\n        {\n            \"item_id\": \"179a7ef1-e1c7-42a2-a468-bd50dbee71f8\",\n            \"sku\": \"SP607\",\n            \"qty\": 2,\n            \"autoship_interval\": \"30d\",\n            \"fulfillment_type\": \"1L\",\n            \"note\": \"This is really good stuff\",\n            \"availability\": \"In Stock\",\n            \"additional_options\":[]\n        }\n    ]\n}",
        "language": "200",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "sT7x5eCla7VJy6tWNaRmD"
  },
  "examples": {
    "languages": [
      {
        "id": "GuMf2667LUjnDWb9CVr3w",
        "code": "curl --location -g --request POST 'https://{{api_host}}/rest/{{scope}}/V1/dispensary/recommendation/6e6e08cf-e2a0-4e0e-9359-e2e42896b56/item' \\\n--header 'Content-Type: application/json' \\\n--header 'Authorization: Bearer {{access_token}}' \\\n--data-raw '{\n    \"recommendation\": {\n        \"items\":[{\n            \"sku\":\"SF811\",\n            \"qty\":\"1\",\n            \"autoship_interval\":\"once\",\n            \"note\":\"Take two before bedtime.\"\n        },{\n            \"sku\":\"SP607\",\n            \"qty\":3,\n            \"fulfillment_type\":\"1L\",\n            \"autoship_interval\":\"30d\",\n            \"note\":\"This is really good stuff. Take 1 in the morning with food\"\n        }]\n    }\n}'",
        "language": "curl",
        "customLabel": ""
      }
    ],
    "selectedLanguageId": "GuMf2667LUjnDWb9CVr3w"
  },
  "description": "",
  "currentNewParameter": {
    "label": "Header Parameter",
    "value": "headerParameters"
  },
  "autoGeneratedAnchorSlug": "api",
  "legacyHash": "SqzjFv70KmmYJSrnE8RbA"
}
```
:::

