---
title: "Envelope Scan By Code"
method: POST
path: "/api/print/envelope-scan"
tags: ["print"]
---

# Envelope Scan By Code

`POST /api/print/envelope-scan`

## Request

- Base URL: `https://api.pigeonly.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pigeonly.com/api/print/envelope-scan`
- Auth: none declared

The scan that actually reads the barcode.

Resolves the code against the order Marc pushed and prints THAT envelope,
addressed from the recipient block that arrived with it.

⛔AN ORDER IN SHADOW STILL PRINTS, and this paragraph used to explain that
with a safeguard that does not exist: "carrying a PARALLEL RUN - DO NOT
MAIL band and no postage". There is no band anywhere in `envelope.py` -- an
earlier version drew one and it was removed as invented rather than asked
for -- and postage is decided by mail class, never by shadow. So a shadow
scan produces an ordinary franked envelope, and the only thing keeping it
out of the mail is the floor's own convention that test prints are not
shipped. Frederick, 2026-09-08: "We'll test the printing, but we won't test
the shipping ... we just won't ship those."

That was decided for the PARALLEL RUN, where Centric held the same order
and a Roost print was a test print. Marc's cutover splits by routing
instead, so whether an unmarked duplicate should still come off the press
is a question for him, not an assumption for this docstring.

## Request body

- EnvelopeScanRequest
  - `code` string, required
  - `acknowledge_reprint` boolean
  - `reprint_after_attempt` integer, nullable
  - `station_equipment_id` string, uuid, nullable
  - `enforce_facility_shelf` boolean
  - `facility_shelf_done` string, nullable
  - `reship_anyway` boolean
  - `reship_reason` string, nullable
  - `press_both_labels` boolean

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-15** `5d029f36cc48`: 2 info
  - added the new optional request property `reship_anyway`
  - added the new optional request property `reship_reason`
- **2026-11-07** `c8bacf44acb3`: 1 info
  - added the new optional request property `press_both_labels`
- **2026-10-21** `d69add480fb5`: 2 info
  - added the new optional request property `enforce_facility_shelf`
  - added the new optional request property `facility_shelf_done`
- **2026-10-16** `686343edd729`: 1 info
  - added the new optional request property `station_equipment_id`
- **2026-10-14** `9b344023de51`: 2 info
  - added the new optional request property `acknowledge_reprint`
  - added the new optional request property `reprint_after_attempt`

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/print/envelope-scan/post.md)

---

[API](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os.md) - [All operations](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/llms.txt) - [OpenAPI document](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/revisions/14571c4b7007?raw)
