Skip to main content

PrintersApi

MethodHTTP requestDescription
createPrinterPOST /api/web/v1/printersCreates a printer.
deletePrinterDELETE /api/web/v1/printers/{printerId}Deletes a printer by ID.
deletePrinterWithTenantIdDELETE /api/web/v1/printers/{printerId}/{tenantId}Deletes a lost printer by printer id and lost tenant ID.
getPrintersGET /api/web/v2/printersGets all printers.
getPrintersWithGroupRestrictionGET /api/web/v2/printers/restrictedGets printers with group restriction.
printersSummaryGET /api/web/v1/printers/summaryRetrieve count of registered printers
readPrinterGET /api/web/v1/printers/{printerId}Return a specified printer.
readPrinterByDeviceIdGET /api/web/v2/printers/{deviceId}Return a specified printer using printer device id.
readPrinterPreferencesGET /api/web/v1/printers/{printerId}/preferencesGet the preferences for the specified printer.
readPrintersGET /api/web/v1/printersGets all printers.
replacePrinterPUT /api/web/v1/printers/{printerId}Update the specified printer.
replacePrinterPreferencesPUT /api/web/v1/printers/{printerId}/preferencesUpdate the preferences for the specified printer.
updatePrinterV2PUT /api/web/v2/printers/{printerId}Update the specified printer.

createPrinter

ResourceIdResponse createPrinter(printer)

Creates a printer.

Parameters

NameTypeDescriptionNotes
printerPrinter

Return type

ResourceIdResponse

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
202Accepted-
400Bad request-
401Authorization information is missing or invalid-
409Conflict, printer already exists with the given Name or Device ID.-
500Unexpected error-

deletePrinter

deletePrinter(printerId)

Deletes a printer by ID.

Example

Parameters

NameTypeDescriptionNotes
printerIdStringThe unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3

Return type

null (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

deletePrinterWithTenantId

deletePrinterWithTenantId(printerId, tenantId)

Deletes a lost printer by printer id and lost tenant ID.

Example

Parameters

NameTypeDescriptionNotes
printerIdStringPrinter ID
tenantIdStringPrinter ID

Return type

null (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

HTTP response details

Status codeDescriptionResponse headers
200OK-

getPrinters

List<Printer> getPrinters()

Gets all printers.

Example

Parameters

This endpoint does not need any parameter.

Return type

List<Printer>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
500Unexpected error-

getPrintersWithGroupRestriction

List<Printer> getPrintersWithGroupRestriction()

Gets printers with group restriction.

Example

Parameters

This endpoint does not need any parameter.

Return type

List<Printer>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-

printersSummary

PrinterSummaryResponse printersSummary()

Retrieve count of registered printers

Example

Parameters

This endpoint does not need any parameter.

Return type

PrinterSummaryResponse

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200Successfully retreived printer summary-
400Bad request-
401Authorization information is missing or invalid-
500Unexpected error-

readPrinter

Printer readPrinter(printerId)

Return a specified printer.

Example

Parameters

NameTypeDescriptionNotes
printerIdStringThe unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3

Return type

Printer

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

readPrinterByDeviceId

Printer readPrinterByDeviceId(deviceId)

Return a specified printer using printer device id.

Example

Parameters

NameTypeDescriptionNotes
deviceIdStringThe unique 16 character id obtained from the printer LCD. Example - F71523262A998271

Return type

Printer

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

readPrinterPreferences

PrinterPreferences readPrinterPreferences(printerId)

Get the preferences for the specified printer.

Example

Parameters

NameTypeDescriptionNotes
printerIdStringThe unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3

Return type

PrinterPreferences

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

readPrinters

List<Printer> readPrinters(fields, withStatus)

Gets all printers.

Example

Parameters

NameTypeDescriptionNotes
fieldsStringThe model properties to return. This parameter is NOT supported in Instant ID as a Service and will not impact the returned list.[optional]
withStatusBooleanIndicates if the current status of each printer is retrieved. Defaults to false if not specified. This parameter is NOT supported in Instant ID as a Service and will not impact the returned list.[optional]

Return type

List<Printer>

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
500Unexpected error-

replacePrinter

replacePrinter(printerId, printer)

Update the specified printer.

Example

Parameters

NameTypeDescriptionNotes
printerIdStringThe unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3
printerPrinter

Return type

null (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

replacePrinterPreferences

replacePrinterPreferences(printerId, printerPreferences)

Update the preferences for the specified printer.

Example

Parameters

NameTypeDescriptionNotes
printerIdStringThe unique 32-36 character id obtained from the Get All Printers request. Example - 0b0db90a-6091-416f-8559-2f2181e941c3
printerPreferencesPrinterPreferences

Return type

null (empty response body)

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-

updatePrinterV2

Printer updatePrinterV2(printerId, updatePrinterV2Request)

Update the specified printer.

Example

Parameters

NameTypeDescriptionNotes
printerIdStringThe unique 32–36 character id obtained from the Get All Printers request.
updatePrinterV2RequestUpdatePrinterV2Request

Return type

Printer

Authorization

AdminAPIAuthentication

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

Status codeDescriptionResponse headers
200OK-
400Bad request-
401Authorization information is missing or invalid-
404The specified resource was not found-
500Unexpected error-