Cloud Printing
Print Stations
Print stations represent computers or devices running the PackageX Print Station application. Each station can manage multiple physical printers and receive print jobs via push notifications.
Endpoints
Required Scopes
print_stations:read- For listing and retrieving stationsprint_stations:write- For creating, updating and removing stations (including removing printers through an update)
Create Print Station
Creates a new print station with one or more printers.
Request Body
Parameters
Printer Parameters
Response
Update Print Station
Updates an existing print station. All fields are optional.
Request Body
Important: When updating printers, provide the complete list. Printers not included in the request will be soft-deleted, and any queued jobs for those printers will be aborted with the reason "Printer Removed". See Remove Printer.
Managing Allowed Users
You can control which users have access to the station:
List Print Stations
Returns a paginated list of print stations.
Query Parameters
Example Request
Response
Retrieve Print Station
Retrieves a single print station by ID.
Example Request
Response
Remove Print Station
Removes a print station along with all of its printers.
Example Request
Response
What Happens on Removal
- Station and printers are soft deleted. The station no longer appears in List Print Stations, and Retrieve Print Station, Update Print Station and a second delete all return
404for its ID. A print job that names the removed station inprint_station_idalso returns404, and the station is never picked when a job is auto-assigned. - The station's names are freed. The removed station is renamed so a new station at the same location can reuse its
nameanddisplay_name. Each name is cut to its first 160 characters and a short suffix taken from the station ID is appended:namebecomes<name>__removed_<suffix>anddisplay_namebecomes<display_name> (removed <suffix>). Historical print jobs show the renamed display name. - In-flight jobs are aborted. Jobs on the station that are still
queuedorprocessingare set toabortedwith the reason"Station Removed". A later status report for one of these jobs (for example, the station reportingcompleted) is rejected with400and codeprint_job.invalid_state. Jobs that already reached a final status are not changed, andunreportedjobs are also left unchanged and can still be updated after the station is removed. - Job history is kept. Existing print jobs remain available through the print jobs endpoints.
- Access and push settings are cleared. The station's allowed users list and push
device_tokenare removed, and its status becomesdisconnected.
The bulk abort does not emit a separate event for each aborted print job. The removal itself is emitted as the cloud_printing.station.updated event (there is no separate station deleted event); the event's station carries the renamed name and display_name and status: "disconnected".
The PackageX Print Bridge app signs in with your organization's API key, so if it is still running on the station's computer it will sync the machine back as a new station with a new ID. After removing a station, change the API key used by the app on that computer (or uninstall the app).
Remove Printer
There is no separate endpoint for removing a printer. Remove one by updating the station with its printers list minus that printer: printers is treated as the complete set, so any printer left out is removed.
Example Request
The response is the updated station, without the removed printer.
What Happens on Removal
- The printer is soft deleted and no longer appears in the station's
printerslist. - Jobs on that printer that are still
queuedare set toabortedwith the reason"Printer Removed". Jobs that areprocessingorunreportedare not changed. - The printers you send replace the saved ones, so always build the list from a fresh read of the station; a stale list can overwrite newer printer settings or remove a printer added since.
- The change is emitted as the
cloud_printing.station.updatedevent.
If the PackageX Print Bridge app is still running with this printer attached, it may add the printer back the next time it syncs its printers.