Przejdź do głównej zawartości

Wyślij dokument do druku

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

Tworzy zadanie wydruku przesłanego dokumentu na wskazanej drukarce; opcjonalnie wiąże je z zamówieniem (platformOrderId).

connectionId
wymagane
integer format: int64
printerId
wymagane
integer format: int64
platformOrderId
string
Typ treściapplication/json
object
baseUri
string
nullable
path
string
nullable
passThroughCommandData
object
key
additional properties
object
options
object
propertyNameCaseInsensitive
boolean
parent
object
object recursive
root
object
object recursive
Examplegenerated
{
"baseUri": "example",
"path": "example",
"passThroughCommandData": {
"additionalProperty": {}
}
}

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