Items

Create an item

Registers an item in the inventory catalog.

POST
/api/v1/items

Request examples

curl https://app.filmo.io/api/v1/items \
  --request POST \
  --header "Authorization: Bearer $FILMO_API_KEY" \
  --header "Idempotency-Key: $(uuidgen 2>/dev/null || cat /proc/sys/kernel/random/uuid)" \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "Sony FX6",
  "sku": "CAM-FX6-01",
  "inventoryMethod": "serialized",
  "tags": [
    "Cámaras",
    "Cine"
  ],
  "showInOrderSearch": true
}'
{
  "data": {
    "id": "item_9f3a2b",
    "name": "Example item",
    "sku": "CAM-FX6-01",
    "description": "Example text.",
    "orderInfo": "Example order info",
    "ean": "0000000000000",
    "itemType": "fixed",
    "stockCalculationMethod": "bulk",
    "collectionId": "collection_9f3a2b",
    "collectionName": "Example collection name",
    "images": [
      "Example images"
    ],
    "salePrice": "120.00",
    "depositValue": "120.00",
    "minStock": 1,
    "serializedItemsCount": 1,
    "pricingSettings": {
      "type": "periodPrice",
      "price": "120.00",
      "period": "hour"
    },
    "insuranceEnabled": true,
    "discountEnabled": true,
    "bufferBefore": 1,
    "bufferBeforeUnit": "hour",
    "bufferAfter": 1,
    "bufferAfterUnit": "hour",
    "physicalProperties": {
      "weight": 1,
      "width": 1,
      "height": 1,
      "length": 1,
      "volume": 1,
      "current": 1,
      "power": 1
    },
    "variants": [
      {
        "variantId": "variant_9f3a2b",
        "variantName": "Example variant name",
        "variantPrice": "120.00",
        "salePrice": "120.00",
        "ean": "0000000000000"
      }
    ],
    "tags": [
      {
        "id": "tag_9f3a2b",
        "name": "Example tag"
      }
    ],
    "customFields": {
      "example": "example"
    },
    "createdAt": "2026-09-01T08:00:00.000Z",
    "updatedAt": "2026-09-01T08:00:00.000Z",
    "replacementValue": "120.00",
    "accessoryIds": [
      "accessory_9f3a2b"
    ],
    "alternativeIds": [
      "alternative_9f3a2b"
    ]
  }
}

Generated from the schema

The SKU is optional: if omitted, the server assigns the next available one in the account. With inventoryMethod=serialized each physical unit is tracked by its serial number; with bulk it is tracked by quantity, and it cannot be changed once there is stock. Returns the created item in detail.

Authorizations

Bearer API key with the scope below. items:write

Headers

Idempotency-Keystring

Unique identifier of the request, chosen by the client (a UUID works). Between 1 and 255 characters: an empty header is rejected with 400 validation_error, because the client would believe itself protected. Repeating the same key with the SAME body within 24 h returns the stored response without executing again, with the Idempotent-Replay: true header. With a DIFFERENT body it returns 422. It is the safe way to retry after a network timeout.

Limits: min length 1, max length 255

Example:"9f1c2f4e-3a5b-4f6d-8e7a-0b1c2d3e4f5a"

If-Matchstring

Optimistic locking: the ETag you read from the resource (or *). If the resource changed since, the write is rejected with 412 precondition_failed before doing anything; read it again and retry. Without the header the write always proceeds.

Example:"\"3sT3d9pBvZq4h2N0w8x1YkLmQ7c\""

Body

application/json

Body schema: ItemCreateBody

namestringRequired

Item name. Required.

Limits: min length 1

skustring

SKU reference. If omitted, the server generates the next available one for the account. Unique within the account.

inventoryMethodstringdefault:"bulk"

How stock is tracked. bulk: total quantity per warehouse. serialized: each physical unit with its serial number. Cannot be changed once there is stock.

Available options: bulk, serialized

collectionIdstring

Identifier of the collection it is organized in; omit to leave it unclassified.

tagsstring[]

Tags, by identifier or by name. A name that does not exist creates the tag.

Limits: max 50 items, each min length 1, each max length 100

variationsEnabledboolean

true creates an item with variants and its default variant. Omit or false for a simple item.

showInOrderSearchboolean

Whether the item appears in the item search within an order. Defaults to true.

useSkuAsOrganizationMasterIdboolean

Only for organization accounts: copies the final SKU into organizationMasterId so the item can be matched across accounts. Defaults to false.

Response

application/json

Successful response.

Response schema: ItemDetailDto

Envelope: ItemDetailResponse. meta.warnings is present only when the operation is deprecated.

Headers: X-Request-Id · RateLimit-Limit · RateLimit-Remaining · RateLimit-Reset · ETag · Idempotent-Replay

dataobject

The item in full, as returned by the API.

Show child attributes
data.idstring

Unique identifier of the item.

data.namestring

Item name.

data.skustring | null

SKU reference of the item; null if not recorded.

data.descriptionstring | null

Item description; null if not recorded.

data.orderInfostring | null

Additional information for the order (preparation/delivery notes); null if not recorded.

data.eanstring | null

EAN/barcode; null if not recorded.

data.itemTypestring

Item type: fixed (simple item) or variant (item with variants).

Available options: fixed, variant

data.stockCalculationMethodstring

Stock calculation method: bulk (in bulk, by quantity) or serialized (by serialized items).

Available options: bulk, serialized

