Skip to main content

Overview

Inventory items represent individual assets tracked in your system. Each item belongs to a container and has an asset type that defines its custom fields. Items support multiple images, quantity tracking, custom field values, and market value tracking.

List Items

Retrieve all inventory items across all containers with optional aggregation filters.
string
Comma-separated key:value pairs for filtering by custom field values.Example: brand:Apple,condition:New
object
Container for response data

List Scoped Items

Retrieve inventory items filtered by container and asset type.
integer
required
ID of the container
integer
required
ID of the asset type
string
Comma-separated key:value pairs for custom field filtering

Create Item

Create a new inventory item with optional image uploads.
string
required
Item name
string
Item description
string
Barcode or UPC for market sync
integer
required
Parent container ID
integer
required
Asset type ID defining custom fields
integer
Storage location ID
integer
default:"1"
Initial quantity
integer
default:"1"
Minimum stock threshold
string
required
JSON-encoded object of custom field values matching asset type field definitionsExample: {"brand":"Apple","condition":"New"}
file[]
Array of image files to upload. Field name must be “images” for each file.

Update Item

Update an existing inventory item. Supports adding new images and removing existing ones.
integer
required
ID of the item to update
string
required
Updated item name
string
Updated description
string
Updated barcode
integer
required
Container ID (can be changed to move item)
integer
required
Asset type ID (can be changed to reclassify item)
integer
Updated location ID
integer
required
Updated quantity
integer
required
Updated minimum stock threshold
string
required
JSON-encoded custom field values
string
default:"[]"
JSON-encoded array of image IDs to deleteExample: [12, 45, 67]
file[]
New images to upload (appended to existing images)

Delete Item

Permanently delete an inventory item and all associated images.
integer
required
ID of the item to delete

Clone Item

Create a duplicate of an existing item with all custom fields and image references.
integer
required
Container ID of the item to clone
integer
required
Asset type ID of the item to clone
object
required
Complete InventoryItem object to clone (from toJson())

Batch Import Items

Bulk create multiple inventory items in a single request. Useful for importing from spreadsheets or external systems.
integer
required
Container ID where items will be created
integer
required
Asset type ID for all items
array
required
Array of item data objects to create

Get Item Price History

Retrieve the historical market value data points for an item.
integer
required
ID of the item
string
ISO 8601 timestamp of the price point
number
Market value at that date

Sync Item with Market Data

Fetch current market value using the item’s barcode/UPC from external pricing APIs.
integer
required
ID of the item to sync

Error Responses

Common errors:
  • "El ítem no tiene código de barras" - Item has no barcode set
  • "No se encontró información de mercado para este código" - No market data found

Get Total Market Value

Calculate the total market value of all items across all containers.
number
Sum of all items’ totalMarketValue fields

Error Handling

All endpoints return standard HTTP status codes:
  • 200 OK - Request successful
  • 201 Created - Resource created successfully
  • 204 No Content - Deletion successful
  • 400 Bad Request - Invalid parameters or malformed request
  • 401 Unauthorized - Authentication required
  • 404 Not Found - Resource not found
  • 500 Internal Server Error - Server error
Error responses include a message: