Set a digital product featured
curl --request PATCH \
--url https://api.salesive.com/api/v1/digital-products/{id}/featured \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"featured": true
}
'import requests
url = "https://api.salesive.com/api/v1/digital-products/{id}/featured"
payload = { "featured": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({featured: true})
};
fetch('https://api.salesive.com/api/v1/digital-products/{id}/featured', 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/digital-products/{id}/featured",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'featured' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/digital-products/{id}/featured"
payload := strings.NewReader("{\n \"featured\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.salesive.com/api/v1/digital-products/{id}/featured")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"featured\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/digital-products/{id}/featured")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"featured\": true\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Digital product updated successfully",
"data": {
"_id": "6702c1a4e1b3a40012cd2001",
"shop": "66a1eee0e1b3a40012ab0001",
"name": "The Lagos Cookbook",
"description": "120 everyday Nigerian recipes, with a shopping list for each week.",
"author": "Ngozi Okafor",
"images": [
"https://cdn.salesive.com/d/lagos-cookbook-cover.jpg"
],
"category": {
"_id": "66a2a0aae1b3a40012cd0001",
"name": "Cookbooks",
"slug": "cookbooks"
},
"access": "both",
"pricing": {
"oneTime": 4500,
"monthly": 1500
},
"price": 1500,
"inPass": true,
"file": {
"name": "lagos-cookbook.pdf",
"size": 8421376,
"format": "pdf",
"mimetype": "application/pdf",
"attached": true
},
"preview": {
"enabled": true,
"pages": 3
},
"listed": true,
"featured": true,
"createdAt": "2026-10-11T09:12:00.000Z",
"updatedAt": "2026-10-11T09:30:00.000Z"
}
}{
"status": 400,
"success": false,
"message": "A one-time price is required",
"data": {}
}{
"status": 401,
"success": false,
"message": "App token expired or invalid.",
"data": {}
}{
"status": 403,
"success": false,
"message": "This app is missing the required permission(s): WRITE_INVENTORY",
"data": {}
}{
"status": 404,
"success": false,
"message": "Product not found",
"data": {}
}Digital products
Set a digital product featured
Marks a digital product as featured, or removes the mark.
PATCH
/
digital-products
/
{id}
/
featured
Set a digital product featured
curl --request PATCH \
--url https://api.salesive.com/api/v1/digital-products/{id}/featured \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"featured": true
}
'import requests
url = "https://api.salesive.com/api/v1/digital-products/{id}/featured"
payload = { "featured": True }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({featured: true})
};
fetch('https://api.salesive.com/api/v1/digital-products/{id}/featured', 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/digital-products/{id}/featured",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'featured' => true
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.salesive.com/api/v1/digital-products/{id}/featured"
payload := strings.NewReader("{\n \"featured\": true\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.salesive.com/api/v1/digital-products/{id}/featured")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"featured\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/digital-products/{id}/featured")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"featured\": true\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Digital product updated successfully",
"data": {
"_id": "6702c1a4e1b3a40012cd2001",
"shop": "66a1eee0e1b3a40012ab0001",
"name": "The Lagos Cookbook",
"description": "120 everyday Nigerian recipes, with a shopping list for each week.",
"author": "Ngozi Okafor",
"images": [
"https://cdn.salesive.com/d/lagos-cookbook-cover.jpg"
],
"category": {
"_id": "66a2a0aae1b3a40012cd0001",
"name": "Cookbooks",
"slug": "cookbooks"
},
"access": "both",
"pricing": {
"oneTime": 4500,
"monthly": 1500
},
"price": 1500,
"inPass": true,
"file": {
"name": "lagos-cookbook.pdf",
"size": 8421376,
"format": "pdf",
"mimetype": "application/pdf",
"attached": true
},
"preview": {
"enabled": true,
"pages": 3
},
"listed": true,
"featured": true,
"createdAt": "2026-10-11T09:12:00.000Z",
"updatedAt": "2026-10-11T09:30:00.000Z"
}
}{
"status": 400,
"success": false,
"message": "A one-time price is required",
"data": {}
}{
"status": 401,
"success": false,
"message": "App token expired or invalid.",
"data": {}
}{
"status": 403,
"success": false,
"message": "This app is missing the required permission(s): WRITE_INVENTORY",
"data": {}
}{
"status": 404,
"success": false,
"message": "Product not found",
"data": {}
}Marks a digital product as featured on the storefront, or removes the mark. Requires the
WRITE_INVENTORY scope.
These endpoints only work on a store whose type is
digital. On any other store they return 403 with This is only available on digital stores. See Digital stores.curl -X PATCH https://api.salesive.com/api/v1/digital-products/6702c1a4e1b3a40012cd2001/featured \
-H "Authorization: Bearer app_<your-app-access-token>" \
-H "Content-Type: application/json" \
-d '{"featured":true}'
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.
Path Parameters
The digital product's ObjectId.
Body
application/json
Response
Set a digital product featured: success.
Example:
200
Example:
true
Example:
"Digital product updated successfully"
Show child attributes
Show child attributes
Example:
{
"_id": "6702c1a4e1b3a40012cd2001",
"shop": "66a1eee0e1b3a40012ab0001",
"name": "The Lagos Cookbook",
"description": "120 everyday Nigerian recipes, with a shopping list for each week.",
"author": "Ngozi Okafor",
"images": [
"https://cdn.salesive.com/d/lagos-cookbook-cover.jpg"
],
"category": {
"_id": "66a2a0aae1b3a40012cd0001",
"name": "Cookbooks",
"slug": "cookbooks"
},
"access": "both",
"pricing": { "oneTime": 4500, "monthly": 1500 },
"price": 1500,
"inPass": true,
"file": {
"name": "lagos-cookbook.pdf",
"size": 8421376,
"format": "pdf",
"mimetype": "application/pdf",
"attached": true
},
"preview": { "enabled": true, "pages": 3 },
"listed": true,
"featured": true,
"createdAt": "2026-10-11T09:12:00.000Z",
"updatedAt": "2026-10-11T09:30:00.000Z"
}
Was this page helpful?

