API Reference
Suppliers
7 endpoints· Auth: JWT or API Key
get
/api/v1/console/suppliers JWT API KeyList suppliers
hides tombstoned rows unless asked.
- Capability
manage_suppliers- API key scope
cap:manage_suppliers(the key's owner must also hold the capability)
Query parameters
| IncludeDeleted boolean | Include tombstoned suppliers. FR-PUR-109 excludes them from every picker, statement and listing, so this is an explicit, capability-gated opt-in rather than a default. |
| 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/suppliers" \
-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/suppliers JWT API KeyCreate or upsert a supplier.,,
Returns 201 in both cases; the body's `deduped` flag is what tells an importer which of the two happened, and it is reported honestly.
- Capability
manage_suppliers- API key scope
cap:manage_suppliers(the key's owner must also hold the capability)
Request body
application/json
{
"name": "string",
"phone": "string",
"notes": "string",
"externalId": "string",
"currencyCode": "string",
"paymentTermsDays": 0
}| name string | — |
| phone string | — |
| notes string | — |
| externalId string | The caller's own key for this supplier. Absent means "always create": the composite unique permits many NULLs, which is what lets two walk-in suppliers share the same blank id. |
| currencyCode string | The supplier's default transaction currency (FR-PUR-106). Absent inherits the branch's `baseCurrencyCode`, which is what makes the single-currency install the zero-config case. |
| paymentTermsDays integer (int32) | Net-N terms in days. NULL is cash-on-delivery, not "unknown" (FR-PUR-004). |
Responses
200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/suppliers" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"name": "string",
"phone": "string",
"notes": "string",
"externalId": "string",
"currencyCode": "string",
"paymentTermsDays": 0
}' Try itagainst staging · https://staging-api.panoptesos.com
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
get
/api/v1/console/suppliers/{id} JWT API KeyOne supplier
- Capability
manage_suppliers- API key scope
cap:manage_suppliers(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/suppliers/{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
delete
/api/v1/console/suppliers/{id} JWT API KeyRetire a supplier
A tombstone, never a `DELETE`: every posted invoice, payment and movement keeps pointing at this row. Refused while the account still carries debt, credit or an open order.
- Capability
manage_suppliers- API key scope
cap:manage_suppliers(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 DELETE "https://staging-api.panoptesos.com/api/v1/console/suppliers/{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/suppliers/{id}/items JWT API KeyThe supplier's catalog
Takes `?sort=&dir=` (`SupplierCatalogSort`); the parameter is not named `sort` so the binder does not read that key as its prefix.
- Capability
manage_suppliers- API key scope
cap:manage_suppliers(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Query parameters
| 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/suppliers/{id}/items" \
-H "X-Api-Key: <YOUR_API_KEY>" Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Query parameters
Headers
Set credentials in the “Authorize” menu
put
/api/v1/console/suppliers/{id}/items JWT API KeyUpsert one catalog row.,
- Capability
manage_suppliers- API key scope
cap:manage_suppliers(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
application/json
{
"inventoryItemId": "00000000-0000-0000-0000-000000000000",
"isPreferred": false,
"leadTimeDays": 0,
"minOrderQty": 0,
"contractUnitCost": 0,
"contractValidFrom": "2026-11-27",
"contractValidTo": "2026-11-27"
}| inventoryItemId string (uuid) | — |
| isPreferred boolean | At most one catalog row per inventory item may carry this, across all suppliers — the service clears the flag elsewhere in the same transaction (FR-PUR-006). |
| leadTimeDays integer (int32) | — |
| minOrderQty number (double) | Minimum order quantity, on the PURCHASE-unit basis where the item carries a `purchasePerStockUnit` factor and on the stock-unit basis otherwise (FR-PUR-007). A quantity, therefore `decimal` — never `double`. |
| contractUnitCost integer (int64) | The agreed price per PURCHASE unit, in the supplier's currency (benchmark PUR B7). Null clears the agreement. |
| contractValidFrom string (date) | First business day the agreed price holds. Null = immediately. |
| contractValidTo string (date) | Last business day it holds, inclusive. Null = until changed. |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/suppliers/{id}/items" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"inventoryItemId": "00000000-0000-0000-0000-000000000000",
"isPreferred": false,
"leadTimeDays": 0,
"minOrderQty": 0,
"contractUnitCost": 0,
"contractValidFrom": "2026-11-27",
"contractValidTo": "2026-11-27"
}' Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Request body (JSON)
Headers
Set credentials in the “Authorize” menu
put
/api/v1/console/suppliers/{id}/payment-terms JWT API KeySet net-N payment terms
- Capability
manage_suppliers- API key scope
cap:manage_suppliers(the key's owner must also hold the capability)
Path parameters
| idrequired string (uuid) | — |
Request body
application/json
{
"paymentTermsDays": 0,
"deliveryWeekdays": 0
}| paymentTermsDays integer (int32) | Days. NULL or 0 means cash on delivery. |
| deliveryWeekdays integer (int32) | Benchmark PUR "delivery schedules": the weekdays the supplier delivers, a bitmask of System.DayOfWeek (bit 0 = Sunday). 0 clears the schedule; NULL leaves it as it is, so a caller that only knows about terms cannot erase it. |
Responses
200Success
cURL
curl -X PUT "https://staging-api.panoptesos.com/api/v1/console/suppliers/{id}/payment-terms" \
-H "Content-Type: application/json" \
-H "X-Api-Key: <YOUR_API_KEY>" \
-d '{
"paymentTermsDays": 0,
"deliveryWeekdays": 0
}' Try itagainst staging · https://staging-api.panoptesos.com
Path parameters
Request body (JSON)
Headers
Set credentials in the “Authorize” menu