Bulk delete digital products
curl --request POST \
--url https://api.salesive.com/api/v1/digital-products/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"6702c1a4e1b3a40012cd2001",
"6702c1a4e1b3a40012cd2002"
]
}
'import requests
url = "https://api.salesive.com/api/v1/digital-products/bulk-delete"
payload = { "ids": ["6702c1a4e1b3a40012cd2001", "6702c1a4e1b3a40012cd2002"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['6702c1a4e1b3a40012cd2001', '6702c1a4e1b3a40012cd2002']})
};
fetch('https://api.salesive.com/api/v1/digital-products/bulk-delete', 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/bulk-delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'6702c1a4e1b3a40012cd2001',
'6702c1a4e1b3a40012cd2002'
]
]),
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/bulk-delete"
payload := strings.NewReader("{\n \"ids\": [\n \"6702c1a4e1b3a40012cd2001\",\n \"6702c1a4e1b3a40012cd2002\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.salesive.com/api/v1/digital-products/bulk-delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"6702c1a4e1b3a40012cd2001\",\n \"6702c1a4e1b3a40012cd2002\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/digital-products/bulk-delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"6702c1a4e1b3a40012cd2001\",\n \"6702c1a4e1b3a40012cd2002\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Digital products deleted successfully",
"data": {
"deleted": [
"6702c1a4e1b3a40012cd2001"
],
"notFound": [
"6702c1a4e1b3a40012cd2002"
]
}
}{
"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": {}
}Digital products
Bulk delete digital products
Soft-deletes up to 50 digital products in one call.
POST
/
digital-products
/
bulk-delete
Bulk delete digital products
curl --request POST \
--url https://api.salesive.com/api/v1/digital-products/bulk-delete \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"ids": [
"6702c1a4e1b3a40012cd2001",
"6702c1a4e1b3a40012cd2002"
]
}
'import requests
url = "https://api.salesive.com/api/v1/digital-products/bulk-delete"
payload = { "ids": ["6702c1a4e1b3a40012cd2001", "6702c1a4e1b3a40012cd2002"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({ids: ['6702c1a4e1b3a40012cd2001', '6702c1a4e1b3a40012cd2002']})
};
fetch('https://api.salesive.com/api/v1/digital-products/bulk-delete', 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/bulk-delete",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'ids' => [
'6702c1a4e1b3a40012cd2001',
'6702c1a4e1b3a40012cd2002'
]
]),
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/bulk-delete"
payload := strings.NewReader("{\n \"ids\": [\n \"6702c1a4e1b3a40012cd2001\",\n \"6702c1a4e1b3a40012cd2002\"\n ]\n}")
req, _ := http.NewRequest("POST", 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.post("https://api.salesive.com/api/v1/digital-products/bulk-delete")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"ids\": [\n \"6702c1a4e1b3a40012cd2001\",\n \"6702c1a4e1b3a40012cd2002\"\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.salesive.com/api/v1/digital-products/bulk-delete")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"ids\": [\n \"6702c1a4e1b3a40012cd2001\",\n \"6702c1a4e1b3a40012cd2002\"\n ]\n}"
response = http.request(request)
puts response.read_body{
"status": 200,
"success": true,
"message": "Digital products deleted successfully",
"data": {
"deleted": [
"6702c1a4e1b3a40012cd2001"
],
"notFound": [
"6702c1a4e1b3a40012cd2002"
]
}
}{
"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": {}
}Soft-deletes up to 50 digital products in one call. Ids that are not in this store do not fail the call: they come back in
notFound. 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 POST https://api.salesive.com/api/v1/digital-products/bulk-delete \
-H "Authorization: Bearer app_<your-app-access-token>" \
-H "Content-Type: application/json" \
-d '{"ids":["6702c1a4e1b3a40012cd2001","6702c1a4e1b3a40012cd2002"]}'
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.
Body
application/json
Digital product ObjectIds (unique, 1 to 50).
Required array length:
1 - 50 elementsResponse
Bulk delete digital products: success.
Was this page helpful?

