Attributes are free options a merchant can offer on products — toppings on a pizza, meal bases, included drinks. This page explains the concept and the CMS setup; the API endpoints are documented separately (links at the bottom).
Attribute sets Attributes Attribute values
|____ Pizza options |____ Included toppings |____ Salami
|____ Meal options | |____ Onion
|____ Included drinks |____ CocaCola 250 ML
| |____ Fanta 250 ML
|____ Meal base |____ Rice
|____ Noodles
Everything lives in the product editor's Attributes tab (Ominaisuudet):
isverpatrib) makes order/invoice lines ask for the selections when the product is added.At sale time each selection becomes its own price-0 sub-line under the product line (labelled "Attribute: value"), so receipts and invoices show the choices.
Set, attribute and value names can be entered per language (the pencil icons open a language-tabs editor). The public API returns both the resolved text and the raw {lang_code: text} map (name / name_ml) so clients can localize.
| Endpoint | Purpose |
|---|---|
| get_product_attributes | Read the tenant's set/attribute/value catalog, or one product's attached sets + flags |
| set_product_attributes | Attach/detach sets on a product (replace-all, ordered) and set the ask-at-sale flag |
Set definitions (creating sets/attributes/values) are maintained in the CMS Attributes tab — the API attaches existing sets to products.