# Getting Started

A product resembles the core element of the Tillhub ERP and POS Solution. Without products, you can not make a sale (except of LPS Features, that allow to neglect any validation). We support multiple types of products:

  • Standard products
  • Variant products
  • Linked products
  • Voucher products

In this example, we will update a standard product.

# Pre requisite

In order to update products, one need to have knowledge about Tillhub Product Schema and the product ID to be updated.

# Updating a product

# Example Request

PUT Request towards /products/{ clientAccountID }/{ productID } containing a data body with the product data to be updated.

curl -X PUT \
  'https://api.tillhub.com/api/v1/products/{ clientAccountID }/{ productID }' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'authorization: YourJW-Token' \
  -H 'content-type: application/json;charset=UTF-8' \
  -d '{
    "active": true,
    "name": "Updated Product Name",
    "product_group": "210404ff-32b2-4813-ae9a-ee70df3ea566"
}'
1
2
3
4
5
6
7
8
9
10

# The body in detail

This will change the product name and its product group also will set this product as active.

{
    "active": true,
    "name": "Updated Product Name",
    "product_group": "210404ff-32b2-4813-ae9a-ee70df3ea566"
}
1
2
3
4
5

# Making a call

In order to make a call to the Backend, utilise the Bearer token returned by the authentication endpoints.