Skip to main content
POST

Create a product

Scope:inventory:products.write
https://api.holded.com/api/v2/products

Creates a new product in your catalog. Products track inventory, pricing, and tax configuration. They can be physical goods with stock tracking or non-stockable items. The response returns the new product `id`. You can then use this ID when adding line items to invoices, sales orders, and other documents.

Request body

object
namestringrequired

Product name

kindstringrequired

Product kind: 'simple' for standard products, 'variants' for products with attributes (color/size), 'lots' for batch-tracked products, 'serialnumbers' for individually tracked products, 'pack' for product bundles.

Enum:simplelotspackvariantsserialnumbers
descriptionstring | nulloptional

Product description

skustring | nulloptional

Stock keeping unit code

barcodestring | nulloptional

Barcode value

pricestring | nulloptional

Unit sale price as a decimal string

default: null
coststring | nulloptional

Unit cost price as a decimal string

default: null
purchase_pricestring | nulloptional

Unit purchase price as a decimal string

default: null
tags[]string[] | nulloptional

List of tag names

taxes[]string[] | nulloptional

Tax keys applied to this product. Accepts the human tax name (e.g. "IVA 21%") or the internal key (e.g. "s_iva_21"); resolved automatically.

stocknumber | nulloptional

Initial stock quantity

default: null
weightnumber | nulloptional

Weight in account default unit

default: null
has_stockbooleanrequired

Whether stock tracking is enabled

for_salebooleanrequired

Whether the product is available for sale

for_purchasebooleanrequired

Whether the product is available for purchase

variants[]object[] | nulloptional

Variants of the product (for variants, lots and serial numbers product types).

skustring | null
barcodestring | null
pricestring | null
coststring | null
purchase_pricestring | null
stocknumber | null
descriptionstring | null
weightnumber | null
factory_codestring | null
archivedboolean | null
lot_numberstring | null

Only for LOTS products

start_datestring<date> | null

Only for LOTS and serial number products. ISO 8601 format. Accepts date (YYYY-MM-DD) or datetime (e.g. 2025-01-01T00:00:00+00:00)

end_datestring<date> | null

Only for LOTS and serial number products. ISO 8601 format. Accepts date (YYYY-MM-DD) or datetime (e.g. 2025-12-31T00:00:00+00:00)

pack_items[]object[] | nulloptional

Items included in this pack product.

product_selectionstring

Product ID or "productId#variantId"

unitsnumber
show_start_dateboolean | nulloptional

Show lot start date in documents. Only for LOTS products.

show_end_dateboolean | nulloptional

Show lot end date in documents. Only for LOTS products.

warehouse_idstring | nulloptional

Default warehouse identifier for this product

sales_channel_idstring | nulloptional

Sales channel identifier for this product

exp_account_idstring | nulloptional

Expense/purchases accounting account identifier for this product

Request

python
import requests

url = "https://api.holded.com/api/v2/products"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "name": "string",
    "kind": "simple",
    "description": "string",
    "sku": "string",
    "barcode": "string",
    "price": "99.95",
    "cost": "49.99",
    "purchase_price": "20.00",
    "tags": [
        "string"
    ],
    "taxes": [
        "s_iva_21"
    ],
    "stock": 10,
    "weight": 0,
    "has_stock": false,
    "for_sale": false,
    "for_purchase": false,
    "variants": [
        {
            "sku": "string",
            "barcode": "string",
            "price": "19.99",
            "cost": "string",
            "purchase_price": "string",
            "stock": 0,
            "description": "string",
            "weight": 0,
            "factory_code": "string",
            "archived": false,
            "lot_number": "string",
            "start_date": "2025-01-01",
            "end_date": "2025-12-31"
        }
    ],
    "pack_items": [
        {
            "product_selection": "507f1f77bcf86cd799439011",
            "units": 2
        }
    ],
    "show_start_date": false,
    "show_end_date": false,
    "warehouse_id": "string",
    "sales_channel_id": "string",
    "exp_account_id": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011"
}

Success responses

201Product createdapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
422Validation errorapplication/json
429Rate limit exceededapplication/json