Przejdź do głównej zawartości

Wydrukuj dokument z szablonu (wariant ogólny)

POST
/api/v1/printing/printjob/renderPdfGeneric/{connectionId}/{printerId}
curl --request POST \
--url https://twoja-instancja-cloudprint-api.enterprise.sellrocket.pl/api/v1/printing/printjob/renderPdfGeneric/1/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "baseUri": "example", "pdfPath": "example", "payload": "example" }'

Generuje dokument z szablonu na podstawie ogólnego żądania renderowania i wysyła go na drukarkę.

connectionId
wymagane
integer format: int64
printerId
wymagane
integer format: int64
platformOrderId
string
Typ treściapplication/json
object
baseUri
string
nullable
pdfPath
string
nullable
payload
Examplegenerated
{
"baseUri": "example",
"pdfPath": "example",
"payload": "example"
}

Accepted

object
title
string
nullable
contentType
string
nullable
state
string
nullable
lastStateChangeTimestamp
string format: date-time
nullable
printAttempt
integer format: int64
printRetries
integer format: int64
cpPrintJobId
integer format: int64
nullable
baseUri
string
nullable
path
string
nullable
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
nullable
downloadMethod
string
nullable
createdAt
string format: date-time
nullable
requestedAtUtc
string format: date-time
nullable
printedAtUtc
string format: date-time
nullable