Get a digital product
curl --request GET \
--url https://api.salesive.com/api/v1/digital-products/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/digital-products/{id}"
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/digital-products/{id}', 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}",
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/digital-products/{id}"
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/digital-products/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/digital-products/{id}")
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": "Digital product retrieved 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": false,
"createdAt": "2026-10-11T09:12:00.000Z",
"updatedAt": "2026-10-11T09:30:00.000Z"
}
}{
"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
Get a digital product
Retrieves a single digital product by id.
GET
/
digital-products
/
{id}
Get a digital product
curl --request GET \
--url https://api.salesive.com/api/v1/digital-products/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.salesive.com/api/v1/digital-products/{id}"
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/digital-products/{id}', 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}",
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/digital-products/{id}"
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/digital-products/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/digital-products/{id}")
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": "Digital product retrieved 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": false,
"createdAt": "2026-10-11T09:12:00.000Z",
"updatedAt": "2026-10-11T09:30:00.000Z"
}
}{
"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": {}
}Retrieves one digital product by id, scoped to the store, with the category populated. Returns
404 if it is not in this store or was deleted. Requires the READ_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 GET https://api.salesive.com/api/v1/digital-products/6702c1a4e1b3a40012cd2001 \
-H "Authorization: Bearer app_<your-app-access-token>"
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.
Response
Get a digital product: success.
Example:
200
Example:
true
Example:
"Digital product retrieved 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": false,
"createdAt": "2026-10-11T09:12:00.000Z",
"updatedAt": "2026-10-11T09:30:00.000Z"
}
Was this page helpful?

