# 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

# Important

Please note that this method is a soft delete method which means that the product itself isn't deleted but a flag called deleted is set to true. No data is lost.

# Pre requisite

In order to delete a product, one need to have knowledge about the product ID to be deleted.

# Deleting a product

# Example Request

DELETE Request towards /products/{ clientAccountID }/{ productID }.

curl -X DELETE \
  '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'
1
2
3
4
5

# Deleting a product and its dependencies

When a product has variants and one must delete also its children the delete_dependencies query parameter must be used.

# Example Request - Product and its dependencies

DELETE Request towards /products/{ clientAccountID }/{ productID }?delete_dependencies=true.

curl -X DELETE \
  'https://api.tillhub.com/api/v1/products/{ clientAccountID }/{ productID }?delete_dependencies=true' \
  -H 'accept: application/json, text/plain, */*' \
  -H 'authorization: YourJW-Token' \
  -H 'content-type: application/json;charset=UTF-8'
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.