Skip to main content

Metadata

Metadata is information you attach to articles and pricelists, stored as key → list of values, with no fixed schema:

json
POST /article
{ "sku": "SKU-CHAIR-001", "name": "Office chair", "metadata": { "brand": ["ergo"], "category": ["chairs", "office"] } }
json
POST /pricelist
{ "code": "wholesale-se", "currency_code": "SEK", "vat_mode": "NET", "metadata": { "segment": ["wholesale"], "region": ["nordics"] } }

Metadata is optional. When you write an article or pricelist again, its metadata is replaced as a whole from the new version's start; see Scheduled updates.


What metadata is used for​

WhereWhat it doesSee
Price rule filtersA rule applies only to articles whose metadata matches its filter, such as brand = 'ergo'Price rules
A price rule's parent variableA rule can read the parent pricelist's metadata, such as parent['segment'][0] == 'vip'Price rules
Price queriespricelist_filter.metadata selects the pricelists whose metadata matchesQuerying prices
SearchArticle and pricelist search match metadata values as text, and can filter on a key exactlyFinding articles and pricelists
Metadata listingsGET /article/metadata and GET /pricelist/metadata list the keys in use, and each key's valuesFinding articles and pricelists

When the metadata of an article or of a parent pricelist changes, the prices it affects are recalculated from that moment; see Historical pricing.


Inheritance​

Pricelist metadata is not inherited: each pricelist has its own. A child pricelist's rules can read its parent's metadata through the parent variable.

Bundles​

A bundle article has its own metadata, which price rule filters match in the same way as any other article's; see Bundles.


Search is for finding your data, for your team and your tools: in the console, during maintenance or in an integration. Product search for shoppers on a storefront belongs in your commerce platform or product information system.

See also​