Search foods
Foods
Search foods
Full-text searches the store’s foods by name, description and category, returning up to 30 matches with category populated.
GET
Search foods
Full-text searches the store’s foods by name, description and category, returning up to 30 matches with category populated. The
query parameter is required; omitting it returns 400. Requires the READ_INVENTORY scope.Authorizations
Installed-app access token (prefix app_), issued by the OAuth install flow. The store is bound to the token server-side — never send a shop id.
Query Parameters
Full-text search term matched against food name, description and category. Required.
Response
Search foods — success.
Example:
200
Example:
true
Example:
"Search foods"
Example:
{
"foods": [
{
"_id": "66a2a1c4e1b3a40012cd1001",
"name": "Margherita Pizza",
"price": 12.5,
"images": ["https://cdn.salesive.com/f/margherita.jpg"],
"category": {
"_id": "66a2a0aae1b3a40012cd0001",
"name": "Pizzas",
"slug": "pizzas"
},
"available": true,
"listed": true
}
]
}
