The Product Service in the Galtea SDK allows you to manage products that you want to evaluate. This Service is exposed by the galtea.products object and we will further explore its API down below.

Remember that we will be using the galtea object. More information here.

It is not supported to create product from the sdk, therefore you need to do this from the platform.

Listing Products

This method allows you to list all products.

products = galtea.products.list()
offset
int

The number of products to skip before starting to collect the result set.

limit
int

The maximum number of products to return.

Retrieving Product

This method allows you to retrieve a specific product by its ID.

product = galtea.products.get(product_id="YOUR_PRODUCT_ID")
product_id
string
required

The ID of the product you want to retrieve.

Retrieving Product By Name

This method allows you to retrieve a specific product by its name.

product = galtea.products.get_by_name(name="YOUR_PRODUCT_NAME")
name
string
required

The name of the product you want to retrieve.

Deleting Product

This method allows you to delete a specific product by its ID.

galtea.products.delete(product_id="YOUR_PRODUCT_ID")
product_id
string
required

The ID of the product you want to delete.