---
title: "List Cancelled Po Groups"
method: GET
path: "/api/v1/materials/receiving/cancelled"
tags: ["v1", "Materials"]
---

# List Cancelled Po Groups

`GET /api/v1/materials/receiving/cancelled`

## Request

- Base URL: `https://api.jeevyfabrication.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jeevyfabrication.com/api/v1/materials/receiving/cancelled`
- Auth: none declared

Voided POs, rebuilt from `state_history` — Purchase History's Cancelled filter.

A void deliberately leaves NOTHING to group by: `_void_one_item_purchase` clears
`po_number` so the line can be re-raised without colliding with the dead order, and
resets `status` to DRAFT so it drops out of `_fetch_receiving_items` entirely. That
is the right shape for the ITEM and the wrong shape for the HISTORY — the order was
real, money moved, and the reversal is the record of it.

So the group is reconstructed rather than stored: the `void_purchase` event carries
the PO number it reversed (see _void_one_item_purchase), and the items are gathered
back under it here. No column, no migration, and nothing on the live row to keep in
sync — the item stays clean and the history is derived.

Read-only and separate from GET /receiving on purpose: this scans DRAFT rows, which
the hot receiving path has no reason to pay for on every poll.

## Response `200`

Successful Response

- object

---

[API](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api.md) - [All operations](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jeevyfabrication/apis/bom-generation-api/revisions/ad9a01abeac9?raw)
