> For the complete documentation index, see [llms.txt](https://developer.emporix.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/schema.md). Agents can also search and read this documentation through its [MCP server](https://developer.emporix.io/~gitbook/mcp).

# Schema Tutorial

With the Schema Service you can easily create and manage customized/industry-specific fields for different types in Management Dashboard. The new fields appear in a separate tab when you create an instance of the extended type.

## Supported entity types for schema creation

When creating a mixin schema through the Schema Service API, you can select from the following entity types: `availability`, `cart`, `cart_item`, `category`, `company`, `coupon`, `customer`, `customer_address`, `custom_entity`, `location`, `media`, `order`, `order_entry`, `price_list`, `product`, `quote`, `return`, `site`, `vendor`, and `vendor_location`.

{% hint style="info" %}
**Important distinction:** The list above shows which entity types support mixin schema creation through the Schema Service API. APIs that support mixins but are not listed there still require you to create mixin schemas manually (as JSON schemas) and reference them when using those APIs. See the [Mixins standard practices](https://developer.emporix.io/api-documentation/standard-practices/mixins.md) page for a complete list of APIs that support mixins.
{% endhint %}

## How to add custom fields for an entity

This tutorial explains how to add custom fields for a product entity.

### Create a schema

To extend the product entity in Management Dashboard with some industry-specific fields, create a schema that defines the required fields and generates JSON file representation by sending a request to the [Creating a schema](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference/schema#post-schema-tenant-schemas) endpoint.

{% hint style="success" %}
To test the endpoint, open the API reference or check the example of a curl request.
{% endhint %}

{% content-ref url="/pages/LtLbZrJFe4rsb7VJXBCK" %}
[API Reference](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference.md)
{% endcontent-ref %}

```bash
curl -L 
  --request POST 
  --url 'https://api.emporix.io/schema/{tenant}/schemas' 
  --header 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' 
  --header 'Content-Type: application/json' 
  --data '{
    "name": {
      "en": "Product Custom Attributes"
    },
    "types": [
      "PRODUCT"
    ],
    "attributes": [
      {
        "key": "weight",
        "name": {
          "en": "Weight of a product"
        },
        "description": {
          "en": "The exact weight of a product in grams."
        },
        "type": "TEXT",
        "metadata": {
          "readOnly": true,
          "required": true
        }
      },
      {
        "key": "size",
        "name": {
          "en": "Size of a product"
        },
        "description": {
          "en": "The exact size of a product. Possible values are S, M, L."
        },
        "type": "ENUM",
        "metadata": {
          "readOnly": true,
          "required": true
        },
        "values": [
          {
            "value": "S"
          },
          {
            "value": "M"
          },
          {
            "value": "L"
          }
        ]
      },
      {
        "key": "advertisement",
        "name": {
          "en": "Advertisement of a product"
        },
        "description": {
          "en": "A localized advertisement of a product."
        },
        "type": "TEXT",
        "metadata": {
          "localized": true,
          "required": true
        }
      }
    ]
  }'
```

Request result is the new schema ID - "id": "6915ec3c047dc4456d86a26f".

### Retrieve a schema

Retrieve the created schema to get the schema URL by calling the [Retrieving a schema](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference/schema#get-schema-tenant-schemas-id) endpoint.

{% hint style="success" %}
To test the endpoint, open the API reference or check the example of a curl request.
{% endhint %}

{% content-ref url="/pages/LtLbZrJFe4rsb7VJXBCK" %}
[API Reference](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference.md)
{% endcontent-ref %}

```bash
curl -L 
  --url 'https://api.emporix.io/schema/{tenant}/schemas/{id}' 
  --header 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' 
  --header 'Accept: */*'
```

In the response, you can see the URL link to cloudinary repository, where the schema for the product type has been uploaded.

```json
{
  "id": "6915ec3c047dc4456d86a26f",
  "name": {
    "en": "Product Custom Attributes"
  },
  "attributes": [
    {
      "key": "weight",
      "name": {
        "en": "Weight of a product"
      },
      "description": {
        "en": "The exact weight of a product in grams."
      },
      "type": "TEXT",
      "metadata": {
        "readOnly": true,
        "localized": false,
        "required": true,
        "nullable": false
      }
    },
    {
      "key": "size",
      "name": {
        "en": "Size of a product"
      },
      "description": {
        "en": "The exact size of a product. Possible values are S, M, L."
      },
      "type": "ENUM",
      "metadata": {
        "readOnly": true,
        "localized": false,
        "required": true,
        "nullable": false
      },
      "values": [
        {
          "value": "S"
        },
        {
          "value": "M"
        },
        {
          "value": "L"
        }
      ]
    },
    {
      "key": "advertisement",
      "name": {
        "en": "Advertisement of a product"
      },
      "description": {
        "en": "A localized advertisement of a product."
      },
      "type": "TEXT",
      "metadata": {
        "readOnly": false,
        "localized": true,
        "required": true,
        "nullable": false
      }
    }
  ],
  "types": [
    "PRODUCT"
  ],
  "metadata": {
    "version": 1,
    "createdAt": "2025-11-13T14:33:32.059Z",
    "modifiedAt": "2025-11-13T14:33:32.059Z",
    "url": "https://res.cloudinary.com/saas-ag/raw/upload/schemata2/featuredemo/6915ec3c047dc4456d86a26f_v1.json"
  }
}
```

{% hint style="warning" %}
When you create a product, the validation mechanism runs against the schema stored under the mentioned cloudinary URL.
{% endhint %}

### Create a product

Now, create a product that contains additional fields by sending a request to [Creating a new product](https://developer.emporix.io/api-documentation/api-guides/products-labels-and-brands/product-service/api-reference/products#post-product-tenant-products) endpoint.

The product should contain "metadata.mixins.{{id}}: {{cloudinaryUrl}}", where `id` is the schema URL you retrieved with `GET` operation in the previous step.

For example, you created a schema with **size** attribute and it got assigned a schema id: `6915ec3c047dc4456d86a26f`. When creating or editing a product, provide the schema `id` and `URL` details in the payload of the `POST` request:

```json
{
  "mixins": {
    "6915ec3c047dc4456d86a26f": {
      "size": 6557
    }
  },
  "metadata": {
    "mixins": {
      "6915ec3c047dc4456d86a26f": "https://res.cloudinary.com/saas-ag/raw/upload/schemata2/featuredemo/6915ec3c047dc4456d86a26f_v1.json"
    }
  }
}
```

The product you created has already the custom fields added in the separate **Product Custom Attributes** tab.

## How to create a site-aware mixin schema

Set `siteAware` to `true` when you create or update a mixin schema so products and custom instances can store per-site overlays for that schema. After the schema exists, attach it to a product or custom instance as usual: declare only the base mixin name in `metadata.mixins`, and store overlays under keys in the form `{mixinName}__{siteCode}`.

{% hint style="info" %}
For the product workflow after the schema exists, see [How to use site-aware mixins on products](https://developer.emporix.io/api-documentation/api-guides/products-labels-and-brands/product-service/product.md#how-to-use-site-aware-mixins-on-products). For an overview of overlay and merge behavior, see [Site-aware mixins](https://developer.emporix.io/api-documentation/standard-practices/mixins.md#site-aware-mixins).
{% endhint %}

### Create a site-aware schema

Send a request to the [Creating a schema](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference/schema#post-schema-tenant-schemas) endpoint and include `"siteAware": true`.

{% hint style="success" %}
To test the endpoint, open the API reference or check the example of a curl request.
{% endhint %}

```bash
curl -i -X POST \
  'https://api.emporix.io/schema/{tenant}/schemas' \
  -H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": {
      "en": "Market Attributes"
    },
    "types": [
      "PRODUCT"
    ],
    "siteAware": true,
    "attributes": [
      {
        "key": "taxCategory",
        "name": {
          "en": "Tax category"
        },
        "type": "TEXT",
        "metadata": {
          "required": false
        }
      },
      {
        "key": "shippingRestricted",
        "name": {
          "en": "Shipping restricted"
        },
        "type": "BOOLEAN",
        "metadata": {
          "required": false
        }
      }
    ]
  }'
```

Retrieve the schema with the [Retrieving a schema](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference/schema#get-schema-tenant-schemas-id) endpoint. The response includes `siteAware: true` and the schema URL to reference from products or custom instances.

### Enable site awareness on an existing schema

To mark an existing mixin schema as site-aware, send a request to the [Updating a schema](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference/schema#put-schema-tenant-schemas-id) endpoint. Include the current schema attributes, set `"siteAware": true`, and send the current `metadata.version`. The `siteAware` flag is stored with that attributes version.

{% hint style="success" %}
To test the endpoint, open the API reference or check the example of a curl request.
{% endhint %}

```bash
curl -i -X PUT \
  'https://api.emporix.io/schema/{tenant}/schemas/{id}' \
  -H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": {
      "en": "Market Attributes"
    },
    "types": [
      "PRODUCT"
    ],
    "siteAware": true,
    "attributes": [
      {
        "key": "taxCategory",
        "name": {
          "en": "Tax category"
        },
        "type": "TEXT",
        "metadata": {
          "required": false
        }
      },
      {
        "key": "shippingRestricted",
        "name": {
          "en": "Shipping restricted"
        },
        "type": "BOOLEAN",
        "metadata": {
          "required": false
        }
      }
    ],
    "metadata": {
      "version": 1
    }
  }'
```

## How to use localized OBJECT mixin attributes

When your tenant's `languageSchemaVersion` configuration is `v2`, you can mark an `OBJECT` attribute as localized. Schema Service then generates a language-keyed map of nested objects. Array items of localized `TEXT` or `OBJECT` also use v2 language maps.

Under `v1`, localized mixin `TEXT` values are often stored as arrays such as `[{ "language": "en", "value": "Organic" }]`. Under `v2`, the same kind of value is a language map such as `{ "en": "Organic", "de": "Bio" }`. Localized `TEXT` attributes work with either version. Localized `OBJECT` attributes require `v2`.

### Prerequisites

Before you start, complete the following prerequisites:

1. Set the tenant configuration key `languageSchemaVersion` to the string value `v2`. Use the [Creating configurations](https://developer.emporix.io/api-documentation/api-guides/configuration/configuration-service/api-reference/tenant-configurations#post-configuration-tenant-configurations) endpoint, or [Updating a configuration](https://developer.emporix.io/api-documentation/api-guides/configuration/configuration-service/api-reference/tenant-configurations#put-configuration-tenant-configurations-propertykey) if the key already exists. For the broader workflow, see [Managing tenant configurations](https://developer.emporix.io/api-documentation/api-guides/configuration/configuration-service/configuration-service-tutorial.md#managing-tenant-configurations).

```bash
curl -i -X POST \
  'https://api.emporix.io/configuration/{tenant}/configurations' \
  -H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' \
  -H 'Content-Type: application/json' \
  -d '[
    {
      "key": "languageSchemaVersion",
      "secured": false,
      "value": "v2",
      "version": 1
    }
  ]'
```

2. Use language codes that exist in your tenant language configuration. See [Language Tutorials](https://developer.emporix.io/api-documentation/api-guides/configuration/configuration-service/language.md).

{% hint style="info" %}
If `languageSchemaVersion` is missing or set to `v1`, Schema Service rejects localized `OBJECT` attributes.
{% endhint %}

### Create a schema with a localized OBJECT

Send a request to the [Creating a schema](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference/schema#post-schema-tenant-schemas) endpoint. For an `OBJECT` attribute, set `"localized": true` in that attribute's `metadata`. For localized array items, set `"localized": true` on `arrayType`. Nested attributes inside a localized `OBJECT` must not set `localized` to `true`. Nested localized attributes remain allowed only under a plain (non-localized) `OBJECT`.

{% hint style="success" %}
To test the endpoint, open the API reference or check the example of a curl request.
{% endhint %}

```bash
curl -i -X POST \
  'https://api.emporix.io/schema/{tenant}/schemas' \
  -H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": {
      "en": "Localized content attributes"
    },
    "types": [
      "PRODUCT"
    ],
    "attributes": [
      {
        "key": "address",
        "name": {
          "en": "Address"
        },
        "type": "OBJECT",
        "metadata": {
          "localized": true,
          "nullable": true
        },
        "attributes": [
          {
            "key": "city",
            "name": {
              "en": "City"
            },
            "type": "TEXT",
            "metadata": {}
          }
        ]
      },
      {
        "key": "labels",
        "name": {
          "en": "Labels"
        },
        "type": "ARRAY",
        "metadata": {},
        "arrayType": {
          "type": "TEXT",
          "localized": true
        }
      },
      {
        "key": "contentBlocks",
        "name": {
          "en": "Content blocks"
        },
        "type": "ARRAY",
        "metadata": {},
        "arrayType": {
          "type": "OBJECT",
          "localized": true,
          "attributes": [
            {
              "key": "title",
              "name": {
                "en": "Title"
              },
              "type": "TEXT",
              "metadata": {}
            }
          ]
        }
      }
    ]
  }'
```

Retrieve the schema with the [Retrieving a schema](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference/schema#get-schema-tenant-schemas-id) endpoint. Use the returned `metadata.url` when you attach the mixin to a product or custom instance.

### Store localized OBJECT values

Unlike first-class localized fields in [Translations](https://developer.emporix.io/api-documentation/standard-practices/translations.md), mixin writes are not reshaped by `Content-Language`. Always send full language maps in the mixin JSON body.

Attach the mixin when you create or update a product or custom instance. Choose a stable mixin key, for example `localizedContentAttributes`, and put the schema URL under `metadata.mixins` for that same key. For products, see [Create a product](#create-a-product) or [How to update product mixins](https://developer.emporix.io/api-documentation/api-guides/products-labels-and-brands/product-service/product.md#how-to-update-product-mixins).

Example product mixin payload:

```json
{
  "mixins": {
    "localizedContentAttributes": {
      "address": {
        "en": {
          "city": "Berlin"
        },
        "de": {
          "city": "Berlin"
        }
      },
      "labels": [
        {
          "en": "Organic",
          "de": "Bio"
        }
      ],
      "contentBlocks": [
        {
          "en": {
            "title": "Care instructions"
          },
          "de": {
            "title": "Pflegehinweise"
          }
        }
      ]
    }
  },
  "metadata": {
    "mixins": {
      "localizedContentAttributes": "{{schemaURL}}"
    }
  }
}
```

A nullable localized `OBJECT` can be `null` for the whole field, or `null` for a single language key, for example `"en": null`.

### Read a preferred language with Accept-Language

On product and custom-instance reads, send `Accept-Language` to filter v2 mixin language maps. Unlike first-class localized fields, which return a string for one language (or a full map when the header is `*`), a filtered mixin field remains a single-key map, for example `{ "de": { "city": "Berlin" } }`.

Accept-Language filtering for v2 mixin maps follows these rules:

* A specific language or ordered list returns the first matching non-null translation as a single-key map.
* A map with no matching non-null translation is omitted. A whole-field `null` localized `OBJECT` is preserved.
* In an array of language maps, an element without a matching translation is omitted.
* `*`, an omitted header, or an empty header leaves full v2 mixin maps unchanged.
* v1 `[{language,value}]` mixin arrays are not filtered.

For first-class localized fields on the same responses, an omitted or empty header uses the tenant's default language. Only `*` returns every translation.

For product reads, see [Retrieving a product](https://developer.emporix.io/api-documentation/api-guides/products-labels-and-brands/product-service/api-reference/products#get-product-tenant-products-productid). For custom instances, see [Retrieving a custom instance](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference/custom-instance#get-schema-tenant-custom-entities-type-instances-id).

### Localization rules

Localization for mixin attributes follows these rules:

* A localized `OBJECT` cannot contain another localized attribute anywhere in its subtree.
* A plain (non-localized) `OBJECT` can contain nested localized `TEXT` or nested localized `OBJECT` attributes.
* Under `v2`, creating or updating a schema regenerates array-of-localized `TEXT` and `OBJECT` fields as language maps.

{% hint style="warning" %}
When a `v2` tenant updates a schema that still uses nested v1 arrays for array-of-localized fields, Schema Service regenerates those fields as v2 maps. Stored values such as `[{ "language": "en", "value": "Organic" }]` then fail validation until you replace them with language maps such as `{ "en": "Organic", "de": "Bio" }`.
{% endhint %}

## How to create a more complex schema

In case you need to add a schema for more complex attribute types than those supported by default, instead of creating a schema, you can create a reference. This tutorial shows you how to upload more complex schemas.

### Prepare a JSON schema definition

See the example JSON file that defines fields of different types:

```json
{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "description": "Schema for mixins for custom attributes at products.",
  "properties": {
    "storageCapacity": {
      "type": "string",
      "description": "Storage Capacity. Rules: Must be one of the following values: '128 GB', '256 GB', '512 GB', '1000 GB'.",
      "enum": ["128 GB", "256 GB", "512 GB", "1000 GB"]
    },
    "color": {
      "type": "string",
      "description": "Color. Rules: Must be one of the following values: 'Black', 'Blue', 'Natural', 'White'.",
      "enum": ["Black", "Blue", "Natural", "White"]
    },
    "memory": {
      "type": "string",
      "description": "Memory. Rules: Can only be '8 GB'.",
      "enum": ["8 GB"]
    },
    "displaySize": {
      "type": "string",
      "description": "Display Size. Rules: Must follow the format of '[number]\"' (e.g. '5.5\"').",
      "pattern": "^[0-9]+(\\.[0-9]{1,2})?\"$"
    },
    "imageResolution": {
      "type": "string",
      "description": "Image Resolution. Rules: Must follow the format of '[width] x [height] pixels'.",
      "pattern": "^[0-9]+ x [0-9]+ pixels$"
    },
    "iOSOperatingSystem": {
      "type": "boolean",
      "description": "iOS Operating System. Rules: Must be a boolean (true or false)."
    },
    "capacity": {
      "type": "string",
      "description": "Capacity. Rules: Must follow the format '[number] mAh'.",
      "pattern": "^[0-9]+ mAh$"
    },
    "itemNumber": {
      "type": "number",
      "description": "Item Number. Rules: Must be a number between 0 and 99999999 inclusive.",
      "minimum": 0,
      "maximum": 99999999
    },
    "manufacturerNo": {
      "type": "string",
      "description": "Manufacturer No. Rules: Cannot exceed 10 characters in length.",
      "maxLength": 10
    },
    "releaseDate": {
      "type": "string",
      "description": "Release Date. Rules: Must be in the format 'YYYY-MM-DD'.",
      "format": "date",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
    },
    "salesRank": {
      "type": "object",
      "description": "Sales Rank. Rules: 1. 'total' can be set and 'rank' can be empty. 2. When 'rank' is set, 'total' also has to be set.",
      "properties": {
        "rank": {
          "type": "number",
          "minimum": 1
        },
        "total": {
          "type": "number",
          "minimum": 1
        }
      },
      "dependencies": {
        "rank": ["total"]
      }
    },
    "externalLinks": {
      "type": "string",
      "description": "External Links. Rules: Must be a valid URI starting with 'http://' or 'https://'.",
      "format": "uri",
      "pattern": "^https?://.+"
    },
    "maxOrderQuantity": {
      "type": "number",
      "description": "Max Order Quantity. Rules: Must be a number greater than or equal to 1.",
      "minimum": 1
    },
    "contactDetails": {
      "type": "string",
      "description": "Contact Details. Rules: Must be a valid email format.",
      "format": "email",
      "pattern": "^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$"
    },
    "specifications": {
      "type": "array",
      "description": "Technical specifications. Rules: Each item must have a 'name', 'summary', and 'details'.",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "description": "Name of the specification or technology"
          },
          "summary": {
            "type": "string",
            "description": "A brief summary of the specification"
          },
          "details": {
            "type": "string",
            "description": "Detailed information about the specification"
          }
        },
        "required": ["name", "summary", "details"]
      }
    }
  },
  "oneOf": [
    {
      "properties": {
        "color": {
          "const": "Blue"
        },
        "storageCapacity": {
          "enum": ["512 GB", "1000 GB"]
        }
      }
    },
    {
      "properties": {
        "color": {
          "enum": ["Black", "Natural", "White"]
        },
        "storageCapacity": {
          "enum": ["128 GB", "256 GB", "512 GB", "1000 GB"]
        }
      }
    }
  ],
  "required": [
    "storageCapacity",
    "color",
    "memory",
    "displaySize",
    "imageResolution",
    "capacity",
    "itemNumber",
    "manufacturerNo",
    "releaseDate",
    "externalLinks",
    "maxOrderQuantity",
    "contactDetails",
    "specifications"
  ]
}

```

### Create a reference

To use the schema in Emporix Commerce Engine, send a request to the [Creating a reference](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference/reference#post-schema-tenant-references) endpoint. This action creates a reference to your schema so that you use the extended type. The schema reference is used to create or edit product objects.

{% hint style="warning" %}
Note that the fields of types that are not supported by default are not displayed in the Management Dashboard. You can edit them by API requests.
{% endhint %}

{% hint style="success" %}
To test the endpoint, open the API reference or check the example of a curl request.
{% endhint %}

{% content-ref url="/pages/LtLbZrJFe4rsb7VJXBCK" %}
[API Reference](https://developer.emporix.io/api-documentation/api-guides/utilities/schema/api-reference.md)
{% endcontent-ref %}

CURL request example:

```bash
curl -L 
  --request POST 
  --url 'https://api.emporix.io/schema/{tenant}/references' 
  --header 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' 
  --header 'Content-Type: multipart/form-data' 
  --form 'file=[object Object]' 
  --form 'body=[object Object]'
```

JSON example:

```json
{
  "file": {
    "externalValue": "https://res.cloudinary.com/saas-ag/raw/upload/schemata2/saastest2/653a30c0951b2b0665884f89_v1.json"
  },
  "body": {
    "name": {
      "en": "Product Custom Attributes"
    },
    "types": [
      "PRODUCT"
    ]
  }
}
```

### Create a product

Now, create a product and provide values for the customized fields by sending a request to [Creating a new product](https://developer.emporix.io/api-documentation/api-guides/products-labels-and-brands/product-service/api-reference/products#post-product-tenant-products) endpoint.

See the example payload for creating a product basing on the schema from the previous step:

```json
{
    "productType": "BASIC",
    "published": true,
    "id": "mobile-15-pro-blue-1",
    "code": "mobile-15-pro-blue-1",
    "name": {
        "de": "Mobile Phone 15 Pro Blue",
        "ar": "Mobile Phone 15 Pro Blue",
        "en": "Mobile Phone 15 Pro Blue",
        "fr": "Mobile Phone 15 Pro Blue"
    },
    "description": {
        "de": "",
        "ar": "",
        "en": "Mobile 15 Pro. Titanium becomes Pro.\n\nThe Mobile 15 Pro. Forged from titanium, with the all-changing A17 Pro chip, a customizable action button and an even more versatile camera system.\n\nFORGED FROM TITANIUM - The Mobile 15 Pro has a durable and lightweight space-age titanium design with a textured matte glass back. It also has a Ceramic Shield front that can withstand more than any smartphone glass. And it'\''s protected from water and dust.\n\nADVANCED DISPLAY - The 6.1\" Super Retina XDR Display2 with ProMotion boosts the refresh rate to 120 Hz when you need extra graphics power. Dynamic Island brings notifications and live activity to the front. And with Always On Display, the lock screen always shows your most important info without you having to tap it.\n\nEVERYTHING CHANGING A17 PRO CHIP - A Pro GPU makes gaming an immersive experience, with detailed environments and realistic characters. The A17 Pro is incredibly efficient and helps ensure you have battery power for the whole day.\n\nPOWERFUL PRO CAMERA SYSTEM - Incredible framing flexibility as if you had 7 Pro lenses. Take super high-resolution photos with more colour and detail with the 48 MP main camera. And with the 3x telephoto camera in Mobile 15 Pro, you'\''ll get razor-sharp close-ups from further away.\n\nADJUSTABLE ACTION BUTTON - The Action Button takes you straight to your favourite feature. Just set it to silent mode, camera, voice memo, shortcut or any other feature. Then all you have to do is press and hold the Action Button to start it.\n\nPRO CONNECTIVITY - With the new USB C port, you can charge your Mac or iPad with the same cable as your Mobile 15 Pro. With USB 3, you get a huge leap in data transfer. And you can charge files up to 2x faster with Wi-Fi 6E.\n\nIMPORTANT SAFETY FEATURES - If you need to contact emergency services but have no network or Wi-Fi, you can use Emergency SOS via satellite. With Accident Detection, Mobile can detect a serious car accident and call for help if you can'\''t.\n\nMADE TO MAKE A DIFFERENCE - Mobile comes with privacy features that ensure you stay in control of your data. It'\''s made from more recycled materials to minimise its environmental impact. And it has built-in features that make Mobile more accessible to everyone.\n\nCOMES WITH APPLECARE WARRANTY - Every Mobile comes with a one-year manufacturer'\''s warranty and up to 90 days of free technical support. Get AppleCare+ or AppleCare+ with theft and loss to extend your protection.\n\nMobile 15, Mobile 15 Plus, Mobile 15 Pro and Mobile 15 Pro Max are protected from water and dust and have been tested under controlled laboratory conditions. They are rated IP68 to IEC standard 60529 (up to 6 metres for up to 30 minutes). Protection from water and dust is not permanent and may diminish over time as a result of normal wear and tear. Do not charge a wet Mobile. Cleaning and drying instructions are provided in the user manual. The warranty does not cover damage caused by liquids.",
        "fr": ""
    },
    "mixins": {
        "productCustomAttributes": {
            "inStock": true
        },
        "mixinsExampleAttributes": {
            "storageCapacity": "1000 GB",
            "color": "Blue",
            "memory": "8 GB",
            "displaySize": "6.10",
            "imageResolution": "2556 x 1179 pixels",
            "iOSOperatingSystem": true,
            "capacity": "3274 mAh",
            "itemNumber": 38606712,
            "manufacturerNo": "MTV13ZD/A",
            "releaseDate": "2023-09-22",
            "salesRank": {
                "rank": 2,
                "total": 4405
            },
            "externalLinks": "https://shop.eno.de/de/datasheets/product/view/sku/150728",
            "maxOrderQuantity": 3,
            "contactDetails": "info@example.com",
            "specifications": [
                {
                    "name": "5G (sub‑6 GHz and mmWave)",
                    "summary": "4x4 MIMO",
                    "details": "5G technology supporting sub‑6 GHz and mmWave frequencies with 4x4 MIMO10"
                },
                {
                    "name": "Gigabit LTE",
                    "summary": "4x4 MIMO and LAA",
                    "details": "High-speed LTE technology with 4x4 MIMO and LAA10"
                },
                {
                    "name": "Wi‑Fi 6E (802.11ax)",
                    "summary": "2x2 MIMO",
                    "details": "Wi-Fi 6E technology (802.11ax) supporting 2x2 MIMO11"
                },
                {
                    "name": "Bluetooth 5.3",
                    "summary": "Bluetooth technology",
                    "details": "Version 5.3 of the Bluetooth wireless communication standard"
                },
                {
                    "name": "NFC with reader mode",
                    "summary": "NFC technology",
                    "details": "Near Field Communication technology with reader mode"
                }
            ]
        }
    },
    "metadata": {
        "mixins": {
            "productCustomAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/schemata/productCustomAttributesMixIn.v29.json",
            "mixinsExampleAttributes": "https://res.cloudinary.com/saas-ag/raw/upload/powerzone/mixins/emporix_mixins_testing_jsonschema_v1.json"
        }
    }
}
```

## Custom entity authorization and ownership

When you create a custom entity type, the platform provisions type-specific scopes that follow the `custom.{lowerCaseType}_*` naming pattern.

For a type like `DOCUMENT`, generated scopes follow this pattern:

* `custom.document_read`
* `custom.document_manage`
* `custom.document_read_own`
* `custom.document_manage_own`

Custom instance endpoints accept either tenant-wide Schema scopes or type-scoped scopes:

* Read operations: `schema.custominstance_read` or `custom.{lowerCaseType}_read` or `custom.{lowerCaseType}_read_own`
* Manage operations: `schema.custominstance_manage` or `custom.{lowerCaseType}_manage` or `custom.{lowerCaseType}_manage_own`

Custom instance responses include the immutable `owner` object, which is used for ownership-aware authorization:

* `owner.type`: `CUSTOMER`, `EMPLOYEE`, or `SERVICE`
* `owner.userId`: creator identifier (for service flows, client identifier)
* `owner.legalEntityId`: present for customer-owned instances

{% hint style="info" %}
For the end-to-end IAM and Schema flow, see [Custom scopes for custom entities](https://developer.emporix.io/api-documentation/quickstart/authentication-and-authorization/tokens-and-scopes.md#scopes-for-custom-entities) in the Tokens and Scopes guide.
{% endhint %}


---

# 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://developer.emporix.io/api-documentation/api-guides/utilities/schema/schema.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.
