---
title: "Product data V3.1 · categoryType"
canonical: "https://knowledge-hub.onetrail.com/space/docs/726401106/Product+data+V3.1+%C2%B7+categoryType"
format: markdown
---
**Complex type** in namespace `http://schema.onetrail.net/ns/receive-request-response` · part of [Product data V3.1](https://onetrail.atlassian.net/wiki/spaces/docs/pages/718700753)

## Diagram

![categoryType diagram](media://1efb02b1-493d-42fc-8712-a2b61391dca7)

## Content

Text content of type `xsd:string`, with the attributes below.

## Attributes

| Attribute | Type | Use | Description |
| --- | --- | --- | --- |
| **@lang** | `xsd:string` | [required] | lang is the language code (ISO 639-1 code 2) by the International Organization for Standardization (ISO), which represents names for language and language groups. The language code consists out of 2 letters. The default setting is "EN" for "English". |
| **@id** | `xsd:string` | optional | id refers to the accessory manufacturer product identifier (ID) of an article. |

## Used by

- [accessoriesCompatibleType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726204631) / **category**
- [basicInfoType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726892795) / **category**
- [accessoryType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/726237328) / **category**
- [relationType](https://onetrail.atlassian.net/wiki/spaces/docs/pages/727384195) / **category**

<details>
<summary>XSD source</summary>

```xml
<xsd:complexType name="categoryType">
        <xsd:simpleContent>
            <xsd:extension base="xsd:string">
                <xsd:attribute name="lang" type="xsd:string" use="required">
                    <xsd:annotation>
                        <xsd:documentation>lang is the language code (ISO 639-1 code 2) by the International Organization for Standardization (ISO), which represents names for language and language groups. The language code consists out of 2 letters. The default setting is "EN" for "English".</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
                <xsd:attribute name="id" type="xsd:string">
                    <xsd:annotation>
                        <xsd:documentation>id refers to the accessory manufacturer product identifier (ID) of an article.</xsd:documentation>
                    </xsd:annotation>
                </xsd:attribute>
            </xsd:extension>
        </xsd:simpleContent>
    </xsd:complexType>

```
</details>