Skip to navigation

List the printers of a customer

View as Markdown

The customer’s printers, with their status. status keeps the printers that have it. A list does not carry profile or print_options: retrieve the printer for them.

Scope: printers:read.

Authentication

AuthorizationBearer

A restricted API key, tc_rk_live_ and 32 characters. Send it as Authorization: Bearer <key>. A key lists its scopes, and each operation below names the one it needs; a key may also be limited to one customer. An owner or a developer of the organization makes a key in the dashboard, under API keys, after a code sent to their e-mail. The key is shown once, when it is made. An owner or a developer can revoke it there, and a revoked key stops working within a minute.

Path parameters

customerstringRequired
The customer's id.

Query parameters

limitintegerOptional1-100
How many objects a page holds, 1 to 100. The default is 10.
starting_afterstringOptional

The id of the last object of the page you hold: returns the page that follows it.

ending_beforestringOptional

The id of the first object of the page you hold: returns the page that precedes it. Not together with starting_after.

statusenumOptional
Only printers with this status.

Response

A page of the customer's printers.
datalist of objects
has_moreboolean

Whether another page follows. Ask for it with starting_after set to the id of the last object here, or, when the answer has a next_cursor, with that. A search by client_reference_id can answer a short page, or none, with has_more true: it reads only so many rows in one request, and next_cursor is the way on.

objectstring

Always list.

next_cursorstringOptional

Only in the answer to a search (client_reference_id) that stopped before it could fill the page: it read all the rows it may in one request. Then data holds what it found so far, possibly nothing, has_more is true, and this is the position to continue from: pass it as starting_after (or as ending_before, if you page backward) in place of the id of the last object. It is an id of the kind of the list, but not necessarily the id of an object in data. Left out otherwise.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error