API Reference

Supplier Bills

Bills from suppliers waiting to be paid.

4 endpoints· Auth: JWT or API Key
get/api/v1/console/supplier-bills JWT API Key

Get supplier-bills

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

Query parameters

SupplierId
string (uuid)
—
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/supplier-bills" \
  -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/supplier-bills JWT API Key

Enter a bill

Moves the payable and the stock value, so it is a money write.

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.

Request body

application/json
{
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "supplierBillNumber": "string",
  "billDate": "2026-11-27",
  "notes": "string",
  "lines": [
    {
      "purchaseInvoiceItemId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "unitCost": 0
    }
  ]
}
supplierId
string (uuid)
—
supplierBillNumber
string
The supplier's own invoice number — unique per supplier.
billDate
string (date)
The bill's business day; defaults to today and must be open.
notes
string
—
lines
SupplierBillLineRequest[]
One per receipt line. Every line of each receipt named must be on the bill: a receipt is billed whole, or it is not billed yet.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/supplier-bills" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "supplierId": "00000000-0000-0000-0000-000000000000",
  "supplierBillNumber": "string",
  "billDate": "2026-11-27",
  "notes": "string",
  "lines": [
    {
      "purchaseInvoiceItemId": "00000000-0000-0000-0000-000000000000",
      "quantity": 0,
      "unitCost": 0
    }
  ]
}'
Try itagainst staging · https://staging-api.panoptesos.com

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/supplier-bills/{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/supplier-bills/{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
get/api/v1/console/supplier-bills/unbilled JWT API Key

Receipts still waiting for their bill — what the bill form is built from

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

Query parameters

supplierId
string (uuid)
—

Responses

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

Query parameters

Headers

Set credentials in the “Authorize” menu