GET
/
products
curl https://api.contazen.ro/v1/products \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
{
  "success": true,
  "data": {
    "object": "list",
    "data": [
      {
        "id": "prod_5f6g7h8i9j",
        "object": "product",
        "name": "Laptop Dell XPS 15",
        "code": "DELL-XPS-15",
        "barcode": "1234567890123",
        "description": "High-performance laptop with 15.6\" display",
        "unit": "buc",
        "sell_price": 5000.00,
        "vat_rate": 19,
        "currency": "RON",
        "is_active": true,
        "category_id": 12,
        "category_name": "Electronics",
        "stock_quantity": 15,
        "created_at": 1704067200,
        "updated_at": 1710460800
      },
      {
        "id": "prod_1a2b3c4d5e",
        "object": "product",
        "name": "Web Development Services",
        "code": "WEB-DEV-01",
        "barcode": null,
        "description": "Professional web development services",
        "unit": "ora",
        "sell_price": 250.00,
        "vat_rate": 19,
        "currency": "RON",
        "is_active": true,
        "category_id": 8,
        "category_name": "Services",
        "stock_quantity": null,
        "created_at": 1703980800,
        "updated_at": 1703980800
      }
    ],
    "has_more": true,
    "total": 45,
    "page": 1,
    "per_page": 50,
    "total_pages": 1
  },
  "meta": {
    "version": "v1",
    "response_time": "34.56ms"
  }
}

Request

page
integer
default:"1"
Page number to retrieve
per_page
integer
default:"50"
Number of items per page (max: 100)
Search term to filter by product name, code, or barcode
category_id
integer
Filter by category ID
is_active
integer
Filter by active status
  • 1 - Active products only
  • 0 - Inactive products only
sort
string
default:"name"
Field to sort by
  • name - Product name
  • price - Selling price
  • created_at - Creation date
order
string
default:"asc"
Sort order. Options: asc, desc

Response

success
boolean
Indicates if the request was successful
data
object
meta
object
Response metadata including version and response time
curl https://api.contazen.ro/v1/products \
  -H "Authorization: Bearer sk_live_YOUR_API_KEY"
{
  "success": true,
  "data": {
    "object": "list",
    "data": [
      {
        "id": "prod_5f6g7h8i9j",
        "object": "product",
        "name": "Laptop Dell XPS 15",
        "code": "DELL-XPS-15",
        "barcode": "1234567890123",
        "description": "High-performance laptop with 15.6\" display",
        "unit": "buc",
        "sell_price": 5000.00,
        "vat_rate": 19,
        "currency": "RON",
        "is_active": true,
        "category_id": 12,
        "category_name": "Electronics",
        "stock_quantity": 15,
        "created_at": 1704067200,
        "updated_at": 1710460800
      },
      {
        "id": "prod_1a2b3c4d5e",
        "object": "product",
        "name": "Web Development Services",
        "code": "WEB-DEV-01",
        "barcode": null,
        "description": "Professional web development services",
        "unit": "ora",
        "sell_price": 250.00,
        "vat_rate": 19,
        "currency": "RON",
        "is_active": true,
        "category_id": 8,
        "category_name": "Services",
        "stock_quantity": null,
        "created_at": 1703980800,
        "updated_at": 1703980800
      }
    ],
    "has_more": true,
    "total": 45,
    "page": 1,
    "per_page": 50,
    "total_pages": 1
  },
  "meta": {
    "version": "v1",
    "response_time": "34.56ms"
  }
}