Search Documentation

Search API endpoints, webhooks, tools, and guides

On this page6 sections
Is this helpful?
Quick Actions
Download OpenAPI.json
POST/api/products/importProductsPermission: product.create

Import Products (XLSX)

Batch imports or validates products from an Excel (.xlsx) spreadsheet (`multipart/form-data`, max 5 MB, max 5,000 rows). Requires `Category`, `Name`, `Code`, and `Price` headers.

Authentication: Requires Authorization: Bearer <ACCESS_TOKEN> (Supabase JWT, OAuth2 M2M token, or integration token).

Request

Provide the following fields in the request payload.

Body multipart/form-data
filefile (binary)required

Excel (.xlsx) file containing required columns: Category, Name, Code, Price (max 5 MB, 5,000 rows).

validateOnlyenum('true' | 'false')optional

When 'true', validates spreadsheet rows without committing database writes.

Responses

Select a status code to inspect schema.

OK — Spreadsheet validated or imported successfully.application/json
successenum('true')

Success (true).

messagestring

Message.

dataobject | null

Response payload or null.

POST/api/products/import
curl -X POST "https://api.invoger.com/api/products/import" \
  -H "Authorization: Bearer <ACCESS_TOKEN>" \
  -F "file=@./import.xlsx"
Interactive playground

Response

application/json
{
  "success": true,
  "message": "Products imported successfully",
  "data": {
    "createdCount": 15,
    "updatedCount": 4
  }
}