1
Import the hierarchy reference book
The main levels that the hierarchy tree consists of.2
Import hierarchy tree structure
The product categories.1
Import via Data Import Service
Import via Data Import Service, exposed via Lobyco Admin Tool, as all of the specified endpoints are available as import options within this tool This option is the preferred integration process, as the UI offers a more detailed overview of each import that was performed including number of successfully imported entries, retry functionalities, propagation of import validation errors.2
Import via direct API-based integration
Import via direct API-based integration, which incurs that the client is responsible for integrating and managing the import logic (e.g. error handling).Hierarchy reference book
As previously specified, the hierarchy reference book is an abstraction of the main levels that the hierarchy tree consists of. The hierarchy reference book import perform only upserts on the specified data and can consist of:Hierarchies
The hierarchy tree structure offers an efficient data organization, its main purposes being easy hierarchy management and navigation. Via the hierarchy import endpoint (that performs only record upserts), external vendors and clients can provide a tree-like structure such as:Products
The hierarchy import enables also the import of product information (non-store specific information). The product import endpoint expects an array of products that will be upserted within the Product Catalog system:Articles
If the client-specific integration requires also the storage of store-specific information (e.g. sale prices), the Product Catalog service also exposes two different import types to accommodate this scenario:- Full article import - upsert article information (supports both non-store and store-specific details)
- Article prices import - upsert only price information attached to existing articles
Full article import
Supports the import of non-store specific (product) and store-specific information (relevant for articles) within a single request.Article prices import
Acts as an import type that can be run also during business hours, since prices usually represent a more dynamic article information. The endpoint requires only:File content and limitations
The Product (Catalog) Service is used internally to expose core product (or article) information across different Lobyco features and flows. It serves as a central source for key product attributes, such as names, categories, hierarchy, and base pricing. Product data is typically synchronized from the retailer’s Product Information Management (PIM) system to ensure consistency of product hierarchy and main product details across the platform. The service does not handle store-specific data (for example, store-level pricing). Possible Integrations within Lobyco ecosystem:- Purchase Load Enricher: retrieve the brandId and hierarchy
- Data Platform: required for the 1:1 Personal Offers algorithm: product hierarchy, product attributes
- Shopping List: retrieve the product name
- Reference Book
- Hierarchy
- Products.
1. Reference Book:
- depthId: Internal depth level identifier (starting from 0)
- name: Specific name for each level (e.g., Root, Level 1, or client-specific names)
- externalDepth: Depth level from the client’s system (e.g., root level might be -1)
Example of valid content
Json file format:Limitations
- The HierarchyReferenceBook should be created first and it should be created only once.
- An array of hierarchy items. Successful loading depends on the existence of a reference book with appropriate levels and valid hierarchy items (each with a name, ID, and proper parent-child relationships).
- When the hierarchy is created, products should not be included as a hierarchical level. Hierarchical levels should be created only for categories of products.
2. Hierarchy
This is the format of the hierarchies.- name: Name specific to this hierarchy level
- id: Unique identifier of the current item
- parentId: Identifier of the parent item (one level above). In case it’s a root item, the
parentIdshould benull - ImageLink: Link of hierarchy image. Can be
null
Example of valid content:
Json file format:Limitations
- Hierarchies must be created in a single request. You can’t create just the root level in one request and then add additional levels for it in a separate request.
- If you want to update a hierarchy, you must send the entire structure, from the root level down to the last category — otherwise, the operation will fail.
- Hierarchical levels should match the depth used when the HierarchyReferenceBook was created.
3. Products
This final step depends on the successful loading of the hierarchy, as it contains the hierarchy identifier.Products
- name: Product name
- externalId: Product identifier
- imageLink: Product image URL [optional]
- eans: Array of EANs and/or UPCs
- brand: Brand name and identifier [optional]
- suppliers: Array of suppliers with identifiers and names [optional]
- saleUnit: Sale unit [optional]
- weightUnit: Weight unit [optional]
- hierarchyId: Identifier of the hierarchy leaf, which must exist in our DB (
externalIdin our DB, previously referred to asidin the contract)