API Docs | RenderTemplate | Tajima Software Solutions Inc.

With the /RenderTemplate endpoint user can render a template.

POST /api/RenderTemplate/Render
Model Request Example
                All parameters except Template are optional
    {
      "Template": "string",
      "ProductSKU": "string",
      "Location": "string",
      "ReturnByteArray": true,
      "Personalizations": [
        {
          "Palette": [
            {
              "ReplacementName": "string",
              "NeedleIndex": 0
            }
          ],
          "Text": "string",
          "TextColour": "string",
          "FontOverride": "string",
          "HeightOverride": 0,
          "ElementName": "string",
          "IsText": true,
          "Design": "string"
        }
      ]
    }
                
Response Example
            Possible errors:
            100 - Blacklist Violation
            1007 - Text is too long
            1001 - Product not found in the database (if rendered on a product only)
            1013 - Personalization has empty text
            1012 - Template file not found
            1004 - Colour was not found in the database
            1016 - Font was not found in the database
            1301 - Design file was not found
            1017 - Colour is not configured for this template
            1018 - Font is not configured for this template
            1019 - Design is not configured for this template
            1015 - Character is not found in font
            1023 - text is shorter than minimum number of characters for font rule
            1024 - Text is too long for font rule
            2000 - Location name is required (if rendered on a product only)
            2001 - Image is too big, can not fit into the location
            4001 - Bad Api Key
            5004 - Font rule was not found
            5005 - Product SKU was not found
                
            Response will be a url to the rendered template.
    /RenderedTemplates/49938804111222017111239AM.png