---
updatedAt: 2026-06-17T08:53:04.000Z
agentTools:
  projectIndex: https://developer.tiliter.com/llms.txt
---

# Create Product Mapping

The Create Product Mapping function establishes a mapping between a Retailer
Product and a Tiliter Archetype. This mapping is necessary for every Retailer
Product that requires recognition.
Note: A Retailer Product cannot be mapped to more than one Tiliter Archetype,
however, multiple Products can be mapped to the same Tiliter Archetype.

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Tiliter Recognition API",
    "version": "1.15.13",
    "x-logo": {
      "href": "https://www.tiliter.com/",
      "url": "/logo.svg",
      "altText": "Tiliter logo"
    }
  },
  "servers": [
    {
      "url": "https://recognition.services.tiliter.com/v1/15",
      "description": "Production Endpoint (v1.15 versioned URL)"
    }
  ],
  "paths": {
    "/product_mappings/": {
      "post": {
        "tags": [
          "Product Mapping and Archetypes"
        ],
        "summary": "Create Product Mapping",
        "description": "The Create Product Mapping function establishes a mapping between a Retailer\nProduct and a Tiliter Archetype. This mapping is necessary for every Retailer\nProduct that requires recognition.\nNote: A Retailer Product cannot be mapped to more than one Tiliter Archetype,\nhowever, multiple Products can be mapped to the same Tiliter Archetype.",
        "operationId": "create_product_mapping",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProductMapping"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Successful Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProductMapping"
                }
              }
            }
          },
          "400": {
            "description": "bad_request",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientError"
                }
              }
            }
          },
          "409": {
            "description": "already_exists",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClientError"
                }
              }
            }
          },
          "422": {
            "description": "Validation Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HTTPValidationError"
                }
              }
            }
          },
          "429": {
            "description": "Request Throttled - reduce request rate and retry"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ClientError": {
        "properties": {
          "message": {
            "type": "string",
            "title": "Message"
          },
          "error_type": {
            "$ref": "#/components/schemas/ErrorType"
          },
          "error_code": {
            "type": "integer",
            "title": "Error Code",
            "description": "HTTP status code for the error"
          }
        },
        "type": "object",
        "required": [
          "message",
          "error_type",
          "error_code"
        ],
        "title": "ClientError"
      },
      "ErrorType": {
        "type": "string",
        "enum": [
          "already_exists",
          "does_not_exist",
          "bad_request",
          "internal_error",
          "unauthorized"
        ],
        "title": "ErrorType",
        "description": "An enumeration."
      },
      "HTTPValidationError": {
        "properties": {
          "detail": {
            "items": {
              "$ref": "#/components/schemas/ValidationError"
            },
            "type": "array",
            "title": "Detail"
          }
        },
        "type": "object",
        "title": "HTTPValidationError"
      },
      "ProductMapping": {
        "properties": {
          "product_id": {
            "type": "string",
            "maxLength": 50,
            "minLength": 1,
            "pattern": "^[a-zA-Z0-9_\\-]+$",
            "title": "Product Id"
          },
          "archetype_id": {
            "type": "string",
            "format": "uuid",
            "title": "Archetype Id"
          }
        },
        "type": "object",
        "required": [
          "product_id",
          "archetype_id"
        ],
        "title": "ProductMapping",
        "description": "A mapping between a sellable product and a recognisable product archetype"
      },
      "ValidationError": {
        "properties": {
          "loc": {
            "items": {
              "anyOf": [
                {
                  "type": "string"
                },
                {
                  "type": "integer"
                }
              ]
            },
            "type": "array",
            "title": "Location"
          },
          "msg": {
            "type": "string",
            "title": "Message"
          },
          "type": {
            "type": "string",
            "title": "Error Type"
          }
        },
        "type": "object",
        "required": [
          "loc",
          "msg",
          "type"
        ],
        "title": "ValidationError"
      }
    },
    "securitySchemes": {
      "api-key-auth": {
        "type": "apiKey",
        "name": "tiliter-api-key",
        "in": "header"
      }
    }
  },
  "tags": [
    {
      "name": "Product Mapping and Archetypes",
      "description": "To recognise products, two things are required to be configured with the Tiliter Recognition API:\n1. Products are registered with the Tiliter Recognition API\n2. Those Products are mapped to Tiliter Archetypes\n\nThis section covers mapping the products to Tiliter Archetypes. Registering products is covered in Products.\n\nTiliter Archetypes serve as an internal representation of the output from the Tiliter recognition model. Each archetype is assigned a fixed Tiliter Archetype ID determined by Tiliter.\n\nMapping Products to Tiliter Archetypes is required to get those products in the recognition result.\nThe Tiliter Recognition API responses only include Retailer Products that have been mapped to Tiliter Archetypes. These mappings can be obtained using the 'List Archetypes' function, and established using the 'Create Product Mapping' function. Products with valid mappings can be retrieved using the 'List Product Mappings' function, provided they are in stock (more information in the 'Stores and Stock' section)."
    }
  ],
  "security": [
    {
      "api-key-auth": []
    }
  ],
  "x-tagGroups": [
    {
      "name": "Api Reference",
      "tags": [
        "Products",
        "Product Mapping and Archetypes",
        "Devices",
        "Stores and Stock",
        "Recognise and Select"
      ]
    }
  ]
}
```