> For the complete documentation index, see [llms.txt](https://apidocs.akinon.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://apidocs.akinon.com/commerce-openapis/admin/products/group-product-items/retrieve-a-group-product-item.md).

# Retrieve a group product item

Returns a single group product item by its identifier.

```json
{"openapi":"3.1.0","info":{"title":"Admin API","version":"1.0.0"},"tags":[{"name":"Group Product Items","description":"Administrative endpoints for **group product items** — the membership rows that link a **Grouped** product (the `from_product`, sold as a set) to each **Simple** product it contains (the `to_product`), together with the quantity of that member included in the set.\n\n## Core Capabilities\n\n**1. Group Item Listing & Filtering**\n* Retrieve a paginated list of group product items.\n* Filter by the grouped master product (`from_product`) and by the member product (`to_product`).\n\n**2. Group Item Lifecycle Management**\n* Add a member to a grouped product, retrieve, update (PUT/PATCH), or remove one.\n* Whenever an item is created or updated, the grouped master product's price is recomputed from its members' prices (see the dynamic setting below).\n\n## Membership Rules\n\n| Rule | Description |\n|------|-------------|\n| Master type | `from_product` must be a **Grouped** product. Otherwise the request is rejected with `group_product_item_100_1`. |\n| Member type | `to_product` must be a **Simple** product. Otherwise the request is rejected with `group_product_item_100_2`. |\n| Uniqueness | A given `(from_product, to_product)` pair may exist only once. A duplicate is rejected with the \"already exists\" error. |\n\n## Dynamic Settings & Environment Variables\n\nThe behavior of the create and update operations is influenced by the following dynamic setting, configured in the management panel.\n\n| Key | Type | Default | Effect |\n|-----|------|---------|--------|\n| `GROUPED_PRODUCT_PRICE_SELECTOR` | string (one of three dotted import paths, chosen from a fixed list) | `omnishop.catalogs.selector.group_product_min_price_selector` (Minimum Price) | Selects the strategy used to derive a grouped product's price from its members' prices. It is applied on **create** (`POST /group_product_items/`) and **update** (`PUT`/`PATCH /group_product_items/{id}/`), when the grouped master product's price is recomputed after its membership changes. Allowed values are `...group_product_min_price_selector` (lowest member price), `...group_product_max_price_selector` (highest member price), and `...group_product_sum_price_selector` (sum of member prices). |\n\n**Environment variables:** No environment variables affect these endpoints."}],"servers":[{"description":"Omnitron Remote Proxy (external access — recommended)","url":"https://{omnitron_url}/api/v1/remote/{channel_id}","variables":{"omnitron_url":{"default":"sandbox.akinon.com","description":"Omnitron server URL (e.g., {omnitron.akinon.com})"},"channel_id":{"default":"1","description":"The channel identifier the remote request is routed through"}}},{"description":"Commerce API Server (internal / direct access only)","url":"https://{commerce_url}/api/v1","variables":{"commerce_url":{"default":"sandbox.akinon.com","description":"Internal commerce server URL, reachable only from within the Omnitron network"}}}],"security":[{"tokenAuth":[]}],"components":{"securitySchemes":{"tokenAuth":{"type":"apiKey","in":"header","name":"Authorization","description":"Token credential sent in the Authorization header, in the form: `Token <your-token>`. Requires a staff (admin) account."}},"schemas":{"GroupProductItem":{"type":"object","description":"A membership row linking a grouped product to one of its member (simple) products.","properties":{"pk":{"type":"integer","readOnly":true,"description":"Unique identifier of the group product item."},"from_product":{"type":"integer","description":"Identifier of the grouped master product."},"to_product":{"type":"integer","description":"Identifier of the member (simple) product."},"order":{"type":"integer","minimum":0,"description":"Sort order of the member within the group. Lower values appear first.","default":0},"initial_quantity":{"type":"integer","minimum":0,"description":"Quantity of the member product included in the set.","default":1}},"required":["pk","from_product","to_product","order","initial_quantity"]},"Error":{"type":"object","description":"An error response.","properties":{"detail":{"type":"string","description":"A human-readable description of the error."}},"additionalProperties":true}},"responses":{"Unauthorized":{"description":"Authentication credentials were not provided or are invalid.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"The authenticated user does not have administrator privileges.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"GroupProductItemNotFound":{"description":"The requested group product item does not exist.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"paths":{"/group_product_items/{id}/":{"get":{"tags":["Group Product Items"],"operationId":"retrieveGroupProductItem","summary":"Retrieve a group product item","description":"Returns a single group product item by its identifier.","responses":{"200":{"description":"The requested group product item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GroupProductItem"}}}},"401":{"$ref":"#/components/responses/Unauthorized"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/GroupProductItemNotFound"}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://apidocs.akinon.com/commerce-openapis/admin/products/group-product-items/retrieve-a-group-product-item.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
