---
title: "Leftover Count"
method: GET
path: "/api/fulfillment/wizard/boxes/{shipment_id}/leftover-count"
tags: ["fulfillment"]
---

# Leftover Count

`GET /api/fulfillment/wizard/boxes/{shipment_id}/leftover-count`

## 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/fulfillment/wizard/boxes/{shipment_id}/leftover-count`
- Auth: none declared

How many other parcels for this box's own facility are PACKED AND
WAITING (printed and packaged, in no box), so the station can show "12
more for Sonoma are packed and waiting: add them if you have them" before
Done. Information only since 2026-09-24 (Frederick): nothing refuses a
close over it. See `service.parcels_left_behind_count`.

Corrected 2026-10-16 (Frederick, ~2:57 PM; the lines above stand as the record): only
pieces that were ready when this box was OPENED count and are listed, so a facility
still being packaged by someone else does not keep Done shut.

⛔APPENDED 2026-10-20 (Frederick, ruling E of 2026-10-19, issue #6307, part 2): THE STATION
NEVER SHOWS WHO PACKAGED A PIECE. "if you have a disgruntled contractor that doesn't like
another contractor, and they know that if they pretend they don't see something, that
person gets a strike ... So maybe only managers see their names of who the parcels was
packed and the individual people don't." Each leftover carries `scanned_label` ("Scanned by
Elizabeth Mon Oct 19, 10:36 AM") ONLY when the caller is a manager (`_is_manager`: the
`fulfillment:void` grant, the one manager test this module already uses for a box). For
anyone else the key is ABSENT (not null, not blank) and the custody lookup that would have
produced the names is never run: the packer's list is the piece codes and nothing else.
The label was added 2026-10-17 so colleagues could ask each other where a piece went; that
reason is withdrawn by the ruling, and the 2026-10-19 date-with-the-time rule (FLR-154)
still holds for the managers who see it.

## Path parameters

- `shipment_id` string, uuid, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

[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)
