> ## Documentation Index
> Fetch the complete documentation index at: https://docs.qwoty.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Product Parent

> Retrieve a specific product parent by ID

## Authorization

<ParamField header="Authorization" type="string" required>
  Bearer token for authentication. Format: `Bearer qwoty_your_token`
</ParamField>

## Path Parameters

<ParamField path="id" type="string" required>
  UUID of the product parent
</ParamField>

## Examples

<CodeGroup>
  ```bash cURL theme={null}
  curl https://qwoty.app/api/product-parents/550e8400-e29b-41d4-a716-446655440000 \
    -H "Authorization: Bearer qwoty_your_token"
  ```

  ```javascript JavaScript theme={null}
  const productParentId = '550e8400-e29b-41d4-a716-446655440000'

  const response = await fetch(
    `https://qwoty.app/api/product-parents/${productParentId}`,
    {
      headers: {
        Authorization: 'Bearer qwoty_your_token',
      },
    },
  )

  const data = await response.json()
  ```

  ```python Python theme={null}
  import requests

  product_parent_id = '550e8400-e29b-41d4-a716-446655440000'

  response = requests.get(
      f'https://qwoty.app/api/product-parents/{product_parent_id}',
      headers={
          'Authorization': 'Bearer qwoty_your_token'
      }
  )

  data = response.json()
  ```
</CodeGroup>

## Response

<ResponseField name="success" type="boolean">
  Indicates if the request was successful
</ResponseField>

<ResponseField name="data" type="object">
  The product parent object

  <Expandable title="Product Parent Object">
    <ResponseField name="id" type="string">
      Unique identifier (UUID)
    </ResponseField>

    <ResponseField name="name" type="string">
      Product parent name
    </ResponseField>

    <ResponseField name="api_name" type="string">
      API identifier
    </ResponseField>

    <ResponseField name="recurrence_type" type="string">
      Billing model (`one_off` or `recurring`)
    </ResponseField>

    <ResponseField name="catalog_ids" type="array">
      Linked catalog IDs
    </ResponseField>

    <ResponseField name="product_ids" type="array">
      Linked product IDs
    </ResponseField>
  </Expandable>
</ResponseField>

<ResponseExample>
  ```json Success Response theme={null}
  {
    "success": true,
    "data": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "Premium Widget",
      "api_name": "premium_widget",
      "recurrence_type": "recurring",
      "catalog_ids": ["660e8400-e29b-41d4-a716-446655440001"],
      "product_ids": ["770e8400-e29b-41d4-a716-446655440002"]
    }
  }
  ```
</ResponseExample>

## Error Responses

<ResponseExample>
  ```json Not Found theme={null}
  {
    "success": false,
    "error": "Product parent not found"
  }
  ```

  ```json Unauthorized theme={null}
  {
    "success": false,
    "error": "Invalid API token"
  }
  ```
</ResponseExample>
