List foods
curl --request GET \
--url https://api.salesive.com/api/v1/foods \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/foods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/foods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/foods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/foods"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesive.com/api/v1/foods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/foods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "List foods",
"data": {
"foods": [
{
"_id": "66a2a1c4e1b3a40012cd1001",
"name": "Margherita Pizza",
"description": "Tomato, mozzarella, basil",
"price": 12.5,
"promoPrice": null,
"images": [
"https://cdn.salesive.com/f/margherita.jpg"
],
"video": null,
"category": {
"_id": "66a2a0aae1b3a40012cd0001",
"name": "Pizzas",
"slug": "pizzas"
},
"available": true,
"listed": true,
"addons": [
{
"name": "Extra cheese",
"price": 2,
"maxQuantity": 3,
"available": true
}
],
"shop": "66a1eee0e1b3a40012ab0001",
"createdAt": "2026-06-10T12:00:00.000Z",
"updatedAt": "2026-06-21T09:00:00.000Z"
}
],
"pagination": {
"total": 34,
"page": 1,
"limit": 20,
"pages": 2,
"hasNext": true,
"hasPrev": false,
"nextPage": 2,
"prevPage": null
}
}
}{
"status": 401,
"success": false,
"message": "Unauthorized",
"data": {}
}{
"status": 403,
"success": false,
"message": "Forbidden: missing required scope",
"data": {}
}Foods
List foods
Returns a paginated list of the store’s foods (the restaurant menu — the catalog equivalent for restaurant stores), newest first, with category populated.
GET
/
foods
List foods
curl --request GET \
--url https://api.salesive.com/api/v1/foods \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/foods"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.salesive.com/api/v1/foods', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.salesive.com/api/v1/foods",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/foods"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.salesive.com/api/v1/foods")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/foods")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "List foods",
"data": {
"foods": [
{
"_id": "66a2a1c4e1b3a40012cd1001",
"name": "Margherita Pizza",
"description": "Tomato, mozzarella, basil",
"price": 12.5,
"promoPrice": null,
"images": [
"https://cdn.salesive.com/f/margherita.jpg"
],
"video": null,
"category": {
"_id": "66a2a0aae1b3a40012cd0001",
"name": "Pizzas",
"slug": "pizzas"
},
"available": true,
"listed": true,
"addons": [
{
"name": "Extra cheese",
"price": 2,
"maxQuantity": 3,
"available": true
}
],
"shop": "66a1eee0e1b3a40012ab0001",
"createdAt": "2026-06-10T12:00:00.000Z",
"updatedAt": "2026-06-21T09:00:00.000Z"
}
],
"pagination": {
"total": 34,
"page": 1,
"limit": 20,
"pages": 2,
"hasNext": true,
"hasPrev": false,
"nextPage": 2,
"prevPage": null
}
}
}{
"status": 401,
"success": false,
"message": "Unauthorized",
"data": {}
}{
"status": 403,
"success": false,
"message": "Forbidden: missing required scope",
"data": {}
}Returns a paginated list of the store’s foods (the restaurant menu — the catalog equivalent for restaurant stores), newest first, with category populated. Supports filtering by category, availability and listed status. 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
Page number (1-based).
Items per page.
Filter by category ObjectId.
Filter by availability. Pass true or false.
Filter by listed status. Pass true or false.
Response
List foods — success.
Example:
200
Example:
true
Example:
"List foods"
Show child attributes
Show child attributes
Example:
{
"foods": [
{
"_id": "66a2a1c4e1b3a40012cd1001",
"name": "Margherita Pizza",
"description": "Tomato, mozzarella, basil",
"price": 12.5,
"promoPrice": null,
"images": ["https://cdn.salesive.com/f/margherita.jpg"],
"video": null,
"category": {
"_id": "66a2a0aae1b3a40012cd0001",
"name": "Pizzas",
"slug": "pizzas"
},
"available": true,
"listed": true,
"addons": [
{
"name": "Extra cheese",
"price": 2,
"maxQuantity": 3,
"available": true
}
],
"shop": "66a1eee0e1b3a40012ab0001",
"createdAt": "2026-06-10T12:00:00.000Z",
"updatedAt": "2026-06-21T09:00:00.000Z"
}
],
"pagination": {
"total": 34,
"page": 1,
"limit": 20,
"pages": 2,
"hasNext": true,
"hasPrev": false,
"nextPage": 2,
"prevPage": null
}
}
Was this page helpful?
⌘I

