API Reference

Data Imports

Import products, stock, suppliers and more from a spreadsheet.

10 endpoints· Auth: JWT or API Key
get/api/v1/console/imports JWT API Key

The branch's recent import runs (the entities the caller may import)

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Query parameters

Entity
string
One entity: `inventory_item`, `supplier`, `recipe`, `opening_stock`, `customer`, `price_list`, `product`.
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/imports" \
  -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/imports/{entity}/dry-run JWT

Step one: parse, map, validate and report

Writes nothing but the batch.

Signed-in user only
Not open to API keys or OAuth tokens.

Path parameters

entityrequired
string
—

Request body

application/json
{
  "format": "string",
  "content": "string",
  "mapping": {},
  "mappingId": "00000000-0000-0000-0000-000000000000"
}
format
string
`csv` (default) | `tsv` | `xlsx`.
content
string
The file: text for csv/tsv, base64 for xlsx (at most 5 MB).
mapping
object
Source header → field key overrides, applied over the saved mapping and the aliases.
mappingId
string (uuid)
A saved mapping of this entity to apply first.

Responses

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

Path parameters

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/imports/{entity}/mappings JWT API Key

Get mappings

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Path parameters

entityrequired
string
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/imports/{entity}/mappings" \
  -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/imports/{entity}/mappings JWT

Create mappings

Signed-in user only
Not open to API keys or OAuth tokens.

Path parameters

entityrequired
string
—

Request body

application/json
{
  "name": "string",
  "mapping": {}
}
name
string
—
mapping
object
Source header → field key.

Responses

200Success
cURL
curl -X POST "https://staging-api.panoptesos.com/api/v1/console/imports/{entity}/mappings" \
  -H "Content-Type: application/json" \
  -H "X-Api-Key: <YOUR_API_KEY>" \
  -d '{
  "name": "string",
  "mapping": {}
}'
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/imports/{entity}/template JWT API Key

`?format=csv|xlsx&lang=ar|en` — headers that map themselves

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Path parameters

entityrequired
string
—

Query parameters

format
string
—
lang
string
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/imports/{entity}/template" \
  -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
get/api/v1/console/imports/batches/{batchId} JWT API Key

One batch and its report

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Path parameters

batchIdrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/imports/batches/{batchId}" \
  -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/imports/batches/{batchId}/commit JWT

Step two: re-upload the same file; every valid row posts through its writer

Signed-in user only
Not open to API keys or OAuth tokens.

Path parameters

batchIdrequired
string (uuid)
—

Request body

application/json
{
  "format": "string",
  "content": "string",
  "mapping": {},
  "mappingId": "00000000-0000-0000-0000-000000000000"
}
format
string
`csv` (default) | `tsv` | `xlsx`.
content
string
The file: text for csv/tsv, base64 for xlsx (at most 5 MB).
mapping
object
Source header → field key overrides, applied over the saved mapping and the aliases.
mappingId
string (uuid)
A saved mapping of this entity to apply first.

Responses

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

Path parameters

Request body (JSON)

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu
get/api/v1/console/imports/batches/{batchId}/errors.csv JWT API Key

The batch's row errors as a CSV to fix the file from

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Path parameters

batchIdrequired
string (uuid)
—

Responses

200Success
cURL
curl -X GET "https://staging-api.panoptesos.com/api/v1/console/imports/batches/{batchId}/errors.csv" \
  -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/imports/entities JWT API Key

Every importable entity, its fields, and whether the caller may import it

API key scope
Any key holding a cap: scope (a read every signed-in role can make).

Responses

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

Headers

Set credentials in the “Authorize” menu
delete/api/v1/console/imports/mappings/{id} JWT

Delete id

Signed-in user only
Not open to API keys or OAuth tokens.

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/imports/mappings/{id}" \
  -H "X-Api-Key: <YOUR_API_KEY>"
Try itagainst staging · https://staging-api.panoptesos.com

Path parameters

Headers

This action refuses API keys — it needs a signed-in user. Switch to a JWT under Authorize, or do it in the dashboard.
Set credentials in the “Authorize” menu