---
title: "Extract Receipt"
method: POST
path: "/api/v1/materials/extract-receipt"
tags: ["v1", "Materials"]
---

# Extract Receipt

`POST /api/v1/materials/extract-receipt`

## 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/extract-receipt`
- Auth: none declared

Read purchased line items from a receipt photo or PDF, for review.

The receipt becomes a project file like any upload, and its one reading is
made here, by ingest's own reader, and stored on the ledger
(generic_extract_node.read_and_store). The file is queued for ingest only
after that, and its run adopts the stored reading instead of reading the
file again. The screen shows exactly what is stored; a person's fixes go
back through the ledger edit path (POST /files/{file_id}/edits with the
`path` returned beside each value), so the File Manager shows them too.

Nothing is added until the person reviews it, since a photo can misread a
price or name.

## Request body `multipart/form-data`

- BodyExtractReceiptApiV1MaterialsExtractReceiptPost
  - `file` string, binary, required
  - `project_id` integer, required

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