How to retrieve all items from catalog relating to a specific display group?

I have created a new menu where I have various display groups such as Appetisers and Mains.

I want to retrieve the menu and get a list of all display groups and then be able to get a list of items for each display group.

For example, I might have a display group called Mains which then has a pasta main, a chicken main etc.

I have tried playing around with GET /v2/catalog/list - Square API Reference but it just returns a list of objects but does not relate them to a display group.

i.e. one of the objects it returns is like so:

{
      "type": "ITEM",
      "id": "YOYFGW5VOJTHD3APUFIREJPP",
      "updated_at": "2022-08-12T13:50:27.718Z",
      "created_at": "2022-08-12T12:18:37.925Z",
      "version": 1660312227718,
      "is_deleted": false,
      "present_at_all_locations": false,
      "present_at_location_ids": [
        "LJMB6WWM8Q6NZ"
      ],
      "item_data": {
        "name": "Basil Pesto Chicken Pasta",
        "label_color": "9da2a6",
        "visibility": "PRIVATE",
        "variations": [
          {
            "type": "ITEM_VARIATION",
            "id": "O2UYHNFHZWUUU66M4Y3J7Q6D",
            "updated_at": "2022-08-12T12:18:37.925Z",
            "created_at": "2022-08-12T12:18:37.925Z",
            "version": 1660306717925,
            "is_deleted": false,
            "present_at_all_locations": false,
            "present_at_location_ids": [
              "LJMB6WWM8Q6NZ"
            ],
            "item_variation_data": {
              "item_id": "YOYFGW5VOJTHD3APUFIREJPP",
              "name": "Regular",
              "ordinal": 1,
              "pricing_type": "FIXED_PRICING",
              "price_money": {
                "amount": 1000,
                "currency": "GBP"
              },
              "sellable": true,
              "stockable": true
            }
          }
        ],
        "product_type": "REGULAR",
        "skip_modifier_screen": true,
        "ecom_visibility": "UNINDEXED"
      }
    }

How can I link this to a display group?

Hey @stretch0, welcome to the forums! :wave:

Unfortunately, Square’s APIs do not currently support Square for Restaurants, so those menu display groups won’t be present in any of the Catalog objects.