Wydrukuj zapisany wcześniej plik
POST
/api/v1/printing/printjobFromBlob/{connectionId}/{printerId}
const url = 'https://twoja-instancja-cloudprint-api.enterprise.sellrocket.pl/api/v1/printing/printjobFromBlob/1/1';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"binaryBlob":{"name":"example","contentType":"example","data":"example"},"passThroughCommandData":{"additionalProperty":{}}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://twoja-instancja-cloudprint-api.enterprise.sellrocket.pl/api/v1/printing/printjobFromBlob/1/1 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "binaryBlob": { "name": "example", "contentType": "example", "data": "example" }, "passThroughCommandData": { "additionalProperty": {} } }'Wysyła na drukarkę plik zapisany wcześniej w magazynie plików, np. wynik /api/Renderer/RenderPdfToBlob.
Autoryzacja
Dział zatytułowany „Autoryzacja”Parametry
Dział zatytułowany „Parametry”Parametry ścieżki
Dział zatytułowany „Parametry ścieżki”connectionId
wymagane
integer format: int64
printerId
wymagane
integer format: int64
Parametry zapytania
Dział zatytułowany „Parametry zapytania”platformOrderId
string
Treść żądania
Dział zatytułowany „Treść żądania”Typ treściapplication/json
object
binaryBlob
object
name
string
contentType
string
data
string format: byte
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
Examplegenerated
{ "binaryBlob": { "name": "example", "contentType": "example", "data": "example" }, "passThroughCommandData": { "additionalProperty": {} }}Odpowiedzi
Dział zatytułowany „Odpowiedzi”Accepted
object
title
string
contentType
string
state
string
lastStateChangeTimestamp
string format: date-time
printAttempt
integer format: int64
printRetries
integer format: int64
cpPrintJobId
integer format: int64
baseUri
string
path
string
connectionId
integer format: int64
printerId
integer format: int64
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
platformOrderId
string
downloadMethod
string
createdAt
string format: date-time
requestedAtUtc
string format: date-time
printedAtUtc
string format: date-time
object
title
string
contentType
string
state
string
lastStateChangeTimestamp
string format: date-time
printAttempt
integer format: int64
printRetries
integer format: int64
cpPrintJobId
integer format: int64
baseUri
string
path
string
connectionId
integer format: int64
printerId
integer format: int64
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
platformOrderId
string
downloadMethod
string
createdAt
string format: date-time
requestedAtUtc
string format: date-time
printedAtUtc
string format: date-time
Examplegenerated
{ "title": "example", "contentType": "example", "state": "example", "lastStateChangeTimestamp": "2026-04-15T12:00:00Z", "printAttempt": 1, "printRetries": 1, "cpPrintJobId": 1, "baseUri": "example", "path": "example", "connectionId": 1, "printerId": 1, "passThroughCommandData": { "additionalProperty": {} }, "platformOrderId": "example", "downloadMethod": "example", "createdAt": "2026-04-15T12:00:00Z", "requestedAtUtc": "2026-04-15T12:00:00Z", "printedAtUtc": "2026-04-15T12:00:00Z"}object
title
string
contentType
string
state
string
lastStateChangeTimestamp
string format: date-time
printAttempt
integer format: int64
printRetries
integer format: int64
cpPrintJobId
integer format: int64
baseUri
string
path
string
connectionId
integer format: int64
printerId
integer format: int64
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
platformOrderId
string
downloadMethod
string
createdAt
string format: date-time
requestedAtUtc
string format: date-time
printedAtUtc
string format: date-time
Examplegenerated
{ "title": "example", "contentType": "example", "state": "example", "lastStateChangeTimestamp": "2026-04-15T12:00:00Z", "printAttempt": 1, "printRetries": 1, "cpPrintJobId": 1, "baseUri": "example", "path": "example", "connectionId": 1, "printerId": 1, "passThroughCommandData": { "additionalProperty": {} }, "platformOrderId": "example", "downloadMethod": "example", "createdAt": "2026-04-15T12:00:00Z", "requestedAtUtc": "2026-04-15T12:00:00Z", "printedAtUtc": "2026-04-15T12:00:00Z"}
