Catalog Service
Features
-
It provides a gRPC interface for handling CRUD operations, catalog and offer functionality.
API
This microservice exposes the following gRPC endpoints:
Manufacturer
A Manufacturer resource.
io.restorecommerce.manufacturer.Manufacturer
Field | Type | Label | Description |
---|---|---|---|
id |
string |
optional |
Manufacturer ID, unique, key |
meta |
optional |
Meta info |
|
name |
string |
optional |
Name |
description |
string |
optional |
description |
A list of Manufacturer resources.
io.restorecommerce.manufacturer.ManufacturerList
Field | Type | Label | Description |
---|---|---|---|
items |
|
required |
List of Manufacturers |
total_count |
number |
optional |
number of Manufacturers |
subject |
|
required |
Subject details |
PriceGroup
A PriceGroup resource.
io.restorecommerce.price_group.PriceGroup
Field | Type | Label | Description |
---|---|---|---|
id |
string |
optional |
PriceGroup ID, unique, key |
meta |
optional |
Meta info |
|
name |
string |
optional |
Name |
description |
string |
optional |
description |
A list of PriceGroup resources.
io.restorecommerce.price_group.PriceGroupList
Field | Type | Label | Description |
---|---|---|---|
items |
|
required |
List of PriceGroups |
total_count |
number |
optional |
number of PriceGroups |
subject |
|
required |
Subject details |
ProductCategory
A ProductCategory resource.
io.restorecommerce.product_category.ProductCategory
Field | Type | Label | Description |
---|---|---|---|
id |
string |
required |
ProductCategory ID, unique, key |
meta |
required |
Meta info |
|
name |
string |
required |
Name |
description |
string |
optional |
description |
price_group_id |
|
required |
price group identifier |
image |
|
optional |
Image |
parent |
|
optional |
Parent reference |
io.restorecommerce.product_category.Parent
Field | Type | Label | Description |
---|---|---|---|
parent_id |
string |
optional |
parent product category identifier |
A list of ProductCategory resources.
io.restorecommerce.product_category.ProductCategoryList
Field | Type | Label | Description |
---|---|---|---|
items |
|
required |
List of Product Categories |
total_count |
number |
optional |
number of Product Categories |
subject |
|
required |
Subject details |
ProductPrototype
A ProductPrototype resource.
io.restorecommerce.product_prototype.ProductPrototype
Field | Type | Label | Description |
---|---|---|---|
id |
string |
optional |
ProductPrototype ID, unique, key |
meta |
optional |
Meta info |
|
name |
string |
optional |
Name |
description |
string |
optional |
description |
category_id |
|
optional |
price group identifier |
A list of ProductPrototype resources.
io.restorecommerce.product_prototype.ProductPrototypeList
Field | Type | Label | Description |
---|---|---|---|
items |
|
required |
List of Product Prototypes |
total_count |
number |
optional |
number of Product Prototypes |
subject |
|
required |
Subject details |
Product
A Product resource.
io.restorecommerce.product.Product
Field | Type | Label | Description |
---|---|---|---|
id |
string |
required |
Product ID, unique, key |
meta |
required |
Meta info |
|
product |
|
optional |
Individual Product details |
bundle |
|
optional |
Bundle of Products |
active |
boolean |
optional |
flag to indicate if product is active |
tags |
[ ] string |
optional |
product tags |
associations |
[ ] |
optional |
Product Association |
data |
|
optional |
additional configurable data |
io.restorecommerce.product.Association
Field | Type | Label | Description |
---|---|---|---|
type |
enum |
optional |
Product Association type Miscellaneous, Accessory or Recommendation |
tags |
[ ] string |
optional |
product tags |
data |
|
optional |
additional configurable data |
io.restorecommerce.product.IndividualProduct
Field | Type | Label | Description |
---|---|---|---|
name |
string |
optional |
Product name |
description |
string |
optional |
Product description |
manufacturer_id |
string |
optional |
Manufacturer identifier |
taric_code |
string |
optional |
Taric code |
prototype_id |
string |
optional |
Prodcut Prototype identifier |
category_id |
string |
optional |
Prodcut Category identifier |
tax_ids |
[ ] string |
optional |
list of tax identifiers |
gtin |
string |
optional |
Global Trade Item Number |
physical |
|
optional |
Physical Product |
virtual |
|
optional |
Virtual Product |
io.restorecommerce.product.PhysicalProduct
Field | Type | Label | Description |
---|---|---|---|
variants |
[ ] |
optional |
Physical Product Variants |
io.restorecommerce.product.PhysicalVariant
Field | Type | Label | Description |
---|---|---|---|
id |
string |
optional |
Physical variant id |
name |
string |
optional |
Physical variant name |
description |
string |
optional |
Physical variant description |
stock_level |
number |
optional |
Product Stock Level |
price |
number |
optional |
Product Variant Price |
sale |
boolean |
optional |
flag to indicate if Product Variant is for sale |
sale_price |
number |
optional |
Product Variant Sale Price |
image |
[ ] |
optional |
Product Variant Images |
File |
[ ] |
optional |
Product Variant Files |
stock_keeping_unit |
string |
optional |
Prodcut Variant SKU |
template_variant |
string |
optional |
Template Variant |
package |
|
optional |
Product Package |
attributes |
[ ] |
optional |
Product Variant Attributes |
io.restorecommerce.product.Package
Field | Type | Label | Description |
---|---|---|---|
size_in_cm |
|
optional |
Package Size |
weight_in_kg |
number |
optional |
Package Weight in Kg |
rotatable |
boolean |
optional |
flag to denote if Package is rotatable |
io.restorecommerce.product.VirtualProduct
Field | Type | Label | Description |
---|---|---|---|
variants |
[ ] |
optional |
Virtual Product Variants |
io.restorecommerce.product.VirtualVariant
Field | Type | Label | Description |
---|---|---|---|
id |
string |
optional |
Virtual variant id |
name |
string |
optional |
Virtual variant name |
description |
string |
optional |
Virtual variant description |
stock_level |
number |
optional |
Virtual Stock Level |
price |
number |
optional |
Virtual Variant Price |
sale |
boolean |
optional |
flag to indicate if Virtual Variant is for sale |
sale_price |
number |
optional |
Virtual Variant Sale Price |
image |
[ ] |
optional |
Virtual Variant Images |
File |
[ ] |
optional |
Virtual Variant Files |
stock_keeping_unit |
string |
optional |
Virtual Variant SKU |
template_variant |
string |
optional |
Template Variant |
attributes |
[ ] |
optional |
Virtual Variant Attributes |
io.restorecommerce.product.Bundle
Field | Type | Label | Description |
---|---|---|---|
name |
string |
optional |
Bundle name |
description |
string |
optional |
Bundle description |
image |
[ ] |
optional |
Bundled Product Images |
product |
[ ] |
optional |
Bundled Products |
price |
number |
optional |
Bundle price |
pre_packaged |
|
optional |
Bundled pre packaged |
io.restorecommerce.product.BundleProduct
Field | Type | Label | Description |
---|---|---|---|
prodcut_id |
string |
optional |
Bundled Product identifier |
variant_id |
string |
optional |
Bundled Variant identifier |
quantity |
number |
optional |
Bundled Product quantity |
tax_ratio |
number |
optional |
Discount in relation to the bundle price |
A list of Product resources.
io.restorecommerce.product.ProductList
Field | Type | Label | Description |
---|---|---|---|
items |
|
required |
List of Products |
total_count |
number |
optional |
number of Products |
CRUD Operations
The microservice exposes the below CRUD operations for creating or modifying Product, ProductPrototype, ProductCategory, PriceGroup, Manufacturer, Bundle and Offer resources.
io.restorecommerce.product.ProductService
Method Name | Request Type | Response Type | Description |
---|---|---|---|
Create |
|
|
Create a list of Product resources |
Read |
|
|
Read a list of Product resources |
Update |
|
|
Update a list of Product resources |
Delete |
|
Empty |
Delete a list of Prodeuct resources |
Upsert |
|
|
Create or Update a list of Product resources |
io.restorecommerce.product_prototype.ProductPrototypeService
Method Name | Request Type | Response Type | Description |
---|---|---|---|
Create |
|
|
Create a list of ProductPrototype resources |
Read |
|
|
Read a list of ProductPrototype resources |
Update |
|
|
Update a list of ProductPrototype resources |
Delete |
|
Empty |
Delete a list of ProductPrototype resources |
Upsert |
|
|
Create or Update a list of ProductPrototype resources |
io.restorecommerce.product_category.ProductCategoryService
Method Name | Request Type | Response Type | Description |
---|---|---|---|
Create |
|
|
Create a list of ProductCategory resources |
Read |
|
|
Read a list of ProductCategory resources |
Update |
|
|
Update a list of ProductCategory resources |
Delete |
|
Empty |
Delete a list of ProductCategory resources |
Upsert |
|
|
Create or Update a list of ProductCategory resources |
io.restorecommerce.price_group.PriceGroupService
Method Name | Request Type | Response Type | Description |
---|---|---|---|
Create |
|
|
Create a list of PriceGroup resources |
Read |
|
|
Read a list of PriceGroup resources |
Update |
|
|
Update a list of PriceGroup resources |
Delete |
|
Empty |
Delete a list of PriceGroup resources |
Upsert |
|
|
Create or Update a list of PriceGroup resources |
io.restorecommerce.manufacturer.ManufacturerService
Method Name | Request Type | Response Type | Description |
---|---|---|---|
Create |
|
|
Create a list of Manufacturer resources |
Read |
|
|
Read a list of Manufacturer resources |
Update |
|
|
Update a list of Manufacturer resources |
Delete |
|
Empty |
Delete a list of Manufacturer resources |
Upsert |
|
|
Create or Update a list of Manufacturer resources |
For the detailed protobuf message structure of
io.restorecommerce.resourcebase.ReadRequest
and io.restorecommerce.resourcebase.DeleteRequest
refer resource-base-interface.
Events
Emitted
List of events emitted by this microservice for below topics:
Topic Name | Event Name | Description |
---|---|---|
|
|
product created |
|
product modified |
|
|
product deleted |
Topic Name | Event Name | Description |
---|---|---|
|
|
product prototype created |
|
product prototype created modified |
|
|
product prototype created deleted |
Topic Name | Event Name | Description |
---|---|---|
|
|
product category created |
|
product category modified |
|
|
product category deleted |
Topic Name | Event Name | Description |
---|---|---|
|
|
price group created |
|
price group modified |
|
|
price group deleted |
Topic Name | Event Name | Description |
---|---|---|
|
|
manufacturer created |
|
manufacturer modified |
|
|
manufacturer deleted |
Topic Name | Event Name | Description |
---|---|---|
|
|
bundle created |
|
bundle modified |
|
|
bundle deleted |
Topic Name | Event Name | Description |
---|---|---|
|
|
offer created |
|
offer modified |
|
|
offer deleted |
Consumed
This microservice consumes messages for the following events by topic:
Topic Name | Event Name | Description |
---|---|---|
|
|
for triggering for system restore |
|
for triggering system reset |
|
|
to get system health check |
|
|
to get system version |