API Reference

Invoice Captures

Read a supplier invoice from a photo into a purchase invoice.

6 endpoints· Auth: JWT or API Key
get/api/v1/console/purchase-invoices/captures JWT API Key

Get captures

Capability
receive_purchase
API key scope
cap:receive_purchase (the key's owner must also hold the capability)

Query parameters

Status
string
`review` | `posted` | `discarded`; default every live capture.
Page
integer (int32)
—
PerPage
integer (int32)
—
Search
string
Free-text filter. Its meaning is per-resource and documented on the endpoint.
Skip
integer (int32)
Rows to skip, derived — never sent by the caller on this surface.
Sort
string
A snake_case column key from the endpoint's allow-list (`created_at`, `gross_total`, `status` …). Absent or blank → the endpoint's default order.
Dir
string
`asc` (the default when Panoptes.Application.Common.SortableRequest.Sort is present) or `desc`. Ignored without a sort.

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/purchase-invoices/captures" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Query parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/purchase-invoices/captures JWT API Key

Read a document into a draft

Writes no receipt and moves no stock.

Capability
receive_purchase
API key scope
cap:receive_purchase (the key's owner must also hold the capability)

Request body

application/json
{
  "format": "string",
  "content": "string",
  "fileName": "string",
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "mapping": {}
}
format
string
`pdf` | `csv` | `tsv` | `xlsx` | `text` | `image`.
content
string
Base64 for `pdf`, `xlsx` and `image`; the text itself for `csv`, `tsv` and `text`.
fileName
string
—
supplierId
string (uuid)
The supplier, when the person already knows it; otherwise it is matched from the document.
mapping
object
For a table: header → field overrides (`name`, `code`, `quantity`, `unit`, `unitPrice`, `lineTotal`), when the auto-mapping read a column wrong.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/purchase-invoices/captures" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "format": "string",
  "content": "string",
  "fileName": "string",
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "mapping": {}
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/purchase-invoices/captures/{id} JWT API Key

Get id

Capability
receive_purchase
API key scope
cap:receive_purchase (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/purchase-invoices/captures/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/purchase-invoices/captures/{id}/confirm JWT API Key

Post the confirmed receipt through the purchasing writer, then remember the matches

Capability
receive_purchase
API key scope
cap:receive_purchase (the key's owner must also hold the capability)
Idempotency
Send an Idempotency-Key header (a UUID you mint). A retry with the same key replays the first answer.

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "businessDate": "2026-11-27",
  "receiptNumber": "string",
  "paymentType": "string",
  "paidAmount": 0,
  "paidFrom": "string",
  "stockLocationId": "00000000-0000-0000-0000-000000000000",
  "notes": "string",
  "lines": [
    {
      "row": 0,
      "rawName": "string",
      "inventoryItemId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "unitCost": 0
    }
  ],
  "rememberItems": false,
  "rememberMapping": false
}
supplierId
string (uuid)
—
businessDate
string (date)
The day the goods arrived; default the invoice date, else today.
receiptNumber
string
The supplier's invoice number; default the captured one.
paymentType
string
`cash` | `credit`; default `credit` — a supplier invoice is usually owed.
paidAmount
integer (int64)
—
paidFrom
string
—
stockLocationId
string (uuid)
—
notes
string
—
lines
ConfirmInvoiceCaptureLine[]
—
rememberItems
boolean
Remember the supplier's line names for these items (default on).
rememberMapping
boolean
For a table: remember the column mapping for this supplier (default on).

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/purchase-invoices/captures/{id}/confirm" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "businessDate": "2026-11-27",
  "receiptNumber": "string",
  "paymentType": "string",
  "paidAmount": 0,
  "paidFrom": "string",
  "stockLocationId": "00000000-0000-0000-0000-000000000000",
  "notes": "string",
  "lines": [
    {
      "row": 0,
      "rawName": "string",
      "inventoryItemId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "unitCost": 0
    }
  ],
  "rememberItems": false,
  "rememberMapping": false
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/purchase-invoices/captures/{id}/discard JWT API Key

Create discard

Capability
receive_purchase
API key scope
cap:receive_purchase (the key's owner must also hold the capability)

Path parameters

idrequired
string (uuid)
—

Request body

application/json
{
  "reason": "string"
}
reason
string
—

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/purchase-invoices/captures/{id}/discard" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "reason": "string"
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/purchase-invoices/captures/capabilities JWT API Key

The formats this install reads, and whether photos are on

Capability
receive_purchase
API key scope
cap:receive_purchase (the key's owner must also hold the capability)

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/purchase-invoices/captures/capabilities" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Headers

Set credentials in the “Authorize” menu