Product Types
Individual Products (productType: 0)
Single items that can be rented individually, such as cameras, lenses, or lighting equipment.Bundles (productType: 1)
Collections of multiple products that are rented together as a package.Stock Management
Unit Stock (stock_type: 0)
Products with individual unit tracking. Each unit has a unique SKU and can be tracked separately. Required fields:sku
: Unique identifier for the product unitquantity
: Number of units available
Without Unit Management (stock_type: 1)
Products without individual unit tracking. Only the total quantity is managed.Creating a Product
Basic Product Creation
Product with Equipment
Updating a Product
Partial Update
Product Fields
Required Fields
Field | Type | Description | Example |
---|---|---|---|
title | string | Product title (max 255 chars) | “4K Pro Camera” |
rent | float | Rental price (min 0.01) | 250.0 |
Optional Fields
Field | Type | Description | Example |
---|---|---|---|
description | string | Product description (Markdown/HTML) | “Professional camera…” |
cost | float | Product cost (min 0) | 3500.0 |
productType | integer | 0=product, 1=bundle | 0 |
stock_type | integer | 0=unit stock, 1=no unit management | 0 |
sku | string | Required if stock_type=0 | ”CAM-4K-001” |
quantity | integer | Number of units (min 1) | 2 |
equipments | array | List of included equipment | See example above |
images | array | Product images (max 5) | See example above |
online | boolean | Available for rental | true |
archived | boolean | Archived product | false |
Equipment Items
Each equipment item requires:Image Requirements
Each image requires:- Maximum 5 images per product
- Images must be accessible URLs
- Recommended format: WEBP, JPG, PNG
- Recommended size: 1200x800 pixels
Response Examples
Successful Creation
Successful Update
Error Handling
Validation Errors
Common Error Codes
REQUIRED
: Missing required fieldINVALID_FORMAT
: Invalid data formatMIN_VALUE
: Value below minimumMAX_LENGTH
: String exceeds maximum length