---
search:
  tags:
    - Printing
    - POST
seo:
  description: >-
    Admin only. Registers a browser printer for a branch, defaulting when the…
    Reference for the POST /api/v1/printing/printers endpoint in the PharmaFlow
    API.
sidebar:
  label: Register a printer
  badge: POST
title: Register a printer
type: openapi-operation
---
Admin only. Registers a browser printer for a branch, defaulting when the branch has none. Only browser printing is supported, so a device_path is refused and copies must be 1 to 20.

`POST /api/v1/printing/printers`

**Request body** (`application/json`, required)

- `branch_id` (string)
- `name` (string, required)
- `kind` (string)
- `connection` (string)
- `device_path` (string)
- `copies` (number)
- `is_default` (boolean)
- `auto_print` (boolean)
- `kick_drawer` (boolean)

Request body example:

```json
{
  "branch_id": "string",
  "name": "string",
  "kind": "string",
  "connection": "string",
  "device_path": "string",
  "copies": 0,
  "is_default": true,
  "auto_print": true,
  "kick_drawer": true
}
```

**Responses**

- `201` — Printer registered
- `400` — Printer name is empty, a device path is set, the kind or connection is unsupported, or copies is not an integer between 1 and 20
- `401` — Not authenticated
- `403` — Caller is not an admin, or the branch is outside your ownership

Response example, 201:

```json
{
  "id": "string",
  "branch_id": "string",
  "name": "string",
  "kind": "string",
  "connection": "string",
  "device_path": "string",
  "is_default": -9007199254740991,
  "copies": -9007199254740991,
  "auto_print": -9007199254740991,
  "kick_drawer": -9007199254740991,
  "is_active": -9007199254740991,
  "is_deleted": -9007199254740991,
  "created_at": "string",
  "updated_at": "string"
}
```
