Consumer printing
Check a private upload link
Private guest photo workflow. Session and image ownership, expiration and lane are enforced. All responses are no-store and no-referrer.
GET
/
v1
/
consumer
/
uploads
Check a private upload link
curl --request GET \
--url https://api.batchrelay.com/v1/consumer/uploads \
--header 'X-BatchRelay-Upload-Code: <x-batchrelay-upload-code>'import requests
url = "https://api.batchrelay.com/v1/consumer/uploads"
headers = {"X-BatchRelay-Upload-Code": "<x-batchrelay-upload-code>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-BatchRelay-Upload-Code': '<x-batchrelay-upload-code>'}
};
fetch('https://api.batchrelay.com/v1/consumer/uploads', 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.batchrelay.com/v1/consumer/uploads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-BatchRelay-Upload-Code: <x-batchrelay-upload-code>"
],
]);
$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.batchrelay.com/v1/consumer/uploads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-BatchRelay-Upload-Code", "<x-batchrelay-upload-code>")
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.batchrelay.com/v1/consumer/uploads")
.header("X-BatchRelay-Upload-Code", "<x-batchrelay-upload-code>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.batchrelay.com/v1/consumer/uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-BatchRelay-Upload-Code"] = '<x-batchrelay-upload-code>'
response = http.request(request)
puts response.read_body{}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}Headers
Response
Success
The response is of type object.
⌘I
Check a private upload link
curl --request GET \
--url https://api.batchrelay.com/v1/consumer/uploads \
--header 'X-BatchRelay-Upload-Code: <x-batchrelay-upload-code>'import requests
url = "https://api.batchrelay.com/v1/consumer/uploads"
headers = {"X-BatchRelay-Upload-Code": "<x-batchrelay-upload-code>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {
method: 'GET',
headers: {'X-BatchRelay-Upload-Code': '<x-batchrelay-upload-code>'}
};
fetch('https://api.batchrelay.com/v1/consumer/uploads', 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.batchrelay.com/v1/consumer/uploads",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-BatchRelay-Upload-Code: <x-batchrelay-upload-code>"
],
]);
$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.batchrelay.com/v1/consumer/uploads"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-BatchRelay-Upload-Code", "<x-batchrelay-upload-code>")
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.batchrelay.com/v1/consumer/uploads")
.header("X-BatchRelay-Upload-Code", "<x-batchrelay-upload-code>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.batchrelay.com/v1/consumer/uploads")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-BatchRelay-Upload-Code"] = '<x-batchrelay-upload-code>'
response = http.request(request)
puts response.read_body{}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}{
"code": "price_changed",
"docs_url": "<string>",
"error": "<string>",
"message": "<string>",
"next_action": "refresh_catalog",
"request_id": "<string>",
"retryable": true,
"details": {}
}