---
title: "Ingest Confirmation Email Route"
method: POST
path: "/api/equipment/parts/orders/ingest-confirmation-email"
tags: ["equipment"]
---

# Ingest Confirmation Email Route

`POST /api/equipment/parts/orders/ingest-confirmation-email`

## 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/equipment/parts/orders/ingest-confirmation-email`
- Auth: none declared

A supplier's order-confirmation email, forwarded and pasted in --
parses order number/items/price/shipping/tracking and matches it to
the open `part_orders` row it belongs to. See docs/runbooks/
RUNBOOK_PART_SOURCING.md for the forwarding step.

⛔UPDATED 2026-09-30 (equipment.parts_spend): the Gmail poller calls the
recorder automatically for every message it reads off tara@'s mailbox
(`customer_service.inbound._process_email` ->
`supply_order_email.dispatch_mailbox_email`) -- this route stays for a
person forcing a re-read of one email by hand (or a supplier this
build's `should_attempt_parts_parse` heuristic missed).

⛔CORRECTED 2026-10-20 (B9, docs/01_decisions/CODE_CLEANUP_20261020_B9_ONE_SUPPLIER_EMAIL_WRITER.md): this route used to call
only `part_sourcing.ingest_order_confirmation`, so a pasted email updated
`part_orders` and NEVER wrote `supplier_order_confirmations` or the
`operating_costs` line the poller writes (the docstring said so, as a
feature). It now calls `parts_spend.record_supplier_order_email(
force=True)` -- the one writer both entry points share -- and answers in
the same shape as before.

## Request body

- IngestConfirmationEmailRequest
  - `raw_text` string, required
  - `sender` string, nullable

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