API Reference

Product Import

4 endpoints· Auth: JWT or API Key
get/api/v1/console/catalog/imports/{batchId} JWT API Key

One batch and its report

A batch in another branch reads as `NOT_FOUND`.

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)
Public scope
write:catalog

Path parameters

batchIdrequired
string (uuid)
—

Responses

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

Step two: post the batch's valid rows through the product creation core.,,

The caller re-uploads the same file, which the service re-parses — the batch stores the report, never the rows. A second commit of the same batch is `CONFLICT`, so a menu import lands exactly once.

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)
Public scope
write:catalog

Path parameters

batchIdrequired
string (uuid)
—

Request body

application/json
{
  "format": "string",
  "content": "string"
}
format
string
—
content
string
The same file the dry run parsed, verbatim.

Responses

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

Path parameters

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
post/api/v1/console/catalog/imports/products JWT API Key

Step one: parse, auto-map headers, validate, and persist a `dryrun` batch.,,,

`format` is `csv`, `tsv` (the file as text) or `xlsx` (the workbook as base64, at most 5 MB).

Writes no product. The response carries the header mapping and every row-level error so the operator can fix the file before anything reaches the menu.

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)
Public scope
write:catalog

Request body

application/json
{
  "format": "string",
  "content": "string"
}
format
string
`csv` (comma-separated, the default), `tsv` (tab-separated) or `xlsx`. <br>For `xlsx`Panoptes.Application.DTOs.Requests.Catalog.ProductImportDryRunRequest.Content is the workbook's bytes as base64 (at most 5 MB); its first sheet is read through the same header mapping and row rules as a CSV, with the sheet's own row numbers in the report.
content
string
The file, verbatim (base64 for `xlsx`). The first non-blank line is the header row (FR-CAT-097's `EMPTY_FILE` case is a file with none).

Responses

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

Request body (JSON)

Headers

Set credentials in the “Authorize” menu
get/api/v1/console/catalog/imports/products/template JWT API Key

The downloadable template: `?format=csv|xlsx&lang=ar|en` (Arabic by default)

Every header is one the importer maps by itself.

Capability
edit_recipe
API key scope
cap:edit_recipe (the key's owner must also hold the capability)
Public scope
write:catalog

Query parameters

format
string
—
lang
string
—

Responses

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

Query parameters

Headers

Set credentials in the “Authorize” menu