{"id":445406,"date":"2026-09-19T00:18:46","date_gmt":"2026-09-18T22:18:46","guid":{"rendered":"https:\/\/www.kafinea.com\/documentation\/uncategorized\/rest-api-generic-and-specific-products\/"},"modified":"2026-11-22T17:48:59","modified_gmt":"2026-11-22T16:48:59","password":"","slug":"rest-api-generic-and-specific-products","status":"publish","type":"docs","link":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/","title":{"rendered":"REST API &#8211; Generic and Specific Products"},"content":{"rendered":"<p>Generic and specific products use standard API operations on Products. No additional business endpoint is required: the same fields, related lists, validations, and calculations are used across Kafinea, the REST API, and the MCP server.<\/p>\n<p>Before integrating, run <code>describe<\/code> on the Products module. If the expected fields are not returned, the administrator must make them visible in the layout manager.<\/p>\n<hr\/>\n<h2>Create or update a generic product<\/h2>\n<p>Use <code>create<\/code> or <code>revise<\/code> and populate the product type as well as its pricing policy. The following example converts an existing product into a generic product with a price calculated from the lowest-priced specific product:<\/p>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/apps.kafinea.com\/{instance}\/webservice.php\" \\\n  --data-urlencode \"operation=revise\" \\\n  --data-urlencode \"sessionName=YOUR_SESSION_ID\" \\\n  --data-urlencode 'element={\n    \"id\": \"14x1201\",\n    \"is_standard\": 1,\n    \"standard_pricing_mode\": \"CHEAPEST_SPECIFIC\",\n    \"standard_margin_pct\": 25,\n    \"standard_price_rounding\": \"0.01\"\n  }'\n<\/code><\/pre>\n<p>The price is recalculated automatically after saving. In manual entry mode, the provided price remains unchanged.<\/p>\n<hr\/>\n<h2>Link a specific product<\/h2>\n<p>Two equivalent paths are available.<\/p>\n<p>You can update the specific product by specifying its parent generic product:<\/p>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/apps.kafinea.com\/{instance}\/webservice.php\" \\\n  --data-urlencode \"operation=revise\" \\\n  --data-urlencode \"sessionName=YOUR_SESSION_ID\" \\\n  --data-urlencode 'element={\n    \"id\": \"14x1250\",\n    \"is_standard\": 0,\n    \"standard_parent_id\": \"14x1201\"\n  }'\n<\/code><\/pre>\n<p>You can also use the related list declared on the generic product:<\/p>\n<pre><code class=\"language-bash\">curl -X POST \"https:\/\/apps.kafinea.com\/{instance}\/webservice.php\" \\\n  --data-urlencode \"operation=add_related\" \\\n  --data-urlencode \"sessionName=YOUR_SESSION_ID\" \\\n  --data-urlencode \"sourceRecordId=14x1201\" \\\n  --data-urlencode \"relatedRecordId=14x1250\" \\\n  --data-urlencode \"relationIdLabel=Specific Products\"\n<\/code><\/pre>\n<p>In both cases, Kafinea verifies that the parent is indeed a generic product, saves the specific product via the record&#8217;s standard workflow, and recalculates the relevant prices.<\/p>\n<p>To remove the link, update the specific product with an empty value:<\/p>\n<pre><code class=\"language-json\">{\n  \"id\": \"14x1250\",\n  \"standard_parent_id\": \"\"\n}\n<\/code><\/pre>\n<hr>\n<h2>Read Specific Products<\/h2>\n<p>Use <code>relatedtypes<\/code> to discover the related list, then <code>query_related<\/code> with its exact label. You can also query Products directly with <code>query<\/code> when you know the parent ID.<\/p>\n<p>The MCP server exposes the same capabilities with <code>relatedtypes<\/code>, <code>query_related<\/code>, <code>add_related<\/code>, <code>find_records<\/code>, <code>get_record<\/code>, and <code>update_record<\/code>. It does not introduce any vocabulary specific to generic products.<\/p>\n<hr>\n<h2>Permissions and recalculations<\/h2>\n<p>Read access follows the permissions of the logged-in user. Linking via a related list requires edit permissions for both the generic product and the specific product, as the operation updates the specific product&#8217;s record.<\/p>\n<p>Required recalculations are triggered automatically following changes to configuration, cost, price, linking, or supplier offers. A validation or authorization error will abort the operation with an explicit error message.<\/p>\n<hr>\n<h2>Related References<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/catalog\/generic-products\/\">Generic products<\/a><\/li>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-full-reference-openapi\/\">Complete API reference<\/a><\/li>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-entity-relationships\/\">Related operations<\/a><\/li>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-requests-and-querying\/\">Queries and retrieval<\/a><\/li>\n<li><a href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-product-kits\/\">Product kits<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Generic and specific products use standard API operations on Products. No additional business endpoint is required: the same fields, related lists, validations, and calculations are used across Kafinea, the REST API, and the MCP server. Before integrating, run describe on the Products module. If the expected fields are not returned, the administrator must make them&#8230;<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","footnotes":""},"doc_category":[759],"doc_tag":[],"class_list":["post-445406","docs","type-docs","status-publish","hentry","doc_category-api"],"year_month":"2026-11","word_count":429,"total_views":0,"reactions":{"happy":0,"normal":0,"sad":0},"author_info":{"name":"David Valminos","author_nicename":"david","author_url":"https:\/\/www.kafinea.com\/en\/author\/david\/"},"doc_category_info":[{"term_name":"API","term_url":"https:\/\/www.kafinea.com\/en\/help\/api\/"}],"doc_tag_info":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Help - REST API - Generic and Specific Products &#8226; Kafinea<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Help - REST API - Generic and Specific Products &#8226; Kafinea\" \/>\n<meta property=\"og:description\" content=\"Generic and specific products use standard API operations on Products. No additional business endpoint is required: the same fields, related lists, validations, and calculations are used across Kafinea, the REST API, and the MCP server. Before integrating, run describe on the Products module. If the expected fields are not returned, the administrator must make them...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/\" \/>\n<meta property=\"og:site_name\" content=\"Kafinea\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-22T16:48:59+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-generic-and-specific-products\\\/\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-generic-and-specific-products\\\/\",\"name\":\"Help - REST API - Generic and Specific Products &#8226; Kafinea\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#website\"},\"datePublished\":\"2026-09-18T22:18:46+00:00\",\"dateModified\":\"2026-11-22T16:48:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-generic-and-specific-products\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-generic-and-specific-products\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/help\\\/api\\\/rest-api-generic-and-specific-products\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"REST API &#8211; Generic and Specific Products\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/\",\"name\":\"Kafinea\",\"description\":\"Une solution unique pour toutes vos ambitions\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#organization\",\"name\":\"Kafinea\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.kafinea.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/Logo-Kafinea-SVG-orange-bleu.svg\",\"contentUrl\":\"https:\\\/\\\/www.kafinea.com\\\/wp-content\\\/uploads\\\/2024\\\/10\\\/Logo-Kafinea-SVG-orange-bleu.svg\",\"width\":296.31,\"height\":66.48,\"caption\":\"Kafinea\"},\"image\":{\"@id\":\"https:\\\/\\\/www.kafinea.com\\\/en\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/company\\\/kafinea\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Help - REST API - Generic and Specific Products &#8226; Kafinea","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/","og_locale":"en_US","og_type":"article","og_title":"Help - REST API - Generic and Specific Products &#8226; Kafinea","og_description":"Generic and specific products use standard API operations on Products. No additional business endpoint is required: the same fields, related lists, validations, and calculations are used across Kafinea, the REST API, and the MCP server. Before integrating, run describe on the Products module. If the expected fields are not returned, the administrator must make them...","og_url":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/","og_site_name":"Kafinea","article_modified_time":"2026-11-22T16:48:59+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/","url":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/","name":"Help - REST API - Generic and Specific Products &#8226; Kafinea","isPartOf":{"@id":"https:\/\/www.kafinea.com\/en\/#website"},"datePublished":"2026-09-18T22:18:46+00:00","dateModified":"2026-11-22T16:48:59+00:00","breadcrumb":{"@id":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.kafinea.com\/en\/help\/api\/rest-api-generic-and-specific-products\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Accueil","item":"https:\/\/www.kafinea.com\/en\/"},{"@type":"ListItem","position":2,"name":"REST API &#8211; Generic and Specific Products"}]},{"@type":"WebSite","@id":"https:\/\/www.kafinea.com\/en\/#website","url":"https:\/\/www.kafinea.com\/en\/","name":"Kafinea","description":"Une solution unique pour toutes vos ambitions","publisher":{"@id":"https:\/\/www.kafinea.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.kafinea.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.kafinea.com\/en\/#organization","name":"Kafinea","url":"https:\/\/www.kafinea.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.kafinea.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/www.kafinea.com\/wp-content\/uploads\/2024\/10\/Logo-Kafinea-SVG-orange-bleu.svg","contentUrl":"https:\/\/www.kafinea.com\/wp-content\/uploads\/2024\/10\/Logo-Kafinea-SVG-orange-bleu.svg","width":296.31,"height":66.48,"caption":"Kafinea"},"image":{"@id":"https:\/\/www.kafinea.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/company\/kafinea\/"]}]}},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"David Valminos","author_link":"https:\/\/www.kafinea.com\/en\/author\/david\/"},"uagb_comment_info":0,"uagb_excerpt":"Generic and specific products use standard API operations on Products. No additional business endpoint is required: the same fields, related lists, validations, and calculations are used across Kafinea, the REST API, and the MCP server. Before integrating, run describe on the Products module. If the expected fields are not returned, the administrator must make them...","_links":{"self":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/docs\/445406","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/comments?post=445406"}],"version-history":[{"count":0,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/docs\/445406\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/media?parent=445406"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/doc_category?post=445406"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.kafinea.com\/en\/wp-json\/wp\/v2\/doc_tag?post=445406"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}