The Products API provides endpoints for managing products and their variants in your Digital Product Passport platform. Products represent the main items in your catalog, while variants represent different configurations (sizes, colors, etc.) of those products.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Avelero/avelero/llms.txt
Use this file to discover all available pages before exploring further.
Key concepts
Products
Products are the core items in your catalog. Each product has:- Basic information: Name, description, category, season, manufacturer
- Product handle: URL-friendly identifier used in DPP URLs (
/[brandSlug]/[productHandle]/) - UPID: 16-character alphanumeric unique identifier auto-generated by the system
- Status: Draft or published state
- Attributes: Materials, environmental data, journey steps, weight, tags
Variants
Variants represent different configurations of a product (e.g., different sizes or colors). Each variant has:- Variant UPID: 16-character unique identifier
- Attribute values: Defines the variant’s specific attributes (e.g., “Red”, “Large”)
- SKU and barcode: For inventory and point-of-sale systems
- Overrides: Variant-specific data that overrides product-level data
Product handles vs UPIDs
- Product handle: Human-readable URL slug (e.g.,
organic-cotton-tee) - UPID: System-generated 16-character alphanumeric ID for QR code resolution
Router structure
The Products API is organized under theproducts router:
Available routers
products- Core CRUD operations for productsproducts.variants- Manage product variantsproducts.publish- Publish products and variants to create Digital Product Passports
Common patterns
Filtering and search
List endpoints support advanced filtering usingFilterState structure:
Pagination
List endpoints use cursor-based pagination:Bulk operations
Many endpoints support bulk operations with selection modes:Brand scoping
All product operations are scoped to the active brand. The API automatically validates that:- Products belong to the active brand
- The
brand_idparameter (when provided) matches the active brand context
Error handling
The API uses standard tRPC error codes:BAD_REQUEST- Invalid input, validation errors, duplicate valuesNOT_FOUND- Product or variant not found for the active brandINTERNAL_SERVER_ERROR- Unexpected errors
Next steps
Create products
Learn how to create new products with attributes
Update products
Update single products or perform bulk updates
List products
Query and filter your product catalog