---
title: "Check Po Number Exists"
method: GET
path: "/api/v1/materials/po-number-exists"
tags: ["v1", "Materials"]
---

# Check Po Number Exists

`GET /api/v1/materials/po-number-exists`

## 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/po-number-exists`
- Auth: none declared

Check whether a PO number is already in use.

Two scopes, depending on whether `project_id` is passed:
- Given: unchanged from before — exact-project check, used by the
  receipt-scan flow (AddItemPanel.js), where the PO number is user-typed
  and a typo colliding with an existing unrelated PO would silently merge
  two different purchases. That caller treats this as a warning, not a
  hard block — merging into an existing PO can be intentional there (e.g.
  scanning a second receipt for the same order).
- Omitted: checks across every project in the CALLER'S OWN SHOP plus the
  shop's own facility list (INY- restock POs live there with project_id
  NULL), not the whole multi-tenant database (see `_caller_shop_filter` —
  same convention the cross-project /receiving* dashboards use). This is
  what RaisePOConfirmModal's custom PO# input and the post-raise rename
  field use — Vinay's shop runs its own numbering scheme, which (unlike
  our auto-generated `<project_number>-P###` format) isn't guaranteed
  unique per-project, so those callers treat a collision as a hard block,
  not just a warning.

## Query parameters

- `po_number` string, required
- `project_id` integer, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422`: Validation Error

---

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