Skip to main content
POST
https://api.zenflow.com.ar
/
api
/
v1
/
products
Create Product
curl --request POST \
  --url https://api.zenflow.com.ar/api/v1/products \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "name": "<string>",
  "barcode": "<string>",
  "sku": "<string>",
  "category": "<string>",
  "description": "<string>",
  "price": 123,
  "weight": 123,
  "width": 123,
  "height": 123,
  "depth": 123,
  "weighable": true,
  "photo_url": "<string>"
}
'

Create Product

Create a new product in your catalog.
Requires write:products scope.

Request

POST /api/v1/products

Body Parameters

name
string
required
Product name
barcode
string
required
Product barcode (must be unique)
sku
string
SKU / external ID
category
string
Product category
description
string
Product description
price
number
Unit price
weight
number
Weight in kg
width
number
Width in cm
height
number
Height in cm
depth
number
Depth in cm
weighable
boolean
default:"false"
Whether product is sold by weight
photo_url
string
Product image URL

Example

curl -X POST "https://api.zenflow.com.ar/api/v1/products" \
  -H "X-API-Key: zenflow_live_your_key" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Widget A",
    "barcode": "7891234567890",
    "sku": "SKU-001",
    "category": "Electronics",
    "price": 29.99,
    "weight": 0.5
  }'

Response

{
  "success": true,
  "data": {
    "id": 100,
    "barcode": "7891234567890",
    "external_id": "SKU-001",
    "name": "Widget A",
    "category": "Electronics",
    "price": 29.99,
    "weight": 0.5,
    "is_active": true,
    "created_at": "2024-01-14T10:30:00Z"
  }
}

Error Responses

400 Validation Error

{
  "success": false,
  "error": {
    "code": "validation_error",
    "message": "Name and barcode are required"
  }
}

409 Already Exists

{
  "success": false,
  "error": {
    "code": "already_exists",
    "message": "Product with this barcode already exists"
  }
}