Skip to main content

Product

Products are the core master data entities representing types of items that can be tracked through the supply chain in TrackVision.

The product Object

Products store comprehensive information about item types including identification, physical properties, nutritional data, and packaging details.

Field NameTypeDescription
idstringPrimary key for the product. Auto set if using GS1 IDs.
user_createdobjectUser who created the product. Read-only. Links to directus_users.
date_createddatetimeTimestamp in ISO 8601 when the product was created. Read-only.
user_updatedobjectUser who last updated the product. Read-only. Links to directus_users.
date_updateddatetimeTimestamp in ISO 8601 when the product was last updated. Read-only.
product_namestringThe commercial name or title of the product.
brandobjectRelated brand entity. Many products can belong to one brand. Links to brand.
gtinstringGlobal Trade Item Number (GTIN) - the globally unique identifier for the product.
custom_idstringCustom internal identifier for the product.
digital_linkstringGS1 Digital Link URL for the product. Auto generated if using GS1 IDs.
product_redirection_urlstringURL where the product should redirect when scanned.
product_reference_documentobjectReference to a document related to this product. Links to directus_files.
packaging_type_codeobjectReference to packaging type from standard codes. Links to ref_packaging_type_codes.
variant_descriptionstringDescription of product variant (e.g., size, color, flavor).
functional_namestringFunctional or generic name of the product.
net_weightnumberNet weight of the product.
net_weight_unitobjectUnit of measure for net weight. Links to ref_uom.
gross_weightnumberGross weight of the product including packaging.
gross_weight_unitobjectUnit of measure for gross weight. Links to ref_uom.
third_party_productbooleanIndicates if this is a third-party manufactured product.
finished_productbooleanIndicates if this is a finished product ready for sale.
primary_imageobjectPrimary image file for the product. Links to directus_files.
product_manufacturerobjectOrganisation that manufactures the product. Links to organisation.
brand_ownerobjectOrganisation that owns the brand. Links to organisation.
accountobjectAccount associated with this product. (Multi-tenant installations only)
net_contentnumberNet content amount of the product.
net_content_unitobjectUnit of measure for net content. Links to ref_uom.
product_redirection_ruleobjectFlow rule for product redirection logic. Links to directus_flows.
fat_percentage_in_dry_matternumberPercentage of fat in dry matter (for food products).
percentage_of_alcohol_by_volumenumberAlcohol percentage by volume (for beverages).
nutrient_basis_quantitynumberQuantity basis for nutritional information.
nutrient_basis_quantity_typestringType of nutrient basis quantity.
nutrient_basis_quantity_unitobjectUnit of measure for nutrient basis quantity. Links to ref_uom.
serving_sizenumberRecommended serving size.
serving_size_unitobjectUnit of measure for serving size. Links to ref_uom.
in_package_heightnumberHeight of the product in its packaging.
in_package_height_unitobjectUnit of measure for package height. Links to ref_uom.
in_package_widthnumberWidth of the product in its packaging.
in_package_width_unitobjectUnit of measure for package width. Links to ref_uom.
in_package_depthnumberDepth of the product in its packaging.
in_package_depth_unitobjectUnit of measure for package depth. Links to ref_uom.
country_of_originobjectCountry of origin for the product. Links to ref_country.
parent_productobjectReference to a parent product in a hierarchy. Links to product.
sizestringSize of the product (apparel/footwear).
target_consumer_genderstringTarget consumer gender (apparel/footwear).
season_codestringSeason code for the product (apparel/footwear).
colorstringColor description for the product (apparel/footwear).
translationsarray of objectsTranslations for multi-lingual product content.
certificationsarray of objectsCertifications associated with this product.
nutrientsarray of objectsNutritional values associated with this product.

Sub-Objects

User Object (user_created, user_updated)

See Users for the full schema.

Account Object (account)

See Account for the full schema.

File Object (primary_image, product_reference_document)

See Files for the full schema.

Brand Object (brand)

See Brand for the full schema.

Organisation Object (product_manufacturer, brand_owner)

See Organisation for the full schema.

Unit of Measure Object (all *_unit fields)

See Unit of Measurement for the full schema.

Packaging Type Object (packaging_type_code)

FieldTypeDescription
codestringPackaging type code (primary key).
packaging_type_namestringHuman-readable packaging type name.

Country Object (country_of_origin)

See Country for the full schema.

Product Translation Object (translations)

FieldTypeDescription
idintegerUnique identifier of the translation record.
languages_codestringLanguage code for this translation (e.g., "en-US").
product_descriptionstringTranslated product description.
allergen_statementstringTranslated allergen statement.
ingredient_statementstringTranslated ingredient statement.
product_contentstringTranslated product content.
country_of_origin_statementstringTranslated country of origin statement.
ingredients_of_concern_statementstringTranslated ingredients of concern statement.

List Products

List existing products.

GET /items/product

Query Parameters

Supports all global query parameters.

Returns

An array of up to limit product objects. If no items are available, data will be an empty array.


Retrieve a Product

List existing products.

GET /items/product/:id

Returns

Returns a product object if a valid primary key was provided.


Create a Product

Create a new product.

POST /items/product

{
"product_name": "AP-2 Bearings",
"brand": "0b789868-2863-4d41-aa6f-b2585020ae08",
"gtin": "00053893430744",
"custom_id": "HM133436FSA-90011",
"digital_link": "https://food.tvai.me/01/00053893430744",
"product_redirection_url": "https://www.company.com/",
"finished_product": true,
"third_party_product": false,
"product_manufacturer": "/417/0053893000008",
"brand_owner": "/417/0053893000008"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial product object.

Returns

Returns the product object for the created product.


Update a Product

Update an existing product.

PATCH /items/product/:id

{
"product_name": "AP-2 Bearings - Updated",
"product_redirection_url": "https://www.company.com/products/bearings/",
"custom_id": "HM133436FSA-90011-V2"
}

Query Parameters

Supports all global query parameters.

Request Body

A partial product object.

Returns

Returns the product object for the updated product.


Delete a Product

Delete an existing product.

DELETE /items/product/:id

Returns

Empty body.