Get food add-ons
curl --request GET \
--url https://store.salesive.com/api/v1/products/{id}/addons \
--header 'Authorization: Bearer <token>' \
--header 'x-shop-id: <api-key>'import requests
url = "https://store.salesive.com/api/v1/products/{id}/addons"
headers = {
"Authorization": "Bearer <token>",
"x-shop-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'x-shop-id': '<api-key>'}
};
fetch('https://store.salesive.com/api/v1/products/{id}/addons', 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://store.salesive.com/api/v1/products/{id}/addons",
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>",
"x-shop-id: <api-key>"
],
]);
$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://store.salesive.com/api/v1/products/{id}/addons"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("x-shop-id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://store.salesive.com/api/v1/products/{id}/addons")
.header("Authorization", "Bearer <token>")
.header("x-shop-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://store.salesive.com/api/v1/products/{id}/addons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["x-shop-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 123,
"success": true,
"message": "<string>",
"data": {
"itemId": "<string>",
"itemType": "product",
"catalogType": "product",
"name": "<string>",
"addons": [
{
"name": "<string>",
"price": 123,
"maxQuantity": 2,
"available": true,
"_id": "<string>",
"description": "<string>",
"image": "<string>"
}
]
}
}Products
Get add-ons
Return available add-ons for a food or service catalog item.
GET
/
products
/
{id}
/
addons
Get food add-ons
curl --request GET \
--url https://store.salesive.com/api/v1/products/{id}/addons \
--header 'Authorization: Bearer <token>' \
--header 'x-shop-id: <api-key>'import requests
url = "https://store.salesive.com/api/v1/products/{id}/addons"
headers = {
"Authorization": "Bearer <token>",
"x-shop-id": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {Authorization: 'Bearer <token>', 'x-shop-id': '<api-key>'}
};
fetch('https://store.salesive.com/api/v1/products/{id}/addons', 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://store.salesive.com/api/v1/products/{id}/addons",
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>",
"x-shop-id: <api-key>"
],
]);
$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://store.salesive.com/api/v1/products/{id}/addons"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("x-shop-id", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://store.salesive.com/api/v1/products/{id}/addons")
.header("Authorization", "Bearer <token>")
.header("x-shop-id", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://store.salesive.com/api/v1/products/{id}/addons")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
request["x-shop-id"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"status": 123,
"success": true,
"message": "<string>",
"data": {
"itemId": "<string>",
"itemType": "product",
"catalogType": "product",
"name": "<string>",
"addons": [
{
"name": "<string>",
"price": 123,
"maxQuantity": 2,
"available": true,
"_id": "<string>",
"description": "<string>",
"image": "<string>"
}
]
}
}Request
GET /products/68e5bb463a1fc56a8ac150c0/addons
x-shop-id: {{shopId}}
Use this endpoint for food (restaurant) and service (business) storefronts. The
response
itemType reflects the catalog (food or service). Standard product
catalogs return an empty addons array.Headers
| Header | Type | Description |
|---|---|---|
x-shop-id | string | Identify the shop context. |
Path parameters
| Parameter | Type | Description |
|---|---|---|
id | string | Food or service item MongoDB ID. |
Successful response
{
"status": 200,
"success": true,
"message": "Add-ons found",
"data": {
"itemId": "68e5bb463a1fc56a8ac150c0",
"itemType": "food",
"catalogType": "food",
"name": "Margherita Pizza",
"addons": [
{
"_id": "68e5bb463a1fc56a8ac150d1",
"name": "Extra Cheese",
"description": "A richer mozzarella finish baked on top.",
"price": 1500,
"maxQuantity": 3,
"image": null,
"available": true
}
]
}
}
Notes
- Unavailable add-ons are filtered out of this response.
- Add-on objects include the latest
descriptionfield from the food catalog. - Pair the returned
addonIdvalues withPOST /cartusingselectedAddons.
Authorizations
JWT issued by the Salesive Store API for authenticated shoppers.
Optional storefront identifier sent as a header to scope responses to a specific shop. Try It requests remember this value once provided.
Headers
Optional identifier that scopes responses to a specific storefront when the referer cannot be inferred.
Path Parameters
Food item MongoDB identifier.
Was this page helpful?

