Przejdź do głównej zawartości

Wydrukuj dokument wygenerowany z szablonu

POST
/api/v1/printing/printjob/renderPdf/{connectionId}/{printerId}
curl --request POST \
--url https://twoja-instancja-cloudprint-api.enterprise.sellrocket.pl/api/v1/printing/printjob/renderPdf/1/1 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{ "templateId": 1, "objects": { "type": "Order", "ids": [ "example" ] }, "fileName": "example" }'

Generuje PDF z szablonu i od razu wysyła go na drukarkę, np. do automatycznego wydruku dokumentów zamówienia.

connectionId
wymagane
integer format: int64
printerId
wymagane
integer format: int64
platformOrderId
string
Typ treściapplication/json
object
templateId
wymagane
integer format: int64
objects
object
type
string
Dozwolone wartości: Order Connection LineItem LineItems EmailTemplate
ids
Array<string>
nullable
fileName
wymagane
string
>= 1 characters

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