---
updatedAt: 2025-11-12T22:16:56.000Z
agentTools:
  projectIndex: https://docs.nmp.arianee.com/llms.txt
---

# Pair Digital Passport with Product

### Overview

To pair digital passports with physical products, you must establish two objects:

* **Digital Passport Template:** Templates are used in The Forge app to generate each digital passport manually. It is now automatically created from the parent digital passport previously created. When the template is modified, all associated digital passports pointing to it will also be updated.
* **Digital Passports:** These are linked to unique physical products through serial numbers through The Forge app.

<Image align="center" width="600px" src="https://files.readme.io/03ff4633a1079f9367434a1eb952dc9939a77a21a865e8c3513da4203462478c-Template_Flowchart_1.gif" />

***

### Step 1. Create a Digital Passport Template

##### URL

> Required rights: `admin` or `certCreate`

To create and import your template on your NFT Management Platform, use [`api/smartAssetTemplate`](https://docs.nmp.arianee.com/reference/createtemplate).

```Text URL
POST - https://{url}/smartAssetTemplate
```

##### Body

To create your template, you must build:

* **Header**: metadata and content of the digital passport.
* **Attributes**: form fields.

***

**1. Create the template header**

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Parameter
      </th>

      <th>
        Type
      </th>

      <th>
        Mandatory
      </th>

      <th>
        Definition
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `blockchainProperties`
      </td>

      <td>
        Object
      </td>

      <td>
        ✅
      </td>

      <td>
        Transfer settings:  

        * `isTransferable`: Set `true` if the digital passport is claimable.
        * `showTransferableOption`: Set `true` to display the **Transferable** option on the app.
      </td>
    </tr>

    <tr>
      <td>
        `metadata`
      </td>

      <td>
        Object
      </td>

      <td>
        ✅
      </td>

      <td>
        Metadata of the template:  

        * `name`: Name of the product.
        * `icon`: The product's icon displayed in the app.
      </td>
    </tr>

    <tr>
      <td>
        `content`
      </td>

      <td>
        String
      </td>

      <td>
        ❌
      </td>

      <td>
        [Json Schema](https://docs.nmp.arianee.com/docs/nft-schema-1) with the template content.\
        ⚠️ Stringify your JSON schema content. 
      </td>
    </tr>
  </tbody>
</Table>

```json Header Example
[
	{
    "deleted": false,
    "blockchainProperties": {
      "isTransferable": true,
      "showTransferableOption": true
    },
    "metadata": {
	     "name": "Product name",
	     "icon": "https://www.arianee.com/content/dam/ap/com/products/watches/importer"
		},
    "content": "{\n  \"$schema\": \"https://cert.arianee.org/version2/ArianeeProductCertificate-i18n.json\",\n  \"name\": \"Mon NFT TEST\",\n  \"serialNumber\": [{\n    \"type\": \"serialNumber\",\n    \"value\": \"%serialNumber%\"\n    }],\n  \"description\": \"this is the NFT %description%. With Size = %size% and a %color% color\"\n}",
	}
]
```
```json JSON Body Example
{
  "$schema": "https://cert.arianee.org/version2/ArianeeProductCertificate-i18n.json",
  "name": "Mon NFT TEST",
  "serialNumber": [{
    "type": "serialNumber",
    "value": "%serialNumber%"
    }],
	"diameter": [{
    "type": "diameter",
    "value": "%diameter%"
    }],
  "description": "Technical Details : Diameter: %diameter%, Case Material: %caseMaterial%, Dial Color: %dialColor%, Bracelet Material: %braceletMaterial%, Caliber: %caliber%"
}
```
```json Stringified JSON Example
"{\n  \"$schema\": \"https://cert.arianee.org/version2/ArianeeProductCertificate-i18n.json\",\n  \"name\": \"Mon NFT TEST\",\n  \"serialNumber\": [{\n    \"type\": \"serialNumber\",\n    \"value\": \"%serialNumber%\"\n    }],\n  \"description\": \"Technical Details : Diameter: %diameter%, Case Material: %caseMaterial%, Dial Color: %dialColor%, Bracelet Material: %braceletMaterial%, Caliber: %caliber%\"\n}"
```

<Callout icon="💡" theme="default">
  ### `%value%`: values which will be entered in the app.
</Callout>

**2. Create template attributes**

<Table align={["left","left","left","left"]}>
  <thead>
    <tr>
      <th>
        Field
      </th>

      <th>
        Type
      </th>

      <th>
        Mandatory
      </th>

      <th>
        Definition
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `field`
      </td>

      <td>
        `%value%`
      </td>

      <td>
        ❌
      </td>

      <td>
        Field replaced by the digital passport content.
      </td>
    </tr>

    <tr>
      <td>
        `label`
      </td>

      <td>
        String
      </td>

      <td>
        ❌
      </td>

      <td>
        Label displayed in the app.
      </td>
    </tr>

    <tr>
      <td>
        `freeEntry`
      </td>

      <td>
        Boolean
      </td>

      <td>
        ❌
      </td>

      <td>
        The user can manually add values in the app.  

        💡 `freeEntry` are temporarily saved for the duration of the current form. The value will no longer be available in the template.
      </td>
    </tr>

    <tr>
      <td>
        `required`
      </td>

      <td>
        Boolean
      </td>

      <td>
        ❌
      </td>

      <td>
        Set to `true` so the user cannot pass the step.
      </td>
    </tr>

    <tr>
      <td>
        `searchable`
      </td>

      <td>
        Boolean
      </td>

      <td>
        ❌
      </td>

      <td>
        Set to `true` to integrate a search bar to search options available.
      </td>
    </tr>

    <tr>
      <td>
        `type`
      </td>

      <td>
        \`“select” / “text” / “file”
      </td>

      <td>
        ❌
      </td>

      <td>
        Identifies the type of component to be displayed.
      </td>
    </tr>

    <tr>
      <td>
        `options`
      </td>

      <td>
        `[ {”label”: string, “value”: string},` `{”label”: string, “value”: string}, … ]`
      </td>

      <td>
        ❌
      </td>

      <td>
        For inputs with the `"select"` type concerns the set of values that will be proposed.
      </td>
    </tr>
  </tbody>
</Table>

```json Attributes Body Example
"attributes": [
      {
        "field": "%size%",
        "label": "Diameter",
        "freeEntry": true,
        "required": true,
        "searchable": true,
        "type": "select",
        "options": [
          {
            "label": "40mm",
            "value": "40mm"
          },
          {
            "label": "40mm",
            "value": "40mm"
          }
        ]
      },
      {
        "field": "%serialNumber%",
        "label": "Serial number",
        "freeEntry": false,
        "required": true,
        "type": "text",
        "options": []
      },
   		{
        "field": "%media%",
        "label": "Media",
        "required": true,
        "type": "file"
      }
    ]
```

**3. Complete Body**

```json Complete Body Example
[{
    "deleted":false,
    "blockchainProperties": {
      "isTransferable": true,
      "showTransferableOption":true
    },
    "metadata": {
      "name": "Product name",
      "icon": "https://www.arianee.com/content/dam/ap/com/products/watches/importer"
    },
    "content": "{\n  \"$schema\": \"https://cert.arianee.org/version2/ArianeeProductCertificate-i18n.json\",\n  \"language\": \"fr-FR\",\n  \"name\": \"ROYAL OAK GRANDE COMPLICATION SQUELETTE\",\n  \"category\": \"accessory\",\n  \"subCategory\": \"watch\",\n  \"serialnumber\": [\n    {\n      \"type\": \"serialnumber\",\n      \"value\": \"%serialnumber%\"\n    },\n    {\n      \"type\": \"casenumber\",\n      \"value\": \"%casenumber%\"\n    }\n  ],\n  \"model\": \"Royal Oak\",\n  \"description\": \"\\nCombinant les 3 catégories de complications horlogères (mesure des temps courts, mécanismes de sonnerie et indications astronomiques), ce modèle entraîné par le calibre %calibre% a été entièrement fabriqué à la main par un seul et même maître-horloger de l’atelier Grandes Complications Audemars Piguet.\\n\\nBoîte de %diameter% en %caseMaterial% avec lunette acier, glace et fond saphir, couronne vissée\\n\\nCadran saphir, compteurs fumés, aiguilles Royal Oak en %aiguilleMaterial% avec dépôt luminescent, aiguilles compteurs/seconde/rattrapante blanches, réhaut noir avec minuterie blanche, mouvement couleur ardoise.\",\n  \"externalContents\": [\n    {\n      \"type\": \"website\",\n      \"title\": \"Audemars Piguet Website\",\n      \"url\": \"https://www.audemarspiguet.com/com/fr/home.html\"\n    }\n  ],\n  \"medias\": [\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpmain.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"brandItemBackgroundPicture\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeaturedcase.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeatureddial.png\"\n    }\n  ]\n}",
    "attributes": [
      {
        "field": "%serialnumber%",
        "label": "Serial number",
        "freeEntry": false,
        "required": true,
        "type": "text",
        "options": []
      },
	{
        "field": "%casenumber%",
        "label": "Case number",
        "freeEntry": false,
        "required": true,
        "type": "text",
        "options": []
      },
      {
        "field": "%diameter%",
        "label": "Diameter",
        "freeEntry": false,
        "required": true,
        "type": "select",
        "options": [{
          "label": "42mm",
          "value": "42mm"
        }, {
          "label": "44mm",
          "value": "44mm"
        }
        ]
      },
      {
        "field": "%caseMaterial%",
        "label": "Case material",
        "freeEntry": false,
        "required": true,
        "type": "select",
        "options": [{
          "label": "Or rose 18k",
          "value": "Or rose 18k"
        },{
          "label": "Or jaune 18k",
          "value": "Or jaune 18k"
        }
        ]
      },
      {
        "field": "%aiguilleMaterial%",
        "label": "Needle material",
        "freeEntry": false,
        "required": true,
        "type": "select",
        "options": [{
          "label": "Or rose 24k",
          "value": "Or rose 24k"
        },{
          "label": "Or jaune 24k",
          "value": "Or jaune 24k"
        }
        ]
      },
      {
        "field": "%media%",
        "label": "Media",
        "required": true,
        "type": "file"
      }
    ]
  }]
```

##### Return Payload

| Status Code | Description                     |
| :---------- | :------------------------------ |
| `200`       | The template data are returned. |

```json 200 Return Payload
[
    {
        "attributes": [
            {
                "field": "%serialnumber%",
                "label": "Serial number",
                "freeEntry": false,
                "required": true,
                "type": "text",
                "options": []
            },
            {
                "field": "%casenumber%",
                "label": "Case number",
                "freeEntry": false,
                "required": true,
                "type": "text",
                "options": []
            },
            {
                "field": "%diameter%",
                "label": "Diameter",
                "freeEntry": false,
                "required": true,
                "type": "select",
                "options": [
                    {
                        "label": "42mm",
                        "value": "42mm"
                    },
                    {
                        "label": "44mm",
                        "value": "44mm"
                    }
                ]
            },
            {
                "field": "%caseMaterial%",
                "label": "Case material",
                "freeEntry": false,
                "required": true,
                "type": "select",
                "options": [
                    {
                        "label": "Or rose 18k",
                        "value": "Or rose 18k"
                    },
                    {
                        "label": "Or jaune 18k",
                        "value": "Or jaune 18k"
                    }
                ]
            },
            {
                "field": "%aiguilleMaterial%",
                "label": "Needle material",
                "freeEntry": false,
                "required": true,
                "type": "select",
                "options": [
                    {
                        "label": "Or rose 24k",
                        "value": "Or rose 24k"
                    },
                    {
                        "label": "Or jaune 24k",
                        "value": "Or jaune 24k"
                    }
                ]
            },
            {
              "field": "%media%",
              "label": "Media",
              "required": true,
              "type": "file"
            }
        ],
        "_id": "63a5cfee94ea7835457d5800",
        "deleted": false,
        "blockchainProperties": {
            "isTransferable": true,
            "showTransferableOption": true
        },
        "metadata": {
            "name": "ROYAL OAK GRANDE COMPLICATION SQUELETTE",
            "icon": "https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpmain.png"
        },
        "content": "{\n  \"$schema\": \"https://cert.arianee.org/version2/ArianeeProductCertificate-i18n.json\",\n  \"language\": \"fr-FR\",\n  \"name\": \"ROYAL OAK GRANDE COMPLICATION SQUELETTE\",\n  \"category\": \"accessory\",\n  \"subCategory\": \"watch\",\n  \"serialnumber\": [\n    {\n      \"type\": \"serialnumber\",\n      \"value\": \"%serialnumber%\"\n    },\n    {\n      \"type\": \"casenumber\",\n      \"value\": \"%casenumber%\"\n    }\n  ],\n  \"model\": \"Royal Oak\",\n  \"description\": \"\\nCombinant les 3 catégories de complications horlogères (mesure des temps courts, mécanismes de sonnerie et indications astronomiques), ce modèle entraîné par le calibre %calibre% a été entièrement fabriqué à la main par un seul et même maître-horloger de l’atelier Grandes Complications Audemars Piguet.\\n\\nBoîte de %diameter% en %caseMaterial% avec lunette acier, glace et fond saphir, couronne vissée\\n\\nCadran saphir, compteurs fumés, aiguilles Royal Oak en %aiguilleMaterial% avec dépôt luminescent, aiguilles compteurs/seconde/rattrapante blanches, réhaut noir avec minuterie blanche, mouvement couleur ardoise.\",\n  \"externalContents\": [\n    {\n      \"type\": \"website\",\n      \"title\": \"Audemars Piguet Website\",\n      \"url\": \"https://www.audemarspiguet.com/com/fr/home.html\"\n    }\n  ],\n  \"medias\": [\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpmain.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"brandItemBackgroundPicture\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeaturedcase.png\"\n    },\n    {\n      \"mediaType\": \"picture\",\n      \"type\": \"product\",\n      \"url\": \"https://www.audemarspiguet.com/content/dam/ap/com/products/watches/MTR003700.00/importer/watch.png.transform.appdpfeatureddial.png\"\n    }\n  ]\n}",
        "__v": 0,
        "id": "63a5cfee94ea7835457d5800"
    }
]
```

***

### Step 2. Pair a Digital Passport with Product's QR Code

1. From the Forge app, connect your API key QR code to log into your NFT Management Platform.

<Callout icon="🔐" theme="default">
  ### Authentication

  To log in to the Forge App, go to your NFT Management platform, click on **Users & Profiles**, and generate your API key QR code. You can log in to the app using this QR code as much as needed, so keep it preciously.
</Callout>

2. Scan a printed QR code that has not been paired yet.
3. Select the target digital passport template. Enter the *SKU* or *Parent Title* to fetch the right template.
4. Enter the information associated with the product (e.g. serial number).

<Image align="center" width="200px" src="https://files.readme.io/508dd069b35a2d62a1dffc1c54f8f8f5995250a6f0da4c63d3d57d5a4385dd30-Group_106.png" />

<Callout icon="🔗" theme="default">
  ### Pairing Completed

  Once confirmed, a digital passport is minted and associated with the product you just paired.

  <Image align="center" width="300px" src="https://files.readme.io/8106ccbfb3a7ce57a326aa00ba2d1ed8cb4ef585d6a869b90f905806bb9cb4df-Group_105.png" />
</Callout>