Not finding Item variation ID

Hi,

I have this item LWGMPYUWKNQHLLARIAWIKWR2 which I’m able to find when calling the retrieve catalog object ID but when I send an order I get this error.

 {
  "errors": [
    {
      "code": "NOT_FOUND",
      "detail": "Item variation with catalog object ID `LWGMPYUWKNQHLLARIAWIKWR2` not found.",
      "category": "INVALID_REQUEST_ERROR"
    }
  ]
}

Here’s the response from the retrieve catalog object:

{
  "object": {
    "type": "ITEM",
    "id": "LWGMPYUWKNQHLLARIAWIKWR2",
    "updated_at": "2023-07-26T09:02:11.824Z",
    "created_at": "2023-04-11T17:36:30.979Z",
    "version": 1690362131824,
    "is_deleted": false,
    "present_at_all_locations": false,
    "present_at_location_ids": [
      "LNBXMG5V40DGV"
    ],
    "item_data": {
      "name": "Flat White",
      "is_taxable": true,
      "visibility": "PRIVATE",
      "category_id": "4RHITERL57JBR5EKDGFWNCSE",
      "tax_ids": [
        "AUSSALESTAXMLPTC7X6S95J1",
        "AUSSALESTAXMLPTC7X6S95J1"
      ],
      "modifier_list_info": [
        {
          "modifier_list_id": "2B5XMAP35QT4GPS4XPGA2BEN",
          "min_selected_modifiers": 0,
          "max_selected_modifiers": 3,
          "enabled": true
        },
        {
          "modifier_list_id": "XG3ZT7TP2CY4FLGYY54XLI3C",
          "min_selected_modifiers": -1,
          "max_selected_modifiers": -1,
          "enabled": true
        },
        {
          "modifier_list_id": "Y4HNIFLJJZ2VYP4I3OENERIP",
          "min_selected_modifiers": -1,
          "max_selected_modifiers": -1,
          "enabled": true
        }
      ],
      "variations": [
        {
          "type": "ITEM_VARIATION",
          "id": "MJHCGKAPWB6BCGNHWQR5YFOB",
          "updated_at": "2023-07-26T09:01:14.474Z",
          "created_at": "2023-04-11T17:36:30.979Z",
          "version": 1690362074474,
          "is_deleted": false,
          "present_at_all_locations": false,
          "present_at_location_ids": [
            "LNBXMG5V40DGV"
          ],
          "item_variation_data": {
            "item_id": "LWGMPYUWKNQHLLARIAWIKWR2",
            "name": "Large",
            "ordinal": 0,
            "pricing_type": "FIXED_PRICING",
            "price_money": {
              "amount": 550,
              "currency": "AUD"
            },
            "location_overrides": [
              {
                "location_id": "LNBXMG5V40DGV",
                "track_inventory": false
              }
            ],
            "track_inventory": true,
            "inventory_alert_type": "NONE",
            "sellable": true,
            "stockable": true,
            "channels": [
              "CH_3ZTWTZbVWvktliSonLCPTdAGIhsQPbbvpIufYRlQuYC"
            ]
          }
        },
        {
          "type": "ITEM_VARIATION",
          "id": "N4VIVVTPEGNXIOQ6RSXFRQQU",
          "updated_at": "2023-07-26T09:01:14.474Z",
          "created_at": "2023-04-11T17:36:30.979Z",
          "version": 1690362074474,
          "is_deleted": false,
          "present_at_all_locations": false,
          "present_at_location_ids": [
            "LNBXMG5V40DGV"
          ],
          "item_variation_data": {
            "item_id": "LWGMPYUWKNQHLLARIAWIKWR2",
            "name": "Small",
            "ordinal": 1,
            "pricing_type": "FIXED_PRICING",
            "price_money": {
              "amount": 450,
              "currency": "AUD"
            },
            "location_overrides": [
              {
                "location_id": "LNBXMG5V40DGV",
                "track_inventory": false
              }
            ],
            "track_inventory": true,
            "inventory_alert_type": "NONE",
            "sellable": true,
            "stockable": true,
            "channels": [
              "CH_3ZTWTZbVWvktliSonLCPTdAGIhsQPbbvpIufYRlQuYC"
            ]
          }
        }
      ],
      "product_type": "REGULAR",
      "skip_modifier_screen": false,
      "ecom_uri": "https://www.thegreciancoffeehouse.com/product/flat-white/26",
      "ecom_available": true,
      "ecom_visibility": "VISIBLE",
      "pickup_fulfillment_preferences_id": "fprefs_127mt760qy23or57ur7u7xd0m",
      "delivery_fulfillment_preferences_id": "fprefs_127mt760qjkoplh4n4a0zw752",
      "channels": [
        "CH_3ZTWTZbVWvktliSonLCPTdAGIhsQPbbvpIufYRlQuYC"
      ],
      "is_archived": false
    }
  }
}

Any idea what I’m doing wrong?

Looks like your sending the item_id. The order.line_items is expecting the variation_id. This item has a few variations but one of them is MJHCGKAPWB6BCGNHWQR5YFOB. :slightly_smiling_face: