---
title: "Same Piece Capture"
method: POST
path: "/api/intake/captures/{capture_id}/same-piece"
tags: ["intake"]
---

# Same Piece Capture

`POST /api/intake/captures/{capture_id}/same-piece`

## 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/intake/captures/{capture_id}/same-piece`
- Auth: none declared

The "Same piece" answer. CHANGED 2026-11-23 (owner, Frederick: "it should accept the label that was printed out and do
not print a new label out"; rule and refusals in `intake/same_piece.py`, ruling
`docs/01_decisions/rulings/2026-11-23-same-piece-keeps-the-printed-label.md`):
  * the photo's label has NOT printed: it is withdrawn (nothing prints) and the NEW capture is voided as below;
  * the photo's label MAY be on paper: it is accepted, the NEW capture stands with it, and the EARLIER capture is
    voided (`kept_label` "new"), unless the pair is refused, in which case the NEW capture is voided and the label
    is thrown away as before.

Rule before 2026-11-23 (lead's decision 5, 2026-11-08, on INTAKE-V2-PARITY-1; FLR-178 void rule in
`docs/00_business_rules/FULFILLMENT_AND_FLOOR.md`): the new capture is voided through
`captures.record_void`, the one writer of a void, with the earlier intake ID written into the
reason. Nothing is deleted and the earlier row is never touched: the record of what was
photographed first stands. "This is a new piece" is NOT this route; it leaves the new capture
standing.

422 when the two ids are the same capture, 404 when either capture does not exist. A second
"Same piece" on an already-voided capture answers `voided: false` and keeps the first reason
(the same rule as `record_void`). A read of the earlier row, then one UPDATE: the earlier
capture is not locked, and it does not need to be, because nothing is changed on it.

## Path parameters

- `capture_id` string, uuid, required

## Request body

- SamePieceRequest: A person says the envelope on the screen is the same piece as an earlier one. OWNER, 2026-11-08 (lead's decision 5 on INTAKE-V2-PARITY-1; design "Looks like" / "Same piece"): the look-alike the server recorded as a NEW piece is a re-capture of the earlier one. Its id is the earlier capture's, the one the screen shows underneath.
  - `earlier_capture_id` string, uuid, required

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

## Changes

- **2026-11-08** `01482abd6f99`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pigeonly/apis/roost-v2-pigeonly-company-os/changes/api/intake/captures/:capture_id/same-piece/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)
