---
title: REST API – Generic and Specific Products
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…"
url: "https://www.kafinea.com/en/help/api/rest-api-generic-and-specific-products/"
updated: "2026-11-22"
category: API
---

# REST API – Generic and Specific Products

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 visible in the layout manager.

---

## Create or update a generic product

Use `create` or `revise` 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:

```bash
curl -X POST "https://apps.kafinea.com/{instance}/webservice.php" 
  --data-urlencode "operation=revise" 
  --data-urlencode "sessionName=YOUR_SESSION_ID" 
  --data-urlencode 'element={
    "id": "14x1201",
    "is_standard": 1,
    "standard_pricing_mode": "CHEAPEST_SPECIFIC",
    "standard_margin_pct": 25,
    "standard_price_rounding": "0.01"
  }'
```

The price is recalculated automatically after saving. In manual entry mode, the provided price remains unchanged.

---

## Link a specific product

Two equivalent paths are available.

You can update the specific product by specifying its parent generic product:

```bash
curl -X POST "https://apps.kafinea.com/{instance}/webservice.php" 
  --data-urlencode "operation=revise" 
  --data-urlencode "sessionName=YOUR_SESSION_ID" 
  --data-urlencode 'element={
    "id": "14x1250",
    "is_standard": 0,
    "standard_parent_id": "14x1201"
  }'
```

You can also use the related list declared on the generic product:

```bash
curl -X POST "https://apps.kafinea.com/{instance}/webservice.php" 
  --data-urlencode "operation=add_related" 
  --data-urlencode "sessionName=YOUR_SESSION_ID" 
  --data-urlencode "sourceRecordId=14x1201" 
  --data-urlencode "relatedRecordId=14x1250" 
  --data-urlencode "relationIdLabel=Specific Products"
```

In both cases, Kafinea verifies that the parent is indeed a generic product, saves the specific product via the record's standard workflow, and recalculates the relevant prices.

To remove the link, update the specific product with an empty value:

```json
{
  "id": "14x1250",
  "standard_parent_id": ""
}
```

---

## Read Specific Products

Use `relatedtypes` to discover the related list, then `query_related` with its exact label. You can also query Products directly with `query` when you know the parent ID.

The MCP server exposes the same capabilities with `relatedtypes`, `query_related`, `add_related`, `find_records`, `get_record`, and `update_record`. It does not introduce any vocabulary specific to generic products.

---

## Permissions and recalculations

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's record.

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.

---

## Related References

- [Generic products](https://www.kafinea.com/en/help/catalog/generic-products/)
- [Complete API reference](https://www.kafinea.com/en/help/api/rest-api-full-reference-openapi/)
- [Related operations](https://www.kafinea.com/en/help/api/rest-api-entity-relationships/)
- [Queries and retrieval](https://www.kafinea.com/en/help/api/rest-api-requests-and-querying/)
- [Product kits](https://www.kafinea.com/en/help/api/rest-api-product-kits/)
