Download a title with an all-access link
curl --request GET \
--url https://store.salesive.com/api/v1/downloads/{token}/{productId}import requests
url = "https://store.salesive.com/api/v1/downloads/{token}/{productId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://store.salesive.com/api/v1/downloads/{token}/{productId}', 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/downloads/{token}/{productId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/downloads/{token}/{productId}"
req, _ := http.NewRequest("GET", url, nil)
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/downloads/{token}/{productId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://store.salesive.com/api/v1/downloads/{token}/{productId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"<string>"{
"status": 403,
"success": false,
"message": "Access to this title was removed by the store. Contact the store if you think this is a mistake.",
"code": "revoked",
"data": {}
}{
"status": 404,
"success": false,
"message": "This download link is not valid. Check that you copied the whole link, or open your library from the store.",
"code": "not_found",
"data": {}
}{
"status": 410,
"success": false,
"message": "Your access to this title has ended. Renew it from the store to download again.",
"code": "expired",
"data": {}
}{
"status": 429,
"success": false,
"message": "You have reached today's download limit for this title. Please try again tomorrow.",
"code": "download_limit",
"data": {}
}{
"status": 502,
"success": false,
"message": "We could not prepare your file. Please try again in a moment.",
"code": "file_service_error",
"data": {}
}Downloads
Download a title with an all-access link
Open one title of the all-access pass. One token covers the whole pass, so the title is named in the path.
GET
/
downloads
/
{token}
/
{productId}
Download a title with an all-access link
curl --request GET \
--url https://store.salesive.com/api/v1/downloads/{token}/{productId}import requests
url = "https://store.salesive.com/api/v1/downloads/{token}/{productId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://store.salesive.com/api/v1/downloads/{token}/{productId}', 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/downloads/{token}/{productId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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/downloads/{token}/{productId}"
req, _ := http.NewRequest("GET", url, nil)
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/downloads/{token}/{productId}")
.asString();require 'uri'
require 'net/http'
url = URI("https://store.salesive.com/api/v1/downloads/{token}/{productId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body"<string>"{
"status": 403,
"success": false,
"message": "Access to this title was removed by the store. Contact the store if you think this is a mistake.",
"code": "revoked",
"data": {}
}{
"status": 404,
"success": false,
"message": "This download link is not valid. Check that you copied the whole link, or open your library from the store.",
"code": "not_found",
"data": {}
}{
"status": 410,
"success": false,
"message": "Your access to this title has ended. Renew it from the store to download again.",
"code": "expired",
"data": {}
}{
"status": 429,
"success": false,
"message": "You have reached today's download limit for this title. Please try again tomorrow.",
"code": "download_limit",
"data": {}
}{
"status": 502,
"success": false,
"message": "We could not prepare your file. Please try again in a moment.",
"code": "file_service_error",
"data": {}
}Request
GET /downloads/9f2c1b7e4a6d8035c1e2f4a7b9d0c3e5a8b1d4f6c7e90123/6702c1a4e1b3a40012cd2001
Path parameters
| Parameter | Type | Description |
|---|---|---|
token | string | The download token of the all-access pass, from a library row’s downloadUrl. |
productId | string | The digital product to download. |
An all-access token works for listed products the seller marked as part of the pass, checked live: a title removed from the pass stops being downloadable straight away, and a title added tomorrow works tomorrow. A single-title token accepts its own
productId here too, and answers 404 for any other.Path Parameters
The download token from the buyer's email or the downloadUrl of a library row.
Pattern:
^[0-9a-f]{32,128}$The digital product id.
Response
A PDF up to 30 MB, stamped on every page with the buyer's email, the store name and a short access id. Sent as an attachment with Cache-Control: no-store.
The response is of type file.
Was this page helpful?

