Lotus
Type to search documentation.
Products

List all menu items

Retrieve a collection of menu items with optional filtering and pagination.

get/menu

Request

Query parameters

afterstring

Use the endCursor as a value for the after parameter to get the next page.

beforestring

Use the startCursor as a value for the before parameter to get the next page.

sortstring

To sort by id in descending order use -id. To sort by id in ascending order use id.

filterstring

Filters the collection items using space-separated field:value pairs.

Format: field1:value1 field2:value2

Supported operators:

  • field:value - Exact match
  • field:value1,value2 - Match any of the comma-separated values (OR)
  • Time ranges: Use 30d (30 days), 7d (7 days), 1h (1 hour), etc.

Examples:

  • status:placed - Filter by single status.
  • status:placed,completed - Filter by multiple statuses.
  • createdAt:30d - Filter orders created in the last 30 days.
  • orderId:ord_01h1s5z6vf2mm1mz3hevnn9va7 - Filter by specific order ID.
  • status:placed createdAt:7d - Combine multiple filters.
searchstring

Performs a case-insensitive text search across relevant fields in the collection.

Fields searched depend on the endpoint:

  • Menu items: name, photoTextDescription
  • Orders: customerName, id

Returns items where any of the searchable fields contain the search term as a substring.

limitinteger

Use to return a number of results per page. If there is more data, use in combination with after to page through the data.

Response

Successful operation.

objectstringrequired

Allowed values:"list"

Entity name.

pageobjectrequired
Properties (6)
endCursorstringrequired

Use with the after query parameter to load the next page of data. When null, there is no data. The cursor is opaque and internal structure is subject to change.

startCursorstringrequired

Use with the before query parameter to load the previous page of data. When null, there is no data. The cursor is opaque and internal structure is subject to change.

hasNextPagebooleanrequired

Indicates if there is a next page with items.

hasPrevPagebooleanrequired

Indicates if there is a previous page with items.

limitintegerrequired

Value showing how many items are in the page limit.

totalintegerrequired

Count of items across all pages.

itemsarray<one of>required
Item options (2)
Option 1object
Properties (2)
Option 1object
Option 2object
Option 2object
Properties (2)
Option 1object
Option 2object