data.collectionIdstring | null

Identifier of the collection it belongs to; null if it is in none.

data.collectionNamestring | null

Name of the collection it belongs to; null if it is in none.

data.imagesstring[]

URLs of the item images.

data.salePricestring | null

Sale price as a decimal string "1234.50" (ROUND_HALF_UP); null if it has none.

Limits: pattern ^-?\d+\.\d{2}$

data.depositValuestring | null

Deposit amount as a decimal string "1234.50" (ROUND_HALF_UP); null if it has none.

Limits: pattern ^-?\d+\.\d{2}$

data.minStocknumber | null

Minimum stock configured for alerts; null if not configured.

data.serializedItemsCountnumber

Number of serialized items registered for the item.

data.pricingSettingsobject | null

Rental pricing configuration; null if not configured.

Show child attributes
data.pricingSettings.typestring | null

Pricing mode: periodPrice (price per period), fixedPrice (fixed price) or pricingStructure (pricing structure); null if the item has none configured.

Available options: periodPrice, fixedPrice, pricingStructure

data.pricingSettings.pricestring | null

Base rental price as a decimal string "1234.50" (ROUND_HALF_UP); null if not applicable.

Limits: pattern ^-?\d+\.\d{2}$

data.pricingSettings.periodstring | null

Period unit of the price: hour, day, week or month; null if the item has none configured.

Available options: hour, day, week, month

data.insuranceEnabledboolean

Whether the item allows insurance.

data.discountEnabledboolean

Whether the item allows discounts.

data.bufferBeforenumber | null

Buffer time reserved before the rental; null if not applicable.

data.bufferBeforeUnitstring | null

Unit of the buffer before: hour or day; null if not applicable.

Available options: hour, day

data.bufferAfternumber | null

Buffer time reserved after the rental; null if not applicable.

data.bufferAfterUnitstring | null

Unit of the buffer after: hour or day; null if not applicable.

Available options: hour, day

data.physicalPropertiesobject | null

Physical properties (weight and dimensions); null if not recorded.

Show child attributes
data.physicalProperties.weightnumber | null

Item weight in kilograms; null if not recorded.

data.physicalProperties.widthnumber | null

Item width in centimeters; null if not recorded.

data.physicalProperties.heightnumber | null

Item height in centimeters; null if not recorded.

data.physicalProperties.lengthnumber | null

Item length in centimeters; null if not recorded.

data.physicalProperties.volumenumber | null

Item volume in cubic meters (m³); null if not recorded.

data.physicalProperties.currentnumber | null

Current draw in amperes; null if not recorded.

data.physicalProperties.powernumber | null

Power in watts; null if not recorded.

data.variantsobject[]

Item variants (empty if the item is of type fixed).

Show child attributes
data.variants.variantIdstring

Unique identifier of the variant.

data.variants.variantNamestring

Variant name.

data.variants.variantPricestring

Rental price of the variant as a decimal string "1234.50" (ROUND_HALF_UP).

Limits: pattern ^-?\d+\.\d{2}$

data.variants.salePricestring | null

Sale price of the variant as a decimal string "1234.50" (ROUND_HALF_UP); null if it has none.

Limits: pattern ^-?\d+\.\d{2}$

data.variants.eanstring | null

EAN/barcode of the variant; null if not recorded.

data.tagsobject[]

Tags associated with the item.

Show child attributes
data.tags.idstring

Unique identifier of the tag.

data.tags.namestring

Tag name.

data.customFieldsobject<string, any>

Custom field values by custom field identifier; the definitions are in /api/v1/custom-fields.

data.createdAtstring<date-time>

Creation date in ISO 8601 with offset.

data.updatedAtstring<date-time>

Last update date in ISO 8601 with offset.

data.replacementValuestring | null

Replacement value of the item as a decimal string "1234.50" (ROUND_HALF_UP); null if not recorded.

Limits: pattern ^-?\d+\.\d{2}$

data.accessoryIdsstring[]

Identifiers of the items configured as accessories of this one.

data.alternativeIdsstring[]

Identifiers of the items configured as alternatives of this one.

metaobject

Additional information about the response.

Show child attributes
meta.warningsobject[]

Lifecycle warnings; present only when the operation is deprecated.

Show child attributes
meta.warnings.codestring

Stable warning code.

Available options: deprecated

meta.warnings.messagestring

For people: what is deprecated, until when, and what to use.

meta.warnings.sunsetstring

Day (YYYY-MM-DD) the operation stops being served.

meta.warnings.replacementstring | null

operationId of the operation to use instead, or null if there is none.

Errors

StatusCodesMeaning
400validation_errorMalformed query or body. errors[] lists every offending field with its stable code.
404not_foundIt does not exist or is outside the scope of the API key.
409conflictThe current state of the resource prevents the operation, a request with that Idempotency-Key is already in progress, or another conditional write (If-Match) held the resource for more than five seconds. errors[0].code says which: in_progress and lock_timeout are solved by retrying; invalid_state is not, because the state of the resource forbids the operation.
412precondition_failedThe If-Match entity tag does not match the current representation. Read the resource again and retry.
422idempotency_key_reusedThe same key was used before with a different body. Change the key.

401, 403, 429, 500 can be returned by any operation. Errors

Deprecation

This operation is not deprecated. Deprecations are announced with a Deprecation header and a sunset date. Versioning policy

  • Catalog & inventory

    Item

    The item, as returned by the API.

Was this page helpful?