Hi! I am working on a web integration with Square to allow users to log into their accounts, select their desired restaurant, and then choose the appropriate menu(not category). The screen should then display the items that belong to the selected menu.
My question is specifically about how to retrieve the list of items that belong to a particular menu. Is this possible, and if so, how can it be achieved?
I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:
Additional Documentation
Get Started
https://developer.squareup.com/docs/squarebridge/business-central/onboard
https://developer.squareup.com/docs/partnerships
If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.
Yes, it is possible to retrieve a list of items that belong to a particular menu using Square’s APIs. You can use the Catalog API to manage and retrieve your catalog of items.
Firstly, you would use the ListCatalog
endpoint to retrieve all objects in your catalog, including items. You can filter this list by the type
field to only return ITEM
objects.
Each ITEM
object in the catalog represents a menu item and contains a list of category_id
values. These category_id
values represent the categories (or in your case, menus) that the item belongs to.
To get the items for a specific menu, you would first retrieve the category_id
for that menu, and then filter the list of ITEM
objects to only include items with that category_id
.
Remember that changes to the catalog, such as adding or removing items from a menu, should also be managed through the Catalog API.
This answer was reviewed by @Bryan-Square.
Thank you for your response. However, I am specifically looking for information on how to retrieve items from a particular menu, not categories.
I need to allow users to select a restaurant and then a specific menu within that restaurant, displaying only the items that belong to that selected menu. The distinction here is crucial: I am referring to the menu structure within a restaurant, which might include different sets of items for breakfast, lunch, dinner, etc.
To clarify, I’m looking for a way to:
- Retrieve the list of available menus for a selected restaurant.
- Fetch the items that are associated with a specific menu within that restaurant.
I’ve attached screenshot that further illustrate what I’m trying to achieve. The screenshot show the menus I need, and each menu contains specific items. I need to obtain these items from the particular menus.
Maybe i am doing something wrong?
Anyway any guidance on how to accomplish this with Square’s APIs would be greatly appreciated.
We currently don’t have a Menu API that will pull in specific menus that the seller has configured in there Square account. We’re constantly working to improve our features based on feedback like this, so I’ll be sure to share your request to the API product team.
Got it, thank you for the response!